/* ============================================================
   Smiles Dental Aurora — Design System
   Direction: Warm Friendly Healthtech
   Built by Reevozign · v1
   ============================================================ */

/* ---- Tokens -------------------------------------------------- */
:root {
  /* Palette */
  --paper:        #FBFAF7;   /* warm-white page background */
  --paper-2:      #F4F1EA;   /* slightly deeper surface     */
  --navy:         #10243C;   /* body text                   */
  --navy-soft:    #45566A;   /* muted / secondary text      */
  --sky:          #4A8FC9;   /* friendly sky — large/decor  */
  --sky-ink:      #2F6491;   /* AA-safe: CTA bg + link text */
  --sky-surface:  #E8F1F8;   /* trust strip / soft sky tint */
  --sky-tint:     rgba(74, 143, 201, 0.06);
  --peach:        #F4D9C2;   /* warmth surface / CDCP band  */
  --peach-soft:   #FBEEE1;
  --sage:         #7FA888;   /* success / "smile" highlight */
  --sage-ink:     #4F7458;   /* AA-safe sage text           */
  --sage-surface: #EAF1EA;
  --hairline:     #E3E0DA;
  --white:        #FFFFFF;

  /* Type */
  --font:         'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Newsreader', 'Hanken Grotesk', Georgia, 'Times New Roman', serif;
  --font-ar:  'Noto Sans Arabic', var(--font);
  --font-gur: 'Noto Sans Gurmukhi', var(--font);

  /* Fluid type scale */
  --t-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);   /* 40 → 72 */
  --t-h1:      clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  --t-h2:      clamp(1.6rem, 1.25rem + 1.6vw, 2.35rem);
  --t-h3:      clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  --t-lead:    clamp(1.06rem, 1rem + 0.35vw, 1.3rem);
  --t-body:    1.0625rem;   /* 17px */
  --t-small:   0.875rem;

  /* Spacing — 8px scale */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-7: 96px; --sp-8: 120px;

  /* Geometry */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 40px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Soft, layered elevation */
  --shadow-sm: 0 1px 2px rgba(16, 36, 60, 0.04), 0 3px 8px rgba(16, 36, 60, 0.05);
  --shadow-md: 0 4px 12px -6px rgba(16, 36, 60, 0.12), 0 14px 30px -14px rgba(16, 36, 60, 0.16);
  --shadow-lg: 0 20px 44px -20px rgba(16, 36, 60, 0.30);
}

/* ---- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 var(--sp-2); font-weight: 700; }
/* Display headings carry the character — soft optical serif */
h1, h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
p { margin: 0 0 var(--sp-2); }
a { color: var(--sky-ink); }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

@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;
  }
}

/* ---- Accessibility ------------------------------------------ */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 200; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout helpers ----------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow {
  font-size: var(--t-small); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sky-ink); margin: 0 0 var(--sp-2);
}
.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head h2 { font-size: var(--t-h2); }
.section-head p { font-size: var(--t-lead); color: var(--navy-soft); margin: 0; }
.center { text-align: center; margin-inline: auto; }

