/* ==========================================================================
   Alvio Health — design system
   Swap the brand tokens below to re-skin the entire site.
   ========================================================================== */

:root {
  /* Brand */
  --primary:        #0D4F4A;
  --primary-deep:   #093732;
  --primary-soft:   #E3EFEC;
  --accent:         #C4703F;
  --accent-soft:    #FAEDE4;

  /* Neutrals */
  --ink:            #14201E;
  --ink-2:          #3D504D;
  --muted:          #6B7C79;
  --bg:             #FBFAF7;
  --surface:        #FFFFFF;
  --surface-2:      #F3F0EA;
  --line:           #E4E0D8;
  --line-strong:    #CFCAC0;

  /* Utility */
  --focus:          #0F6E8A;
  --shadow-sm:      0 1px 2px rgba(20,32,30,.06), 0 1px 3px rgba(20,32,30,.05);
  --shadow-md:      0 4px 6px -1px rgba(20,32,30,.07), 0 10px 20px -6px rgba(20,32,30,.10);
  --shadow-lg:      0 10px 15px -3px rgba(20,32,30,.08), 0 24px 48px -12px rgba(20,32,30,.14);

  /* Scale */
  --radius:         12px;
  --radius-lg:      20px;
  --radius-pill:    999px;
  --maxw:           1140px;
  --gutter:         16px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary:      #6FC0B4;
    --primary-deep: #A8DBD1;
    --primary-soft: #14302D;
    --accent:       #E29767;
    --accent-soft:  #33221A;

    --ink:          #EDEAE3;
    --ink-2:        #C2CBC8;
    --muted:        #94A29F;
    --bg:           #0E1413;
    --surface:      #161E1D;
    --surface-2:    #1C2625;
    --line:         #2A3533;
    --line-strong:  #3B4846;

    --focus:        #7FD0E8;
    --shadow-sm:    0 1px 2px rgba(0,0,0,.4);
    --shadow-md:    0 4px 6px -1px rgba(0,0,0,.45), 0 10px 20px -6px rgba(0,0,0,.5);
    --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.5), 0 24px 48px -12px rgba(0,0,0,.6);
  }
}

:root[data-theme="dark"] {
  --primary:      #6FC0B4;
  --primary-deep: #A8DBD1;
  --primary-soft: #14302D;
  --accent:       #E29767;
  --accent-soft:  #33221A;
  --ink:          #EDEAE3;
  --ink-2:        #C2CBC8;
  --muted:        #94A29F;
  --bg:           #0E1413;
  --surface:      #161E1D;
  --surface-2:    #1C2625;
  --line:         #2A3533;
  --line-strong:  #3B4846;
  --focus:        #7FD0E8;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.4);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,.45), 0 10px 20px -6px rgba(0,0,0,.5);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.5), 0 24px 48px -12px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--surface-2); }
.section--edge { border-block: 1px solid var(--line); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: .97rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  min-height: 46px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-deep); color: #fff; box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .btn--primary, :root:not([data-theme="light"]) .btn--primary { color: #08201D; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn--primary { color: #fff; } }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #A85C31; color: #fff; }
.btn--sm { padding: .55rem 1rem; min-height: 40px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--primary-deep);
  color: #EAF3F1;
  font-size: .85rem;
}
:root[data-theme="dark"] .topbar, :root:not([data-theme="light"]) .topbar { background: var(--primary-soft); color: var(--ink-2); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .topbar { background: var(--primary-deep); color: #EAF3F1; } }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; justify-content: space-between; padding-block: .5rem; }
.topbar a { color: inherit; font-weight: 600; }
.topbar__note { display: flex; align-items: center; gap: .45rem; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand__name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.brand__tag { display: block; font-family: var(--font-sans); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: .5rem .7rem; border-radius: var(--radius);
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550;
}
.nav__links a:hover { background: var(--surface-2); color: var(--primary); }
.nav__links a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__book { white-space: nowrap; }
.nav__book-short { display: none; }
@media (max-width: 620px) {
  .nav__book-long { display: none; }
  .nav__book-short { display: inline; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.08rem; }
}
.nav__toggle { display: none; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: .5rem; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav__links[hidden] { display: none; }
  .nav__links a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .nav { position: relative; }
  .nav__cta .btn--ghost { display: none; }
}

.skip {
  position: absolute; left: 0; top: -4rem; z-index: 100;
  background: var(--primary); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { top: 0; color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__media { position: relative; }
.hero__media img, .hero__media .ph {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%;
}
.hero__badge {
  position: absolute; bottom: -18px; left: -12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem;
  max-width: 250px;
}
@media (max-width: 600px) { .hero__badge { position: static; margin-top: 1rem; max-width: none; } }
.hero__badge strong { display: block; font-size: .95rem; }
.hero__badge span { font-size: .8rem; color: var(--muted); }

/* ---------- Trust row ---------- */
.trust { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,200px), 1fr)); padding-block: 1.5rem; }
.trust__item { display: flex; gap: .7rem; align-items: flex-start; }
.trust__item svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }
.trust__item strong { display: block; font-size: .96rem; }
.trust__item span { font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--link { display: block; text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); color: inherit; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card__meta { font-size: .87rem; color: var(--muted); }
.card__more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--primary); margin-top: .5rem; }

