/* =====================================================================
   Evergreen Health — Design System
   A calm, trustworthy visual language for a multi-location clinic.
   ===================================================================== */

/* ------------------------- Design Tokens ------------------------- */
:root {
  /* Brand — evergreen teal/green scale */
  --brand-50:  #ecfdf6;
  --brand-100: #d2f6e8;
  --brand-200: #a6ecd3;
  --brand-300: #6fdcba;
  --brand-400: #38c4a0;
  --brand-500: #17a589;
  --brand-600: #0f8a76;
  --brand-700: #0d6e60;
  --brand-800: #0c574d;
  --brand-900: #0a3f39;

  /* Accent — warm coral for energy & CTAs */
  --accent-300: #ffc9ac;
  --accent-400: #ffae87;
  --accent-500: #ff8a5b;
  --accent-600: #f56a37;

  /* Soft sky — supportive cool tone for illustrations */
  --sky-200: #cfeaf7;
  --sky-400: #7cc6e8;

  /* Neutrals — green-tinted slate */
  --ink-900: #0e201d;
  --ink-800: #1b302c;
  --ink-700: #2f433e;
  --ink-600: #4b5d58;
  --ink-500: #6c7d78;
  --ink-400: #94a39e;
  --ink-300: #c3cecb;

  --surface:   #ffffff;
  --surface-2: #f4faf8;
  --surface-3: #e9f4f0;
  --border:    #e1ece8;
  --border-2:  #cfe1db;

  /* Typography */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-full: 999px;

  /* Shadows — soft, green-tinted */
  --shadow-xs: 0 1px 2px rgba(12,87,77,.06);
  --shadow-sm: 0 1px 3px rgba(12,87,77,.08), 0 1px 2px rgba(12,87,77,.06);
  --shadow-md: 0 6px 16px rgba(12,87,77,.08), 0 12px 28px rgba(12,87,77,.06);
  --shadow-lg: 0 14px 34px rgba(12,87,77,.12), 0 28px 56px rgba(12,87,77,.10);
  --shadow-glow: 0 10px 34px rgba(23,165,137,.28);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .16s;
  --t: .28s;
  --t-slow: .5s;
}

/* ------------------------- Reset ------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-700); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }

/* ------------------------- Layout helpers ------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface-2); }
.section--mint { background: linear-gradient(180deg, var(--surface-2), var(--surface-3)); }
.section--ink { background: radial-gradient(120% 120% at 80% -10%, var(--brand-700), var(--brand-900) 60%); color: var(--brand-100); }
.section--ink h2, .section--ink h3 { color: #fff; }

.center { text-align: center; }
.muted { color: var(--ink-500); }
.no-scroll { overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ------------------------- Typography ------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: var(--brand-400); }
.eyebrow--center::before { display: none; }

h1, .h1 { font-size: clamp(2.3rem, 5.2vw, 3.65rem); }
h2, .h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-600); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: .9rem; }

/* ------------------------- Buttons ------------------------- */
.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--r-full);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background var(--t);
  will-change: transform; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--accent { --btn-bg: var(--accent-500); }
.btn--accent:hover { --btn-bg: var(--accent-600); box-shadow: 0 10px 30px rgba(245,106,55,.32); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--brand-800);
  border-color: var(--border-2);
}
.btn--ghost:hover { background: var(--surface-2); box-shadow: var(--shadow-sm); border-color: var(--brand-300); }
.btn--white { --btn-bg:#fff; --btn-fg: var(--brand-800); }
.btn--white:hover { box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.btn--lg { padding: 1rem 1.85rem; font-size: 1.075rem; }
.btn--block { width: 100%; }
.btn--sm { padding: .6rem 1.05rem; font-size: .92rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head);
  font-weight: 600; color: var(--brand-700);
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform var(--t) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------- Pills & badges ------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .85rem; border-radius: var(--r-full);
  background: var(--brand-50); color: var(--brand-700);
  font-weight: 600; font-size: .85rem; border: 1px solid var(--brand-100);
}
.pill svg { width: 1.05em; height: 1.05em; }
.pill--accent { background: #fff2ea; color: var(--accent-600); border-color: #ffe0cf; }
.pill--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .8rem; border-radius: var(--r-full);
  background: var(--surface); border: 1.5px solid var(--border-2);
  color: var(--ink-600); font-size: .9rem; font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--brand-700); border-color: var(--brand-700); color: #fff;
}

