/* ==========================================================================
   Edda – Doula in Erkelenz & Kreis Heinsberg
   Base styles, tokens, layout and components
   ========================================================================== */

/* Self-hosted fonts (no external requests to third-party font providers) */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/lora-500.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/lora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lora-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

:root {
  --color-bg: #fbf6f0;
  --color-bg-alt: #f5e8de;
  --color-surface: #ffffff;
  --color-primary: #c46c4a;
  --color-primary-dark: #a6573a;
  --color-primary-darker: #8f4529;
  --color-primary-light: #f1ded4;
  --color-secondary: #7c9271;
  --color-secondary-text: #43593c;
  --color-secondary-light: #e7ede2;
  --color-text: #35291f;
  --color-text-muted: #6f6157;
  --color-border: #e8dccd;

  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container-width: 1140px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 24px 48px -28px rgba(53, 41, 31, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(53, 41, 31, 0.25);
  --header-height: 84px;
}

/* ---------- Reset & base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

section {
  padding: 96px 0;
  scroll-margin-top: var(--header-height);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-primary-dark);
  margin: 0 0 0.9em;
}

.section-head {
  max-width: 680px;
  margin: 0 0 56px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 1.08rem;
}

.center {
  text-align: center;
}

.muted {
  color: var(--color-text-muted);
}

.small {
  font-size: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}
.btn-icon {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-darker);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 240, 0.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-right: auto;
}
.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.logo em {
  font-style: normal;
  color: var(--color-primary);
}

.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
.site-nav a {
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.2s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.header-cta {
  padding: 10px 22px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 72px;
  padding-bottom: 40px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  max-width: 15ch;
}

.hero .lead {
  font-size: 1.12rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.hero-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}
.hero-media-shape {
  position: absolute;
  inset: -6% -10%;
  background: linear-gradient(150deg, var(--color-primary-light), var(--color-secondary-light));
  border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
  z-index: 0;
  transform: rotate(-4deg);
}
.hero-media picture {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-media img {
  width: 100%;
  height: auto;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  max-width: 300px;
}

.about-media picture {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-media img {
  width: 100%;
  height: auto;
}

.about-copy h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  max-width: 16ch;
}

.about-copy p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.about-copy a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-primary-light);
  text-underline-offset: 3px;
}
.about-copy a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Process / Steps ---------- */
.process {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
}

.steps li {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid var(--color-border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.steps li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5em;
}

.steps p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* ---------- Service area ---------- */
.area-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.area-copy h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  max-width: 16ch;
}

.area-copy p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.place-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 24px;
}
.place-list li {
  background: var(--color-secondary-light);
  color: var(--color-secondary-text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
}

.quote-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin: 0;
}
.quote-card picture {
  width: 136px;
  height: 136px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}
.quote-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-card blockquote {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--color-text);
}
.quote-card cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-list details {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.3rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  color: var(--color-text-muted);
  padding-bottom: 18px;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-intro {
  max-width: 620px;
}
.contact-intro h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
}
.contact-intro p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:not(.contact-card-static):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary);
}
.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.contact-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  word-break: break-word;
}
.contact-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: #f1e9df;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-inner p {
  margin: 0;
  font-size: 0.92rem;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  font-size: 0.92rem;
  opacity: 0.85;
}
.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-inner .muted {
  color: #cfc3b5;
  width: 100%;
  order: 3;
}

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 90;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.floating-cta:hover {
  background: var(--color-primary-darker);
  transform: scale(1.08);
}
.floating-cta svg {
  width: 28px;
  height: 28px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-inner,
  .about-inner,
  .area-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
  .about-media {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .quote-card {
    justify-self: center;
    max-width: 420px;
    width: 100%;
  }
}

@media (max-width: 760px) {
  section {
    padding: 72px 0;
  }
  /* FAQ section is only shown on larger screens; keeps mobile shorter/simpler */
  .faq {
    display: none;
  }
  .nav-faq {
    display: none;
  }
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    overflow-y: auto;
  }
  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 32px 24px;
  }
  .site-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--color-border);
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
