/* Westlake Eye Specialists, design v4 (Goat Sites, 2026-10-26).
   Built on v3 (deep green, lime, mint, Instrument Serif accents) with Scott's inspiration-board notes:
   Pixis-style off-white page, wide display type and a clean header; lots of white space; slightly
   rounded buttons with a focus line that snaps to the button; monochrome photos that colour on hover. */
:root {
  --paper: #F4F3EE; --paper-2: #ECEAE2; --white: #FFFFFF;
  --deep: #0A211F; --deep-2: #12302C; --teal: #2A4E45; --ink: #0E1F1C; --muted: #5B6863; --line: #DAD9D0;
  --lime: #D8FF85; --mint: #8DFDBA; --mist: #DCE5DD; --sky: #A9D3F2; --cream: #FBF2DF;
  --tang: #EC7445; --tang-2: #F6B08F; --sun: #F8D27A;
  --display: "Archivo", "Inter Tight", Arial, sans-serif;
  --sans: "Inter Tight", Inter, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --r-btn: 10px; --r-card: 22px; --r-img: 14px;
  --shadow: 0 18px 40px rgba(14,31,28,.10), 0 2px 6px rgba(14,31,28,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
/* v5: headlines in the serif (Scott, Oct 26); the wide Archivo stays for labels, buttons and card titles */
h1, h2, .display { font-family: var(--display); font-stretch: 112%; font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: 76px; line-height: .94; }  /* tighter (Scott, 2026-11-07) */
h2 { font-size: 50px; line-height: .98; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-stretch: normal; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.center { text-align: center; }
.lede { font-size: 19px; color: var(--muted); max-width: 40em; }
section { position: relative; }
.ph-note { display: inline-block; background: #FFF3C4; color: #6B5300; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 6px; vertical-align: middle; letter-spacing: 0; }

/* buttons: slightly rounded squares; on hover a thin line slides in and wraps the button (Scott's focus-line note) */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: var(--r-btn); font-size: 15px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: background .2s, color .2s, transform .2s; cursor: pointer; font-family: var(--sans); }
.btn::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--focus, #3D7BF5); border-radius: calc(var(--r-btn) + 4px); transform: translate(10px, 9px) scale(.94); opacity: .0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s, inset .35s; pointer-events: none; }
.btn:hover::after, .btn:focus-visible::after { opacity: 1; transform: none; inset: -6px; }
.btn:focus-visible { outline: none; }
.btn.dark { background: var(--deep); color: var(--white); --focus: var(--teal); }
.btn.dark:hover { background: #163a35; }
.btn.lime { background: var(--lime); color: var(--deep); --focus: var(--deep); }
.btn.line { border-color: currentColor; --focus: currentColor; }
.btn.white { background: var(--white); color: var(--deep); --focus: var(--white); }
/* the dot is the yellow from Westlake's logo; a dark button with a dot fades from deep green-black to dark purple */
.btn .dot { width: 26px; height: 26px; border-radius: 50%; background: #FECC67; color: var(--deep); display: grid; place-items: center; margin-left: -8px; }
.btn.dark.grad { background: linear-gradient(90deg, var(--deep) 0%, #2A1846 70%, #43246E 100%); }
.btn.dark.grad:hover { background: linear-gradient(90deg, #163a35 0%, #34205A 70%, #522D85 100%); }
.btn .dot svg { width: 15px; height: 15px; }
/* Scott: arrow in the circle; on a light, bright button the circle goes dark */
.btn.lime .dot { background: var(--deep); color: var(--lime); }

.arrow::after { content: " \2192"; }

/* header: logo with the menu beside it on the left, actions on the right */
.top { position: sticky; top: 0; z-index: 30; background: rgba(245,245,240,.94);  /* pixis.ai off-white (Scott, 2026-10-30) */ backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 0; box-shadow: 0 6px 18px -10px rgba(14,31,28,.28), 0 1px 3px rgba(14,31,28,.05); }  /* no line, a soft shadow for depth (Scott, 2026-10-30) */
.top .wrap { display: flex; align-items: center; gap: 40px; height: 78px; }
/* horizontal logo (Westlake's own file, split in two so the eye can blink every few seconds) */
.hlogo { display: inline-flex; align-items: center; height: 40px; }
.hlogo img { height: 100%; width: auto; display: block; }
.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) { .hlogo .eye { animation: none; } }
.top ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; font-weight: 500; }
.top ul a { position: relative; padding: 6px 0; }
.top ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--deep); transition: right .25s; }
.top ul a:hover::after, .top ul a[aria-current]::after { right: 0; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top .search { width: 35px; height: 35px; border-radius: 50%; background: var(--deep); color: var(--lime); display: grid; place-items: center; }  /* same green as the Book button (Scott, 2026-10-29) */
.top .search svg { width: 15px; height: 15px; }
.top .portal { font-weight: 600; margin-right: 8px; padding: 6px 13px; font-size: 13px; border: 1.5px solid var(--deep); border-radius: var(--r-btn); color: var(--deep); transition: background .2s, color .2s; }  /* outline button in the Book button's green (Scott, 2026-10-29) */
.top .portal:hover { background: var(--deep); color: #fff; }
.top .btn { padding: 7px 14px; font-size: 13px; }  /* smaller and more streamlined (Scott, 2026-10-29) */
.studynote { background: #FFF6D6; color: #5A4500; font-size: 13px; text-align: center; padding: 7px 16px; }

/* announcement bar: half the header's 78px; it stays pinned at the top with the header under it (Scott, 2026-11-08) */
.abar { background: #0A211F; color: #F4F3EE; height: 39px; display: flex; align-items: center; justify-content: center; padding: 0 16px; font: 500 13px/1.2 "Inter Tight", Inter, Arial, sans-serif; text-align: center; }
.abar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abar a { color: #D8FF85; font-weight: 600; margin-left: 6px; text-decoration: none; }
.abar a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .abar { height: 32px; font-size: 11.5px; } }
.abar { position: sticky; top: 0; z-index: 31; }
header.top { top: 39px; }
@media (max-width: 600px) { header.top { top: 32px; } }
section { scroll-margin-top: 130px; }  /* links to a section land below the bar and header */
.abar .aport { position: absolute; right: max(16px, calc((100vw - 1240px) / 2 + 32px)); top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.abar .aport a { margin: 0; padding: 3px 11px; border: 1px solid rgba(216,255,133,.6); border-radius: 6px; color: #D8FF85; font-weight: 600; font-size: 12px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.abar .aport a:hover { background: #D8FF85; border-color: #D8FF85; color: #0A211F; text-decoration: none; }
@media (max-width: 1240px) { .abar { justify-content: flex-start; padding-right: 336px; } }
@media (max-width: 760px) { .abar .aport { display: none; } .abar { justify-content: center; padding-right: 16px; } }
.top .portal { white-space: nowrap; }
.crumbs { padding-top: 60px; }  /* breadcrumbs sit further below the header on inner pages (Scott, 2026-11-08) */
@media (max-width: 600px) { header.top > .wrap { gap: 10px; } header.top .right { gap: 8px; } header.top .right .btn.dark.grad { padding: 8px 11px; font-size: 12px; } }  /* logo, call icon and Schedule an appointment fit on a phone */
header.top .right .btn.dark.grad { gap: 0; }
header.top .hphone { margin-right: 14px; }  /* more room before Schedule an appointment (Scott, 2026-11-08) */
.abar .aport > a { background: none; border: 0; color: #D8FF85; border-radius: 0; padding: 0 6px; display: inline-flex; align-items: center; height: 24px; line-height: 1; font-weight: 600; }  /* plain lime text, no button (Scott, 2026-11-08) */
.abar .aport > a:hover { background: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.abar .aport .asoc { display: flex; align-items: center; gap: 4px; margin-right: 6px; }
.abar .aport .asoc a { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #D8FF85; }
.abar .aport .asoc a:hover { background: #D8FF85; color: #0A211F; }
.abar .aport .asoc svg { width: 14px; height: 14px; }  /* social icons in the top bar (Scott, 2026-11-08) */ header.top .right .btn .xs { white-space: pre; }  /* one normal space before "an appointment" */
/* Top bar in the header's off-white, a hairline between them (Scott, 2026-11-08). Lime text would vanish on the light bar, so links go deep green. */
.abar { background: #F5F5F0; color: #0A211F; border-bottom: 1px solid rgba(10,33,31,.12); box-sizing: border-box; }
.abar a, .abar .aport > a, .abar .aport .asoc a { color: #2A4E45; }
.abar .aport > a:hover { color: #0A211F; }
.abar .aport .asoc a:hover { background: #0A211F; color: #D8FF85; }
/* the bar holds only the portals and social icons now, which phones hide, so phones drop the bar (Scott, 2026-11-08) */
@media (max-width: 760px) { .abar { display: none; } .top { top: 0; } }
/* Scott, 2026-11-08: bigger social icons; each portal sits on a darker off-white block that runs the full height of the bar, top line to bottom line (not a button) */
.abar .aport { top: 0; bottom: 0; transform: none; align-items: stretch; gap: 2px; }
.abar .aport .asoc { gap: 6px; margin-right: 12px; }
.abar .aport .asoc a { width: 30px; height: 30px; align-self: center; }
.abar .aport .asoc svg { width: 18px; height: 18px; }
.abar .aport > a { height: auto; padding: 0 18px; background: #D8FF85; color: #0A211F; transition: background .2s; }  /* lime blocks (Scott, 2026-11-08) */
.abar .aport > a:hover { background: #C6F25E; color: #0A211F; text-decoration: none; }
/* faded lime portal blocks, regular lime on hover (Scott, 2026-11-09) */
.abar .aport > a { background: #E9F9C4; } .abar .aport > a:hover { background: #D8FF85; }
@media (max-width: 420px) { header.top .right .btn .xs { display: none; } }  /* small phones: the button just says Schedule */
/* phone number beside the Schedule button (Scott, 2026-11-08); just the icon on phones */
.top .hphone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: #0E1F1C; white-space: nowrap; text-decoration: none; }
.top .hphone svg { width: 16px; height: 16px; }
.top .hphone:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .top .hphone span { display: none; } .top .hphone { width: 35px; height: 35px; justify-content: center; border-radius: 50%; background: #0A211F; color: #D8FF85; } }  /* the two portal buttons stay on one line */
/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }

/* footer: Westlake's own footer content, light like theirs so the full-colour logo shows */
footer { background: #fff; color: var(--muted); padding: 90px 0 50px; font-size: 15px; border-top: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1080px; margin: 0 auto; }
.fgrid h5 { font-family: var(--serif); color: var(--ink); font-size: 30px; font-weight: 400; letter-spacing: -.01em; margin: 0 0 24px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fgrid ul a { color: var(--muted); transition: color .2s; }
.fgrid ul a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.fbrand { display: grid; justify-items: center; text-align: center; margin-top: 70px; }
.flogo { display: grid; justify-items: center; color: var(--ink); }
.flogo .eye { width: 118px; animation: blink 5.5s ease-in-out infinite; transform-origin: 50% 52%; }
.flogo .word { width: 330px; max-width: 80vw; margin-top: -16px; }
.flogo span { font-size: 17px; letter-spacing: .01em; margin-top: -8px; }
.social { display: flex; gap: 12px; margin: 28px 0 22px; }
.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; }
.social a:hover { background: var(--deep); color: #fff; border-color: var(--deep); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.fcopy { font-size: 13.5px; line-height: 2.2; margin: 0; }
@media (prefers-reduced-motion: reduce) { .flogo .eye { animation: none; } }

/* chat pop-up: questions answered, or talk to someone (Scott's chat note) */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 40; font-size: 15px; }
.chat .launch { width: 62px; height: 62px; border-radius: 50%; background: var(--deep); color: var(--lime); border: 0; display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; margin-left: auto; }
.chat .launch svg { width: 30px; height: 30px; }
.chat .hello { position: absolute; right: 74px; bottom: 10px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); white-space: nowrap; font-size: 14px; }
.chat .panel { position: absolute; right: 0; bottom: 76px; width: 360px; display: none; gap: 10px; }
.chat.open .panel { display: grid; }
.chat.open .hello { display: none; }
.chat .bubble { background: #fff; border-radius: 16px; padding: 16px 18px 16px 70px; position: relative; box-shadow: var(--shadow); }
.chat .bubble .av { position: absolute; left: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.chat .bubble .av img { width: 30px; }
.chat .bubble p { margin: 0 0 6px; }
.chat .opts { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 6px 16px; }
.chat .opts a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.chat .opts a:last-child { border: 0; }
.chat .opts a:hover b { color: var(--teal); text-decoration: underline; }
.chat .opts svg { width: 30px; height: 30px; color: var(--teal); }
.chat .opts b { font-weight: 500; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .top ul, .top .portal { display: none; }
  h1 { font-size: 50px; } h2 { font-size: 36px; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 44px 30px; }
}
@media (max-width: 600px) {
  .hlogo { height: 24px; }
  .wrap { padding: 0 18px; }
  h1 { font-size: 40px; } h2 { font-size: 31px; }
  .top .search { display: none; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 40px 20px; } .fgrid h5 { font-size: 24px; margin-bottom: 16px; } footer { font-size: 14px; }
  .chat .panel { width: calc(100vw - 44px); }
  .chat .hello { display: none; }
}

/* ---- v5: Pixis mega menu (Scott's v4 board note) ---- */
.top ul { gap: 6px; }
.top .mtrig { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; background: none; border-radius: 999px; font: 500 14.5px/1 var(--sans); color: var(--ink); cursor: pointer; transition: background .2s; }
.top .mtrig svg { width: 14px; height: 14px; transition: transform .25s; }
.top .mtrig:hover, .top .mtrig[aria-expanded="true"] { background: rgba(14,31,28,.06); }
.top .mtrig[aria-expanded="true"], .top .mtrig[aria-expanded="true"]:hover { background: #D8FF85; color: #0A211F; }  /* the open menu's name turns lime (Scott, 2026-11-08) */
.top .mtrig[aria-expanded="true"] svg { transform: rotate(180deg); }
.top.mopen { background: #F4F3EE; }
.mega { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-columns: 1fr minmax(260px, 22%); background: #F4F3EE; border-top: 1px solid rgba(14,31,28,.06); box-shadow: 0 30px 40px -30px rgba(10,33,31,.35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.mega .wrap { max-width: none; margin: 0 0 0 max(0px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: minmax(220px, 1fr) minmax(380px, 2fr) 170px; grid-template-areas: "mt grid more" "ms grid more"; grid-template-rows: auto 1fr; gap: 6px 40px; padding-top: 34px; padding-bottom: 40px; height: auto; align-items: start; }
.mega .mt { grid-area: mt; display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-stretch: 112%; font-size: 38px; letter-spacing: -.02em; color: var(--ink); }
.mega .mt i { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .25s; }
.mega .mt:hover i { transform: translateX(4px); }
.mega .mt svg { width: 14px; height: 14px; }
.mega .ms { grid-area: ms; margin: 0; font-size: 15px; color: #3E4A46; }
/* Scott, 2026-11-08: the big title is gone, so the icons start at the left edge where it was; the short line sits above them */
.mega .wrap { grid-template-columns: minmax(420px, 1fr) 210px; grid-template-areas: "grid more"; grid-template-rows: auto; gap: 0 56px; }
.mega .ms { display: none; }
.mega .mmore { background: #EAE8DF; border-radius: 0; padding: 34px 26px 40px; margin: -34px -28px -40px 0; align-self: stretch; }  /* Also: a touch darker than the panel (Scott, 2026-11-08) */
.mega .ms { font-size: 15px; font-weight: 500; }
.mega .mgrid { grid-area: grid; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 34px; }
.mega .mi { display: flex; gap: 14px; align-items: center; border-radius: 10px; padding: 6px; margin: -6px; transition: background .2s; }
.mega .mi:hover { background: rgba(14,31,28,.05); }
.mega .mi i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 800 15px/1 var(--display); font-style: normal; color: #0A211F; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }  /* Pixis gradient tiles, dark marks (Scott, 2026-10-30) */
.mega .mi i svg { color: #0A211F; }
.mega .mi i svg { width: 22px; height: 22px; }
.mega#mega-treatments .mgrid { grid-auto-flow: column; grid-template-rows: repeat(3, auto); }  /* RLE, Cataract, LASIK down the first column; Glaucoma, Dry eye, Eyelid down the second (Scott, 2026-11-08) */  /* treatment icons (Scott, 2026-11-08) */
.mega .mi b { display: block; font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 16.5px; line-height: 1.2; color: var(--ink); margin-bottom: 1px; }  /* Scott: bolder, smaller, subtext tucked under */
.mega .mi small { display: block; font-size: 13.5px; line-height: 1.35; color: #3E4A46; }
.mega .mmore { grid-area: more; display: grid; gap: 10px; align-content: start; font-size: 14px; }
.mega .mmore h6 { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.mega .mmore a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega .mbox { background: var(--lime, #D8FF85);  /* Scott, 2026-11-08: lime, not gray */ padding: 34px 32px; display: grid; align-content: start; gap: 26px; }
.mega .mbox b { font-family: var(--display); font-stretch: 108%; font-weight: 400; font-size: 22px; color: var(--ink); }
.mega .mbox a + a { margin-top: -12px; }
.mega .mi i { box-shadow: 0 8px 16px -6px rgba(10,33,31,.45), 0 2px 4px rgba(10,33,31,.12); }  /* Scott, 2026-11-08: drop shadows on the icons in every menu */  /* the second link sits close under the first */
.mega .mbox a { justify-self: start; font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--ink); padding-bottom: 3px; }
.mshade { position: fixed; inset: 0; z-index: 29; background: rgba(10,33,31,.42); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mshade.on { opacity: 1; pointer-events: auto; }
@media (max-width: 1100px) { .mega { display: none; } }

/* ---- v6: dark header while it sits over the dark Superside hero (home page) ---- */
.top { transition: background .3s, border-color .3s; }
.top.dark:not(.mopen) { background: #0B201D; border-bottom-color: rgba(255,255,255,.08); }
.top.dark:not(.mopen) .mtrig { color: #fff; }
.top.dark:not(.mopen) .portal { color: var(--lime); border-color: var(--lime); }
.top.dark:not(.mopen) .portal:hover { background: var(--lime); color: var(--deep); }
.top.dark:not(.mopen) .mtrig:hover { background: rgba(255,255,255,.08); }
.top.dark:not(.mopen) .search { background: var(--lime); color: var(--deep); }
.top.dark:not(.mopen) .hlogo .word { filter: brightness(0) invert(1); }
.top.dark:not(.mopen) .btn.dark.grad { background: var(--lime); color: var(--deep); }
.top.dark:not(.mopen) .btn .dot { background: var(--deep); color: var(--lime); }

/* Scott, 2026-11-19: on phones the top bar is hidden, so the header sits right at the top (no gap) */
@media (max-width: 760px) { header.top { top: 0 !important; } }