.tag {
  display: inline-block; padding: .28rem .65rem; border-radius: var(--r-xs);
  background: var(--surface-3); color: var(--brand-800); font-size: .8rem; font-weight: 600;
}

/* ------------------------- Cards ------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.card--lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }

.icon-tile {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem;
  border-radius: var(--r-md); margin-bottom: 1.1rem;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff; box-shadow: var(--shadow-glow);
}
.icon-tile svg { width: 1.7rem; height: 1.7rem; }
.icon-tile--accent { background: linear-gradient(140deg, var(--accent-400), var(--accent-600)); box-shadow: 0 10px 30px rgba(245,106,55,.28); }
.icon-tile--soft { background: var(--brand-50); color: var(--brand-700); box-shadow: none; }

/* =====================================================================
   Header / Navigation
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
/* Glass background lives on a pseudo-element so the header itself does NOT
   become a containing block for the fixed mobile menu (backdrop-filter would). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; color: var(--ink-900); letter-spacing: -.02em; }
.brand:hover { color: var(--ink-900); }
.brand__mark { width: 2.3rem; height: 2.3rem; flex: none; }
.brand__name span { color: var(--brand-600); }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative; padding: .55rem .85rem; border-radius: var(--r-full);
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink-700);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--brand-700); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--brand-700); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: .28rem; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-500);
}
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__cta { display: inline-flex; }

.nav__toggle {
  display: none; width: 2.9rem; height: 2.9rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-2); color: var(--ink-800);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 1.5rem; height: 1.5rem; }
.nav__toggle .icon-close { display: none; }
body.nav-open .nav__toggle .icon-open { display: none; }
body.nav-open .nav__toggle .icon-close { display: block; }

@media (max-width: 940px) {
  .nav__toggle { display: inline-flex; }
  /* keep logo + close button painted above the overlay */
  .brand, .nav__toggle { position: relative; z-index: 2; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    background: #ffffff;
    display: flex; flex-direction: column; gap: .25rem;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2.5rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
    overflow-y: auto; overscroll-behavior: contain;
  }
  body.nav-open .nav__menu { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link { padding: .95rem 1rem; font-size: 1.15rem; border-radius: var(--r-sm); }
  .nav__link[aria-current="page"]::after { left: 1rem; transform: none; top: 50%; bottom: auto; margin-top: -2px; }
  .nav__actions { margin-top: 1.2rem; flex-direction: column; align-items: stretch; }
  .nav__actions .btn { width: 100%; }
}
@media (min-width: 941px) { .nav__menu { display: flex !important; align-items: center; gap: 1.25rem; } }

/* ------------------------- Top bar ------------------------- */
.topbar {
  background: var(--brand-900); color: var(--brand-100); font-size: .86rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; padding-block: .35rem; }
