/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* ------------------------------------------------------------- 1. HERO -- */
.hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6.5rem) 0; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }

/* Ambient rings drifting behind the hero. The one ornamental flourish. */
.hero__rings { top: -14%; right: -16%; width: min(760px, 78vw); opacity: .5; }
.hero__rings ellipse { stroke-width: 1; }

.hero h1 { max-width: 15ch; margin-bottom: .34em; }
.hero__lead { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }

/* -- The trust bar: quantity of proof, per the blueprint's own principle. -- */
.trustbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.4rem;
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--rule);
}
.trust-item { display: flex; align-items: baseline; gap: .5rem; }
.trust-item__num {
  font-family: var(--display); font-weight: 300;
  font-variation-settings: "SOFT" 55, "WONK" 0, "opsz" 40;
  font-size: 2.1rem; line-height: 1; color: var(--ink); letter-spacing: -0.03em;
}
.trust-item__label { font-size: .875rem; color: var(--text-soft); line-height: 1.35; max-width: 17ch; }
.stars { display: inline-flex; gap: 2px; color: var(--signal-text); }
.stars svg { width: 15px; height: 15px; }

/* ============================================================ 2. ROUTER ==
   THE SIGNATURE ELEMENT.
   Four worries in the patient's own words. Each is a door to the right
   specialty page. This is the strategy — "guide by problem, not service
   name" — turned into the primary navigation of the site.
   The lens behaviour: at rest every card is slightly soft; the one you point
   at snaps into focus. Trial lenses, the thing an optometrist actually does.
   ========================================================================= */
.router { position: relative; padding-block: clamp(3rem,6vw,5rem) var(--section-y); }
.router__intro { max-width: 34ch; margin-bottom: 2.6rem; }

.router__grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .router__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .router__grid { grid-template-columns: 1fr; } }

.door {
  position: relative; display: flex; flex-direction: column;
  min-height: 268px; padding: 1.6rem 1.5rem 1.4rem;
  background: var(--tint); border-radius: var(--r-lg);
  text-decoration: none; color: var(--text); overflow: hidden;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.door::before {
  /* the lens: a ring that resolves on approach */
  content: ""; position: absolute; inset: auto -30% -46% auto;
  width: 240px; height: 240px; border-radius: 50%;
  border: 1.5px solid var(--haze); opacity: .55;
  transition: transform .7s var(--ease), opacity .7s var(--ease), border-color .7s var(--ease);
}
.door__q {
  font-family: var(--display); font-weight: 300;
  font-variation-settings: "SOFT" 60, "WONK" 0, "opsz" 30;
  font-size: 1.32rem; line-height: 1.22; letter-spacing: -0.018em;
  color: var(--ink); margin: 0 0 .6rem; position: relative; z-index: 1;
  text-wrap: balance;
}
.door__a { font-size: .9375rem; line-height: 1.5; color: var(--text-soft); margin: 0; position: relative; z-index: 1; }
.door__go {
  margin-top: auto; padding-top: 1.4rem; position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--signal-text);
}
.door__go svg { transition: transform var(--dur) var(--ease); }

.door:hover, .door:focus-visible { background: var(--tint-deep); transform: translateY(-4px); }
.door:hover::before, .door:focus-visible::before { transform: scale(1.18) translate(-8%, -8%); opacity: 1; border-color: var(--signal); }
.door:hover .door__go svg, .door:focus-visible .door__go svg { transform: translateX(4px); }
.door:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

/* The soften-the-others behaviour. Kept deliberately subtle — a hair of
   opacity, no literal blur, so nothing ever becomes hard to read. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .router__grid:hover .door { opacity: .62; }
  .router__grid:hover .door:hover { opacity: 1; }
  .door { transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
}

.router__more { margin-top: 1.6rem; font-size: var(--fs-small); color: var(--text-soft); }

/* ==================================================== 3. MORE THAN GLASSES */
.thesis { position: relative; overflow: hidden; }
.thesis__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
@media (max-width: 860px) { .thesis__grid { grid-template-columns: 1fr; } }