/* ---- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 14px 24px; border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 52px; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--sky-ink); color: #fff; box-shadow: 0 4px 12px -4px rgba(47, 100, 145, 0.4); }
.btn--primary:hover { background: #285777; box-shadow: 0 10px 24px -6px rgba(47, 100, 145, 0.45); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--peach { background: var(--navy); color: #fff; }
.btn--peach:hover { background: #001127; }
.btn--lg { padding: 17px 30px; font-size: 1.06rem; min-height: 58px; }
.btn--block { width: 100%; }

/* ---- Pills & badges ----------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 16px; border-radius: var(--radius-pill);
  font-size: var(--t-small); font-weight: 600; line-height: 1;
  background: var(--white); border: 1px solid var(--hairline); color: var(--navy);
}
.pill--sky    { background: var(--sky-surface); border-color: transparent; color: var(--navy); }
.pill--peach  { background: var(--peach); border-color: transparent; }
.pill--sage   { background: var(--sage-surface); border-color: transparent; color: var(--sage-ink); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-pills .pill[lang="ar"], .lang-pills .pill[lang="ur"] { font-family: var(--font-ar); }
.lang-pills .pill[lang="pa"] { font-family: var(--font-gur); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: var(--t-small); font-weight: 700;
  background: var(--sage-surface); color: var(--sage-ink);
}

/* ---- Header / nav ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex; align-items: center; gap: var(--sp-3);
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--sky-ink); display: grid; place-items: center;
}
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: -0.02em; }
.brand-name span { color: var(--sky-ink); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 9px 13px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.95rem;
  transition: background-color 0.15s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--sky-tint); color: var(--sky-ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-call { text-decoration: none; font-weight: 700; color: var(--navy); white-space: nowrap; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--hairline);
  background: var(--white); border-radius: var(--radius-sm); padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--navy);
  margin: 0 auto; position: relative; transition: 0.2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: var(--sp-2) var(--gutter) var(--sp-3); gap: 2px;
    box-shadow: 0 18px 30px -20px rgba(16, 36, 60, 0.3);
  }
  .nav-links:not(.open) { display: none; }
  .nav-links a { padding: 13px; font-size: 1.05rem; }
  .nav-call { display: none; }
}

/* ---- Hero ---------------------------------------------------- */
.hero { padding-block: clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 { font-size: var(--t-display); margin-bottom: var(--sp-3); }
.hero h1 .smile { color: var(--sky-ink); font-style: italic; font-weight: 500; }
.hero-lead { font-size: var(--t-lead); color: var(--navy-soft); max-width: 30ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: var(--sp-3) 0 var(--sp-3); }
.hero-langs { margin-top: var(--sp-3); }
.hero-langs .label { font-size: var(--t-small); color: var(--navy-soft); margin-bottom: 8px; }
.hero-figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-lg);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; }
.hero-figure::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(16, 36, 60, 0.18), transparent);
}
.hero-float {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 30px -14px rgba(16, 36, 60, 0.45);
}
.hero-float strong { display: block; font-size: 1.05rem; }
.hero-float small { color: var(--navy-soft); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 4 / 5; max-height: 460px; }
}

/* ---- Trust strip -------------------------------------------- */
.trust {
  background: var(--sky-surface);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2);
  padding-block: var(--sp-4);
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .star { color: #E8A33D; }
.trust-item strong { display: block; font-size: 1.05rem; }
.trust-item small { color: var(--navy-soft); }
.trust-ico {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  background: var(--white); display: grid; place-items: center;
}
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Service grid ------------------------------------------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
}
.card {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); background: var(--sky-tint); border-color: #C9DCEC; box-shadow: var(--shadow-md); }
a.card:hover .svc-ico { transform: scale(1.05); }
a.card:hover .card-more { gap: 10px; }
.svc-ico {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: var(--sp-2);
  background: var(--peach-soft); display: grid; place-items: center;
  transition: transform 0.3s var(--ease);
}
.card h3 { font-size: var(--t-h3); }
.card p { color: var(--navy-soft); margin-bottom: var(--sp-2); }
.card-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--sky-ink); transition: gap 0.2s var(--ease);
}
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---- Two-track split ---------------------------------------- */
.two-track {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden;
}
.track {
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.track:first-child { border-right: 1px solid var(--hairline); background: var(--peach-soft); }
.track:last-child { background: var(--white); }
.track-img {
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--hairline);
  margin-bottom: var(--sp-1);
}
.track-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.track h3 { font-size: var(--t-h3); }
.track p { color: var(--navy-soft); }
.track .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 760px) {
  .two-track { grid-template-columns: 1fr; }
  .track:first-child { border-right: 0; border-bottom: 1px solid var(--hairline); }
}

/* ---- Team carousel ------------------------------------------ */
.team-rail {
  display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2); margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.team-card {
  flex: 0 0 clamp(240px, 78vw, 296px); scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.team-body { padding: var(--sp-3); }
.team-body h3 { font-size: 1.2rem; margin-bottom: 2px; }
.team-cred { color: var(--navy-soft); font-size: 0.95rem; margin-bottom: 10px; }
.team-known { font-size: 0.95rem; margin-bottom: 12px; }
.team-known b { color: var(--sage-ink); }
.team-controls { display: flex; gap: 10px; margin-top: var(--sp-2); }
.rail-btn {
  width: 46px; height: 46px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline); background: var(--white);
  display: grid; place-items: center; color: var(--navy);
}
.rail-btn:hover { background: var(--sky-tint); border-color: var(--sky); }
.rail-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---- Steps --------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.step {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: var(--sp-3); position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--sky-ink); color: #fff; font-weight: 800;
  display: grid; place-items: center; margin-bottom: var(--sp-2);
}
.step h3 { font-size: var(--t-h3); }
.step p { color: var(--navy-soft); margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.callout {
  display: flex; align-items: center; gap: 14px; margin-top: var(--sp-3);
  background: var(--sage-surface); border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
}
.callout .badge { flex: none; }

/* ---- CDCP banner -------------------------------------------- */
.cdcp { background: var(--peach); }
.cdcp-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.cdcp h2 { font-size: var(--t-h2); }
.cdcp p { color: #5A3F2C; }
.cdcp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sp-3); }
.cdcp-card {
  background: var(--white); border-radius: var(--radius); padding: var(--sp-4);
}
.cdcp-card ul { list-style: none; display: grid; gap: 12px; }
.cdcp-card li { display: flex; gap: 10px; align-items: flex-start; }
.cdcp-card li svg { flex: none; margin-top: 3px; }
@media (max-width: 760px) { .cdcp-grid { grid-template-columns: 1fr; } }