.topbar a { color: #fff; font-weight: 600; }
.topbar__list { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { width: 1rem; height: 1rem; color: var(--brand-300); }
.topbar__promo { display: inline-flex; align-items: center; gap: .45rem; }
@media (max-width: 720px) { .topbar__promo { display: none; } .topbar__inner { justify-content: center; } }
@media (max-width: 480px) { .topbar__list .topbar__item--hours { display: none; } }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 12% 8%, rgba(56,196,160,.18), transparent 70%),
    radial-gradient(45% 55% at 92% 18%, rgba(124,198,232,.20), transparent 70%),
    radial-gradient(50% 60% at 78% 96%, rgba(255,138,91,.12), transparent 72%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__copy { max-width: 36rem; }
.hero h1 { margin-top: 1.1rem; }
.hero h1 .accent { color: var(--brand-600); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .28em; z-index: -1;
  background: var(--accent-300); border-radius: 4px; opacity: .55;
}
.hero__sub { margin-top: 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.hero__trust { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero__rating { display: flex; align-items: center; gap: .6rem; }
.stars { display: inline-flex; gap: 2px; color: #f5a623; }
.stars svg { width: 1.1rem; height: 1.1rem; }
.hero__rating-text { font-size: .92rem; }
.hero__rating-text b { color: var(--ink-900); font-family: var(--font-head); }
.avatar-row { display: flex; }
.avatar-row img, .avatar-row span {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2.5px solid #fff;
  margin-left: -.7rem; box-shadow: var(--shadow-xs); object-fit: cover;
}
.avatar-row :first-child { margin-left: 0; }
.avatar-row span { display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); font-weight: 700; font-size: .82rem; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; background: var(--surface-3);
  border: 6px solid #fff;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,63,57,.35));
}
.hero__blob {
  position: absolute; z-index: -1; filter: blur(2px); opacity: .9;
}
.hero__blob--1 { width: 18rem; top: -3rem; right: -3rem; color: var(--brand-200); }
.hero__blob--2 { width: 12rem; bottom: -2rem; left: -3rem; color: var(--accent-300); }

.floating-card {
  position: absolute; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .85rem 1.05rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .75rem;
  animation: floaty 6s ease-in-out infinite;
}
.floating-card svg { flex: none; }
.floating-card__label { font-size: .76rem; color: var(--ink-500); }
.floating-card__value { font-family: var(--font-head); font-weight: 700; color: var(--ink-900); font-size: 1.02rem; line-height: 1.2; }
.floating-card--1 { left: -1.4rem; top: 14%; animation-delay: -1s; }
.floating-card--2 { right: -1.2rem; bottom: 16%; }
.floating-card--2 .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 26rem; margin-inline: auto; }
  .hero__photo { aspect-ratio: 4 / 3.4; }
  .floating-card--1 { left: -.5rem; }
  .floating-card--2 { right: -.5rem; }
}

/* ------------------------- Logo strip ------------------------- */
.logo-strip { border-block: 1px solid var(--border); background: var(--surface); }
.logo-strip__inner { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; justify-content: center; padding-block: 1.5rem; }
.logo-strip__label { font-size: .82rem; color: var(--ink-400); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.logo-strip__items { display: flex; align-items: center; gap: clamp(1.5rem,4vw,3rem); flex-wrap: wrap; justify-content: center; }
.logo-strip__items span { font-family: var(--font-head); font-weight: 700; color: var(--ink-400); font-size: 1.05rem; display: inline-flex; align-items:center; gap:.5rem; }
.logo-strip__items svg { width: 1.3rem; height: 1.3rem; opacity: .7; }

/* =====================================================================
   Stats
   ===================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,2vw,1.5rem); }
.stat { text-align: center; padding: 1.2rem; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--brand-700); letter-spacing: -.03em; line-height: 1; }
.stat__num .unit { color: var(--accent-500); }
.stat__label { margin-top: .5rem; color: var(--ink-500); font-weight: 500; font-size: .96rem; }
.section--ink .stat__num { color: #fff; }
.section--ink .stat__num .unit { color: var(--brand-300); }
.section--ink .stat__label { color: var(--brand-200); }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2,1fr); } }

/* =====================================================================
   Service cards
   ===================================================================== */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--ink-600); font-size: .98rem; }
.service-card__link { margin-top: auto; padding-top: 1.1rem; }
.service-card ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.feature-row--rev .feature-row__visual { order: 2; }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: .85rem; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; margin-top: .1rem;
}
.feature-list .tick svg { width: 1rem; height: 1rem; }
.feature-list b { color: var(--ink-900); font-family: var(--font-head); display: block; }
.feature-list span { color: var(--ink-600); font-size: .96rem; }
.feature-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 5px solid #fff; aspect-ratio: 5/4.2; background: var(--surface-3); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--rev .feature-row__visual { order: 0; }
}

