/* ==========================================================================
   Hope Dental Care — design system
   Palette : brand navy + tooth cyan on white, taken from the clinic logo
   Type    : Bricolage Grotesque (display) / Instrument Sans (body) / IBM Plex Mono (data)
   Motif   : the dental arch — a repeating curve that carries the brand
   ========================================================================== */

:root {
  /* ---- brand, sampled straight from the logo ---- */
  --navy:       #122D8C;   /* the wordmark blue — primary action colour */
  --navy-deep:  #0A1B5E;   /* the logo backdrop — headers and dark panels */
  --cyan:       #3FBDDE;   /* the tooth — highlights and accents only     */
  --cyan-soft:  #8FD4F2;

  --ink:        #071034;   /* near-black navy for body copy */
  --ink-soft:   #16245C;
  --paper:      #F4F7FC;   /* page background: a white with a blue cast */
  --porcelain:  #F4F7FC;   /* alias kept so older rules keep working    */
  --enamel:     #FFFFFF;
  --mist:       #DBE3F2;   /* borders and rules */
  --slate:      #66728F;   /* secondary text    */
  --amber:      #E59A2E;   /* "stage due" only  */

  --shadow-sm: 0 2px 8px rgba(7, 16, 52, .07);
  --shadow-md: 0 14px 40px -18px rgba(7, 16, 52, .22);
  --shadow-lg: 0 40px 90px -40px rgba(7, 16, 52, .38);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;

  --wrap: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.06;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p  { margin: 0 0 1rem; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.section--tint { background: var(--enamel); }
.section--ink  { background: linear-gradient(160deg, #0A1B5E, #071034); color: #E4EBFA; }
.section--ink h2, .section--ink h3 { color: #fff; }

/* --------------------------------------------------------------- eyebrows */
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px;
  transform-origin: left; animation: rule-in .9s var(--ease) both;
}
.section--ink .eyebrow { color: var(--cyan); }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--slate); max-width: 62ch; }
.section--ink .lead { color: #AFC6BC; }
.sec-head { max-width: 720px; margin-bottom: 54px; }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 0; border-radius: var(--r-pill);
  font-weight: 600; font-size: .97rem; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 10px 26px -12px rgba(18, 45, 140, .55);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(18, 45, 140, .62); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(-1px) scale(.985); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border: 1.5px solid var(--mist); box-shadow: none; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); box-shadow: none; }
.btn--ink { --btn-bg: var(--ink); box-shadow: 0 10px 26px -14px rgba(7,16,52,.85); }
.btn--wa  { --btn-bg: #25D366; --btn-fg: #04271A; box-shadow: 0 10px 26px -12px rgba(37,211,102,.8); }
.btn--sm  { padding: 9px 18px; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; pointer-events: none; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--mist);
  transition: height .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-stuck {
  height: 64px;
  box-shadow: 0 6px 20px -14px rgba(7, 16, 52, .5);
}
.site-header .wrap { display: flex; align-items: center; gap: 26px; }

.hero .btn:not(.btn--ghost):not(.btn--wa) {
  --btn-bg: var(--cyan); --btn-fg: #06204A;
  box-shadow: 0 12px 28px -12px rgba(63,189,222,.85);
}

/* ---- brand lockup: the clinic logo, swapped for the surface behind it ---- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 52px; width: auto; transition: height .4s var(--ease); }
.site-header.is-stuck .brand__logo { height: 40px; }


.brand__tag { font-family: 'IBM Plex Mono', monospace; font-size: .58rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--slate); padding-left: 12px; border-left: 1px solid var(--mist); }
@media (max-width: 900px) { .brand__tag { display: none; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 9px 14px; font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  border-radius: var(--r-pill); transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: 10px; }
.nav a.btn { color: var(--btn-fg); }   /* the pill keeps its own text colour */

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--mist);
  background: var(--enamel); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
/* the hero mirrors the logo's own presentation: deep navy, cyan highlight */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  background:
    radial-gradient(900px 600px at 78% 18%, rgba(63,189,222,.20), transparent 62%),
    linear-gradient(162deg, #0A1B5E 0%, #071034 55%, #050B24 100%);
  color: #E6ECFA;
  overflow: hidden;
}
.hero h1, .hero .stat__num { color: #fff; }
.hero .lead { color: #A9B7DD; }
.hero .eyebrow { color: var(--cyan); }
.hero .stat__label { color: #8390BC; }
.hero__scroll { color: #8390BC; }
.hero .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: line-up .95s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes line-up { to { transform: translateY(0); } }
.hero h1 em { font-style: normal; color: var(--cyan); position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.04em; height: .09em;
  background: var(--cyan); border-radius: 4px; opacity: .35;
  transform: scaleX(0); transform-origin: left;
  animation: line-up-underline .8s var(--ease) 1s forwards;
}
@keyframes line-up-underline { to { transform: scaleX(1); } }

.hero__intro, .hero__actions, .hero__stats { animation: fade-up .8s var(--ease) both; }
.hero__intro   { animation-delay: .45s; }
.hero__actions { animation-delay: .58s; display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero__stats   { animation-delay: .7s; display: flex; gap: 38px; flex-wrap: wrap; }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.stat__num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.1rem; font-weight: 700; line-height: 1; }
.stat__label { font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--slate); margin-top: 8px; }

/* the signature: an animated dental arch built from tooth nodes */
.arch-figure { position: relative; }
.arch-figure svg { width: 100%; height: auto; overflow: visible; }
.arch-path { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: arch-draw 2.4s var(--ease) .4s forwards; opacity: .45; }
@keyframes arch-draw { to { stroke-dashoffset: 0; } }
.tooth { opacity: 0; transform-box: fill-box; transform-origin: center; animation: tooth-pop .7s var(--ease) forwards; }
@keyframes tooth-pop { from { opacity: 0; transform: translateY(14px) scale(.6); } to { opacity: 1; transform: none; } }
.tooth-ring { transform-box: fill-box; transform-origin: center; animation: ring-spin 22s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; z-index: 0; }
.orb--1 { width: 380px; height: 380px; background: #2E6BD6; top: -80px; right: -70px; animation: drift 17s ease-in-out infinite; }
.orb--2 { width: 300px; height: 300px; background: #1B3FA8; bottom: -110px; left: -80px; animation: drift 21s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(38px,-30px) scale(1.12); } }
.hero .wrap { position: relative; z-index: 1; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 2;
  font-family: 'IBM Plex Mono', monospace; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--slate); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll::after { content: ''; width: 1px; height: 42px;
  background: linear-gradient(var(--navy), transparent); animation: scroll-tick 1.9s ease-in-out infinite; }
@keyframes scroll-tick { 0%,100% { transform: scaleY(.4); opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } }

/* ------------------------------------------------------------- reveal fx */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="zoom"]  { transform: scale(.93); }
[data-reveal].is-in   { transform: none; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--enamel); border: 1px solid var(--mist); border-radius: var(--r-md);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #C3DBD0; }
.card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: #E4EFFC; color: var(--navy-deep); margin-bottom: 18px; }
.card p:last-child { margin-bottom: 0; }

/* value cards with a tilting surface */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt > * { transform: translateZ(24px); }


/* ---- components sitting inside a navy band ---------------------------- */
.section--ink .card {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.14);
  color: #D6E2F8;
  backdrop-filter: blur(6px);
}
.section--ink .card:hover { border-color: rgba(63,189,222,.5); background: rgba(255,255,255,.08); }
.section--ink .card h3, .section--ink .card strong { color: #fff; }
.section--ink .card p { color: #A7B5DA; }
.section--ink .card__icon { background: rgba(63,189,222,.16); color: var(--cyan); }
.section--ink .pill { background: rgba(255,255,255,.09); color: #CBD7F0; }
.section--ink .pill--off { opacity: .28; }
.section--ink .btn:not(.btn--ghost):not(.btn--wa) {
  --btn-bg: var(--cyan); --btn-fg: #06204A;
  box-shadow: 0 12px 28px -14px rgba(63,189,222,.8);
}
.section--ink .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.3); }
.section--ink .btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.section--ink .doc-card__meta { color: #8FA3D4; }
.section--ink .doc-card__avatar { background: linear-gradient(150deg, var(--cyan), #1E7FAF); color: #04203A; }
.section--ink .hours { border-color: rgba(255,255,255,.16); }
.section--ink .hours li { border-color: rgba(255,255,255,.12); }
.section--ink .hours span:first-child { color: #A7B5DA; }
.section--ink .branch__map { background: #0A1B5E; }
.section--ink .branch__map iframe { filter: grayscale(.4) contrast(1.05) brightness(.92); }
.section--ink .branch:hover .branch__map iframe { filter: none; }
.section--ink a:not(.btn):hover { color: var(--cyan); }

/* section index numbers flip to cyan on a navy band */
.sec-num { color: var(--navy); }
.section--ink .sec-num { color: var(--cyan); }

/* -------------------------------------------------------------- doctors */
.doc-card { position: relative; overflow: hidden; padding: 0; }
.doc-card__top { padding: 30px 30px 0; display: flex; gap: 18px; align-items: flex-start; }
.doc-card__avatar {
  width: 62px; height: 62px; flex: none; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.35rem; font-weight: 700;
}
.doc-card__body { padding: 20px 30px 30px; }
.doc-card__meta { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate); }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.doc-card__label { font-family: 'IBM Plex Mono', monospace; font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--slate); margin-top: 18px; }
.pill--treat { background: #E8F1FD; color: var(--navy); font-weight: 500; }
.section--ink .pill--treat { background: rgba(63,189,222,.16); color: var(--cyan); }
.pill { font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .08em;
  padding: 5px 11px; border-radius: var(--r-pill); background: #ECF1FA; color: var(--ink-soft); }
.pill--off { opacity: .35; text-decoration: line-through; }

/* -------------------------------------------------------------- branches */
.branch { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.branch__info { padding: 38px; }
.branch__map { min-height: 320px; background: #DCE7E1; }
.branch__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) contrast(1.05); transition: filter .5s; }
.branch:hover .branch__map iframe { filter: none; }
.hours { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px dashed var(--mist); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0;
  border-bottom: 1px dashed var(--mist); font-size: .93rem; }
.hours span:first-child { color: var(--slate); }
.hours b { font-family: 'IBM Plex Mono', monospace; font-size: .84rem; }

/* ------------------------------------------------------------- marquee */
.marquee { overflow: hidden; padding: 20px 0; border-block: 1px solid rgba(255,255,255,.12);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 46px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.28rem; font-weight: 600;
  display: flex; align-items: center; gap: 46px; white-space: nowrap; opacity: .85; }
.marquee__item::after { content: '✦'; color: var(--cyan); font-size: .8rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- social sign-in ---- */
.social-row { display: grid; gap: 10px; margin-bottom: 18px; }
.btn--social {
  --btn-bg: #fff; --btn-fg: var(--ink);
  border: 1.5px solid var(--mist); box-shadow: none;
  justify-content: center; font-weight: 600;
}
.btn--social:hover { border-color: var(--navy); box-shadow: none; }
.btn--apple { --btn-bg: #000; --btn-fg: #fff; border-color: #000; }
.btn--apple:hover { border-color: #000; }
.or-rule { display: flex; align-items: center; gap: 14px; margin: 4px 0 20px; }
.or-rule::before, .or-rule::after { content: ''; flex: 1; height: 1px; background: var(--mist); }
.or-rule span { font-family: 'IBM Plex Mono', monospace; font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate); }

/* --------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field .hint { font-size: .78rem; color: var(--slate); margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 16px; background: var(--enamel);
  border: 1.5px solid var(--mist); border-radius: var(--r-sm);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(18,45,140,.14); }
textarea.input { min-height: 104px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* choice chips (branch / doctor / slot pickers) */
.choices { display: grid; gap: 12px; }
.choices--2 { grid-template-columns: repeat(2, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  display: block; padding: 16px 18px; border: 1.5px solid var(--mist); border-radius: var(--r-sm);
  background: var(--enamel); cursor: pointer; transition: all .3s var(--ease);
}
.choice__box strong { display: block; font-size: .97rem; }
.choice__box small { color: var(--slate); font-size: .8rem; }
.choice input:checked + .choice__box {
  border-color: var(--navy); background: #E8F1FD; transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px rgba(18,45,140,.6);
}
.choice input:focus-visible + .choice__box { outline: 3px solid var(--cyan); outline-offset: 2px; }

.slots { display: flex; flex-wrap: wrap; gap: 9px; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; padding: 9px 15px; border-radius: var(--r-pill); border: 1.5px solid var(--mist);
  font-family: 'IBM Plex Mono', monospace; font-size: .82rem; cursor: pointer; background: var(--enamel);
  transition: all .25s var(--ease); }
.slot input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot span:hover { border-color: var(--navy); }

/* booking wizard */
.wizard { background: var(--enamel); border: 1px solid var(--mist); border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.wizard__steps { display: flex; gap: 8px; margin-bottom: 30px; }
.wizard__step { flex: 1; height: 4px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.wizard__step::after { content: ''; display: block; height: 100%; width: 0; background: var(--navy);
  transition: width .6s var(--ease); }
.wizard__step.is-done::after, .wizard__step.is-active::after { width: 100%; }
.wizard__panel { display: none; animation: panel-in .5s var(--ease); }
.wizard__panel.is-active { display: block; }
@keyframes panel-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.step-count { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }

.summary { background: #EFF4FC; border-radius: var(--r-md); padding: 20px 22px; margin-top: 4px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: .92rem; }
.summary dt { color: var(--slate); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }

/* --------------------------------------------------------------- alerts */
.alert { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: .93rem;
  border-left: 3px solid; animation: fade-up .5s var(--ease); }
.alert--ok   { background: #E8F2FD; border-color: var(--navy); }
.alert--warn { background: #FDF3E4; border-color: var(--amber); }
.alert--bad  { background: #FCECEC; border-color: #D8574F; }

/* --------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill);
  font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--pending    { background: #FDF3E4; color: #9A6413; }
.badge--approved   { background: #E4EFFC; color: var(--navy-deep); }
.badge--reschedule { background: #E8EFFA; color: #2A5AA8; }
.badge--declined,
.badge--cancelled  { background: #FBECEC; color: #A5372F; }
.badge--completed  { background: #ECEFEE; color: var(--slate); }
.ref { font-family: 'IBM Plex Mono', monospace; font-size: .82rem; letter-spacing: .04em; }

/* --------------------------------------------------------------- footer */
.site-footer { background: linear-gradient(170deg, #0A1B5E, #050B24); color: #B3C0E0; padding: 76px 0 30px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); transition: all .3s var(--ease); }
.socials a:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-3px); }
.footer-bottom { margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace; font-size: .72rem; color: #8390BC; }

/* floating WhatsApp button */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 58px; height: 58px;
  border-radius: 50%; background: #25D366; color: #04271A; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.75); transition: transform .35s var(--ease); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: ping 2.4s var(--ease) infinite; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ==========================================================================
   Portal layout (patient / doctor / admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; background: var(--porcelain); }
.side { background: linear-gradient(175deg, #0A1B5E, #071034); color: #BFCBE8; padding: 26px 20px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px; }
.side .brand { color: #fff; margin-bottom: 4px; }
.side__role { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: #8390BC; margin: 0 0 22px 2px; }

.side__label { font-family: 'IBM Plex Mono', monospace; font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: #7784B4; margin: 20px 0 8px; padding-left: 14px; }
.side a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--r-sm);
  font-size: .93rem; transition: all .25s var(--ease); }
.side a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(3px); }
.side a.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.side__foot { margin-top: auto; font-size: .78rem; color: #7784B4; }

.main { padding: 34px clamp(20px, 3.4vw, 46px) 60px; min-width: 0; }
.main__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 30px; }
.main__head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }

.stat-card { background: var(--enamel); border: 1px solid var(--mist); border-radius: var(--r-md);
  padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.stat-card:hover { transform: translateY(-4px); }
.stat-card__num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.3rem; font-weight: 700; line-height: 1; }
.stat-card__label { font-family: 'IBM Plex Mono', monospace; font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--slate); margin-top: 9px; }

.panel { background: var(--enamel); border: 1px solid var(--mist); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 26px; }
.panel__head { padding: 20px 24px; border-bottom: 1px solid var(--mist); display: flex;
  align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel__head h3 { margin: 0; font-size: 1.06rem; }
.panel__body { padding: 24px; }

.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 660px; }
table.data th { text-align: left; padding: 13px 18px; background: #F5F9F7; color: var(--slate);
  font-family: 'IBM Plex Mono', monospace; font-size: .66rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 500; border-bottom: 1px solid var(--mist); white-space: nowrap; }
table.data td { padding: 15px 18px; border-bottom: 1px solid #EDF2EF; vertical-align: middle; }
table.data tbody tr { transition: background .25s; }
table.data tbody tr:hover { background: #F7FBF9; }
table.data td .muted { color: var(--slate); font-size: .82rem; }

.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form .input { padding: 7px 10px; font-size: .84rem; width: auto; }

.empty { text-align: center; padding: 54px 24px; color: var(--slate); }
.empty h3 { color: var(--ink); }

/* treatment arch — the signature motif reused as a progress tracker */
.journey { position: relative; padding: 26px 0 6px; }
.journey__arch { display: block; width: 100%; height: auto; overflow: visible; }
.journey__stage { text-align: center; }
.stage-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.stage-list li { display: flex; align-items: center; gap: 16px; padding: 15px 18px;
  border: 1px solid var(--mist); border-radius: var(--r-sm); background: var(--enamel);
  transition: transform .35s var(--ease), border-color .3s; }
.stage-list li:hover { transform: translateX(4px); }
.stage-list li.is-due { border-color: var(--amber); background: #FEF8EF; }
.stage-list li.is-done { opacity: .68; }
.stage-no { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-family: 'IBM Plex Mono', monospace; font-size: .82rem; background: #EDF2EF; color: var(--slate); }
.stage-list li.is-done .stage-no { background: var(--navy); color: #fff; }
.stage-list li.is-due  .stage-no { background: var(--amber); color: #3A2A05; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(160deg, var(--ink), #16362C 60%, var(--navy-deep));
  color: #D8E2F7; padding: 60px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; }
.auth-art h2 { color: #fff; max-width: 15ch; }
.auth-form { display: grid; place-items: center; padding: 46px 26px; }
.auth-form__inner { width: min(100%, 400px); }

.notice-list { display: grid; gap: 14px; }
.notice { border-left: 3px solid var(--navy); background: #F1F6FD; padding: 16px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.notice time { font-family: 'IBM Plex Mono', monospace; font-size: .68rem; color: var(--slate); letter-spacing: .1em; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .arch-figure { max-width: 460px; margin: 10px auto 0; }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .side .brand { margin-bottom: 0; margin-right: auto; }
  .side__label, .side__foot { display: none; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: var(--header-h) 12px auto 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--enamel); border: 1px solid var(--mist); border-radius: var(--r-md);
    padding: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: all .35s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-header .nav > a:not(.nav__cta):hover { color: var(--navy); }
  .nav a { padding: 13px 14px; }
  .nav a::after { display: none; }
  .nav__cta { margin: 8px 0 0; justify-content: center; }
  .burger { display: block; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .branch { grid-template-columns: 1fr; }
  .branch__map { min-height: 240px; order: -1; }
  .field-row, .choices--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .hero__stats { gap: 24px; }
  .main { padding: 24px 18px 50px; }
}

/* ---------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .arch-path { stroke-dashoffset: 0; }
  .tooth { opacity: 1; }
}

@media print {
  .side, .site-header, .wa-float, .btn { display: none !important; }
  body { background: #fff; }
}