/* Photo with an offset colour block behind it — the PicnicHealth move.
   It is what makes ordinary clinic photography read as art-directed. */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; inset: 1.75rem -1.75rem -1.75rem 1.75rem;
  background: var(--haze); border-radius: var(--r-lg); z-index: 0;
}
.framed img { position: relative; z-index: 1; border-radius: var(--r-lg); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
@media (max-width: 860px) { .framed::before { inset: 1.25rem -1.25rem -1.25rem 1.25rem; } }

.service-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.5rem; }
@media (max-width: 520px) { .service-list { grid-template-columns: 1fr; } }
.service-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; font-size: .9375rem; border-bottom: 1px solid var(--rule); }
.service-list svg { flex: none; margin-top: .28em; color: var(--signal-text); }

/* ==================================================== 4. SPECIALTY CLINICS */
.clinics__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.clinics__head h2 { max-width: 18ch; margin: 0; }

/* Staggered alternating blocks — Mair Care's structure, Webb's palette. */
.clinic {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,4rem);
  align-items: center; padding-block: clamp(2rem,4vw,3.25rem);
  border-top: 1px solid var(--rule);
}
.clinic:first-of-type { border-top: 0; }
.clinic:nth-child(even) .clinic__media { order: -1; }
@media (max-width: 820px) {
  .clinic { grid-template-columns: 1fr; gap: 1.75rem; }
  .clinic:nth-child(even) .clinic__media { order: 0; }
}
.clinic__body h3 { margin-bottom: .5rem; }
.clinic__symptoms { list-style: none; margin: 1.1rem 0 1.5rem; padding: 0; display: grid; gap: .45rem; }
.clinic__symptoms li { position: relative; padding-left: 1.4rem; font-size: .9375rem; color: var(--text-soft); }
.clinic__symptoms li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--haze);
}
.clinic__actions { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
.clinic__who { margin-top: 1.15rem; display: flex; align-items: center; gap: .7rem; font-size: .875rem; color: var(--text-soft); }
.clinic__who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.clinic__faces { display: flex; gap: 4px; flex: none; }

.clinic__media img { width: 100%; border-radius: var(--r-lg); object-fit: cover; aspect-ratio: 5/4; }

/* Honest placeholder for the interiors we don't have yet (shoot: Sept 14). */
.ph {
  display: grid; place-items: center; aspect-ratio: 5/4;
  background: var(--tint); border-radius: var(--r-lg); color: var(--haze);
  position: relative; overflow: hidden;
}
.ph svg { width: 46%; max-width: 210px; }
.ph__note {
  position: absolute; bottom: .85rem; left: 0; right: 0; text-align: center;
  font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase; color: #8FB4D6;
}

/* ========================================================== 5. LOCATIONS == */
.locations__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2.75rem; }
@media (max-width: 900px) { .locations__grid { grid-template-columns: 1fr; } }