/* ---- Reviews ------------------------------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.review {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--shadow-sm);
}
.review-stars { color: #E8A33D; letter-spacing: 2px; }
.review blockquote {
  margin: 0; font-family: var(--font-display); font-optical-sizing: auto;
  font-weight: 500; font-size: 1.22rem; line-height: 1.4; letter-spacing: -0.01em;
}
.review figcaption { color: var(--navy-soft); font-size: 0.95rem; font-style: normal; margin-top: auto; }
.review figcaption b { color: var(--navy); font-style: normal; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---- FAQ accordion ------------------------------------------ */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: var(--sp-3) 40px var(--sp-3) 0; position: relative;
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
}
.faq-q::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-right: 2px solid var(--sky-ink); border-bottom: 2px solid var(--sky-ink);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease);
}
.faq-q[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-3px); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.3s var(--ease); }
.faq-a > div { padding-bottom: var(--sp-3); color: var(--navy-soft); }

/* ---- Visit / map -------------------------------------------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.visit-info dl { display: grid; gap: 6px 16px; margin: 0; }
.visit-info dt { font-weight: 700; }
.visit-info dd { margin: 0 0 12px; color: var(--navy-soft); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left; padding: 9px 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.98rem;
}
.hours-table th { font-weight: 600; }
.hours-table td { color: var(--navy-soft); }
.map-embed, .booking-embed {
  border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2);
}
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }
.booking-embed {
  min-height: 420px; padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  align-items: flex-start; justify-content: center;
  background: var(--sky-surface);
}
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---- Page hero (inner pages) -------------------------------- */
.page-hero { background: var(--sky-surface); }
.page-hero .wrap { padding-block: clamp(40px, 7vw, 80px); }
.page-hero h1 { font-size: var(--t-h1); max-width: 18ch; }
.page-hero p { font-size: var(--t-lead); color: var(--navy-soft); max-width: 56ch; margin: 0; }
.crumbs { font-size: var(--t-small); color: var(--navy-soft); margin-bottom: var(--sp-2); }
.crumbs a { color: var(--navy-soft); }

/* ---- Generic content blocks --------------------------------- */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--t-h2); margin-top: var(--sp-5); }
.prose h3 { font-size: var(--t-h3); margin-top: var(--sp-4); }
.prose ul.ticks { list-style: none; display: grid; gap: 10px; margin: var(--sp-2) 0; }
.prose ul.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.prose ul.ticks li::before {
  content: "✓"; color: var(--sage-ink); font-weight: 800; flex: none;
}
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); align-items: start; }
@media (max-width: 760px) { .split-2 { grid-template-columns: 1fr; } }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }

.confirm {
  background: #FFF6E6; border: 1px dashed #E0B055; color: #6B4E16;
  border-radius: var(--radius-sm); padding: 2px 8px; font-size: 0.85em; font-weight: 600;
}

/* ---- Service page extras ------------------------------------ */
.svc-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-4); align-items: center; }
.svc-hero-grid img { border-radius: var(--radius); border: 1px solid var(--hairline); aspect-ratio: 5/4; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .svc-hero-grid { grid-template-columns: 1fr; } }
.beforeafter { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.ba-card { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--hairline); }
.ba-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 620px) { .beforeafter { grid-template-columns: 1fr 1fr; } }

