/* =================================================================
   Caspian Dental - design system (Clinic direction)
   Airy and minimal: white space, fine hairlines, quiet confidence.
   Forest green on white, Bricolage Grotesque + Hanken Grotesk.
   Client-approved direction (2026-07-04). Hand-coded, mobile-first.
   ================================================================= */

:root {
  --green: #1E7A5A;
  --deep: #0F4A37;
  --soft: #2C9370;
  --tint: #EAF1EE;
  --tint-2: #FBFDFC;
  --sand: #F7F9F7;
  --text: #3A424A;
  --muted: #6B7680;
  --border: #E7ECE9;
  --hair: #DCE6E1;

  --font-heading: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.08rem, 1rem + 0.4vw, 1.22rem);
  --text-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-h2: clamp(1.8rem, 1.3rem + 1.9vw, 2.7rem);
  --text-h1: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);
  --kicker: 0.75rem;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --container: 1120px;
  --header-h: 78px;

  --shadow-sm: 0 1px 2px rgba(15,74,55,0.05);
  --shadow: 0 16px 40px rgba(15,74,55,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.08; margin: 0 0 var(--space-4); color: var(--deep); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: var(--text-h1); font-weight: 500; }
h2 { font-size: var(--text-h2); font-weight: 500; }
h3 { font-size: var(--text-h3); }
p { margin: 0 0 var(--space-4); }
ul { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
.container--narrow { max-width: 760px; }

.kicker { font-size: var(--kicker); letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); font-weight: 700; }

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--alt { background: var(--tint-2); border-block: 1px solid var(--border); }
.shead { max-width: 40rem; margin: 0 auto var(--space-12); text-align: center; }
.shead .kicker { display: block; margin-bottom: var(--space-4); }
.shead p { color: var(--muted); font-size: var(--text-lg); margin: var(--space-4) 0 0; }

/* Accessibility */
.skip-link { position: absolute; left: var(--space-2); top: -4rem; background: var(--deep); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius); z-index: 400; transition: top 0.15s ease; }
.skip-link:focus { top: var(--space-2); }
:where(a, button, input, textarea, select, [tabindex]):focus-visible { outline: 3px solid var(--soft); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0.68rem 1.6rem; border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--soft); box-shadow: 0 10px 22px rgba(30,122,90,0.25); }
.btn--ghost { background: transparent; border-color: var(--hair); color: var(--deep); }
.btn--ghost:hover { background: var(--tint); border-color: var(--green); }
.btn--lg { min-height: 54px; padding: 0.85rem 1.95rem; font-size: 1.05rem; }
.btn__icon { width: 20px; height: 20px; flex: none; }
.textlink { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--deep); text-decoration: none; }
.textlink svg { width: 16px; height: 16px; color: var(--green); }
.textlink span { text-decoration: underline; text-decoration-color: var(--hair); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; margin-inline-end: auto; }
.brand__logo { width: 36px; height: 36px; }
.brand__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.24rem; color: var(--deep); letter-spacing: 0.005em; }
.primary-nav { display: none; margin-inline: auto; }
.primary-nav__list { display: flex; align-items: center; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
.primary-nav__list a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.96rem; }
.primary-nav__list a:hover { color: var(--green); }
.header-actions { display: none; align-items: center; gap: var(--space-5); }
.header-phone { font-weight: 600; color: var(--deep); text-decoration: none; font-size: 0.96rem; }

