/* ============================================================
   Walesby Vision Center — design system
   Palette drawn from the iris: deep teal + amber on warm white.
   Type: Bricolage Grotesque (display) / Albert Sans (body).
   ============================================================ */

:root {
  --ink: #182231;
  --ink-soft: #47536a;
  --ink-faint: #71809a;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --mist: #eef3f2;
  --line: #dde4e4;
  --teal: #0d6b76;
  --teal-deep: #094f58;
  --teal-tint: #e3f0f1;
  --amber: #dd9a2e;
  --amber-deep: #b47716;
  --amber-tint: #fbf1dd;
  --good: #1c7a4d;
  --navy: #14293e;
  --navy-soft: #1d3a55;
  --shadow-card: 0 1px 2px rgba(24, 34, 49, 0.05), 0 8px 24px -12px rgba(24, 34, 49, 0.18);
  --shadow-pop: 0 2px 6px rgba(24, 34, 49, 0.08), 0 24px 48px -16px rgba(24, 34, 49, 0.28);
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", sans-serif;
  --body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 71rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, label:focus-within {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0.7rem 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 44rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(13, 107, 118, 0.55); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-amber { background: var(--amber); color: #2d1e04; box-shadow: 0 10px 24px -10px rgba(221, 154, 46, 0.55); }
.btn-amber:hover { background: #e7ab48; }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-tint); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.9rem; }

/* ---------- utility bar + header ---------- */
.utility {
  background: var(--navy);
  color: #d7e2ea;
  font-size: 0.85rem;
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.2rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.utility a { color: #fff; text-decoration: none; font-weight: 600; }
.utility a:hover { text-decoration: underline; }
.utility .offices { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.utility .tag { color: #9fb3c2; margin-right: 0.35rem; font-weight: 400; }
@media (max-width: 480px) {
  .utility .hours { display: none; }
  .utility .offices { gap: 1rem; }
}

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand img { height: 2.9rem; width: auto; }
.brand .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  white-space: nowrap;
}
.brand .name small { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.09em; color: var(--ink-faint); text-transform: uppercase; }

nav.main { display: flex; align-items: center; gap: 1.15rem; }
nav.main a.link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main a.link:hover { color: var(--teal-deep); border-bottom-color: var(--amber); }
nav.main a.link[aria-current="page"] { color: var(--teal-deep); border-bottom-color: var(--teal); }
nav.main .btn { padding: 0.55rem 1.15rem; font-size: 0.9rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  nav.main.open { display: flex; }
  nav.main a.link { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  nav.main .btn { margin-top: 0.9rem; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(90rem 40rem at 110% -20%, rgba(13, 107, 118, 0.1), transparent 60%),
    radial-gradient(60rem 30rem at -20% 120%, rgba(221, 154, 46, 0.1), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.hero h1 .focus-word { display: inline-block; }
@keyframes focus-in {
  from { filter: blur(9px); opacity: 0.45; }
  to { filter: blur(0); opacity: 1; }
}
.focusing .focus-line {
  display: inline-block;
  animation: focus-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.hero .cta-row { margin-top: 1.6rem; }
.hero .quiet-call { font-size: 0.95rem; color: var(--ink-soft); }
.hero .quiet-call a { font-weight: 700; color: var(--teal-deep); text-decoration: none; }
.hero .quiet-call a:hover { text-decoration: underline; }

.hero-media { position: relative; }
.hero-media .photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  width: 100%;
  height: auto;
}
.hero-media .float-card {
  position: absolute;
  left: -1.6rem;
  bottom: 1.6rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  padding: 0.8rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 15rem;
}
.hero-media .float-card strong { font-family: var(--display); font-size: 1.3rem; color: var(--teal-deep); display: block; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 2.8rem; padding-bottom: 3rem; }
  .hero-media { max-width: 26rem; }
  .hero-media .float-card { left: 1rem; }
}

/* ---------- sections ---------- */
section.band { padding: 4.2rem 0; }
section.band.tight { padding: 3rem 0; }
section.band.mist { background: var(--mist); }
section.band.navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%); color: #e8eff5; }
section.band.navy h2, section.band.navy h3 { color: #fff; }
section.band.navy .eyebrow { color: var(--amber); }
section.band.navy .lede { color: #b8c8d5; }

.section-head { max-width: 46rem; margin-bottom: 2.2rem; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.card .icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.card .icon svg { width: 1.4rem; height: 1.4rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0.35rem 0 0; }
a.card { text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
a.card .go { font-family: var(--display); font-weight: 600; color: var(--teal-deep); font-size: 0.92rem; margin-top: 0.8rem; display: inline-block; }

/* symptom chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips .chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-card);
}
.chips .chip.hot { border-color: var(--amber); background: var(--amber-tint); color: var(--amber-deep); font-weight: 600; }

/* journey */
.journey { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; counter-reset: step; }
.journey .step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem;
  position: relative;
}
.journey .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.journey .step h3 { font-size: 1rem; margin: 0.35rem 0 0.25rem; }
.journey .step p { font-size: 0.85rem; color: #b8c8d5; margin: 0; line-height: 1.5; }
@media (max-width: 1000px) { .journey { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .journey { grid-template-columns: repeat(2, 1fr); } }

/* testimonial */
.quote-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.6rem 1.4rem;
  position: relative;
}
.quote-card::before {
  content: "\201C";
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 0;
  color: var(--amber);
  position: absolute;
  top: 1.9rem;
  left: 1.4rem;
}
.quote-card blockquote { margin: 0.9rem 0 0.9rem 2.1rem; font-size: 1.02rem; color: var(--ink-soft); }
.quote-card cite { margin-left: 2.1rem; font-style: normal; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.quote-card cite small { display: block; color: var(--ink-faint); font-weight: 400; font-size: 0.82rem; }

/* grad cards */
.grad-card { overflow: hidden; padding: 0; }
.grad-card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.grad-card img.letter { object-fit: contain; background: #f2f0ec; padding: 0.75rem; }
.grad-card .body { padding: 1.2rem 1.3rem 1.3rem; }
.grad-card .badge {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--amber-tint);
  color: var(--amber-deep);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.5rem;
}

/* ---------- accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion .a-body { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: 3.4rem 0 2.6rem; background: linear-gradient(180deg, var(--mist), var(--paper)); }
.page-hero .lede { margin-top: 0.4rem; }

/* ---------- forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(13,107,118,0.15); }
.field .hint { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.25rem; }

.intent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-bottom: 1.4rem; }
@media (max-width: 640px) { .intent-grid { grid-template-columns: 1fr; } }
.intent-grid input[type="radio"] { position: absolute; opacity: 0; }
.intent-grid label {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.intent-grid label strong { font-family: var(--display); display: block; margin-bottom: 0.15rem; }
.intent-grid input[type="radio"]:checked + label { border-color: var(--teal); background: var(--teal-tint); box-shadow: 0 0 0 1px var(--teal); }
.intent-grid input[type="radio"]:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- location cards ---------- */
.office-card { padding: 0; overflow: hidden; }
.office-card iframe { width: 100%; height: 220px; border: 0; display: block; }
.office-card > img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.office-card .body { padding: 1.4rem 1.5rem 1.5rem; }
.office-card .body h3 { display: flex; align-items: center; gap: 0.5rem; }
.office-card .addr { color: var(--ink-soft); margin: 0.4rem 0 0.9rem; font-size: 0.98rem; }
.office-card .actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.office-card .actions .btn { font-size: 0.92rem; padding: 0.6rem 1.15rem; }

/* ---------- feature card (image beside text) ---------- */
.feature-card { display: grid; grid-template-columns: 1fr 1.25fr; padding: 0; overflow: hidden; align-items: center; }
.feature-card > img { width: 100%; height: 100%; object-fit: cover; }
.feature-card .body { padding: 1.8rem 2rem; }
@media (max-width: 720px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-card > img { aspect-ratio: 3 / 2; height: auto; }
}

/* ---------- office tour gallery ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .tour-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tour-grid { grid-template-columns: 1fr; } }
.tour-tile { margin: 0; }
.tour-tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.tour-tile figcaption { font-family: var(--display); font-weight: 500; font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.45rem; }

/* ---------- mission list ---------- */
.mission-list { max-width: 46rem; display: grid; gap: 0.9rem; }
.mission-list p { margin: 0; color: #b8c8d5; font-size: 1.05rem; }
.mission-list strong { font-family: var(--display); color: var(--amber); letter-spacing: 0.06em; }

/* ---------- expandable testimonials ---------- */
details.more-quotes { border: 0; margin-top: 2rem; }
details.more-quotes > summary {
  list-style: none; cursor: pointer; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--teal-deep); border: 2px solid var(--teal);
  border-radius: 999px; padding: 0.8rem 1.6rem; width: fit-content; margin: 0 auto;
  transition: background 0.15s ease;
}
details.more-quotes > summary:hover { background: var(--teal-tint); }
details.more-quotes > summary::-webkit-details-marker { display: none; }
details.more-quotes > summary::after { content: " ↓"; }
details.more-quotes[open] > summary::after { content: " ↑"; }
details.more-quotes[open] > summary { margin-bottom: 0.4rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- footer ---------- */
footer.site {
  background: var(--navy);
  color: #b8c8d5;
  padding: 3.4rem 0 2rem;
  font-size: 0.95rem;
}
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 0.7rem; }
footer.site a { color: #e2ecf3; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0.45rem 0; }
footer.site .brandline { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
footer.site .brandline img { height: 2.1rem; filter: invert(1) brightness(1.8); }
footer.site .tagline { font-style: italic; color: #8fa5b5; }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8fa5b5;
}

/* ---------- reveal on scroll (JS-gated: no-JS users see everything) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .focusing .focus-line { animation: none; filter: none; opacity: 1; }
  .btn, a.card { transition: none; }
}

/* ---------- misc ---------- */
.tel { white-space: nowrap; font-variant-numeric: tabular-nums; }
.note-box {
  background: var(--amber-tint);
  border: 1px solid #efd9ae;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--amber-deep);
}
.stat-row { display: flex; gap: 2.6rem; flex-wrap: wrap; margin-top: 2rem; }
.stat-row .stat strong { font-family: var(--display); font-size: 2rem; color: var(--teal-deep); display: block; line-height: 1.1; }
.stat-row .stat span { font-size: 0.88rem; color: var(--ink-faint); }
section.band.navy .stat-row .stat strong { color: var(--amber); }
section.band.navy .stat-row .stat span { color: #9fb3c2; }