/* ---- CTA band ----------------------------------------------- */
.cta-band { background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; font-size: var(--t-h2); }
.cta-band p { color: #C3CDD8; font-size: var(--t-lead); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn--ghost:hover { background: #fff; color: var(--navy); }
.cta-band a { color: #9FC4E0; }

/* ---- Footer -------------------------------------------------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--hairline); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-4);
  padding-block: var(--sp-6) var(--sp-4);
}
.footer-grid h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy-soft); }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--navy); text-decoration: none; }
.footer-grid a:hover { color: var(--sky-ink); text-decoration: underline; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.footer-langs span { font-size: 0.82rem; color: var(--navy-soft); }
.footer-langs span[lang="ar"], .footer-langs span[lang="ur"] { font-family: var(--font-ar); }
.footer-langs span[lang="pa"] { font-family: var(--font-gur); }
.footer-bar {
  border-top: 1px solid var(--hairline); padding-block: var(--sp-3);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: var(--t-small); color: var(--navy-soft);
}
.footer-bar a { color: var(--navy-soft); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Sticky mobile CTA bar ---------------------------------- */
.mobile-cta {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 247, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline);
}
.mobile-cta .btn { flex: 1; min-height: 56px; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 84px; }
}

/* ---- Scroll reveal ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.05s; }
.reveal.d2 { transition-delay: 0.10s; }
.reveal.d3 { transition-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- Star twinkle (single delight) -------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .twinkle.go { animation: twinkle 0.7s var(--ease); }
  @keyframes twinkle {
    0%, 100% { transform: scale(1) rotate(0); }
    40%      { transform: scale(1.35) rotate(18deg); }
  }
}

/* ============================================================
   Smile Intro — a cheeky one-time opener.
   Blank warm screen → a smile pops in → you dive through the
   open mouth into the dark, which reveals the site.
   Plays once per session; skipped entirely for reduced-motion
   (handled here + in the inline controller in index.html).
   ============================================================ */
html.intro-lock, html.intro-lock body { overflow: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--paper);
  overflow: hidden;
  animation: introFade 2.4s var(--ease) forwards, introBg 2.4s linear forwards;
}
.intro-stage {
  position: relative;
  width: clamp(200px, 44vmin, 480px);
  aspect-ratio: 1;
  transform-origin: 50% 64%;      /* the dark throat we dive into */
  will-change: transform, opacity;
  animation: introSmile 2.4s both;
}
.intro-stage svg { width: 100%; height: 100%; }

/* the dark throat that opens up and swallows the view */
.intro-throat {
  position: absolute; left: 50%; top: 64%;
  width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #12314F 0%, #0A1A2E 45%, #050F1A 100%);
  transform: scale(0.05); opacity: 0; z-index: 2;
  will-change: transform, opacity;
  animation: introThroat 2.4s both;
}

/* little sparkles of delight during the pop */
.intro-spark {
  position: absolute; width: 7%; height: 7%; color: #F4B740;
  opacity: 0; transform: scale(0);
  animation: introSpark 1s var(--ease) both;
}
.intro-spark svg { width: 100%; height: 100%; }
.intro-spark.s1 { top: 6%;  left: 12%; animation-delay: 0.55s; }
.intro-spark.s2 { top: 14%; right: 8%; color: #E27A63; animation-delay: 0.7s; }
.intro-spark.s3 { bottom: 20%; left: 4%; animation-delay: 0.82s; }

.intro.is-skip {
  animation: introSkip 0.38s var(--ease) forwards;
}
.intro.is-skip .intro-stage { animation-play-state: paused; }

@keyframes introSmile {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0;
         animation-timing-function: var(--ease-spring); }
  14%  { opacity: 1; }
  32%  { transform: scale(1.08) rotate(3deg); }
  44%  { transform: scale(0.97) rotate(-1deg);
         animation-timing-function: ease-in-out; }
  54%  { transform: scale(1.02) rotate(0); }
  59%  { transform: scale(1);
         animation-timing-function: cubic-bezier(0.7, 0, 0.9, 0.4); }
  63%  { transform: scale(0.9);                /* cheeky anticipation crouch */
         animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.32); }
  85%  { transform: scale(30); }               /* dive fully into the dark */
  100% { transform: scale(34); }
}
@keyframes introThroat {
  0%, 62% { transform: scale(0.05); opacity: 0; }
  65%     { transform: scale(0.12); opacity: 1;
            animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.35); }
  80%     { transform: scale(1.15); }         /* the dark hole opens up */
  87%     { transform: scale(3.6); opacity: 1; }   /* engulf the screen */
  100%    { transform: scale(4.2); opacity: 1; }
}
@keyframes introFade {
  0%, 90% { opacity: 1; }
  100%    { opacity: 0; visibility: hidden; }
}
@keyframes introBg {
  0%, 74%  { background-color: var(--paper); }
  82%, 100% { background-color: var(--navy); }
}
@keyframes introSpark {
  0%   { opacity: 0; transform: scale(0) rotate(-20deg); }
  45%  { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(0.4) rotate(20deg); }
}
@keyframes introSkip {
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
}

