/* ==========================================================================
   Harmony Speech & Hearing Clinic — stylesheet
   Palette taken from the clinic itself: logo green, door-frame blue,
   aqua walls — plus a warm sunshine accent for actions.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #0F3540;
  --ink-2: #1A4A56;
  --text: #22424B;
  --muted: #587279;
  --line: #D5E6E3;

  --green: #23A455;
  --green-d: #137A43;
  --green-l: #DFF4E6;
  --blue: #2D6BDF;
  --blue-d: #1E52B5;
  --blue-l: #E4EDFD;
  --aqua: #E9F6F3;
  --aqua-2: #D2EDE7;
  --sun: #FFB43F;
  --sun-d: #F09A0E;
  --sun-l: #FFF3DE;
  --red: #E0474C;

  --bg: #F7FBFA;
  --paper: #FFFFFF;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --r-xl: 32px;
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 10px;

  --shadow-card: 0 1px 2px rgba(15, 53, 64, .06), 0 12px 32px -12px rgba(15, 53, 64, .22);
  --shadow-lift: 0 2px 4px rgba(15, 53, 64, .06), 0 28px 60px -24px rgba(15, 53, 64, .38);

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px — generous for older readers */
  line-height: 1.62;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-d); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-stretch: 86%; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 2.95rem); font-stretch: 90%; letter-spacing: -0.025em; }