/* =====================================================================
   Locations
   ===================================================================== */
.loc-toolbar {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.search-field { position: relative; flex: 1 1 18rem; max-width: 24rem; }
.search-field svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.2rem; height: 1.2rem; color: var(--ink-400); pointer-events: none; }
.search-field input {
  width: 100%; padding: .85rem 1rem .85rem 2.9rem; border-radius: var(--r-full);
  border: 1.5px solid var(--border-2); background: var(--surface); transition: border-color var(--t), box-shadow var(--t);
}
.search-field input:focus-visible { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-50); }
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }

.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.5rem; }
.loc-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.loc-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-3); }
.loc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.loc-card--lift:hover .loc-card__media img { transform: scale(1.06); }
.loc-card__badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: .35rem .75rem; border-radius: var(--r-full); font-size: .8rem; font-weight: 700;
  color: var(--brand-700); display: inline-flex; align-items: center; gap: .35rem;
}
.loc-card__status { position: absolute; top: .9rem; right: .9rem; z-index: 2; }
.status-dot {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem;
  border-radius: var(--r-full); font-size: .78rem; font-weight: 700;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
}
.status-dot::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; }
.status-dot.is-open { color: var(--brand-700); }
.status-dot.is-open::before { background: #1fb87a; box-shadow: 0 0 0 3px rgba(31,184,122,.2); }
.status-dot.is-closed { color: var(--ink-500); }
.status-dot.is-closed::before { background: var(--ink-400); }

.loc-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.loc-card__city { font-size: .82rem; font-weight: 600; color: var(--accent-600); text-transform: uppercase; letter-spacing: .06em; }
.loc-card h3 { margin: .25rem 0 .9rem; }
.loc-meta { display: grid; gap: .55rem; margin-bottom: 1rem; }
.loc-meta li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; color: var(--ink-600); }
.loc-meta svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--brand-500); margin-top: .15rem; }
.loc-meta a { color: var(--ink-700); }
.loc-meta a:hover { color: var(--brand-700); }
.loc-card__services { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.2rem; }
.loc-card__services .tag { font-size: .72rem; padding: .22rem .55rem; }
.loc-card__actions { margin-top: auto; display: flex; gap: .6rem; }
.loc-card__actions .btn { flex: 1; }

.loc-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-500); grid-column: 1 / -1; }
.loc-empty svg { width: 3rem; height: 3rem; color: var(--ink-300); margin: 0 auto 1rem; }

.loc-count { font-size: .92rem; color: var(--ink-500); }
.loc-count b { color: var(--ink-900); }

/* Map band */
.map-band { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); background: var(--surface-3); }
.map-band iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.92); }

/* =====================================================================
   Doctors / team
   ===================================================================== */
.doc-card { text-align: center; }
.doc-card__photo { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.1rem; background: var(--surface-3); }
.doc-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-card h3 { font-size: 1.18rem; }
.doc-card__role { color: var(--brand-600); font-weight: 600; font-size: .92rem; margin-top: .2rem; }
.doc-card__loc { color: var(--ink-500); font-size: .88rem; margin-top: .35rem; display:inline-flex; gap:.35rem; align-items:center; }
.doc-card__loc svg { width: .95rem; height: .95rem; }