/* ============================================================
   Booking portal — inline 4-step wizard (contact.html#book)
   Self-contained demo flow. Uses the global token set.
   ============================================================ */
.booking-portal {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 36px);
  max-width: 940px;
  margin: 0 auto;
}

/* ---- Progress rail ---------------------------------------- */
.bp-steps {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: var(--sp-4);
}
.bp-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
}
.bp-step::before {                 /* connector line to previous step */
  content: "";
  position: absolute;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--hairline);
  z-index: 0;
}
.bp-step:first-child::before { display: none; }
.bp-step[data-state="done"]::before,
.bp-step[data-state="active"]::before { background: var(--sky); }
.bp-dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--navy-soft);
  border: 2px solid var(--hairline);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.bp-step[data-state="active"] .bp-dot {
  background: var(--sky-ink);
  border-color: var(--sky-ink);
  color: var(--white);
}
.bp-step[data-state="done"] .bp-dot {
  background: var(--sage-ink);
  border-color: var(--sage-ink);
  color: var(--white);
}
.bp-step-label {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--navy-soft);
  line-height: 1.2;
}
.bp-step[data-state="active"] .bp-step-label { color: var(--navy); }
@media (max-width: 560px) {
  .bp-step-label { display: none; }
  .bp-step[data-state="active"] .bp-step-label { display: block; }
}

/* ---- Panels ----------------------------------------------- */
.bp-panel[hidden] { display: none; }
.bp-panel { animation: bpIn .3s var(--ease); }
.bp-panel-head { margin-bottom: var(--sp-3); }
.bp-panel-head h3 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  margin: 0 0 4px;
}
.bp-panel-head p { color: var(--navy-soft); margin: 0; }
@keyframes bpIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Step 1: services ------------------------------------- */
.bp-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}
@media (max-width: 720px) { .bp-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .bp-services { grid-template-columns: 1fr; } }
.bp-service {
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--white);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.bp-service:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.bp-service:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.bp-service[aria-pressed="true"] {
  border-color: var(--sky-ink);
  background: var(--sky-surface);
  box-shadow: 0 0 0 1px var(--sky-ink);
}
.bp-service-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--sky-surface);
  color: var(--sky-ink);
  display: grid; place-items: center;
}
.bp-service[aria-pressed="true"] .bp-service-ico { background: var(--white); }
.bp-service-name { font-weight: 700; color: var(--navy); }
.bp-service-meta { font-size: var(--t-small); color: var(--navy-soft); }
.bp-service-check {
  position: absolute; opacity: 0;
}