h3 { font-size: 1.4rem; line-height: 1.2; font-weight: 650; }
h4 { font-size: 1.12rem; font-weight: 650; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .75em 1.45em;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 650; font-size: 1.06rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(240, 154, 14, .9); }
.btn--sun:hover { background: var(--sun-d); color: var(--ink); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-d); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--aqua); color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 44px; padding: .5em 1.1em; font-size: .98rem; }
.btn--lg { min-height: 60px; padding: .85em 1.8em; font-size: 1.15rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--green-d); }
.text-link .icon { transition: transform .2s; }
.text-link:hover { color: var(--ink); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #CFE6E2; font-size: .92rem; }
.topbar__inner { display: flex; gap: 28px; align-items: center; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar__item .icon { color: var(--green); width: 1.05em; height: 1.05em; }
.topbar__call { margin-left: auto; color: #fff; font-weight: 700; }
.topbar__call:hover { color: var(--sun); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(15, 53, 64, .45); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 750; font-size: 1.65rem; letter-spacing: -0.03em; font-stretch: 88%; }
.brand__tag { font-size: .82rem; color: var(--green-d); font-weight: 700; margin-top: 4px; letter-spacing: .01em; }
.brand--light { color: #fff; }
.brand--light .brand__tag { color: #8FE0AE; }

.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav ul { display: flex; list-style: none; gap: 4px; }
.site-nav ul a {
  display: block; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1rem;
  transition: background-color .2s, color .2s;
}
.site-nav ul a:hover { background: var(--aqua); }
.site-nav ul a[aria-current="page"] { background: var(--green-l); color: var(--green-d); }
.site-nav__actions { display: flex; gap: 10px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 50px; height: 50px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--white { background: var(--paper); }
.section--aqua { background: var(--aqua); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { font-size: 1.2rem; color: var(--muted); margin: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.lede { font-size: clamp(1.2rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem;
  box-shadow: 0 1px 0 rgba(15,53,64,.06), 0 6px 18px -10px rgba(15,53,64,.35);
}
.pill .icon { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 82% 46%, rgba(255,255,255,.75) 0 120px, transparent 121px),
    repeating-radial-gradient(circle at 82% 46%, transparent 0 58px, rgba(35, 164, 85, .10) 58px 60px, transparent 60px 118px),
    linear-gradient(160deg, #EEF9F5 0%, #DDF1EC 55%, #E3ECFC 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy h1 { margin: 22px 0 22px; max-width: 12ch; }
.hero__copy .lede { max-width: 33rem; margin-bottom: 30px; }
.hero__assure { list-style: none; display: grid; gap: 10px; margin-top: 32px; }
.hero__assure li { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--ink); }
.hero__assure .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 2.6; }

.hero__visual { position: relative; padding: 0 0 230px 56px; }
.hero__photo {
  margin: 0; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.5deg);
  border: 8px solid #fff;
  aspect-ratio: 4 / 3;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__chart {
  position: absolute; left: 0; bottom: 0; width: min(78%, 420px);
  background: #fff; border-radius: var(--r-lg);
  padding: 18px 18px 12px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.5deg);
}
.hero__chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.hero__chart-head strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.ag-legend { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); font-weight: 700; }
.ag-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ag-legend i { font-style: normal; font-weight: 700; font-family: var(--font-display); font-size: 1rem; line-height: 1; }
.ag-legend .r i { color: var(--red); }
.ag-legend .l i { color: var(--blue); }
.hero__chart figcaption { font-size: .86rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }

/* Audiogram SVG */
.audiogram { width: 100%; height: auto; overflow: visible; }
.ag-band { fill: transparent; }
.ag-band--0 { fill: rgba(35, 164, 85, .08); }
.ag-band--1 { fill: rgba(255, 180, 63, .07); }
.ag-band--2 { fill: rgba(255, 180, 63, .13); }
.ag-band--3 { fill: rgba(224, 71, 76, .08); }
.ag-band--4 { fill: rgba(224, 71, 76, .13); }
.ag-band-label { font: 700 11px var(--font-body); fill: var(--muted); }
.ag-banana { fill: rgba(45, 107, 223, .12); stroke: rgba(45, 107, 223, .35); stroke-dasharray: 4 4; }
.ag-banana-label { font: italic 12px var(--font-body); fill: var(--blue-d); }
.ag-grid { stroke: #DCE8E6; stroke-width: 1; }
.ag-grid--major { stroke: #C7DAD7; }
.ag-tick { font: 700 12px var(--font-body); fill: var(--muted); }
.ag-axis { font: 700 12px var(--font-body); fill: var(--ink); }
.ag-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ag-draw 1.6s cubic-bezier(.6,.05,.3,1) forwards; }
.ag-line--right { stroke: var(--red); animation-delay: .5s; }
.ag-line--left { stroke: var(--blue); animation-delay: .9s; }
.ag-marks circle { fill: #fff; stroke: var(--red); stroke-width: 3; }
.ag-marks path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.ag-marks > * { opacity: 0; animation: ag-pop .35s ease-out forwards; }
.ag-marks--right > * { animation-delay: calc(.55s + var(--i) * .24s); }
.ag-marks--left > * { animation-delay: calc(.95s + var(--i) * .24s); }
@keyframes ag-draw { to { stroke-dashoffset: 0; } }
@keyframes ag-pop { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Contact info band ---------- */
.infoband { background: var(--ink); color: #D3E9E5; position: relative; z-index: 2; }
.infoband__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.infoband__item {
  display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px;
  text-decoration: none; color: inherit; border-right: 1px solid rgba(255,255,255,.1);
  transition: background-color .2s;
}
.infoband__item:last-child { border-right: 0; }
a.infoband__item:hover { background: var(--ink-2); color: #fff; }
.infoband__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.08); }
.infoband__icon .icon { width: 24px; height: 24px; }
.infoband__item:nth-child(1) .infoband__icon { color: var(--sun); }
.infoband__item:nth-child(2) .infoband__icon { color: #4ADE80; }
.infoband__item:nth-child(3) .infoband__icon { color: #7FB0FF; }
.infoband__item:nth-child(4) .infoband__icon { color: #FF9EA1; }
.infoband small { display: block; font-size: .88rem; color: #9CC3BD; }
.infoband strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.12rem; font-weight: 650; line-height: 1.25; }

/* ---------- Journey (the four tests, in order) ---------- */
.journey { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.journey::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 50%, var(--sun) 100%);
  opacity: .5;
}
.journey__step { position: relative; display: flex; flex-direction: column; text-align: left; }
.journey__num {
  position: relative; z-index: 1;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 750; color: #fff;
  background: var(--c, var(--green)); box-shadow: 0 0 0 8px var(--bg), 0 14px 26px -12px var(--c, var(--green));
}
.section--white .journey__num { box-shadow: 0 0 0 8px #fff, 0 14px 26px -12px var(--c, var(--green)); }
.journey__step:nth-child(1) { --c: var(--green); }
.journey__step:nth-child(2) { --c: #1C9C9C; }
.journey__step:nth-child(3) { --c: var(--blue); }
.journey__step:nth-child(4) { --c: var(--sun-d); }
.journey__step h3 { margin-bottom: .4em; }
.journey__step p { color: var(--muted); font-size: 1.05rem; flex: 1; }
.journey__phase { font-size: .9rem; font-weight: 700; color: var(--c); margin-bottom: 6px; }

/* ---------- Hearing aid panels ---------- */
.aids { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.aid-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); }
.aid-panel--sales { background: linear-gradient(150deg, #E3F6EA 0%, #CDEFD9 100%); }
.aid-panel--service { background: linear-gradient(150deg, #E7EFFE 0%, #D3E2FC 100%); }
.aid-panel::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(255,255,255,.55) 22px 24px);
}
.aid-panel__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #fff; margin-bottom: 22px; box-shadow: var(--shadow-card); }
.aid-panel__icon .icon { width: 32px; height: 32px; }
.aid-panel--sales .aid-panel__icon { color: var(--green-d); }
.aid-panel--service .aid-panel__icon { color: var(--blue-d); }
.aid-panel h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.aid-panel > p { font-size: 1.12rem; max-width: 30rem; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 22px 0 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink); }
.ticks .icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fff; color: var(--green-d); stroke-width: 2.6; margin-top: 1px; }
.aid-panel--service .ticks .icon { color: var(--blue-d); }

/* ---------- Signs checklist ---------- */
.signs { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.signs__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signs__list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 18px; font-weight: 700; color: var(--ink); line-height: 1.4;
}
.signs__list .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--sun-l); color: var(--sun-d); flex: none; }
.signs__note { margin-top: 18px; font-size: .98rem; color: var(--muted); }

/* ---------- Clinic gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--aqua-2); min-height: 220px; }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px; width: fit-content;
  background: rgba(15, 53, 64, .82); color: #fff; padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 700;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* ---------- Ear diagram ---------- */
.ear-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ear-figure { margin: 0; background: #fff; border-radius: var(--r-xl); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-card); }
.ear-svg text { font-family: var(--font-body); }
.ear-zones { list-style: none; display: grid; gap: 18px; }
.ear-zones li { display: grid; grid-template-columns: 16px 1fr; gap: 14px; }
.ear-zones .swatch { width: 16px; height: 16px; border-radius: 5px; margin-top: 6px; }
.ear-zones h3 { font-size: 1.2rem; margin-bottom: .2em; }
.ear-zones p { margin: 0; color: var(--muted); font-size: 1.04rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--green); box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  font-family: var(--font-display); font-weight: 650; font-size: 1.18rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137A43' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text); }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    repeating-radial-gradient(circle at 100% 50%, transparent 0 44px, rgba(255,255,255,.09) 44px 46px),
    linear-gradient(120deg, var(--green-d) 0%, #138A6A 45%, var(--blue-d) 100%);
  color: #fff; padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; max-width: 18ch; }
.cta-band p { margin: 0; font-size: 1.18rem; color: #E1F5EC; max-width: 36rem; }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- Contact / map ---------- */
.visit { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: stretch; }
.visit__card { background: #fff; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-card); }
.visit__map { border-radius: var(--r-xl); overflow: hidden; min-height: 420px; background: var(--aqua-2); box-shadow: var(--shadow-card); }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.contact-list { list-style: none; display: grid; gap: 18px; margin: 24px 0 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--aqua); color: var(--green-d); }
.contact-list__icon .icon { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .9rem; font-weight: 700; }
.contact-list a, .contact-list span.v { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { color: var(--green-d); text-decoration: underline; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.landmark { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 14px; border-radius: var(--r); background: var(--sun-l); }
.landmark img { width: 110px; height: 78px; object-fit: cover; border-radius: 10px; flex: none; }
.landmark p { margin: 0; font-size: 1rem; color: var(--ink); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    repeating-radial-gradient(circle at 92% 30%, transparent 0 46px, rgba(35, 164, 85, .10) 46px 48px, transparent 48px 92px),
    linear-gradient(160deg, #EEF9F5 0%, #DDF1EC 60%, #E3ECFC 100%);
  padding: clamp(44px, 6vw, 80px) 0 clamp(44px, 6vw, 72px);
}
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 18ch; margin: 14px 0 16px; }
.page-hero .lede { max-width: 40rem; margin: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--muted); font-weight: 700; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #9DB5B1; }
.crumbs a { color: var(--green-d); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Test detail blocks ---------- */
.test-detail { display: grid; grid-template-columns: 96px 1fr; gap: clamp(20px, 3vw, 40px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.test-detail:first-of-type { border-top: 0; padding-top: 0; }
.test-detail__num {
  width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 750; font-size: 2.1rem; color: #fff; background: var(--c);
}
.test-detail:nth-of-type(1) { --c: var(--green); }
.test-detail:nth-of-type(2) { --c: #1C9C9C; }
.test-detail:nth-of-type(3) { --c: var(--blue); }
.test-detail:nth-of-type(4) { --c: var(--sun-d); }
.test-detail__body { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(20px, 4vw, 48px); }
.test-detail h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.test-detail .lede { font-size: 1.15rem; }
.test-detail__box { background: var(--aqua); border-radius: var(--r-lg); padding: 24px 26px; align-self: start; }
.test-detail__box h3 { font-size: 1.1rem; margin-bottom: 12px; }
.test-detail__box .ticks { margin: 0 0 18px; }
.test-detail__box .ticks li { font-size: 1.02rem; }

.chart-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.chart-feature__card { background: #fff; border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-card); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lift); border: 8px solid #fff; transform: rotate(-1.2deg); }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.values { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.values li { background: #fff; border-radius: var(--r-lg); padding: 28px; border-top: 5px solid var(--c, var(--green)); box-shadow: var(--shadow-card); }
.values li:nth-child(2) { --c: var(--blue); }
.values li:nth-child(3) { --c: var(--sun-d); }
.values .icon { width: 36px; height: 36px; color: var(--c, var(--green)); margin-bottom: 16px; }
.values h3 { font-size: 1.25rem; }
.values p { margin: 0; color: var(--muted); font-size: 1.04rem; }

/* ---------- Booking form ---------- */
.booking { display: grid; grid-template-columns: 1.35fr .65fr; gap: 32px; align-items: start; }
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-card); }
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: var(--r-sm); background: #FCFEFE;
  font-size: 1.06rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background: #FCFEFE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F3540' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(35, 164, 85, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field__error { color: #B42318; font-size: .95rem; font-weight: 700; }
.field__hint { color: var(--muted); font-size: .92rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { position: relative; }
.field .slot input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.slot span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 58px; padding: 8px 10px; border-radius: var(--r-sm); border: 2px solid var(--line);
  font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1.25; font-size: .98rem;
  transition: border-color .2s, background-color .2s;
}
.slot input:checked + span { border-color: var(--green); background: var(--green-l); color: var(--green-d); }
.slot input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.field .consent input { width: 22px; height: 22px; min-height: 0; padding: 0; margin-top: 3px; accent-color: var(--green); flex: none; }
.consent span { font-weight: 400; color: var(--text); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-actions small { color: var(--muted); }

.alert { border-radius: var(--r); padding: 16px 18px; margin-bottom: 22px; font-weight: 700; display: flex; gap: 12px; }
.alert--error { background: #FEECEC; color: #8A1C1C; border: 1px solid #F8C9C9; }
.alert .icon { width: 24px; height: 24px; flex: none; }

.booking-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card { background: var(--ink); color: #D3E9E5; border-radius: var(--r-xl); padding: 28px; }
.aside-card h3 { color: #fff; font-size: 1.3rem; }
.aside-card .ticks li { color: #fff; font-weight: 400; }
.aside-card .ticks .icon { background: var(--green); color: #fff; }
.aside-card--light { background: var(--sun-l); color: var(--ink); }
.aside-card--light h3 { color: var(--ink); }
.aside-card--light p { margin-bottom: 16px; }

.success { text-align: center; max-width: 40rem; margin-inline: auto; }
.success__badge { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 12px var(--green-l); }
.success__badge .icon { width: 50px; height: 50px; stroke-width: 2.6; }
.success__summary { text-align: left; background: var(--aqua); border-radius: var(--r-lg); padding: 22px 26px; margin: 28px 0; }
.success__summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.success__summary dt { color: var(--muted); font-weight: 700; }
.success__summary dd { margin: 0; color: var(--ink); font-weight: 700; }
.success .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #BCD6D1; padding: 80px 0 0; margin-top: 0; overflow: hidden; }
.site-footer__waves {
  position: absolute; left: -200px; top: -200px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(143, 224, 174, .07) 34px 36px);
}
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer__brand p { margin: 20px 0; max-width: 22rem; }
.site-footer__title { font-size: 1.05rem; color: #fff; margin: 0 0 14px; letter-spacing: 0; }
.site-footer__title:not(:first-child) { margin-top: 28px; }
.site-footer__links { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #DCEFEB; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer__address { line-height: 1.6; }
.site-footer__address strong { color: #fff; }
.site-footer__directions { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-weight: 700; color: #8FE0AE !important; }
.site-footer__hours { list-style: none; display: grid; gap: 10px; }
.site-footer__hours li span { display: block; }
.site-footer__hours li span:first-child { font-size: .88rem; color: #8FB0AA; }
.site-footer__hours li span:last-child { color: #fff; font-weight: 700; }
.site-footer__contact { list-style: none; display: grid; gap: 14px; margin-bottom: 24px; }
.site-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__contact .icon { color: #8FE0AE; margin-top: 4px; }
.site-footer__contact small { display: block; font-size: .82rem; color: #8FB0AA; }
.site-footer__contact a { font-weight: 700; color: #fff; word-break: break-word; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.site-footer__social a:hover { background: var(--green); color: #fff; }
.site-footer .btn--sun, .site-footer .btn--sun:hover { color: var(--ink); text-decoration: none; }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: #8FB0AA; }
.site-footer__bottom p { margin: 0; }

/* ---------- Floating WhatsApp & mobile bar ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 62px; min-width: 62px; padding: 0 16px; border-radius: 999px; justify-content: center;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { background: #1EBE5A; color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s ease, margin .3s ease; margin-left: -10px; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 140px; margin-left: 0; }
.mobile-bar { display: none; }

/* ---------- 404 ---------- */
.notfound { text-align: center; max-width: 36rem; margin-inline: auto; }
.notfound__code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--green); letter-spacing: -0.05em; font-stretch: 80%; }
.notfound .btn-row { justify-content: center; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1280px; margin: 40px auto; padding: 0 20px; }
.admin-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 960px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 650; position: sticky; top: 0; }
.admin-table tr:hover td { background: var(--aqua); }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-bar input { min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); min-width: 260px; }
.login-card { max-width: 420px; margin: 10vh auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav ul a { padding: 10px 10px; }
  .site-nav__call { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .topbar__hours { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 18px;
    background: #fff; padding: 18px var(--gutter) 28px;
    border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(15, 53, 64, .5);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
  }
  .is-scrolled-past-top .site-nav { top: var(--header-h); }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { padding: 14px 16px; font-size: 1.15rem; border-radius: 14px; }
  .site-nav__actions { flex-direction: column; }
  .site-nav__actions .btn { width: 100%; min-height: 54px; }
  .site-nav__call { display: inline-flex; }

  .hero__grid, .signs, .ear-wrap, .chart-feature, .split, .visit, .booking { grid-template-columns: 1fr; }
  .hero__copy h1 { max-width: 14ch; }
  .hero__visual { padding: 0 0 240px 48px; max-width: 640px; }
  .hero__chart { width: min(80%, 430px); }
  .infoband__grid { grid-template-columns: 1fr 1fr; }
  .infoband__item:nth-child(2) { border-right: 0; }
  .infoband__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }

  .journey { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .journey::before { display: none; }
  .aids { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery figure:first-child { grid-row: auto; grid-column: span 2; min-height: 320px; }
  .gallery figure:nth-child(4) { grid-column: span 2; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .test-detail__body { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .booking-aside { position: static; }
  .split__media { order: -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1.0625rem; padding-bottom: 72px; }
  .topbar__item:first-child { display: none; }
  .topbar__call { margin-left: 0; }
  .topbar__inner { justify-content: center; }
  .brand__name { font-size: 1.45rem; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__tag { font-size: .74rem; }

  .hero__visual { padding: 0 6px; }
  .hero__photo { transform: rotate(1deg); }
  .hero__chart { position: relative; width: 100%; margin-top: -56px; transform: rotate(-1deg); }
  .hero__chart-head { flex-wrap: wrap; }
  .hero__photo { border-width: 6px; }
  .hero__chart { padding: 12px 12px 8px; }
  .ag-legend { font-size: .74rem; gap: 10px; }
  .btn-row .btn { flex: 1 1 100%; }

  .infoband__grid { grid-template-columns: 1fr; }
  .infoband__item { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.1); padding: 18px 4px; }
  .infoband__item:last-child { border-bottom: 0; }
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey__step { padding-left: 88px; min-height: 120px; padding-bottom: 30px; }
  .journey__num { position: absolute; left: 0; top: 0; width: 64px; height: 64px; font-size: 1.6rem; }
  .journey__step:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 72px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--c); opacity: .3; }
  .signs__list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure, .gallery figure:first-child, .gallery figure:nth-child(4) { grid-column: auto; min-height: 240px; }
  .test-detail { grid-template-columns: 1fr; }
  .test-detail__num { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: 1fr; }
  .success__summary dl { grid-template-columns: 1fr; gap: 2px; }
  .success__summary dd { margin-bottom: 10px; }
  .site-footer__grid { grid-template-columns: 1fr; }

  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(15,53,64,.45);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; border-radius: 14px; text-decoration: none; font-weight: 700; color: var(--ink);
    background: var(--aqua);
  }
  .mobile-bar a:nth-child(2) { background: #DCF8E6; color: #128C47; }
  .mobile-bar__book { background: var(--sun) !important; }
  .mobile-bar .icon { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .ag-line { stroke-dashoffset: 0; }
  .ag-marks > * { opacity: 1; }
}

@media print {
  .topbar, .site-header, .wa-float, .mobile-bar, .site-footer__waves { display: none !important; }
  body { background: #fff; }
}
.section--cta { padding-top: 0; }

/* ---------- Hearing aid styles ---------- */
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.style-card { background: #fff; border-radius: var(--r-lg); padding: 26px 24px 28px; box-shadow: var(--shadow-card); border-top: 5px solid var(--c, var(--green)); }
.style-card:nth-child(2) { --c: #1C9C9C; }
.style-card:nth-child(3) { --c: var(--blue); }
.style-card:nth-child(4) { --c: var(--sun-d); }
.style-card__art { width: 100%; height: 150px; color: var(--c, var(--green)); background: var(--aqua); border-radius: var(--r); margin-bottom: 20px; padding: 8px; }
.style-card h3 { font-size: 1.2rem; }
.style-card p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.factors { list-style: none; display: grid; gap: 20px; margin-top: 28px; }
.factors li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.factors__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green-l); color: var(--green-d); }
.factors__icon .icon { width: 26px; height: 26px; }
.factors h3 { font-size: 1.15rem; margin-bottom: .2em; }
.factors p { margin: 0; color: var(--muted); font-size: 1.04rem; }

/* ---------- Contact quick actions ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick__item { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--muted); transition: border-color .2s, background-color .2s; }
.quick__item:hover { border-color: var(--green); background: #fff; color: var(--muted); }
.quick__item strong { font-family: var(--font-display); color: var(--ink); font-size: 1.2rem; font-weight: 650; }
.quick__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--aqua); color: var(--green-d); margin-bottom: 12px; }
.quick__icon .icon { width: 26px; height: 26px; }
.quick__icon--wa { background: #DCF8E6; color: #128C47; }
.quick__icon--blue { background: var(--blue-l); color: var(--blue-d); }
.quick__icon--sun { background: var(--sun-l); color: var(--sun-d); }
.visit__map--tall, .visit__map--tall iframe { min-height: 560px; }

/* ---------- Booking aside steps ---------- */
.next-steps { list-style: none; counter-reset: ns; display: grid; gap: 16px; margin-top: 16px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: #C9E3DE; }
.next-steps li::before { content: counter(ns); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-family: var(--font-display); font-weight: 750; }
.next-steps strong { color: #fff; }

.test-detail__box p { margin: 0; font-size: 1rem; }
.chart-feature__card { margin: 0; }

@media (max-width: 1100px) {
  .styles, .quick { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .styles, .quick { grid-template-columns: 1fr; }
  .visit__map--tall, .visit__map--tall iframe { min-height: 380px; }
}
