/* Al Bait Opticals - website prototype
   Design tokens. #17AAA0 (teal) and #231F20 (charcoal) were read from the live site (26 Nov 2026).
   All other colours are PROPOSED extensions, not official brand colours. */
:root {
  --teal: #17AAA0; --teal-600: #0E8A82; --teal-800: #0A5C5A; --teal-900: #073F40;
  --ink: #231F20; --ink-soft: #3A3536; --muted: #5E6568; --line: #E3E0D8;
  --cream: #F7F5EF; --paper: #FFFFFF; --mint: #E5F5F3; --gold: #B8935A; --gold-soft: #E1C48A;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 8px; --r: 16px; --r-lg: 28px;
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --shadow-sm: 0 1px 2px rgba(35,31,32,.06), 0 2px 8px rgba(35,31,32,.05);
  --shadow: 0 10px 30px -12px rgba(7,63,64,.28);
  --container: 1180px; --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 1.0625rem; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--s-4); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--s-4); }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--teal-600); margin-bottom: var(--s-3); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* announcement */
.announce { background: var(--ink); color: #EDEAE3; font-size: .875rem; }
.announce .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.announce a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.announce span { display: inline-flex; align-items: center; gap: .45rem; }
.announce .icon { color: var(--teal); }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(35,31,32,.45); }
.site-header .container { width: min(100% - 2rem, 1360px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 42px; height: 42px; }
.logo b { display: block; font-family: var(--font-display); font-size: 1.28rem; letter-spacing: .12em; line-height: 1; }
.logo small { display: block; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--teal-600); margin-top: 4px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .1rem; align-items: center; }
.nav li { position: relative; }
.nav a, .nav button.nav-link { white-space: nowrap; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: 0; padding: .65rem .8rem; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; transition: background .2s, color .2s; }
.nav a:hover, .nav button.nav-link:hover, .nav li.open > button { background: var(--mint); color: var(--teal-800); }
.nav [aria-current="page"], .nav li.current > a, .nav li.current > button { color: var(--teal-800); background: var(--mint); }
.nav .chev { width: 1em; height: 1em; transition: transform .2s; }
.nav li.open > button .chev { transform: rotate(180deg); }
.dropdown { position: absolute; left: 0; top: calc(100% + 8px); min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; list-style: none; margin: 0; z-index: 20; display: block; }
.nav li.open > .dropdown, .nav li:hover > .dropdown, .nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; width: 100%; border-radius: var(--r-sm); font-weight: 500; padding: .55rem .75rem; }
.dropdown .dd-head { font-weight: 700; color: var(--ink); }
.dropdown .dd-sub a { padding-left: 1.5rem; color: var(--muted); font-size: .92rem; }
.dropdown .dd-sub a:hover { color: var(--teal-800); }
.header-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: var(--cream); border: 1px solid var(--line); width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle .icon { width: 24px; height: 24px; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; padding: .85rem 1.45rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; line-height: 1.2; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -10px var(--teal-600); }
.btn-primary:hover { background: var(--teal-600); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--teal-900); }
.btn-light:hover { background: var(--mint); color: var(--teal-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--teal-900); }
.btn-sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--s-5); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* hero */
.hero { position: relative; background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-800) 55%, #0B7A75 100%); color: #fff; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto -10% -45% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(23,170,160,.4), transparent 65%); z-index: -1; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-soft); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--s-7); align-items: center; padding-block: var(--s-8); }
.hero.compact .hero-grid { padding-block: var(--s-7); }
.hero-copy .lead { font-size: 1.15rem; color: #DDEFEE; max-width: 58ch; }
.hero-copy .lead a { color: #fff; }
.hero-art { position: relative; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); padding: var(--s-4); }
.hero-art img { width: 100%; height: auto; }
.placeholder-tag { position: absolute; right: .9rem; bottom: .8rem; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.35); color: #fff; padding: .25rem .6rem; border-radius: 999px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: var(--s-5); font-size: .92rem; color: #CFE8E6; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges .icon { color: var(--gold-soft); }
.hero.home h1 { font-size: clamp(2.3rem, 5vw, 4rem); }

/* breadcrumb */
.breadcrumb { font-size: .875rem; margin-bottom: var(--s-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; color: #BFE0DD; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.breadcrumb a { color: #fff; text-decoration: none; opacity: .9; }
.breadcrumb a:hover { text-decoration: underline; opacity: 1; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* sections */
.section { padding-block: var(--s-8); }
.section.tint { background: var(--cream); }
.section.mint { background: var(--mint); }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

/* cards */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); display: flex; flex-direction: column; gap: .35rem; transition: transform .25s, box-shadow .25s, border-color .25s; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.card h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: .6rem; }
.card .link-arrow { margin-top: auto; color: var(--teal-600); font-size: .95rem; }
.card-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--mint); color: var(--teal-800); display: grid; place-items: center; margin-bottom: var(--s-3); transition: background .25s, color .25s; }
.card:hover .card-icon { background: var(--teal); color: #fff; }
.card-icon .icon { width: 28px; height: 28px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); }
.feature strong { display: block; font-family: var(--font-display); font-size: 1.12rem; margin-bottom: .3rem; color: var(--teal-800); }
.feature .tick { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; margin-bottom: var(--s-3); }
.feature .tick .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
.thumb { aspect-ratio: 4/3; border-radius: 12px; background: linear-gradient(135deg, var(--teal-900), var(--teal-800)); overflow: hidden; margin-bottom: var(--s-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* lists */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .icon { color: var(--teal); margin-top: .22em; width: 1.2em; height: 1.2em; stroke-width: 2.4; }
.steps { list-style: none; padding: 0; margin: 0 0 var(--s-5); counter-reset: s; display: grid; gap: var(--s-4); }
.steps li { counter-increment: s; position: relative; padding: var(--s-4) var(--s-4) var(--s-4) 4.2rem; background: var(--cream); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }

/* content layout with aside */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-7); align-items: start; }
.prose > section { margin-bottom: var(--s-7); }
.prose h2 { position: relative; padding-bottom: .6rem; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--teal); border-radius: 3px; }
.prose h3 { margin-top: var(--s-5); }
.prose p, .prose li { max-width: 72ch; }
.prose .feature-grid { margin-bottom: var(--s-5); }
.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: var(--s-4); }
.aside-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); }
.aside-card.dark { background: var(--ink); color: #EDEAE3; border-color: var(--ink); }
.aside-card.dark h3 { color: #fff; }
.aside-card h3 { font-size: 1.2rem; }
.aside-card .btn { width: 100%; margin-top: .6rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-bottom: 1px solid rgba(127,127,127,.25); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 1rem; white-space: nowrap; }
.aside-card.dark .hours th, .aside-card.dark .hours td { border-color: rgba(255,255,255,.18); }
.meta-line { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; margin-bottom: .6rem; }
.meta-line .icon { color: var(--teal); margin-top: .2em; }
.aside-card.dark .meta-line .icon { color: var(--gold-soft); }
.aside-card.dark a { color: #fff; }

/* chips / category nav */
.chip-bar { background: #fff; border-bottom: 1px solid var(--line); }
.chip-bar .container { display: flex; align-items: center; gap: .6rem; padding-block: var(--s-3); overflow-x: auto; scrollbar-width: thin; }
.chip-bar .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); flex: none; }
.chip { flex: none; text-decoration: none; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; background: #fff; transition: all .2s; white-space: nowrap; }
.chip:hover { border-color: var(--teal); color: var(--teal-800); background: var(--mint); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* faq */
.faq { display: grid; gap: .75rem; max-width: 860px; }
.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(--teal); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--teal); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin: 0; }

/* cta band */
.cta-band { background: linear-gradient(120deg, var(--teal-900), var(--teal-800)); color: #fff; border-radius: var(--r-lg); padding: var(--s-8) var(--s-7); display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s-6); align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D4ECEA; }
.cta-band .aside-card { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.cta-band .aside-card a { color: #fff; }
.cta-band .aside-card .meta-line .icon { color: var(--gold-soft); }
.cta-wrap { padding-block: var(--s-8); }
.cta-simple { display: flex; flex-direction: column; align-items: flex-start; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.stat-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: var(--s-7); position: relative; overflow: hidden; }
.stat-card b { display: block; font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; color: var(--gold-soft); }
.stat-card span { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: #D7D3CA; margin-top: .5rem; }
.stat-card img { margin-top: var(--s-5); border-radius: var(--r); }
.marquee { background: var(--ink); color: #fff; overflow: hidden; }
.marquee ul { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: .9rem 0; justify-content: center; flex-wrap: wrap; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.marquee li { display: inline-flex; align-items: center; gap: .5rem; }
.marquee .icon { color: var(--teal); }

/* blog */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-7); align-items: start; }
.article h2 { margin-top: var(--s-7); }
.article h3 { margin-top: var(--s-5); }
.article p, .article li { font-size: 1.08rem; max-width: 70ch; }
.article ul, .article ol { padding-left: 1.3rem; }
.article table { border-collapse: collapse; width: 100%; margin: var(--s-5) 0; font-size: .96rem; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.article th { background: var(--mint); }
.toc ol { padding-left: 1.1rem; margin: 0; display: grid; gap: .4rem; font-size: .95rem; }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: #CFE8E6; margin-top: var(--s-4); }

/* footer */
.site-footer { background: var(--ink); color: #D7D3CA; padding-top: var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.25fr; gap: var(--s-6); padding-bottom: var(--s-7); }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #D7D3CA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .hours th { white-space: normal; }
.site-footer .logo { color: #fff; margin-bottom: var(--s-4); }
.site-footer .logo small { color: var(--teal); }
.footer-contact .meta-line .icon { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: var(--s-4); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.proto-badge { display: inline-block; background: var(--gold); color: #1c1608; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* mobile sticky bar */
.mobile-bar { display: none; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn, .card { transition: none; } }

/* design system page */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-4); }
.swatch { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.swatch i { display: block; height: 84px; }
.swatch div { padding: .7rem .9rem; font-size: .85rem; }
.swatch b { display: block; font-size: .92rem; }
.ds-box { border: 1px dashed var(--line); border-radius: var(--r); padding: var(--s-5); background: #fff; }
.ds-note { font-size: .9rem; color: var(--muted); }
code { background: var(--cream); padding: .1rem .4rem; border-radius: 6px; font-size: .88em; }

/* ---- photo hero (full-background image) ---- */
.hero-photo { background: var(--teal-900); }
.hero-photo::after { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,45,46,.92) 0%, rgba(7,63,64,.80) 42%, rgba(7,63,64,.45) 75%, rgba(7,63,64,.30) 100%),
              linear-gradient(0deg, rgba(5,30,31,.55) 0%, rgba(5,30,31,0) 40%); }
.hero-photo .hero-grid { grid-template-columns: minmax(0, 760px); min-height: 440px; align-content: center; }
.hero-photo.home .hero-grid { min-height: clamp(560px, 78vh, 760px); padding-block: var(--s-8); }
.hero-photo.compact .hero-grid { min-height: 340px; }
.hero-photo .hero-copy { text-shadow: 0 1px 18px rgba(0,0,0,.28); }
.hero-photo .hero-copy .lead { color: #EAF6F5; }
.hero-photo .hero-badges { color: #E3F2F1; }
/* ---- map card ---- */
.map-card { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; background: var(--mint); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: 2.5rem; }
.map-card h3 { margin: 0 0 .2rem; font-size: 1.1rem; } .map-card p { margin: 0; color: var(--muted, #4a4a4a); } .map-card > div { flex: 1 1 260px; }
.card .thumb { aspect-ratio: 3/2; }
.stat-card img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