/* =====================================================================
   Steps / how it works
   ===================================================================== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.2rem,3vw,2.5rem); }
.step { position: relative; }
.step__num {
  width: 3.2rem; height: 3.2rem; border-radius: var(--r-md); display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--border-2); color: var(--brand-700);
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-600); font-size: .98rem; }
.steps--line .step:not(:last-child)::after {
  content: ""; position: absolute; top: 1.6rem; left: 4rem; right: -1rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-2) 0 8px, transparent 8px 16px);
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps--line .step::after { display: none; } }

/* =====================================================================
   Testimonials
   ===================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi { display: flex; flex-direction: column; gap: 1rem; }
.testi__stars { color: #f5a623; display: inline-flex; gap: 2px; }
.testi__stars svg { width: 1.1rem; height: 1.1rem; }
.testi p { font-size: 1.05rem; color: var(--ink-700); }
.testi__by { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testi__by img, .testi__by span.ph { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; flex:none; }
.testi__by span.ph { display:grid; place-items:center; background: var(--brand-100); color: var(--brand-700); font-weight:700; }
.testi__by b { display: block; color: var(--ink-900); font-family: var(--font-head); }
.testi__by small { color: var(--ink-500); }

/* =====================================================================
   FAQ accordion
   ===================================================================== */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: .85rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: box-shadow var(--t), border-color var(--t); }
.faq__item.is-open { box-shadow: var(--shadow-md); border-color: var(--border-2); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; text-align: left; font-family: var(--font-head); font-weight: 600;
  font-size: 1.08rem; color: var(--ink-900);
}
.faq__q .icon { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; transition: transform var(--t) var(--ease), background var(--t); }
.faq__q .icon svg { width: 1rem; height: 1rem; color: var(--brand-700); }
.faq__item.is-open .faq__q .icon { transform: rotate(45deg); background: var(--brand-700); }
.faq__item.is-open .faq__q .icon svg { color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease); }
.faq__a-inner { padding: 0 1.4rem 1.3rem; color: var(--ink-600); }

/* =====================================================================
   CTA band
   ===================================================================== */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.5rem,6vw,4.5rem); color: #fff; background: radial-gradient(120% 140% at 85% 0%, var(--brand-600), var(--brand-900) 65%); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(40% 60% at 90% 90%, rgba(255,138,91,.28), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: var(--brand-100); margin-top: 1rem; max-width: 50ch; }
.cta-band__actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2rem; }

/* =====================================================================
   Forms — appointments / contact
   ===================================================================== */
.form-shell { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 880px) { .form-shell { grid-template-columns: 1fr; } }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem,3vw,2.4rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink-800); }
.field label .req { color: var(--accent-600); }
.field .hint { font-size: .82rem; color: var(--ink-400); }
.input, .select, .textarea {
  width: 100%; padding: .8rem .95rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-2); background: var(--surface);
  transition: border-color var(--t), box-shadow var(--t); color: var(--ink-900);
}
.textarea { min-height: 7rem; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234b5d58' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.5rem; cursor: pointer; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-50); }
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.1); }
.field__error { font-size: .82rem; color: #d23b40; font-weight: 500; min-height: 0; display: none; }
.field.has-error .field__error { display: block; }

.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem,1fr)); gap: .55rem; }
.time-slot { padding: .6rem .5rem; border-radius: var(--r-sm); border: 1.5px solid var(--border-2); background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--ink-700); text-align: center; transition: all var(--t-fast); }
.time-slot:hover:not(:disabled) { border-color: var(--brand-400); color: var(--brand-700); }
.time-slot.is-selected { background: var(--brand-700); border-color: var(--brand-700); color: #fff; box-shadow: var(--shadow-glow); }
.time-slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.form-aside { display: grid; gap: 1.2rem; }
.aside-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.4rem; }
.aside-card h3 { font-size: 1.1rem; margin-bottom: .8rem; display:flex; align-items:center; gap:.5rem; }
.aside-card h3 svg { width: 1.3rem; height: 1.3rem; color: var(--brand-600); }
.aside-list { display: grid; gap: .7rem; }
.aside-list li { display: flex; gap: .6rem; font-size: .94rem; color: var(--ink-600); }
.aside-list svg { flex: none; width: 1.15rem; height: 1.15rem; color: var(--brand-500); margin-top:.15rem; }

