/* =====================================================================
   Zahnärzte am Maschsee — Design System
   Aesthetic: Clean Clinical Warmth. Locked LIGHT theme (brand identity).
   Type: Schibsted Grotesk (display) + Inter (body). Self-hosted.
   Accent lock: teal #0F3D3A primary, one warm terracotta accent, used sparingly.
   Radius rule: buttons full-pill, cards 20px, inputs 12px, images 20px.
   ===================================================================== */

/* ---------- Fonts (variable woff2, self-hosted) ---------- */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/schibsted-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/schibsted-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --paper:      #F6F3EC;
  --paper-2:    #FBFAF5;
  --paper-3:    #FCFBF7;
  --ink:        #17221F;
  --ink-soft:   #4C5852;
  --ink-faint:  #7C857F;

  --teal:       #0F3D3A;
  --teal-700:   #0B302D;
  --teal-600:   #1B534D;
  --teal-tint:  #E6EDE9;
  --teal-tint2: #DBE7E1;

  --accent:     #C1674C;   /* warm terracotta, sparing */
  --accent-600: #A9553C;
  --accent-tint:#F1DED5;

  --line:       #E4DDCF;   /* warm hairline on paper */
  --line-teal:  #CBD9D2;   /* hairline on teal-tint */
  --line-dark:  rgba(255,255,255,.14); /* hairline on teal */

  --r-card: 20px;
  --r-btn:  999px;
  --r-input:12px;
  --r-img:  20px;
  --r-chip: 999px;

  --shadow-xs: 0 1px 2px rgba(15,61,58,.05);
  --shadow-sm: 0 2px 6px rgba(15,61,58,.06), 0 8px 24px -12px rgba(15,61,58,.12);
  --shadow-md: 0 4px 12px rgba(15,61,58,.07), 0 20px 48px -20px rgba(15,61,58,.24);
  --shadow-lg: 0 30px 80px -28px rgba(15,61,58,.34);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-display: "Schibsted Grotesk", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter var", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Subtle page grain for a crafted, non-flat surface */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.h-display {
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); line-height: 1.15; }
p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 40ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
  opacity: .8;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
section { position: relative; z-index: 2; }
.section-pad { padding-block: clamp(4.5rem, 3rem + 7vw, 8rem); }
.stack-sm > * + * { margin-top: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--teal); color: #F4F1E9; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--line-teal); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.02rem; }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(246,243,236,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -20px rgba(15,61,58,.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 600; color: var(--teal); letter-spacing: -0.02em; }
.brand .logomark { width: 34px; height: 34px; flex: none; }
.brand b { font-size: 1.06rem; line-height: 1; }
.brand span { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px; background: var(--teal); transition: right .3s var(--ease); }
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--teal); font-size: .95rem; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; }
.nav-toggle svg { width: 24px; height: 24px; }

/* mobile nav panel */
.mnav { position: fixed; inset: 0; z-index: 49; background: var(--paper); padding: 6rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: .4rem; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .35s var(--ease), visibility .45s; }
.mnav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mnav a { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal); padding: .5rem 0; border-bottom: 1px solid var(--line); }
.mnav .btn { margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { padding-top: 118px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { max-width: 33rem; }
.hero h1 { margin-top: 1.4rem; }
.hero .accent-word { color: var(--accent); font-style: italic; }
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: var(--ink-soft); max-width: 34ch; }
.hero-actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-reassure { margin-top: 1.6rem; display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--ink-faint); }
.hero-reassure svg { width: 1.05rem; height: 1.05rem; color: var(--teal-600); flex: none; }

.hero-visual { position: relative; }
.hero-photo { position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.28) contrast(1.02); mix-blend-mode: multiply; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(15,61,58,.34), rgba(15,61,58,.05) 55%, rgba(193,103,76,.16)); }
.hero-badge {
  position: absolute; left: -1.4rem; bottom: 2.2rem; z-index: 3;
  background: var(--paper-2); border-radius: 16px; padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .9rem;
  border: 1px solid var(--line);
}
.hero-badge .rating { display: flex; flex-direction: column; }
.hero-badge .stars { color: var(--accent); letter-spacing: 1px; font-size: .82rem; }
.hero-badge b { font-family: var(--font-display); font-size: 1.05rem; color: var(--teal); }
.hero-badge small { color: var(--ink-faint); font-size: .78rem; }

/* trust band */
.trustband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(3rem, 5vw, 5rem); }
.trustband .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.9rem; }
.trust-item { display: flex; flex-direction: column; gap: .2rem; }
.trust-item b { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--teal); letter-spacing: -0.02em; }
.trust-item span { font-size: .86rem; color: var(--ink-soft); }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 46rem; }
.sec-head .h2 { margin-top: .8rem; }
.sec-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 42ch; }

