/* Causeway Optical and Coastal Vision Clinic. Young Serif headings, Lexend body. */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/YoungSerif-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/assets/fonts/Lexend-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/assets/fonts/Lexend-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --navy: #10457b;
  --navy-dk: #0b3159;
  --ink: #1d2a37;
  --muted: #47566a;
  --harbour: #edf3f8;
  --line: #d3dfea;
  --lantern: #e0272d;
  --white: #ffffff;
  --head: "Young Serif", Georgia, serif;
  --body: "Lexend", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-dk); }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap > p:last-child, .wrap > div > p:last-child, .split > div > p:last-child { margin-bottom: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons: square-shouldered, never pills */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 6px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-dk); border-color: var(--navy-dk); color: #fff; }
.btn-line { background: #fff; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.bar { width: min(1280px, 100% - 40px); display: flex; align-items: center; gap: 18px; min-height: 116px; transition: min-height .25s ease; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.brand img { height: 92px; width: auto; transition: height .25s ease; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.b1 { font-family: var(--head); font-size: 1.45rem; color: var(--navy); }
.b2 { font-size: .98rem; color: var(--muted); }
.site-header.shrunk .bar { min-height: 76px; }
.site-header.shrunk .brand img { height: 60px; }
.nav { display: flex; gap: 4px; }
.nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--lantern); }
.search { position: relative; }
.search input { width: 130px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 6px; font: inherit; font-size: 1rem; background: var(--harbour); color: var(--ink); }
.search input:focus { background: #fff; border-color: var(--navy); }
.search-results { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(16, 69, 123, .14); padding: 6px; z-index: 60; }
.search-results a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); min-height: 44px; }
.search-results a:hover { background: var(--harbour); color: var(--ink); }
.search-results strong { display: block; color: var(--navy); }
.search-results span { font-size: .92rem; color: var(--muted); }
.search-results p { margin: 8px 12px; font-size: 1rem; }
.icon-btn, .mmenu summary { display: none; flex-shrink: 0; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; list-style: none; }
.mmenu summary::-webkit-details-marker { display: none; }
.icon-btn svg, .mmenu svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; }
.mmenu { position: relative; }
.mmenu-panel { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; width: 260px; box-shadow: 0 10px 24px rgba(16, 69, 123, .14); }
.mmenu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; color: var(--ink); font-weight: 700; border-radius: 6px; }
.mmenu-panel a:hover { background: var(--harbour); color: var(--navy); }

@media (max-width: 1320px) {
  .nav, .head-btn { display: none; }
  .icon-btn, .mmenu summary { display: inline-flex; }
  .bar { gap: 10px; min-height: 84px; }
  .brand img { height: 68px; }
  .search { position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 10px 20px 14px; border-bottom: 1px solid var(--line); display: none; }
  .site-header.search-open .search { display: block; }
  .search input { width: 100%; }
  .search-results { left: 20px; right: 20px; width: auto; }
}
@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand img { height: 62px; }
  .b1 { font-size: 1.12rem; white-space: normal; width: 6.2em; }
  .b2 { display: none; }
  .bar { gap: 8px; }
}

/* Sections */
section { padding: 88px 0; }
.band { background: var(--harbour); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split.top { align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.three h2 { font-size: 1.7rem; }
.photo img { width: 100%; border-radius: 4px; }
.lede { font-size: 1.28rem; color: var(--ink); }
.center { text-align: center; }

.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; max-height: 78vh; }
.new-pts { font-weight: 700; color: var(--navy); border-left: 4px solid var(--lantern); padding-left: 14px; }
.new-pts { border-left: 0; padding-left: 0; }
.new-pts::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--lantern); margin-right: 10px; vertical-align: 1px; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.6em; }
ul.ticks li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--navy); }
ul.cols { columns: 2; column-gap: 40px; padding-left: 1.2em; }
ul.cols li { margin-bottom: 8px; break-inside: avoid; }
.brand-list { font-family: var(--head); font-size: 1.5rem; line-height: 1.7; color: var(--navy); }

/* Signature: which is clearer, one or two? The two lenses swap focus on their own. */
.lens { position: relative; }
.lens-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding: 7% 6%; background: #26323f; border-radius: 120px; }
.lens-eye { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid #0e1620; box-shadow: inset 0 0 0 3px #4a5a6b; }
.lens-view { width: 100%; height: 100%; background: #2b3a48 url("/assets/images/exam-room-800.webp") 30% 50% / cover no-repeat; transition: filter 1s ease, transform 1s ease; }
.lens-eye.soft .lens-view { filter: blur(7px) saturate(.85); transform: scale(1.04); }
.lens-num { text-align: center; font-family: var(--head); font-size: 2.2rem; line-height: 1; color: #b9c6d3; transition: color .6s ease; }
.lens-num.on { color: #ff7a7e; }
.lens-pair { row-gap: 18px; }

/* Offices */
.offices-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.offices-wrap .offices { grid-template-columns: 1fr; gap: 20px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.band .office { border-color: #fff; }
.office h2, .office h3 { font-size: 1.45rem; }
.addr { color: var(--ink); }
.office-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hours { margin: 0 0 20px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.office .note { font-size: 1rem; color: var(--muted); margin: 18px 0 0; }

.docs-h { text-align: center; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 760px; margin: 0 auto 24px; }
.doc { background: #fff; border-radius: 6px; padding: 32px; text-align: center; border-top: 5px solid var(--navy); }
.doc h3 { margin-bottom: 4px; }
.doc p { margin: 0; color: var(--muted); }

.page-head { padding: 64px 0 80px; }
.page-head.plain { padding-bottom: 40px; }
.page-head.short { padding: 96px 0; }
.page-head .photo img { max-height: 70vh; object-fit: cover; }

/* Form */
.form { display: grid; gap: 6px; background: #fff; }
.form label { font-weight: 700; margin-top: 10px; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #8796a8; border-radius: 6px; font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(16, 69, 123, .25); }
.form .btn { margin-top: 18px; justify-self: start; }

/* Footer */
.site-footer { background: #fff; border-top: 4px solid var(--navy); padding: 56px 0 96px; }
.foot { display: grid; grid-template-columns: 240px 1fr 1fr auto; gap: 40px; align-items: start; }
.foot-logo { width: 240px; }
.foot p { margin: 0 0 6px; }
.foot .name { font-family: var(--head); color: var(--navy); font-size: 1.3rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.legal p { margin: 0; }
.legal a { display: inline-flex; min-height: 44px; align-items: center; }

.callbar { display: none; }

@media (max-width: 900px) {
  section { padding: 40px 0; }
  .hero { padding: 28px 0 40px; }
  .hero-grid, .split, .offices-wrap, .three { grid-template-columns: 1fr; gap: 32px; }
  .split.rev > :first-child { order: 0; }
  .hero-photo img { max-height: none; aspect-ratio: 4 / 4.2; }
  .offices, .docs { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 20px; }
  .foot-logo { width: 200px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .callbar .btn { padding: 8px 6px; font-size: .9rem; white-space: nowrap; }
  ul.cols { columns: 1; }
  .page-head { padding: 28px 0 40px; }
  .page-head.short { padding: 56px 0; }
  .lens-pair { border-radius: 80px; }
}