/* Location card */
.loc-card { display: flex; flex-direction: column; gap: .75rem; }
.loc-card .ph, .loc-card img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; }
.loc-card__town { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; }
.loc-card address { font-style: normal; font-size: .92rem; color: var(--ink-2); line-height: 1.55; }

/* Steps */
.step { position: relative; padding-left: 3.25rem; }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 2.35rem; height: 2.35rem; border-radius: var(--radius-pill);
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
  font-family: var(--font-sans);
}
:root[data-theme="dark"] .step__num, :root:not([data-theme="light"]) .step__num { color: #08201D; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .step__num { color: #fff; } }

/* ---------- Placeholders ---------- */
.ph {
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 10px, transparent 10px 20px),
    var(--surface);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: 1.25rem;
  line-height: 1.5;
  width: 100%; max-width: 100%; min-width: 0;
}
/* Grid and flex children must be allowed to shrink below their min-content width,
   or one wide child forces the whole row past the viewport. */
.grid > *, .hero__grid > *, .shots > *, .footer__grid > * { min-width: 0; }
.ph--hero { aspect-ratio: 4/3; }
.ph--wide { aspect-ratio: 16/9; }
.ph--square { aspect-ratio: 1/1; }
.ph--map { aspect-ratio: 16/10; }
.ph--avatar { aspect-ratio: 1/1; border-radius: var(--radius-pill); max-width: 128px; margin-inline: auto; }
.ph code { font-size: .78rem; color: var(--accent); display: block; margin-top: .4rem; word-break: break-all; }

/* ---------- Notice / callout ---------- */
.notice {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}
.notice strong { color: var(--ink); }
.notice p:last-child { margin-bottom: 0; }
.notice--info { border-left-color: var(--primary); background: var(--primary-soft); }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.15rem .5rem 1.15rem 0; list-style: none;
  font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 1rem;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-sans); font-weight: 400; font-size: 1.5rem; line-height: 1;
  color: var(--primary); flex-shrink: 0; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 2rem 1.35rem 0; color: var(--ink-2); font-size: .97rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.req { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary-deep); color: #F2F8F6; }
:root[data-theme="dark"] .cta-band, :root:not([data-theme="light"]) .cta-band { background: var(--surface-2); color: var(--ink); border-block: 1px solid var(--line); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .cta-band { background: var(--primary-deep); color: #F2F8F6; border-block: 0; } }
.cta-band h2 { color: inherit; }
.cta-band .lede { color: inherit; opacity: .85; }
.cta-band__inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 820px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn--ghost { color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); }
.cta-band .btn--ghost:hover { background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; border-color: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: clamp(2.5rem,5vw,4rem) 0 1.5rem; font-size: .93rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,200px), 1fr)); }
.site-footer .footer__h { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--ink-2); line-height: 1.6; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  color: var(--muted); font-size: .85rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .87rem; color: var(--muted); padding-top: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--line-strong); }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Misc ---------- */
.pill { display: inline-block; padding: .3rem .7rem; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.85rem; margin-bottom: .65rem; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
}
.checklist li::after {
  content: ""; position: absolute; left: .32rem; top: .72em;
  width: .48rem; height: .26rem;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.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;
}
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Photo strip (location pages) ---------- */
.shots {
  display: grid; gap: clamp(.6rem, 1.5vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  margin-block: 1.75rem;
}
.shots .shot { margin: 0; }
.shots img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.loc-card img, .hero__media img { object-fit: cover; }
.hero__media img { border: 1px solid var(--line); }