/* new-patient toggle */
.bp-toggle {
  margin-top: var(--sp-3);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.bp-toggle input { width: 18px; height: 18px; accent-color: var(--sky-ink); }
.bp-toggle label { font-weight: 600; cursor: pointer; }
.bp-toggle small { display: block; font-weight: 400; color: var(--navy-soft); }

/* ---- Step 2: clinician / date / time ---------------------- */
.bp-subhead { font-weight: 700; margin: var(--sp-3) 0 var(--sp-2); font-size: 0.98rem; }
.bp-subhead:first-child { margin-top: 0; }
.bp-clinicians { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.bp-chip {
  font: inherit; cursor: pointer;
  background: var(--white);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  color: var(--navy);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.bp-chip:hover { border-color: var(--sky); }
.bp-chip:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.bp-chip[aria-pressed="true"] {
  border-color: var(--sky-ink);
  background: var(--sky-ink);
  color: var(--white);
}
.bp-dates {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.bp-date {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 68px;
  text-align: center;
  font: inherit; cursor: pointer;
  background: var(--white);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.bp-date:hover { border-color: var(--sky); }
.bp-date:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.bp-date[aria-pressed="true"] { border-color: var(--sky-ink); background: var(--sky-surface); box-shadow: 0 0 0 1px var(--sky-ink); }
.bp-date-dow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-soft); }
.bp-date-num { font-size: 1.3rem; font-weight: 700; line-height: 1.1; font-family: var(--font-display); }
.bp-date-mon { font-size: 0.72rem; color: var(--navy-soft); }
.bp-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}
.bp-time {
  font: inherit; cursor: pointer;
  background: var(--white);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.bp-time:hover { border-color: var(--sky); }
.bp-time:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.bp-time[aria-pressed="true"] { border-color: var(--sky-ink); background: var(--sky-ink); color: var(--white); }
.bp-empty { color: var(--navy-soft); font-size: var(--t-small); }

/* ---- Step 3 fields reuse .field / .field-row from page ----- */

/* ---- Step 4: summary -------------------------------------- */
.bp-summary {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: var(--sp-3);
  margin: 0;
}
.bp-summary div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.bp-summary div:last-child { border-bottom: 0; }
.bp-summary dt { color: var(--navy-soft); font-weight: 500; }
.bp-summary dd { margin: 0; font-weight: 700; text-align: right; }

/* ---- Actions footer --------------------------------------- */
.bp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--hairline);
}
.bp-actions[hidden] { display: none; }
.bp-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.bp-back {
  background: none; border: 0; font: inherit; cursor: pointer;
  color: var(--navy-soft); font-weight: 600; padding: 10px 4px;
}
.bp-back:hover { color: var(--navy); }
.bp-back[hidden] { visibility: hidden; }
.bp-note {
  font-size: var(--t-small);
  color: var(--navy-soft);
  margin-top: var(--sp-2);
  text-align: center;
}

/* ---- Success --------------------------------------------- */
.bp-success { text-align: center; padding: var(--sp-3) 0; }
.bp-success-mark {
  width: 64px; height: 64px; margin: 0 auto var(--sp-2);
  border-radius: 50%;
  background: var(--sage-surface);
  color: var(--sage-ink);
  display: grid; place-items: center;
  animation: bpPop .5s var(--ease-spring);
}
@keyframes bpPop { from { transform: scale(0); } to { transform: scale(1); } }
.bp-success h3 { font-family: var(--font-display); font-size: var(--t-h2); margin-bottom: 6px; }
.bp-conf {
  display: inline-block;
  margin: var(--sp-2) 0;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  font-weight: 700;
  letter-spacing: .04em;
}

@media (prefers-reduced-motion: reduce) {
  .bp-panel, .bp-success-mark { animation: none; }
}

/* helper: field validation message */
.bp-error {
  color: #B4462F;
  font-size: var(--t-small);
  font-weight: 600;
  margin-top: 2px;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B4462F; }


/* ============================================================
   Reevozign portfolio demo layer — added for the iPad showcase
   build only. Not part of the client deliverable.
   ============================================================ */

/* Unfilled-fact markers are hidden in the demo; the sentences
   they annotate read correctly without them. */
.confirm { display: none !important; }

/* Offline-safe map: the styled address card sits underneath and
   is revealed whenever the Google embed cannot load. */
.map-embed { position: relative; }
.map-embed .map-offline {
  display: flex; flex-direction: column; gap: .5rem;
  align-items: center; justify-content: center; text-align: center;
  min-height: 320px; padding: 1.5rem;
  background:
    repeating-linear-gradient(0deg,  rgba(0,0,0,.045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.045) 0 1px, transparent 1px 34px),
    var(--paper-2, #f3efe9);
  color: inherit;
}
.map-embed .map-offline svg { opacity: .8; }
.map-embed .map-offline b { font-size: 1.05rem; }
.map-embed .map-offline span { opacity: .72; font-size: .92rem; line-height: 1.5; }
.map-embed iframe { position: relative; z-index: 1; }

/* Discreet return-to-portfolio control (demo chrome). */
#rvz-back {
  position: fixed; z-index: 2147483000;
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .95rem .6rem .8rem;
  font: 600 14px/1 ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .01em; text-decoration: none;
  color: #fff; background: rgba(24,24,27,.82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0,0,0,.26);
  opacity: .5; transition: opacity .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
#rvz-back:hover, #rvz-back:focus-visible { opacity: 1; transform: translateY(-1px); }
#rvz-back:active { opacity: 1; transform: scale(.97); }
@media (hover: none) { #rvz-back { opacity: .72; } }
@media print { #rvz-back { display: none; } }