.nav-toggle { margin-inline-start: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; background: #fff; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 20px; height: 2px; background: var(--deep); margin-inline: auto; border-radius: 2px; }

.mobile-menu { position: fixed; inset: 0; z-index: 200; background: rgba(15,74,55,0.38); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(340px, 88vw); background: #fff; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); box-shadow: var(--shadow); }
.mobile-menu__close { align-self: flex-end; min-height: 44px; background: var(--tint); border: none; border-radius: var(--radius-pill); padding-inline: var(--space-5); cursor: pointer; font-weight: 700; color: var(--deep); font-family: var(--font-body); }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-menu__list a { display: block; padding: var(--space-4) 0; text-decoration: none; font-size: 1.12rem; font-weight: 500; color: var(--deep); border-bottom: 1px solid var(--border); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-3); }
.mobile-menu__phone { text-align: center; font-weight: 700; color: var(--deep); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding-block: clamp(4rem, 9vw, 7rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero__mark { width: 60px; height: 60px; margin: 0 auto var(--space-8); }
.hero__kicker { display: block; margin-bottom: var(--space-5); }
.hero__headline { font-size: var(--text-h1); line-height: 1.05; max-width: 17ch; margin: 0 auto; }
.hero__headline em { font-style: normal; color: var(--green); }
.hero__sub { color: var(--muted); font-size: var(--text-lg); max-width: 54ch; margin: var(--space-6) auto 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center; align-items: center; margin-top: var(--space-8); }
.hero__labels { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-8); margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.hero__labels span { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 0.6rem; }
.hero__labels span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* Why (editorial) */
.why { display: grid; gap: var(--space-10); align-items: start; }
.why__statement { font-family: var(--font-heading); font-weight: 500; color: var(--deep); font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.2rem); line-height: 1.16; letter-spacing: -0.015em; margin: 0; }
.why__statement b { color: var(--green); font-weight: 500; }
.why__points { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-6); }
.why__point { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); align-items: start; }
.why__point-mark { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; }
.why__point-mark svg { width: 20px; height: 20px; color: var(--green); }
.why__point h3 { font-size: 1.08rem; margin: 0 0 0.2rem; font-weight: 600; }
.why__point p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* Services (numbered list) */
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hair); max-width: 900px; margin-inline: auto; }
.svc-item { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-6) var(--space-2); border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; }
.svc-item__n { font-family: var(--font-heading); font-size: 0.95rem; color: var(--green); font-weight: 600; width: 2rem; flex: none; }
.svc-item__txt { flex: 1; }
.svc-item__txt b { font-family: var(--font-heading); font-weight: 600; color: var(--deep); font-size: 1.14rem; display: block; }
.svc-item__txt small { color: var(--muted); font-size: 0.92rem; }
.svc-item__arrow { width: 20px; height: 20px; color: var(--green); flex: none; transition: transform 0.15s ease; }
.svc-item:hover .svc-item__arrow { transform: translateX(4px); }

/* Feature (aligners) */
.feature { display: grid; gap: var(--space-10); align-items: center; }
.feature__panel { border: 1px solid var(--hair); border-radius: var(--radius-lg); aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--tint-2); max-width: 440px; width: 100%; justify-self: center; }
.feature__panel svg { width: 120px; height: 120px; color: var(--green); }
.feature__list { list-style: none; padding: 0; margin: var(--space-5) 0 var(--space-6); display: grid; gap: var(--space-3); }
.feature__list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text); }
.feature__list svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 3px; }

/* Fees */
.fees-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.fee-card { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); background: #fff; }
.fee-card__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.fee-card h3 { font-size: 1.08rem; margin: var(--space-3) 0 var(--space-2); font-weight: 600; }
.fee-card p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* Areas */
.areas { display: grid; gap: var(--space-10); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem; border: 1px solid var(--hair); border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 600; color: var(--deep); }
.chip svg { width: 14px; height: 14px; color: var(--green); }
.areas__place { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); background: var(--tint-2); }
.areas__place h3 { font-size: 1.2rem; font-weight: 600; }
.areas__place address { font-style: normal; line-height: 1.8; color: var(--muted); margin-bottom: var(--space-5); }
.areas__place address a { color: var(--deep); text-decoration: none; font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-4); text-align: center; }
.stat__num { font-family: var(--font-heading); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); color: var(--deep); line-height: 1; letter-spacing: -0.02em; }
.stat__label { color: var(--muted); font-size: 0.9rem; margin-top: var(--space-2); }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__item:first-child { border-top: 1px solid var(--hair); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: var(--space-5) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-family: var(--font-heading); font-weight: 600; font-size: 1.08rem; color: var(--deep); }
.faq__icon { width: 22px; height: 22px; flex: none; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--green); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.faq__icon::before { left: 3px; right: 3px; top: 10px; height: 2px; }
.faq__icon::after { top: 3px; bottom: 3px; left: 10px; width: 2px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a { overflow: hidden; max-height: 0; transition: max-height 0.25s ease; }
.faq__a-inner { padding: 0 0 var(--space-5); color: var(--muted); }
.faq__item.is-open .faq__a { max-height: 440px; }

/* Quiet CTA */
.quiet-cta { text-align: center; }
.quiet-cta .kicker { display: block; margin-bottom: var(--space-4); }
.quiet-cta h2 { max-width: 22ch; margin-inline: auto; }
.quiet-cta p { color: var(--muted); margin: var(--space-4) auto 0; max-width: 46ch; font-size: var(--text-lg); }
.quiet-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center; align-items: center; margin-top: var(--space-8); }

