/* Self-hosted fonts (SIL OFL, via Fontsource). The site CSP blocks Google Fonts. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Bonagel Eye Clinic. Hairline-ruled grid, ink on cool paper, one signal colour for action. */
:root {
  --ink: #0c1b2a;
  --ink-2: #1c3146;
  --paper: #f1f3f4;
  --white: #ffffff;
  --line: #cdd4d9;
  --muted: #55646f;
  --signal: #d23a12;
  --signal-dark: #b02e0b;
  --open: #1f8a4c;
  --blur: 0px;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font: 400 18px/1.6 var(--text); color: var(--ink); background: var(--paper); padding-bottom: 76px; -webkit-font-smoothing: antialiased; }
img, svg, iframe { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin-bottom: 14px; }
.mono { font-family: var(--mono); font-size: .95em; letter-spacing: 0; }
.muted { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)) 0 max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
section { padding: 80px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.kicker { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; }
.kicker.light { color: #9db4c7; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { color: var(--muted); }
.fine { font-size: .9rem; opacity: .8; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem/1 var(--display); letter-spacing: -.02em; margin-right: auto; }
.brand small { display: block; font: 500 .62rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.top nav { display: none; gap: 24px; }
.top nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.top nav a:hover { text-decoration: underline; }
.status { display: none; align-items: center; gap: 8px; font: 500 .8rem var(--mono); margin: 0; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open .dot { background: var(--open); box-shadow: 0 0 0 4px rgba(31, 138, 76, .2); }
.status.is-closed .dot { background: var(--signal); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 4px; font: 600 1rem var(--text); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.textbtn { background: none; border: 0; font: 500 .9rem var(--mono); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--muted); padding: 10px 0; }
.textbtn.center { display: block; margin: 6px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: start; }
.clarity { filter: blur(var(--blur)); transition: filter .2s linear; margin-bottom: 26px; }
.lead { font-size: 1.2rem; max-width: 36ch; color: var(--ink-2); }
.snellen { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; margin: 34px 0 6px; padding-top: 20px; border-top: 1px solid var(--ink); font-family: var(--mono); font-weight: 500; line-height: 1; color: var(--ink); user-select: none; }

/* booking ticket */
.ticket { background: var(--white); border: 1px solid var(--ink); border-radius: 6px; padding: 26px; box-shadow: 8px 8px 0 var(--ink); }
.ticket-head { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ticket-head h2 { font-size: 1.7rem; margin-bottom: 6px; }
.ticket-head p { color: var(--muted); font-size: .95rem; margin: 0; }
.ticket fieldset { border: 0; margin-bottom: 20px; min-width: 0; }
.ticket legend { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.ticket legend label { cursor: pointer; }
.seg { display: grid; gap: 8px; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg-days { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.opt, .chip { position: relative; display: block; }
.opt input, .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.opt span, .chip span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-weight: 500; font-size: .98rem; text-align: center; line-height: 1.2; transition: .12s; }
.chip small { font: 400 .72rem var(--mono); color: var(--muted); margin-top: 2px; }
.opt input:checked + span, .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span small { color: #b8c8d6; }
.opt input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.ticket input[type="text"] { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 4px; padding: 0 14px; font: 500 1rem var(--text); background: var(--paper); color: var(--ink); }
.ticket input[type="text"]:focus { border-color: var(--ink); outline: 3px solid var(--signal); outline-offset: 1px; }
.err { color: var(--signal-dark); font-size: .9rem; margin: 6px 0 0; }
.preview { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.alt-call { margin: 6px 0 0; text-align: center; font-size: .95rem; color: var(--muted); }

/* facts bar */
.facts-bar { padding: 0; background: var(--ink); color: #fff; }
.facts-grid { display: grid; gap: 0; grid-template-columns: 1fr 1fr; }
.facts-grid > div { padding: 24px 0; border-bottom: 1px solid #2a4157; }
.facts-grid > div:nth-child(odd) { padding-right: 16px; }
.facts-grid > div:nth-child(even) { padding-left: 16px; border-left: 1px solid #2a4157; }
.facts-grid h3 { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: #9db4c7; margin-bottom: 8px; }
.facts-grid p { margin: 0; line-height: 1.45; font-size: 1rem; }
.facts-grid a { text-decoration: none; }
.facts-grid a:hover { text-decoration: underline; }
.rate { font: 700 1.9rem/1 var(--display); }
.stars { color: #f2b13d; letter-spacing: 2px; }
.facts-grid .muted { color: #9db4c7; }

/* services */
.rows { list-style: none; border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 40px 1fr; gap: 6px 18px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ic { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.row-main h3 { margin-bottom: 8px; font-size: 1.45rem; }
.row-main p { max-width: 58ch; margin: 0; color: var(--ink-2); }
.rowlink { grid-column: 2; justify-self: start; margin-top: 10px; background: none; border: 0; border-bottom: 2px solid var(--signal); font: 600 1rem var(--text); color: var(--ink); cursor: pointer; padding: 4px 0; }
.rowlink:hover { color: var(--signal-dark); }
.symptoms { margin-top: 56px; }
.symptoms h3 { margin-bottom: 14px; }
.symptoms ul { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.symptoms li { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* steps */
.steps-sec { background: var(--white); border-block: 1px solid var(--line); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 22px 0 22px 56px; position: relative; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 22px; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 500 .9rem var(--mono); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }

/* vision check */
.check { background: var(--ink); color: #fff; }
.check h2 { color: #fff; margin-bottom: 16px; }
.check p { color: #d0dde8; }
.check-grid { display: grid; gap: 36px; align-items: center; }
.panel { background: var(--white); color: var(--ink); border-radius: 6px; padding: 26px; }
.panel p, .panel li { color: var(--ink); }
.check-card ol { margin: 0 0 20px 22px; }
.check-top { display: flex; justify-content: space-between; font-weight: 500; font-size: .9rem; gap: 8px; flex-wrap: wrap; }
.e-stage { height: 190px; display: grid; place-items: center; }
.e { --s: 80px; width: var(--s); height: var(--s); background:
  linear-gradient(#000 0 0) 0 0 / 100% 20% no-repeat,
  linear-gradient(#000 0 0) 0 40% / 100% 20% no-repeat,
  linear-gradient(#000 0 0) 0 80% / 100% 20% no-repeat,
  linear-gradient(#000 0 0) 0 0 / 20% 100% no-repeat; transition: transform .15s; }
.pad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-areas: ". up ." "left . right" ". down ."; gap: 8px; justify-content: center; margin: 4px 0; }
.padbtn { height: 64px; border-radius: 4px; border: 1px solid var(--line); background: var(--paper); font-size: 1.3rem; color: var(--ink); cursor: pointer; }
.padbtn:hover, .padbtn:active { background: var(--ink); color: #fff; border-color: var(--ink); }
.padbtn.up { grid-area: up; } .padbtn.left { grid-area: left; } .padbtn.right { grid-area: right; } .padbtn.down { grid-area: down; }
.check-done h3 { font-size: 1.6rem; margin-bottom: 8px; }
.check-done .btn { margin-top: 12px; }

/* reviews */
.reviews { background: var(--white); border-bottom: 1px solid var(--line); }
.reviews-grid { display: grid; gap: 32px; align-items: center; }
.score { border-top: 1px solid var(--ink); padding-top: 18px; }
.big { font: 500 clamp(5rem, 18vw, 8rem)/.9 var(--mono); letter-spacing: -.05em; }
.score .stars { font-size: 1.5rem; margin: 10px 0 6px; }
.score p { margin: 0; color: var(--muted); font: 500 .85rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.reviews h2 { margin-bottom: 14px; }
.reviews p { max-width: 54ch; }
.reviews .btn { margin-top: 10px; }

/* visit */
.visit-grid { display: grid; gap: 40px; align-items: start; }
.info { display: grid; gap: 0; border-top: 1px solid var(--ink); margin-bottom: 26px; }
.info > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info dt { font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-top: 4px; }
.info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 500; color: var(--ink); background: linear-gradient(90deg, rgba(210, 58, 18, .08), transparent); }
.hours tr.today th::after { content: "  today"; color: var(--signal-dark); font-size: .8em; }
.map { border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; min-height: 380px; background: var(--white); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* faq */
.faq { padding-top: 0; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--ink); }
summary { cursor: pointer; font: 600 1.1rem var(--text); padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.5rem/1 var(--mono); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 20px; color: var(--ink-2); max-width: 60ch; margin: 0; }

/* footer */
footer { background: var(--ink); color: #c4d2de; padding: 44px 0 22px; font-size: .95rem; }
footer a { color: #fff; }
footer strong { color: #fff; font: 700 1.3rem var(--display); display: block; margin-bottom: 6px; }
.foot { display: grid; gap: 22px; }
.legal { max-width: 1160px; margin: 26px auto 0; padding: 16px max(20px, env(safe-area-inset-left, 0px)) 0; border-top: 1px solid #2a4157; font: 400 .75rem var(--mono); opacity: .7; }

/* sticky mobile bar */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: var(--white); border-top: 1px solid var(--ink); }
.sticky a { display: grid; place-items: center; min-height: 50px; border-radius: 4px; font-weight: 700; text-decoration: none; }
.s-call { background: var(--paper); border: 1px solid var(--ink); color: var(--ink); }
.s-book { background: var(--signal); color: #fff; }

@media (min-width: 720px) {
  .top nav { display: flex; }
  .status { display: flex; }
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .facts-grid > div { border-bottom: 0; padding: 28px 24px; border-left: 1px solid #2a4157; }
  .facts-grid > div:first-child { border-left: 0; padding-left: 0; }
  .facts-grid > div:nth-child(odd), .facts-grid > div:nth-child(even) { padding-right: 24px; }
  .row { grid-template-columns: 40px 1fr auto; align-items: center; }
  .rowlink { grid-column: 3; margin: 0; }
  .symptoms ul { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 28px; border-top: 0; }
  .steps li { padding: 0; border: 0; border-top: 1px solid var(--ink); padding-top: 62px; }
  .steps li::before { top: 18px; }
  .foot { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .check-grid, .visit-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .reviews-grid { grid-template-columns: 340px 1fr; gap: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .clarity { filter: none !important; }
}
[hidden] { display: none !important; }

/* hero photo (stock placeholder) */
.hero-photo { margin: 34px 0 0; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--ink); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% 40%; }