/* form success */
.form-success { text-align: center; padding: 1rem; display: none; }
.form-success.is-visible { display: block; animation: pop .4s var(--ease-out); }
.form-success__icon { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.3rem; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; }
.form-success__icon svg { width: 2.4rem; height: 2.4rem; }
.summary-box { text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.3rem 1.5rem; margin: 1.5rem 0; display: grid; gap: .7rem; }
.summary-box dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); font-weight: 700; }
.summary-box dd { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px dashed var(--border-2); }
.summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.form-note { font-size: .84rem; color: var(--ink-400); margin-top: 1rem; display:flex; gap:.5rem; align-items:flex-start; }
.form-note svg { flex:none; width: 1.1rem; height: 1.1rem; margin-top: .1rem; }

/* =====================================================================
   Page hero (interior pages)
   ===================================================================== */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3rem,6vw,4.5rem); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--border); }
.page-hero::before { content:""; position:absolute; inset:0; z-index:0; background: radial-gradient(45% 70% at 88% 0%, rgba(56,196,160,.14), transparent 70%); }
.page-hero__inner { position: relative; z-index: 1; max-width: 44rem; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-500); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb svg { width: .9rem; height: .9rem; color: var(--ink-300); }
.page-hero h1 { margin-bottom: 1rem; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--brand-900); color: var(--brand-200); padding-top: clamp(3rem,6vw,4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem,3vw,2.5rem); padding-bottom: 3rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__name span { color: var(--brand-300); }
.footer-brand p { margin-top: 1rem; max-width: 28ch; color: var(--brand-200); font-size: .95rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-social a { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background var(--t), transform var(--t-fast); }
.footer-social a:hover { background: var(--brand-600); transform: translateY(-2px); }
.footer-social svg { width: 1.2rem; height: 1.2rem; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: var(--brand-200); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; margin-bottom: .7rem; }
.footer-contact svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--brand-300); margin-top: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: var(--brand-300); }
.footer-bottom__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--brand-300); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Scroll reveal
   ===================================================================== */
/* Progressive enhancement: only hide for reveal when JS is active (.js on <html>).
   Without JS, all content is visible by default. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

/* =====================================================================
   Toast
   ===================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%);
  background: var(--ink-900); color: #fff; padding: .9rem 1.3rem; border-radius: var(--r-full);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .6rem; z-index: 200;
  transition: transform .4s var(--ease-out); font-weight: 500; max-width: 90vw;
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 1.3rem; height: 1.3rem; color: var(--brand-300); flex: none; }

/* ------------------------- Image fallbacks ------------------------- */
/* If a remote photo fails to load, show a calm branded gradient instead of a broken icon. */
.loc-card__media, .hero__photo, .feature-img, .doc-card__photo, .testi__by img, .avatar-row img {
  background-image: linear-gradient(135deg, var(--brand-100), var(--surface-3) 60%, var(--sky-200));
}
.img-fallback::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 30% 30%, rgba(56,196,160,.35), transparent 70%),
    linear-gradient(135deg, var(--brand-200), var(--sky-200));
}
.loc-card__media.img-fallback::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: center/2.5rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%230d6e60' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  opacity: .55;
}

.slot-hint { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; padding: .9rem 0; font-size: .95rem; }
.slot-hint svg { width: 1.2rem; height: 1.2rem; flex: none; color: var(--brand-500); }

/* ------------------------- Checkbox ------------------------- */
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--ink-600); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 6px; border: 1.5px solid var(--border-2); background: #fff; display: grid; place-items: center; margin-top: .1rem; transition: all var(--t-fast); }
.check__box svg { width: .9rem; height: .9rem; color: #fff; opacity: 0; transform: scale(.6); transition: all var(--t-fast); }
.check input:checked + .check__box { background: var(--brand-600); border-color: var(--brand-600); }
.check input:checked + .check__box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--brand-400); outline-offset: 2px; }
.check a { font-weight: 600; }
.field.has-error .check__box { border-color: #e5484d; }

/* utility spacing */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1.1rem; }