/* Enquiry */
.enquiry { display: grid; gap: var(--space-10); align-items: start; }
.form-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); background: #fff; }
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--deep); margin-bottom: var(--space-2); }
.field input, .field select, .field textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text); padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--tint-2); transition: border-color 0.15s ease, box-shadow 0.15s ease; min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,122,90,0.14); background: #fff; }
.form-row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: var(--space-3); }
.enquiry__aside p { color: var(--muted); }
.enquiry__contact { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-4); }
.enquiry__contact li { display: flex; align-items: center; gap: 0.9rem; }
.enquiry__contact .ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; flex: none; }
.enquiry__contact .ic svg { width: 20px; height: 20px; color: var(--green); }
.enquiry__contact a, .enquiry__contact span { color: var(--deep); text-decoration: none; font-weight: 600; }
.enquiry__contact small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.site-footer__inner { display: grid; gap: var(--space-8); padding-block: var(--space-16) var(--space-8); }
.site-footer__brand { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: var(--space-4); text-decoration: none; }
.site-footer__brand .brand__name { color: var(--deep); }
.site-footer p { color: var(--muted); font-size: 0.94rem; }
.site-footer h4 { color: var(--deep); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-4); font-weight: 700; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.site-footer__list a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
.site-footer__list a:hover { color: var(--green); }
.site-footer address { font-style: normal; line-height: 1.8; color: var(--muted); font-size: 0.94rem; }
.site-footer address a { color: var(--deep); text-decoration: none; }
.site-footer__legal { border-top: 1px solid var(--border); padding-block: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; align-items: center; }
.site-footer__legal p { margin: 0; font-size: 0.84rem; color: var(--muted); }
.site-footer__legal b { color: var(--deep); }

/* Floating actions + toast */
.floaties { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 12px; }
.floaty { width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.floaty svg { width: 26px; height: 26px; }
.floaty--wa { background: #25D366; }
.floaty--wa svg { color: #fff; }
.floaty--book { background: var(--green); color: #fff; width: auto; border-radius: var(--radius-pill); padding: 0 1.2rem; gap: 0.5rem; font-family: var(--font-body); font-weight: 700; height: 54px; text-decoration: none; }
.floaty--book svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: var(--deep); color: #fff; padding: 0.85rem 1.35rem; border-radius: var(--radius-pill); box-shadow: var(--shadow); font-weight: 600; font-size: 0.94rem; z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; max-width: 90vw; text-align: center; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

/* Responsive */
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .fees-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 820px) {
  .svc-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-16); }
}
@media (min-width: 900px) {
  .fees-grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
}
@media (min-width: 960px) {
  .primary-nav { display: block; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
  .why { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-16); }
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature__panel { order: 2; }
  .areas { grid-template-columns: 1.15fr 0.85fr; }
  .enquiry { grid-template-columns: 1.1fr 0.9fr; }
  .floaty--book { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .svc-item:hover .svc-item__arrow { transform: none; }
}
