/* Westlake Eye Specialists: design v2. Shared by every page of the mockup.
   Colour from the logo (plum, gold, sky), ink from their current headlines; Instrument Serif stands in
   for their IvyPresto, Figtree for text. */
:root {
  --ink: #211A25;
  --plum: #4B2A7B;
  --plum-2: #36205A;
  --plum-soft: #EFE9F6;
  --sky: #1E9AD6;
  --sky-soft: #E6F3FA;
  --gold: #F2B634;
  --gold-soft: #FDF3DC;
  --stone: #F5F2EC;
  --paper: #FFFFFF;
  --text: #3A3540;
  --muted: #6D6873;
  --line: #E4DFD7;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; line-height: .96; letter-spacing: -.01em; text-wrap: balance; }  /* tighter (Scott, 2026-11-07) */
h1 em, h2 em, h3 em { color: var(--plum); }
p { margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--plum) 0 33%, var(--gold) 33% 66%, var(--sky) 66%); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--plum); color: #fff; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn.line { border-color: var(--ink); color: var(--ink); background: transparent; }
.arrow::after { content: "\2192"; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
section { scroll-margin-top: 90px; }

/* header */
.util { background: var(--ink); color: #CFC8D6; font-size: 13px; }
.util .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.util nav { display: flex; gap: 22px; }
.util a { text-decoration: none; }
.util b { color: #fff; font-weight: 600; }
header.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
header.top .logo { width: 220px; flex: none; }
.menu { display: flex; gap: 22px; list-style: none; margin: 0 auto 0 8px; padding: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.menu a { text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.menu a[aria-current="page"] { border-bottom-color: var(--gold); }

/* breadcrumb + page hero */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs span { margin: 0 8px; color: var(--line); }
.phero { padding: 30px 0 72px; }
.phero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.phero h1 { font-size: clamp(48px, 6vw, 84px); margin: 16px 0 20px; }
.phero img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.phero .facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.phero .facts div { font-size: 14px; color: var(--muted); }
.phero .facts b { display: block; font-family: var(--display); font-size: 30px; font-weight: 400; color: var(--ink); line-height: 1.1; }

/* in-page sub navigation */
.subnav { position: sticky; top: 73px; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 26px; overflow-x: auto; padding-block: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.subnav a { text-decoration: none; color: var(--muted); }
.subnav a:first-child { color: var(--ink); }

/* generic bands */
.band { padding: 96px 0; }
.band.stone { background: var(--stone); }
.band.plum { background: var(--plum-2); color: #DCD3EA; }
.band.plum h2 { color: #fff; }
.band.plum h2 em { color: var(--gold); }
.band.plum .eyebrow { color: var(--gold); }
.band.plum .eyebrow::before { background: var(--gold); }
.head2 { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head2 h2 { font-size: clamp(40px, 4.4vw, 60px); margin-top: 14px; max-width: 12em; }
.head2 p { max-width: 30em; color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.split h2 { font-size: clamp(40px, 4.4vw, 60px); margin: 14px 0 18px; }

/* cards + lists */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; text-decoration: none; }
.band.stone .card { border-color: transparent; }
.card h3 { font-size: 28px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .go { font-weight: 700; font-size: 14px; color: var(--plum); margin-top: 4px; }
.card .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234B2A7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.cols { columns: 2; column-gap: 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--sky-soft); color: var(--ink); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { border-top: 3px solid var(--plum); padding-top: 18px; counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 40px; color: var(--plum); display: block; line-height: 1; margin-bottom: 10px; }
.step h3 { font-size: 26px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* lens table / comparison */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 15px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; background: var(--stone); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-family: var(--display); font-size: 22px; color: var(--ink); white-space: nowrap; }
.yes { color: var(--plum); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--display); font-size: 24px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-size: 24px; color: var(--plum); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* doctor */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doc { background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: block; }
.doc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.doc .info { padding: 20px 22px 24px; }
.doc h3 { font-size: 30px; }
.doc .role { font-size: 14px; color: var(--muted); margin-top: 4px; }
.profile { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: start; }
.profile .photo { position: sticky; top: 110px; }
.profile .photo img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.profile .photo .ctas { margin-top: 16px; }
.cred { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 8px 0 40px; }
.cred div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cred dt, .cred b { font-weight: 700; color: var(--ink); }
.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.award { background: var(--gold-soft); border-radius: 12px; padding: 18px; }
.award b { display: block; font-family: var(--display); font-size: 24px; font-weight: 400; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.award span { font-size: 14px; color: var(--muted); }

/* location */
.mapbox { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background:
  linear-gradient(35deg, transparent 47.5%, #F9D98B 47.5% 52.5%, transparent 52.5%),
  linear-gradient(-58deg, transparent 49%, #fff 49% 51%, transparent 51%),
  repeating-linear-gradient(0deg, transparent 0 58px, rgba(255,255,255,.95) 58px 61px),
  repeating-linear-gradient(90deg, transparent 0 74px, rgba(255,255,255,.95) 74px 77px),
  radial-gradient(circle at 78% 22%, #D5E8D4 0 70px, transparent 71px),
  radial-gradient(circle at 18% 80%, #D5E8D4 0 90px, transparent 91px),
  #E8EEF2; }
.mapbox .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); background: var(--plum); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 10px; box-shadow: 0 12px 28px rgba(33,26,37,.25); white-space: nowrap; }
.mapbox .pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--plum); border-bottom: 0; }
.mapbox .note { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 6px; }
.infogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.info { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.info h3 { font-size: 22px; margin-bottom: 6px; }
.info p { margin: 0; font-size: 15px; color: var(--muted); }
.others { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.others a { border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; font-size: 14px; color: var(--muted); }
.others a b { display: block; font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--ink); }

/* booking */
.bookgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
form.book { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; box-shadow: 0 18px 50px rgba(33,26,37,.08); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.book label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
form.book input, form.book select, form.book textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
form.book input:focus, form.book select:focus, form.book textarea:focus { outline: none; border-color: var(--plum); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; cursor: pointer; }
.choice.on { border-color: var(--plum); background: var(--plum-soft); }
.formnote { font-size: 13px; color: var(--muted); }
.aside { display: grid; gap: 16px; }
.aside .info { background: var(--stone); border: 0; }

/* closing CTA + footer */
.closing { position: relative; color: #fff; }
.closing img, .closing video { width: 100%; height: 460px; object-fit: cover; object-position: 50% 40%; display: block; }
.closing video.flip { transform: scaleX(-1); object-position: 50% 0 !important; }  /* Scott, 2026-11-14: Dr. Barker on the left of the banner */
/* Dr. Makin's wide clip came back centre-framed, so the banner pans it left off the headline (Scott, 2026-11-14). */
.closing video.panl { transform: scale(1.2); transform-origin: 100% 0; object-position: 50% 8% !important; }
@media (max-width: 1700px) { .closing video.flip { transform: scaleX(-1) scale(1.18); transform-origin: 50% 0; } }  /* zoom a little so the mirrored name tag stays below the fold */
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33,26,37,.15) 30%, rgba(33,26,37,.86) 66%); }
.closing .copy { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; }
.closing .inner { margin-left: auto; max-width: 460px; }
.closing h2 { color: #fff; font-size: clamp(42px, 5vw, 66px); margin-bottom: 16px; }
.closing h2 em { color: var(--gold); }
.closing p { color: #E5DEEB; }
footer { background: var(--ink); color: #A9A1B1; padding: 72px 0 36px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer .logo { width: 220px; margin-bottom: 18px; }
footer h4 { margin: 0 0 14px; color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; margin-top: 20px; display: grid; gap: 8px; font-size: 12px; }

@media (max-width: 1080px) {
  .menu { display: none; }
  header.top .wrap { justify-content: space-between; }
  .phero .grid, .split, .profile, .bookgrid { grid-template-columns: 1fr; gap: 36px; }
  .profile .photo { position: static; max-width: 420px; }
  .cards, .cards.four, .docs, .infogrid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .others { grid-template-columns: repeat(3, 1fr); }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .subnav { top: 69px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .util nav a:not(:first-child) { display: none; }
  header.top .logo { width: 160px; }
  header.top .btn { padding: 10px 14px; font-size: 14px; }
  .band { padding: 64px 0; }
  .phero { padding-bottom: 48px; }
  .cards, .cards.four, .docs, .infogrid, .steps, .awards, .others, .choices, .row2 { grid-template-columns: 1fr; }
  .cols { columns: 1; }
  .cred div { grid-template-columns: 1fr; gap: 2px; }
  .closing img, .closing video { height: 520px; object-position: 30% 50%; }
  .closing video.flip { transform: none; object-position: 75% 0 !important; }  /* phones: no mirror, keep him in frame */
  .closing::after { background: linear-gradient(0deg, rgba(33,26,37,.92) 15%, rgba(33,26,37,.3) 70%); }
  .closing .copy { align-items: flex-end; padding-bottom: 40px; }
  footer .wrap { grid-template-columns: 1fr; }
  form.book { padding: 22px; }
  .subnav { top: 63px; }
}

/* horizontal logo (Westlake's own file, split in two so the eye can blink every few seconds) */
header.top .hlogo { display: inline-flex; align-items: center; height: 34px; flex: none; }
header.top .hlogo img { height: 100%; width: auto; display: block; }
header.top .hlogo .eye { transform-origin: 50% 52%; animation: blink 5.5s ease-in-out infinite; }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 92.5% { transform: scaleY(.06); } 95% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { header.top .hlogo .eye { animation: none; } }
@media (max-width: 600px) { header.top .hlogo { height: 26px; } }

/* the v4 footer (Westlake's own footer content), so the inner pages match the home page */
footer.wfoot { background: #fff; color: var(--muted); padding: 90px 0 50px; font-size: 15px; border-top: 1px solid var(--line); }
footer.wfoot .wrap { display: block; }
.wfoot .fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1080px; margin: 0 auto; }
.wfoot .fgrid h5 { font-family: var(--display); color: var(--ink); font-size: 30px; font-weight: 400; letter-spacing: -.01em; margin: 0 0 24px; }
.wfoot .fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.wfoot .fgrid ul a { color: var(--muted); transition: color .2s; }
.wfoot .fgrid ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wfoot .fbrand { display: grid; justify-items: center; text-align: center; margin-top: 70px; }
.wfoot .flogo { display: grid; justify-items: center; color: var(--ink); text-decoration: none; }
.wfoot .flogo .eye { width: 118px; animation: blink 5.5s ease-in-out infinite; transform-origin: 50% 52%; }
.wfoot .flogo .word { width: 330px; max-width: 80vw; margin-top: -16px; }
.wfoot .flogo span { font-size: 17px; margin-top: -8px; }
.wfoot .social { display: flex; gap: 12px; margin: 28px 0 22px; }
.wfoot .social a { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.wfoot .social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.wfoot .social svg { width: 20px; height: 20px; }
.wfoot .fcopy { font-size: 13.5px; line-height: 2.2; margin: 0; }
@media (max-width: 1100px) { .wfoot .fgrid { grid-template-columns: 1fr 1fr; gap: 44px 30px; } }
@media (max-width: 600px) { .wfoot .fgrid { gap: 40px 20px; } .wfoot .fgrid h5 { font-size: 24px; margin-bottom: 16px; } footer.wfoot { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .wfoot .flogo .eye { animation: none; } }