.loc {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem; display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.loc:hover { border-color: var(--haze); transform: translateY(-3px); }
.loc h3 { margin-bottom: .15rem; }
.loc__addr { font-size: .9375rem; color: var(--text-soft); margin: 0 0 1.1rem; }
.loc__hours { font-size: .875rem; color: var(--text-soft); margin: 0 0 1.4rem; display: grid; gap: .2rem; }
.loc__hours dt { font-weight: 600; color: var(--text); }
.loc__today { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.loc__today .dot { width: 7px; height: 7px; border-radius: 50%; background: #2E9E5B; }
.loc__today .dot--shut { background: var(--gray-mark); }
.loc__phone { font-family: var(--display); font-weight: 300; font-variation-settings:"SOFT" 55,"WONK" 0,"opsz" 30; font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; display: block; margin-bottom: 1.25rem; }
.loc__phone:hover { color: var(--signal-text); }
.loc__actions { margin-top: auto; display: grid; gap: .55rem; }
.loc__actions .btn { justify-content: center; }
.loc__note { font-size: .8125rem; color: var(--muted); margin: .85rem 0 0; }

/* ============================================================ 6. PROOF ==== */
.proof__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2.75rem; }
@media (max-width: 900px) { .proof__grid { grid-template-columns: 1fr; } }
.quote {
  background: var(--paper); border-radius: var(--r-lg); padding: 1.8rem 1.7rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--text); }
.quote__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote__name { font-size: .875rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.quote__meta { font-size: .8125rem; color: var(--muted); }

/* ========================================================= 7. GUARANTEES == */
.promises { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.16); margin-top: 2.75rem; } /* square: rounded clipping left faint corner arcs on the dark band */
@media (max-width: 900px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } }
.promise { background: var(--ink); padding: 1.9rem 1.6rem; }
.promise h3 { font-size: 1.125rem; color: #fff; margin-bottom: .45rem; line-height: 1.25; }
.promise p { font-size: .9rem; margin: 0; color: #C9DDEE; }
.promise svg { color: var(--haze); margin-bottom: 1rem; }

/* ============================================================= 8. CTA ===== */
.finale { text-align: center; }
.finale h2 { max-width: 20ch; margin-inline: auto; }
.finale p { margin-inline: auto; }
.finale__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 2.2rem; }

/* ================================================== LOCATION PICKER MODAL = */
.picker[hidden] { display: none; }
.picker { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--gutter); }
.picker__scrim { position: absolute; inset: 0; background: rgba(0,42,70,.55); backdrop-filter: blur(3px); animation: fade .3s var(--ease); }
.picker__panel {
  position: relative; background: var(--paper); border-radius: var(--r-lg);
  width: min(100%, 760px); max-height: 90vh; overflow-y: auto;
  padding: clamp(1.75rem,4vw,2.75rem); animation: pop .35s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .picker__scrim, .picker__panel { animation: none; } }

.picker__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.picker__close:hover { background: var(--tint); }
.picker__close:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.picker h2 { font-size: clamp(1.6rem,3vw,2.1rem); margin-bottom: .3rem; }
.picker__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .85rem; margin-top: 1.75rem; }
@media (max-width: 640px) { .picker__grid { grid-template-columns: 1fr; } }
.picker__card { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1.25rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.picker__card:hover { border-color: var(--haze); background: var(--tint); }
.picker__card h3 { font-size: 1.2rem; margin: 0; }
.picker__card p { font-size: .8125rem; color: var(--text-soft); margin: 0; }
.picker__card .btn { margin-top: .6rem; justify-content: center; width: 100%; }
.picker__alt { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--text-soft); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Picker memory: the visitor's usual clinic gets quietly promoted. */
.picker__card { position: relative; }
.picker__card.is-usual { border-color: var(--signal); background: var(--tint); }
.picker__badge {
  display: inline-block; align-self: flex-start;
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--signal-text); background: var(--paper);
  border: 1px solid var(--haze); border-radius: var(--r-pill);
  padding: .3rem .7rem; margin-bottom: .25rem;
}

/* Location cards: the buttons must line up across all three regardless of how
   many hours rows or notes a clinic has, so the row reads as one control bar. */
.loc { display: flex; flex-direction: column; }
.loc__actions { margin-top: auto; }
.loc__note { margin-bottom: 0; }


/* Four rooms instead of one placeholder, as a quiet 2x2 mosaic. */
.inside-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.inside-grid img { width: 100%; height: auto; display: block; border-radius: var(--r-md, 14px); aspect-ratio: 5/4; object-fit: cover; }
@media (max-width: 560px) { .inside-grid { gap: .55rem; } }

.picker__legal { font-size: .8125rem; color: var(--muted); margin: 1.1rem 0 0; }
