/* =========================================================================
   Lucent Dental Studio — cosmetic & implant dentistry
   Design system: deep surgical teal + warm ivory counter-note.
   Fraunces (display serif) + Figtree (text). Left-aligned editorial.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Figtree:wght@400;450;500;600&display=swap');

/* ---- tokens ------------------------------------------------------------- */
:root {
  --paper:      #E7EFF6;   /* soft blue ground — not white */
  --paper-2:    #DCE7F1;   /* tinted section band */
  --mist:       #C9DCEA;   /* deeper soft-blue band */
  --surface:    #F2F7FB;   /* raised: inputs, header, small cards */
  --ink:        #11272E;
  --ink-soft:   #3A555C;
  --ink-faint:  #536C75;

  --teal:       #0E6E77;
  --teal-deep:  #0A4A51;
  --aqua:       #5FC6C3;
  --sky:        #93BBD8;   /* soft blue accent */
  --ivory:      #F0E7D6;
  --ivory-deep: #E4D6BC;

  --line:       rgba(19, 47, 68, .16);
  --line-soft:  rgba(19, 47, 68, .09);
  --shadow:     0 1px 2px rgba(19,47,68,.05), 0 14px 42px -18px rgba(19,47,68,.26);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-text: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* modular scale ~1.25 */
  --t--1: .8125rem;
  --t-0:  1rem;
  --t-1:  1.15rem;
  --t-2:  1.4rem;
  --t-3:  1.85rem;
  --t-4:  clamp(2rem, 3.4vw, 2.7rem);
  --t-5:  clamp(2.5rem, 5.4vw, 3.9rem);
  --t-hero: clamp(2.35rem, 5.7vw, 4.35rem);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
  --radius-lg: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0B1B24;
    --paper-2:    #122733;
    --mist:       #17303D;
    --surface:    #16303C;
    --ink:        #E9F1EF;
    --ink-soft:   #A7BEC0;
    --ink-faint:  #7C9699;

    --teal:       #43A0A4;
    --teal-deep:  #2E8085;
    --aqua:       #6FCBC8;
    --sky:        #4E7EA0;
    --ivory:      #D9CBB0;
    --ivory-deep: #B9A683;

    --line:       rgba(226, 238, 244, .16);
    --line-soft:  rgba(226, 238, 244, .09);
    --shadow:     0 1px 2px rgba(0,0,0,.3), 0 18px 50px -20px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --paper:      #0B1B24;
  --paper-2:    #122733;
  --mist:       #17303D;
  --surface:    #16303C;
  --ink:        #E9F1EF;
  --ink-soft:   #A7BEC0;
  --ink-faint:  #7C9699;
  --teal:       #43A0A4;
  --teal-deep:  #2E8085;
  --aqua:       #6FCBC8;
  --sky:        #4E7EA0;
  --ivory:      #D9CBB0;
  --ivory-deep: #B9A683;
  --line:       rgba(226, 238, 244, .16);
  --line-soft:  rgba(226, 238, 244, .09);
  --shadow:     0 1px 2px rgba(0,0,0,.3), 0 18px 50px -20px rgba(0,0,0,.6);
}