/* ---------- Leistungen (service grid) ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; }
.svc {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.7rem 1.6rem 1.8rem; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-teal); }
.svc-ic { width: 3rem; height: 3rem; border-radius: 14px; background: var(--teal-tint); display: grid; place-items: center; margin-bottom: 1.15rem; }
.svc-ic svg { width: 1.5rem; height: 1.5rem; color: var(--teal); }
.svc h3 { color: var(--ink); font-size: 1.18rem; }
.svc p { margin-top: .55rem; color: var(--ink-soft); font-size: .96rem; }
/* feature cell variants for rhythm */
.svc.wide { grid-column: span 2; }
.svc.feature { grid-column: span 2; background: var(--teal); border-color: var(--teal); position: relative; overflow: hidden; }
.svc.feature h3, .svc.feature p { color: #EAF0ED; }
.svc.feature h3 { color: #FBFAF5; font-size: 1.32rem; }
.svc.feature .svc-ic { background: rgba(255,255,255,.12); }
.svc.feature .svc-ic svg { color: #EAF0ED; }
.svc.feature .glow { position: absolute; right: -30%; top: -40%; width: 70%; height: 160%; background: radial-gradient(circle, rgba(193,103,76,.35), transparent 62%); pointer-events: none; }
.svc.tint { background: var(--accent-tint); border-color: #E8CFC3; }
.svc.tint .svc-ic { background: rgba(193,103,76,.16); }
.svc.tint .svc-ic svg { color: var(--accent-600); }

/* ---------- Philosophie (color block split) ---------- */
.philo { background: var(--teal); color: #E9EFEC; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; }
.philo-grid { display: grid; grid-template-columns: 1fr 1fr; }
.philo-copy { padding: clamp(2.5rem, 4vw, 4.5rem); }
.philo-copy .eyebrow { color: #D9B7A8; }
.philo-copy .eyebrow::before { background: var(--accent); }
.philo-copy h2 { color: #FBFAF5; }
.philo-copy p { margin-top: 1.2rem; color: #C3D1CC; font-size: 1.08rem; max-width: 40ch; }
.philo-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.05rem; }
.philo-point { display: flex; gap: .9rem; align-items: flex-start; }
.philo-point .chk { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; margin-top: .1rem; }
.philo-point .chk svg { width: .95rem; height: .95rem; color: #EAF0ED; }
.philo-point b { color: #FBFAF5; font-family: var(--font-display); font-weight: 500; }
.philo-point span { display: block; color: #A9BCB6; font-size: .92rem; margin-top: .15rem; }
.philo-photo { position: relative; min-height: 340px; }
.philo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); mix-blend-mode: luminosity; opacity: .9; }
.philo-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent, rgba(11,48,45,.6)); }

/* ---------- Ablauf (step timeline) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3.2rem; counter-reset: step; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--accent);
  position: absolute; top: 0; left: 0;
}
.step::after { content: ""; position: absolute; top: .55rem; left: 3.2rem; right: -.7rem; height: 1px; background: var(--line); }
.steps .step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; color: var(--ink); }
.step p { margin-top: .55rem; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; }
.member { }
.member-photo { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 3/3.5; background: var(--teal-tint); position: relative; box-shadow: var(--shadow-xs); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.02); transition: filter .5s var(--ease), transform .6s var(--ease); }
.member:hover .member-photo img { filter: grayscale(0); transform: scale(1.03); }
.member h3 { margin-top: 1rem; font-size: 1.1rem; color: var(--ink); }
.member .role { color: var(--accent-600); font-size: .9rem; font-weight: 500; margin-top: .15rem; }
.member p { color: var(--ink-soft); font-size: .9rem; margin-top: .5rem; }

/* ---------- Bewertungen (offset testimonials) ---------- */
.reviews { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
.review { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.7rem; box-shadow: var(--shadow-xs); }
.review:nth-child(2) { margin-top: 2.2rem; background: var(--teal-tint); border-color: var(--line-teal); }
.review:nth-child(3) { margin-top: 4.4rem; }
.review .stars { color: var(--accent); letter-spacing: 2px; font-size: .95rem; }
.review blockquote { margin-top: .9rem; font-size: 1.02rem; color: var(--ink); line-height: 1.55; }
.review figcaption { margin-top: 1.2rem; display: flex; align-items: center; gap: .75rem; }
.review .ava { width: 2.4rem; height: 2.4rem; border-radius: 50%; overflow: hidden; flex: none; background: var(--teal-tint2); }
.review .ava img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.review cite { font-style: normal; font-weight: 600; color: var(--ink); font-size: .92rem; }
.review small { display: block; color: var(--ink-faint); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-top: 2.6rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-align: left; padding: 1.4rem 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: var(--teal); }
.faq-q .pm { flex: none; width: 1.6rem; height: 1.6rem; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .35s var(--ease); }
.faq-q .pm::before { top: 50%; left: 2px; right: 2px; height: 2px; transform: translateY(-50%); }
.faq-q .pm::after { left: 50%; top: 2px; bottom: 2px; width: 2px; transform: translateX(-50%); }
.faq-item.open .pm::after { transform: translateX(-50%) scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a-inner { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 60ch; font-size: 1rem; }

/* ---------- Kontakt / Termin ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-info .h2 { margin-top: .8rem; }
.contact-info > p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 40ch; }
.info-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row .ic-box { flex: none; width: 2.7rem; height: 2.7rem; border-radius: 12px; background: var(--teal-tint); display: grid; place-items: center; }
.info-row .ic-box svg { width: 1.3rem; height: 1.3rem; color: var(--teal); }
.info-row .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 600; }
.info-row .val { color: var(--ink); font-weight: 500; margin-top: .1rem; }
.info-row .val a:hover { color: var(--teal); }
.hours { margin-top: 2rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.4rem 1.5rem; }
.hours h3 { font-size: 1rem; color: var(--ink); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.hours dl { margin-top: .8rem; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .94rem; }
.hours dt { color: var(--ink-soft); }
.hours dd { text-align: right; color: var(--ink); font-weight: 500; }
.hours .closed { color: var(--ink-faint); font-weight: 400; }

/* form card */
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: clamp(20px, 2.5vw, 28px); padding: clamp(1.7rem, 3vw, 2.6rem); box-shadow: var(--shadow-md); }
.form-card h3 { color: var(--teal); font-size: 1.4rem; }
.form-card > p { color: var(--ink-soft); font-size: .96rem; margin-top: .4rem; }
.field { margin-top: 1.15rem; display: flex; flex-direction: column; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-size: .88rem; font-weight: 600; color: var(--ink); }
label .opt { color: var(--ink-faint); font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--paper-3); border: 1.5px solid var(--line);
  border-radius: var(--r-input); padding: .8rem .95rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,61,58,.1); }
textarea { resize: vertical; min-height: 96px; }
.field .err { color: var(--accent-600); font-size: .82rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); }
.field.invalid .err { display: block; }
.form-consent { margin-top: 1.15rem; display: flex; gap: .65rem; align-items: flex-start; }
.form-consent input { width: 1.15rem; height: 1.15rem; margin-top: .18rem; flex: none; accent-color: var(--teal); }
.form-consent label { font-weight: 400; font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }
.form-consent a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.form-card .btn { margin-top: 1.5rem; }
.form-note { margin-top: 1rem; font-size: .82rem; color: var(--ink-faint); text-align: center; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success.show { display: block; }
.form-success .ok { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--teal-tint); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .ok svg { width: 1.7rem; height: 1.7rem; color: var(--teal); }
.form-success h3 { color: var(--teal); }
.form-success p { color: var(--ink-soft); margin-top: .5rem; }

/* ---------- Footer ---------- */
.footer { background: var(--teal); color: #C3D1CC; margin-top: clamp(4rem, 6vw, 7rem); padding-block: clamp(3rem, 4vw, 4.5rem) 2rem; }
.footer .wrap { }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer .brand { color: #FBFAF5; }
.footer .brand b { color: #FBFAF5; }
.footer .brand span { color: #8FA49E; }
.footer-blurb { margin-top: 1.1rem; color: #A9BCB6; font-size: .95rem; max-width: 32ch; }
.footer h4 { color: #EAF0ED; font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.footer ul a, .footer address a { color: #A9BCB6; font-size: .95rem; transition: color .2s; font-style: normal; }
.footer ul a:hover, .footer address a:hover { color: #FBFAF5; }
.footer address { margin-top: 1rem; font-style: normal; color: #A9BCB6; font-size: .95rem; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; font-size: .85rem; color: #8FA49E; }
.footer-bottom a { color: #8FA49E; }
.footer-bottom a:hover { color: #FBFAF5; }
.footer-bottom .legal-links { display: flex; gap: 1.5rem; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(246,243,236,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: none; gap: .7rem; transform: translateY(100%); transition: transform .4s var(--ease); }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { flex: 1; }

/* ---------- Scroll reveal (only active when JS is present) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-d="1"] { transition-delay: .08s; }
html.js .reveal[data-d="2"] { transition-delay: .16s; }
html.js .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .svc, .member-photo img { transition: none !important; }
}

/* legal page */
.legal { padding-top: 120px; max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.4rem; color: var(--ink); }
.legal p, .legal address { color: var(--ink-soft); margin-top: .9rem; line-height: 1.7; font-style: normal; }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { display: inline-flex; align-items: center; gap: .4rem; color: var(--teal); font-weight: 600; margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .nav-phone span { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 26rem; margin-inline: auto; order: -1; }
  .hero-photo { aspect-ratio: 16/12; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc.feature, .svc.wide { grid-column: 1 / -1; }
  .philo-grid { grid-template-columns: 1fr; }
  .philo-photo { min-height: 260px; order: -1; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 1.6rem 0 1.6rem 3.4rem; }
  .step::before { top: 1.6rem; }
  .step::after { display: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .review:nth-child(2), .review:nth-child(3) { margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer .brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .trustband .wrap { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .services { grid-template-columns: 1fr; }
  .svc.feature, .svc.wide { grid-column: span 1; }
  .team { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
  .hero-badge { left: 0; }
}