/* ---- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-0);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.012em; }
p { margin: 0; }
figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--aqua); color: var(--ink); }
:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
:root[data-theme="dark"] :focus-visible { outline-color: var(--aqua); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :focus-visible { outline-color: var(--aqua); }
}

.skip-link {
  position: absolute; left: 12px; top: 12px;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: var(--radius);
  transform: translateY(-160%); transition: transform .2s;
  z-index: 200; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---- layout ---------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--paper-2); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--teal-deep); color: #EAF3F2; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
/* the ivory band is a deliberate warm-light moment in both themes — text stays dark */
.section--ivory { background: var(--ivory); color: #2A2317; }
.section--ivory h1, .section--ivory h2, .section--ivory h3 { color: #241d10; }
.section--ivory .lede,
.section--ivory p { color: #5b4d38; }

.divider { border: 0; height: 1px; background: var(--line); margin: 0; }

/* kicker + heading block (no all-caps eyebrows) */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t--1); font-weight: 500; color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.kicker .swatch {
  width: 1.5rem; height: 1.5rem; border-radius: 3px;
  background: var(--ivory-deep);
  border: 1px solid rgba(0,0,0,.12);
  font-family: var(--font-text); font-size: .62rem; font-weight: 600;
  display: grid; place-items: center; color: #5c4a28;
  flex: none;
}
.section--ink .kicker { color: #BEE0DE; }
.section--ivory .kicker { color: #6a5a3a; }

.h-lead { font-size: var(--t-5); max-width: 20ch; }
.h-sec  { font-size: var(--t-4); max-width: 18ch; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 46ch; }

.lede { font-size: var(--t-1); color: var(--ink-soft); line-height: 1.55; }
.section--ink .lede { color: #CFE6E4; }

/* ---- buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.4rem; line-height: 1.3;
  border-radius: var(--radius);
  font-weight: 500; font-size: .96rem;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.section--ink .btn--primary { background: #fff; color: var(--teal-deep); }
.section--ink .btn--primary:hover { background: var(--aqua); color: var(--ink); }
.section--ink .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.section--ink .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.section--ivory .btn--primary { background: var(--teal-deep); }

.textlink {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 500; color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.textlink svg { transition: transform .2s ease; }
.textlink:hover svg { transform: translateX(3px); }

/* ---- header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: .85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; flex-direction: column; line-height: 1;
  text-decoration: none; color: var(--ink);
}
.brand b {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.32rem; letter-spacing: -.01em;
}
.brand span {
  font-size: .66rem; font-weight: 500; letter-spacing: .18em;
  color: var(--ink-faint); margin-top: .28rem; text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--ink-soft); font-weight: 450;
  font-size: .96rem; position: relative; padding-block: .4rem;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn)[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem;
  height: 2px; background: var(--teal);
}
.header-actions { display: flex; align-items: center; gap: .9rem; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-soft);
  transition: border-color .18s, color .18s;
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px; border: 1px solid var(--line);
    border-radius: var(--radius); background: transparent; cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); display: block; position: relative; }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
    transition: transform .2s ease;
  }
  .nav-toggle span::before { top: -5.5px; }
  .nav-toggle span::after { top: 5.5px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { width: 100%; padding: .95rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav a:not(.btn)[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 1rem; width: 100%; justify-content: center; }
}

/* ---- scroll ruler (left gutter, wide screens) --------------------- */
.ruler {
  position: fixed; left: 0; top: 0; bottom: 0; width: 46px;
  z-index: 40; pointer-events: none;
  display: none;
  border-right: 1px solid var(--line-soft);
}
.ruler::before { /* tick marks — a measured column */
  content: ""; position: absolute; right: 0; top: 0; width: 9px; height: 100%;
  background-image: repeating-linear-gradient(
    to bottom, var(--line) 0 1px, transparent 1px 14px);
}
.ruler::after { /* every 5th tick longer */
  content: ""; position: absolute; right: 0; top: 0; width: 15px; height: 100%;
  background-image: repeating-linear-gradient(
    to bottom, var(--line) 0 1px, transparent 1px 70px);
}
.ruler__fill {
  position: absolute; right: 0; top: 0; width: 15px;
  background: var(--teal); opacity: .5;
  height: var(--scroll, 0%);
}
.ruler__label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-90deg);
  font-size: .58rem; letter-spacing: .3em; color: var(--ink-faint);
  white-space: nowrap; text-transform: uppercase;
}
@media (min-width: 1280px) {
  .ruler { display: block; }
}

/* ---- hero ------------------------------------------------------------ */
.hero {
  padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: var(--section-y);
  position: relative;
  background:
    radial-gradient(120% 80% at 82% 0%, color-mix(in srgb, var(--sky) 30%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--sky) 16%, var(--paper)), var(--paper) 72%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero__title {
  font-size: var(--t-hero);
  letter-spacing: -.022em;
  line-height: 1.04;
  margin: 0 0 1.6rem;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__sub { max-width: 42ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.hero__note { font-size: var(--t--1); color: var(--ink-faint); margin-top: 1.6rem; max-width: 40ch; }

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.hero__tag {
  position: absolute; left: -16px; bottom: 28px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 3px solid var(--teal);
  padding: .7rem .95rem; border-radius: 4px;
  box-shadow: var(--shadow);
  font-family: var(--font-text);
}
.hero__tag b { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .01em; }
.hero__tag em { font-style: normal; color: var(--ink-faint); font-weight: 450; font-size: .7rem; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__figure { order: -1; }
  .hero__figure img { aspect-ratio: 3/2.3; }
  /* tucked under the image rather than covering the photo */
  .hero__tag {
    position: static; display: inline-flex; flex-direction: column;
    margin: -1.4rem 0 0 12px;
  }
}

/* animate-in — only hidden once JS confirms it can drive the transition.
   Default state is fully visible so a stalled/absent observer never hides content. */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .reveal[data-delay="1"] { transition-delay: .07s; }
.js-reveal .reveal[data-delay="2"] { transition-delay: .14s; }
.js-reveal .reveal[data-delay="3"] { transition-delay: .21s; }

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .hero__anim { opacity: 0; animation: fadeUp .8s ease forwards; }
  .js-reveal .hero__title.hero__anim { animation-duration: .9s; }
  .js-reveal .hero__anim[data-delay="a"] { animation-delay: .48s; }
  .js-reveal .hero__anim[data-delay="b"] { animation-delay: .6s; }
  .js-reveal .hero__figure { opacity: 0; animation: fadeUp .9s ease .28s forwards; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- stat strip ---------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stats__item { padding: 1.8rem 1.4rem 1.8rem 0; border-right: 1px solid var(--line); }
.stats__item:last-child { border-right: 0; }
.stats__n { font-family: var(--font-display); font-size: var(--t-3); display: block; letter-spacing: -.01em; }
.stats__l { font-size: var(--t--1); color: var(--ink-soft); margin-top: .35rem; display: block; max-width: 22ch; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item { padding-right: 1rem; }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(1), .stats__item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---- treatment rows (hairline list, not cards) -------------------- */
.trow {
  display: grid; grid-template-columns: minmax(0,7rem) minmax(0,1fr) minmax(0,2fr) auto;
  gap: clamp(1rem, 4vw, 3rem); align-items: baseline;
  padding: 2rem 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.trow:last-of-type { border-bottom: 1px solid var(--line); }
.trow__shade {
  font-family: var(--font-text); font-size: .74rem; font-weight: 600;
  color: var(--ink-faint); letter-spacing: .05em;
  border: 1px solid var(--line); border-radius: 3px; padding: .2rem .45rem; justify-self: start;
}
.trow__name { font-family: var(--font-display); font-size: var(--t-2); }
.trow__desc { color: var(--ink-soft); font-size: .98rem; }
.trow__price { color: var(--ink); font-weight: 500; white-space: nowrap; font-size: .92rem; }
.trow__price em { font-style: normal; color: var(--ink-faint); font-weight: 400; }
.trow:hover .trow__name { color: var(--teal); }
.trow:hover { background: var(--paper-2); }
@media (max-width: 820px) {
  .trow { grid-template-columns: auto 1fr; grid-auto-rows: min-content; row-gap: .5rem; padding: 1.6rem 0; }
  .trow__shade { grid-row: 1; }
  .trow__name { grid-column: 2; grid-row: 1; }
  .trow__desc { grid-column: 1 / -1; }
  .trow__price { grid-column: 1 / -1; }
}

/* ---- before / after slider -------------------------------------- */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
@media (max-width: 900px) { .compare-wrap { grid-template-columns: 1fr; } }

.compare {
  position: relative; aspect-ratio: 3/2; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--ivory-deep);
  user-select: none; touch-action: pan-y;
  background: #000;
}
.compare img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.compare__after { filter: none; }
.compare__before {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  filter: saturate(.62) brightness(.9) contrast(.95) sepia(.42) hue-rotate(-14deg);
}
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; transform: translate(-50%,-50%);
  background: #fff; border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.compare__handle::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 10px; transform: translate(-50%,-50%);
  border-left: 2px solid var(--teal-deep); border-right: 2px solid var(--teal-deep);
  z-index: 1;
}
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}
.compare__range:focus-visible + .compare__handle { box-shadow: 0 0 0 3px var(--aqua); }
.compare__lab {
  position: absolute; bottom: 10px; font-size: .66rem; font-weight: 600;
  letter-spacing: .08em; color: #fff; background: rgba(16,38,43,.55);
  padding: .25rem .5rem; border-radius: 3px; backdrop-filter: blur(3px);
}
.compare__lab--b { left: 10px; }
.compare__lab--a { right: 10px; }

/* ---- approach steps (genuine 01-02-03 sequence) ----------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 0; } }
.step { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
@media (max-width: 800px) { .step { border-top: 1px solid var(--line); padding: 1.4rem 0; } .step:first-child { border-top: 2px solid var(--ink); } }
.step__n { font-family: var(--font-display); font-size: var(--t-3); color: var(--teal); display: block; }
.step__t { font-family: var(--font-display); font-size: var(--t-1); margin: .5rem 0 .5rem; }
.step__d { color: var(--ink-soft); font-size: .96rem; max-width: 34ch; }
.section--ink .step { border-top-color: var(--aqua); }
.section--ink .step__n { color: var(--aqua); }
.section--ink .step__d { color: #CFE6E4; }

/* ---- feature split ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--flip .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split--flip .split__media { order: 0; } }
.split__media img {
  width: 100%; aspect-ratio: 4/5; max-height: 440px;
  object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.split__media.is-wide img { aspect-ratio: 4/3; max-height: 380px; }

/* ---- quote ----------------------------------------------------- */
.quote { display: grid; grid-template-columns: minmax(0, 5.5fr) minmax(0, 3.5fr); gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 820px) { .quote { grid-template-columns: 1fr; } }
.quote__text { font-family: var(--font-display); font-size: var(--t-4); line-height: 1.22; letter-spacing: -.015em; }
.quote__by { margin-top: 1.6rem; font-family: var(--font-text); font-size: .95rem; color: var(--ink-soft); }
.quote__by b { color: var(--ink); font-weight: 600; display: block; }
.quote__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-lg); }

/* ---- team ----------------------------------------------------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.member__name { font-family: var(--font-display); font-size: var(--t-2); margin: 1.1rem 0 .2rem; }
.member__role { font-size: var(--t--1); color: var(--teal); font-weight: 500; }
.member__bio { color: var(--ink-soft); font-size: .96rem; margin-top: .8rem; max-width: 40ch; }
.member__creds { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-faint); }
.member__creds li { margin-bottom: .25rem; }
.member__creds ul { margin: 0; padding-left: 1.1rem; }

/* ---- FAQ accordion ------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-family: var(--font-display); font-size: var(--t-1); color: var(--ink);
}
.faq__q::after {
  content: ""; position: absolute; right: .2rem; top: 50%; width: 12px; height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(var(--ink),var(--ink)) center/12px 1.5px no-repeat,
    linear-gradient(var(--ink),var(--ink)) center/1.5px 12px no-repeat;
  transition: transform .25s ease;
}
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { overflow: hidden; height: 0; }
.faq__a > div { padding: 0 3rem 1.5rem 0; color: var(--ink-soft); max-width: 64ch; }

/* ---- forms -------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink); }
.field label .req { color: var(--teal); }
.field .hint { font-size: .78rem; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .8rem .9rem;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: #C0392B; }
.field__err { font-size: .78rem; color: #C0392B; min-height: 0; }
.form-note { font-size: var(--t--1); color: var(--ink-faint); margin-top: 1rem; }

.form-success {
  border: 1px solid var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--surface));
  border-radius: var(--radius-lg); padding: 2rem;
}
.form-success h3 { font-size: var(--t-2); margin-bottom: .6rem; }

/* ---- contact panel ---------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 1.6rem; }
.info-list dt { font-size: var(--t--1); color: var(--ink-faint); margin-bottom: .3rem; }
.info-list dd { margin: 0; font-size: 1.02rem; }
.info-list dd a { color: var(--ink); }
.section--ink .info-list dt { color: #A9D2D0; }
.section--ink .info-list dd { color: #EAF3F2; }
.section--ink .info-list dd a { color: #fff; }

/* click-to-call — a real tap target that opens the dialer with the number filled in */
.call-link {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: .25rem 0;
  font-size: 1.2rem; font-weight: 600; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid var(--teal);
}
.call-link svg { width: 19px; height: 19px; color: var(--teal); flex: none; }
.call-link:hover { color: var(--teal); }
.call-note { display: block; margin-top: .45rem; font-size: .8rem; color: var(--ink-faint); }
.mail-link { display: inline-flex; align-items: center; min-height: 40px; word-break: break-word; }
@media (min-width: 700px) { .call-note { display: none; } }
.map {
  margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 3/2; background: var(--mist); position: relative;
}
.map svg { width: 100%; height: 100%; }

/* ---- footer ------------------------------------------------- */
.site-footer { background: var(--teal-deep); color: #CFE6E4; padding-block: clamp(3.5rem, 7vw, 6rem); }
.site-footer a { color: #EAF3F2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand b { color: #fff; }
.site-footer .brand span { color: #8FBEBD; }
.footer-col h4 { font-family: var(--font-text); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #7FB3B2; margin-bottom: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-col ul a { display: inline-flex; align-items: center; }

/* comfortable tap targets for call / email links on touch layouts */
@media (max-width: 900px) {
  .footer-col ul li { line-height: 1.4; }
  .footer-col ul a,
  .form-note a[href^="tel:"],
  .info-list a[href^="mailto:"] { min-height: 44px; }
}
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--t--1); color: #8FBEBD;
}

/* ---- page intro (inner pages) ------------------------------ */
.page-intro {
  padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative; isolation: isolate;
}
.page-intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 15%, var(--paper)), var(--paper) 80%);
}
.page-intro h1 { font-size: var(--t-5); max-width: 16ch; margin-bottom: 1.3rem; }
.page-intro p { max-width: 54ch; }

/* ---- misc utilities --------------------------------------- */
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.7rem; }
.mt-cta { margin-top: 2.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.pill { font-size: .8rem; border: 1px solid var(--line); border-radius: 100px; padding: .35rem .8rem; color: var(--ink-soft); }
