/* ============================================================
   Agincourt Optical — site.css
   Hand-written design system. Editorial premium-retail look.
   Pure white page, black nav; Deep Green #38524A / Blush Cream #F3E7DC / Signature Gold #D4A257 brand accents. No frameworks.
   ============================================================ */

/* ---------------- Tokens ---------------- */
:root {
  --ink: #111827;
  --nav-black: #0a0a0a;
  --gold: #D4A257;   /* Signature Gold — brushed brass. Fails AA on white for text: use only for display/logo, borders, badges with ink text, or on green/ink backgrounds. */
  --green: #38524A;  /* Deep Green — passes AA on white (8.49:1); use for small accent text and panels. */
  --blush: #F3E7DC;  /* Blush Cream panel tint (ink text: 14.6:1). */
  --paper: #ffffff;
  --tile: #f5f5f4;
  --line: #e7e5e4;
  --muted: #6b7280;
  --ok: #15803d;
  --err: #b91c1c;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Square corners are the system.
     Every container, control, tag and media frame on this site is squared: the
     four tokens below are all zero on purpose, and every hand-written radius in
     this file was zeroed with them. They keep their names so the decision is one
     block to reverse rather than two hundred edits to redo — restore 10/16/24/999px
     here and the curves come back everywhere they used to be. */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-pill: 0;

  --shadow-lift: 0 12px 32px rgba(17, 24, 39, 0.12);
  --shadow-drawer: 0 24px 64px rgba(17, 24, 39, 0.22);

  --font-serif: "Cormorant Garamond", Georgia, serif; /* wordmark ONLY */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Playfair Display", Georgia, serif;
  --fast: 180ms;
}

/* ---------------- Reset & base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; font-size: 1rem; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 var(--s4); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0 0 var(--s4); }
hr { border: 0; border-top: 1px solid var(--line); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 0; }

.container { max-width: 1240px; margin: 0 auto; padding-left: var(--s5); padding-right: var(--s5); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -52px; left: var(--s4); z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 20px;
  border-radius: 0;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: top var(--fast) ease;
}
.skip-link:focus { top: 0; }

/* ---------------- Pills / buttons ---------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 0;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color var(--fast) ease, color var(--fast) ease,
              border-color var(--fast) ease, transform var(--fast) ease;
}
.pill .arrow { display: inline-block; transition: transform var(--fast) ease; }
.pill:hover .arrow { transform: translateX(4px); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #000; }
.pill-dark:disabled { background: #9ca3af; cursor: not-allowed; }
.pill-light { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.pill-light:hover { background: var(--tile); }
.pill-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.pill-outline-white:hover { background: rgba(255,255,255,0.12); }
.pill-small { padding: 9px 18px; font-size: 0.8125rem; }
.pill-block { width: 100%; }
.ghost-link {
  display: inline-block; font-size: 0.875rem; font-weight: 600;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.ghost-link:hover { color: var(--ink); }

/* ---------------- Badges & swatches ---------------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 0;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-gold { background: var(--gold); color: var(--ink); }
.badge-green { background: var(--green); color: #fff; }
.badge-muted { background: #e5e5e3; color: #52525b; }
.badge-soft { background: #e8f2ea; color: var(--ok); }

.swatch-dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 0;
  border: 1px solid rgba(17, 24, 39, 0.18);
}
.card-swatches { display: flex; gap: 6px; align-items: center; }

/* ---------------- Header (Ohio-style white capsule nav) ---------------- */
/* Header-only surface tokens — footer and page tokens untouched */
:root {
  --hd-tile: #F6F6F6;   /* circular buttons + capsule background */
  --hd-ink: #171717;    /* capsule link text */
}
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: #ffffff; /* pure white, no border, no shadow, identical when stuck */
}
.header-bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 73px; padding: 0 12px;
}
.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.circle-ctrl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: 0 0 48px;
  border: 0; border-radius: 0;
  background: var(--hd-tile); color: #111111;
  transition: background-color var(--fast) ease;
}
.circle-ctrl:hover { background: #ececec; }
.circle-ctrl svg { width: 20px; height: 20px; }
/* The logo, as supplied, arranged for a header bar. The height is what is
   set — the width follows the artwork — so the bar keeps its 73px rhythm and
   the mark never grows into it. */
.brand {
  display: inline-flex; align-items: center; text-decoration: none;
  height: 48px; flex: 0 0 auto;
}
.brand img { display: block; height: 100%; width: auto; }
.brand-sep { display: inline-flex; align-items: center; gap: 5px; margin: 0 7px; color: var(--gold); vertical-align: middle; }
.brand-rule { display: inline-block; width: 12px; height: 1px; background: rgba(212, 162, 87, 0.55); }

/* Centered capsule: absolute centering keeps it mathematically centred on the
   viewport regardless of the widths of the left/right control groups. */
.capsule-nav {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center;
  height: 40px; padding: 0 14px;
  background: var(--hd-tile); border-radius: 0;
}
.capsule-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.capsule-nav a {
  display: inline-block; padding: 7px 12px; border-radius: 0;
  font-size: 0.9063rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.005em;
  color: var(--hd-ink); text-decoration: none; white-space: nowrap;
  transition: background-color var(--fast) ease, color var(--fast) ease;
}
.capsule-nav a:hover { background: #ffffff; color: #000000; }

.header-right { display: flex; align-items: center; gap: 14px; }
.heart-link { display: inline-flex; align-items: center; color: #111111; }
.heart-link svg { width: 22px; height: 22px; }
.heart-link:hover { color: #000000; }
.cart-total-text {
  font-size: 0.875rem; font-weight: 600; color: var(--hd-ink); white-space: nowrap;
}
.cart-circle { position: relative; }
.cart-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 0;
  background: #111111; color: #ffffff;
  font-size: 0.6563rem; font-weight: 700; line-height: 18px; text-align: center;
}

@media (max-width: 900px) {
  .capsule-nav, .heart-link, .cart-total-text { display: none; }
  .header-bar { height: 64px; }
}
@media (max-width: 560px) {
  .header-left { gap: 8px; }
  .brand { height: 42px; }
  .brand-sep { margin: 0 4px; gap: 3px; }
  .brand-rule { width: 7px; }
}
@media (max-width: 420px) {
  .header-bar { padding: 0 8px; }
  .brand { height: 38px; }
  .brand-rule { display: none; }
  .circle-ctrl { width: 42px; height: 42px; flex-basis: 42px; }
  .header-right { gap: 8px; }
}
/* Mid-desktop: compress so left/centre/right never collide before the 900px cutoff */
@media (max-width: 1180px) {
  .brand { height: 40px; }
  .brand-rule { width: 8px; }
  .capsule-nav { padding: 0 8px; }
  .capsule-nav a { padding: 7px 8px; font-size: 0.8438rem; }
}

/* ---------------- Drawers & scrim ---------------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(10, 10, 10, 0.5); opacity: 0;
  transition: opacity 220ms ease;
}
.drawer-scrim.is-visible { opacity: 1; }
body.drawer-open { overflow: hidden; }

.mobile-drawer, .mini-cart, .filter-drawer {
  position: fixed; top: 0; bottom: 0; z-index: 200;
  width: min(400px, 92vw); background: var(--paper);
  box-shadow: var(--shadow-drawer);
  transition: transform 260ms ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-drawer { left: 0; transform: translateX(-104%); }
.mini-cart { right: 0; transform: translateX(104%); }
.filter-drawer { left: 0; transform: translateX(-104%); }
.mobile-drawer.is-open, .mini-cart.is-open, .filter-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 1.0625rem; }
.drawer-close {
  width: 36px; height: 36px; border: 0; border-radius: 0;
  background: var(--tile); color: var(--ink); font-size: 1.25rem; line-height: 1;
}
.drawer-close:hover { background: var(--line); }

.mobile-drawer nav { padding: var(--s4) var(--s3); }
.mobile-drawer nav a {
  display: block; padding: 13px var(--s4); border-radius: 0;
  color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.mobile-drawer nav a:hover { background: var(--tile); }
.mobile-drawer .drawer-contact {
  margin-top: auto; padding: var(--s5); border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--muted);
}
.mobile-drawer .drawer-contact a { color: var(--ink); font-weight: 600; }

/* Mini cart */
.mini-cart-body { flex: 1; padding: var(--s5); }
.mini-cart-empty { color: var(--muted); margin-bottom: var(--s5); }
.mini-cart-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s4);
  align-items: center; padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.mini-cart-thumb { width: 72px; height: 72px; background: var(--tile); border-radius: 0; padding: 6px; }
.mini-cart-name { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.mini-cart-variant { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.mini-cart-price { margin: 2px 0 0; font-weight: 600; font-size: 0.9375rem; }
.mini-cart-remove {
  width: 30px; height: 30px; border: 0; border-radius: 0;
  background: var(--tile); color: var(--muted); font-size: 1.1rem; line-height: 1;
}
.mini-cart-remove:hover { background: var(--line); color: var(--ink); }
.mini-cart-foot { padding: var(--s5); border-top: 1px solid var(--line); }
.mini-cart-subtotal { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: var(--s2); }
.mini-cart-note { font-size: 0.8125rem; color: var(--muted); margin-bottom: var(--s4); }

/* Filter drawer */
.filter-body { flex: 1; padding: var(--s4) var(--s5); }
.filter-group { border: 0; margin: 0 0 var(--s4); padding: 0 0 var(--s4); border-bottom: 1px solid var(--line); }
.filter-group legend {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink); padding: 0; margin-bottom: var(--s3);
}
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; font-size: 0.9063rem; color: #374151; cursor: pointer;
}
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.price-range { display: flex; align-items: center; gap: var(--s3); }
.price-range input {
  width: 110px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0;
  background: var(--paper);
}
.filter-actions {
  position: sticky; bottom: 0; display: flex; gap: var(--s3);
  padding: var(--s4) var(--s5); background: var(--paper); border-top: 1px solid var(--line);
}
.filter-actions .pill { flex: 1; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 400;
  transform: translate(-50%, 16px);
  background: var(--ink); color: #fff;
  padding: 12px 24px; border-radius: 0;
  font-size: 0.875rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity var(--fast) ease, transform var(--fast) ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ---------------- Section scaffolding ---------------- */
.section { padding: var(--s8) 0; }
.section-tight { padding: var(--s7) 0; }
.section-head { margin-bottom: var(--s6); }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
.eyebrow {
  display: block; margin-bottom: var(--s3);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------------- S1 Hero ---------------- */
.hero { padding: var(--s8) 0 var(--s7); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: var(--s8); align-items: center;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.04; margin-bottom: var(--s5);
}
.hero-copy { font-size: 1.125rem; color: var(--muted); max-width: 34rem; margin-bottom: var(--s6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s4); }

.hero-photo-card {
  position: relative; border-radius: 0; overflow: hidden; background: var(--tile);
}
.hero-photo-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-mini-card {
  position: absolute; right: var(--s4); bottom: var(--s4);
  display: flex; align-items: center; gap: var(--s4);
  background: var(--paper); border-radius: 0;
  padding: 14px 16px; box-shadow: var(--shadow-lift); max-width: 78%;
}
.hero-mini-card .mini-name { margin: 0; font-weight: 700; font-size: 0.9063rem; letter-spacing: -0.01em; }
.hero-mini-card .mini-price { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.circle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 0;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 1.05rem;
  transition: background-color var(--fast) ease, transform var(--fast) ease;
}
.circle-btn:hover { background: #000; transform: translateX(2px); }

.benefit-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s6); margin-top: var(--s8);
}
.benefit { border-top: 2px solid var(--ink); padding-top: var(--s4); }
.benefit h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: var(--s2); }
.benefit p { font-size: 0.8438rem; color: var(--muted); margin: 0; }

/* ---------------- S2 Editorial panels ---------------- */
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.editorial-panel {
  position: relative; min-height: 460px; border-radius: 0;
  padding: var(--s7); display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.editorial-panel h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 800; }
.editorial-panel p { max-width: 30rem; margin-bottom: var(--s6); }
.panel-green { background: var(--green); color: #fff; }
.panel-green p { color: rgba(255,255,255,0.82); }
.panel-blush { background: var(--blush); color: var(--ink); }
.panel-blush p { color: #57534e; }
.panel-art { position: absolute; right: -30px; bottom: -24px; width: 300px; opacity: 0.5; pointer-events: none; }
.editorial-panel .pill { align-self: flex-start; }

/* The appointment panel carries a photograph rather than a tint.
   Two things make that safe to do behind body copy.
   The picture is treated before it ships — cropped to this panel, given a
   shallow depth of field, duotoned into this palette and pulled down to a mean
   luminance of 0.35 — so even its brightest pixel holds 5.2:1 against white
   before anything is laid over it. The scrim below then does the rest, and it
   is graded rather than flat: heaviest under the words on the left, lightest on
   the right where the optometrist and the eye chart are, so the photograph is
   still legible as a photograph instead of being drowned to make type work. */
.panel-photo {
  background: #101c19 url('../../images/exam-panel.webp') 78% center / cover no-repeat;
  color: #fff;
}
.panel-photo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
              rgba(16, 28, 25, 0.95) 0%,
              rgba(16, 28, 25, 0.88) 48%,
              rgba(16, 28, 25, 0.45) 78%,
              rgba(16, 28, 25, 0.26) 100%);
}
/* the panel's own children sit above the scrim; the scrim sits above the photo */
.panel-photo > * { position: relative; z-index: 1; }
.panel-photo h2 { color: #fff; }
.panel-photo p { color: rgba(255, 255, 255, 0.88); }

@media (max-width: 900px) {
  /* One column, so the panel is wide and short and more of the frame fits
     across it. The grade stays left-to-right because the words still stack down
     the left; it just holds its weight further across before letting the chart
     through. */
  .panel-photo { background-position: 68% center; }
  .panel-photo::before {
    background: linear-gradient(88deg,
                rgba(16, 28, 25, 0.94) 0%,
                rgba(16, 28, 25, 0.86) 52%,
                rgba(16, 28, 25, 0.52) 82%,
                rgba(16, 28, 25, 0.34) 100%);
  }
}

@media (max-width: 640px) {
  /* On a phone the panel is nearly square, and a 2.3:1 photograph cropped into
     that shows about a quarter of the frame — a dark rectangle nobody can read
     as an eye exam. This is the same photograph cropped for that shape instead:
     the optometrist at the lamp and the chart, which say it between them. Here
     the grade does run top-to-bottom, because at this width the text spans the
     panel and there is no quiet side to put it on. */
  .panel-photo {
    background-image: url('../../images/exam-panel-narrow.webp');
    background-position: 58% center;
  }
  .panel-photo::before {
    background: linear-gradient(178deg,
                rgba(16, 28, 25, 0.84) 0%,
                rgba(16, 28, 25, 0.76) 58%,
                rgba(16, 28, 25, 0.62) 100%);
  }
}

/* ---------------- S3 Showcase ---------------- */
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }

.product-card {
  display: flex; flex-direction: column;
  transition: transform var(--fast) ease, box-shadow var(--fast) ease;
  border-radius: 0;
}
.product-card:hover { transform: translateY(-3px); }
.card-tile {
  position: relative; display: block; background: var(--tile);
  border-radius: 0; overflow: hidden; text-decoration: none;
  aspect-ratio: 1 / 1;
}
.card-badges { position: absolute; top: var(--s3); left: var(--s3); z-index: 2; display: flex; gap: 6px; }
.card-art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 12%; transition: transform 220ms ease; }
.card-art svg { width: 100%; height: auto; }
.product-card:hover .card-art { transform: scale(1.03); }
.card-body { padding: var(--s4) var(--s1) 0; }
.card-brand { margin: 0 0 2px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card-name { margin: 0 0 2px; font-size: 1.0313rem; font-weight: 700; letter-spacing: -0.015em; }
.card-name a { text-decoration: none; }
.card-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-category { margin: 0 0 var(--s2); font-size: 0.8125rem; color: var(--muted); }
.card-price { margin: 0 0 var(--s3); font-size: 1rem; }
.price-now { font-weight: 700; }
.price-was { margin-left: 8px; color: var(--muted); font-size: 0.875rem; }
.card-rule { margin: 0 0 var(--s3); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.product-card.is-oos .card-art { opacity: 0.45; }
.product-card.is-oos .card-name, .product-card.is-oos .card-price { color: var(--muted); }

.promo-card {
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--gold); color: var(--ink);
  border-radius: 0; padding: var(--s6);
  transition: transform var(--fast) ease, box-shadow var(--fast) ease;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.promo-kicker { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(17,24,39,0.72); margin-bottom: auto; }
.promo-card h3 { font-size: 1.625rem; font-weight: 800; color: var(--ink); margin: var(--s6) 0 var(--s3); }
.promo-card p { font-size: 0.9063rem; color: rgba(17,24,39,0.82); margin-bottom: var(--s5); }
.promo-card .pill { align-self: flex-start; }

/* ---------------- S4 Split conversion ---------------- */
.split-grid { display: grid; grid-template-columns: 2fr 3fr; border-radius: 0; overflow: hidden; }
.split-form { background: var(--blush); padding: var(--s7); }
.split-form h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); font-weight: 800; }
.split-form > p { color: #57534e; margin-bottom: var(--s5); }
.split-photo { background: var(--tile); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }

.field { margin-bottom: var(--s4); }
.field label { display: block; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid #d6d3d1;
  border-radius: 0; background: var(--paper);
  transition: border-color var(--fast) ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline-offset: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--s4); font-size: 0.8125rem; color: #57534e; cursor: pointer; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--ink); }
.form-msg { margin: var(--s3) 0 0; font-size: 0.875rem; font-weight: 600; }
.form-msg-ok { color: var(--ok); }
.form-msg-err { color: var(--err); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s5); margin-top: var(--s6);
}
.trust-block h3 { font-size: 0.9063rem; font-weight: 700; margin-bottom: 4px; }
.trust-block p { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.trust-block a { font-weight: 600; color: var(--ink); }

/* ---------------- Footer (Ohio-style editorial, #F7F7F7) ---------------- */
.site-footer {
  position: relative; overflow: hidden;
  background: #F7F7F7; color: #111111;
  padding: 96px 0 28px;
}
.footer-inner { position: relative; z-index: 1; }

/* Giant decorative background wordmark — intentionally low contrast, exempt */
.footer-wordmark {
  position: absolute; z-index: 0; left: 50%; bottom: 164px;
  transform: translateX(-50%);
  font-family: var(--font); font-weight: 800;
  font-size: clamp(64px, 11.5vw, 176px);
  letter-spacing: -0.045em; line-height: 1; white-space: nowrap;
  color: #ECECEC;
  user-select: none; -webkit-user-select: none; pointer-events: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr;
  gap: 44px 44px;
  margin-bottom: 110px;
}
/* One row now: the newsletter that used to occupy the second one is gone, and
   a brand column still spanning two rows would leave a hole under the links. */
.f-brand { grid-row: auto; }
/* The footer has the room the stacked lockup was drawn for, so it is used
   there exactly as it was supplied. */
.f-brand .footer-brand {
  display: block; margin: 0 0 22px; max-width: 260px;
}
.f-brand .footer-brand img { display: block; width: 100%; height: auto; }
.f-social { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 0.875rem; }
.f-social a { color: #111111; font-weight: 600; text-decoration: none; transition: opacity var(--fast) ease; }
.f-social a:hover { opacity: 0.6; }
.f-social .f-slash { color: #b3b3b3; }
.f-desc { font-size: 0.875rem; line-height: 1.65; color: #333333; max-width: 270px; margin: 0; }

.f-col h3 {
  font-size: 0.9688rem; font-weight: 600; letter-spacing: -0.01em;
  color: #111111; margin: 0 0 14px;
}
.f-col h3 + ul { margin-bottom: 0; }
.f-col ul { list-style: none; margin: 0 0 0; padding: 0; }
.f-col li { margin: 0 0 11px; }
.f-col li a {
  font-size: 0.875rem; color: #333333; text-decoration: none;
  transition: color var(--fast) ease, opacity var(--fast) ease;
}
.f-col li a:hover { color: #000000; opacity: 0.85; }

/* Newsletter capsule: one unified field, squared with the rest */

/* Scroll to top row */
.f-top {
  display: inline-flex; align-items: center; gap: 14px;
  border: 0; background: none; padding: 0; margin: 0 0 30px;
  font-size: 0.875rem; font-weight: 500; color: #111111;
}
.f-top-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 0;
  background: #EFEFEF; color: #111111;
  transition: background-color var(--fast) ease, transform var(--fast) ease;
}
.f-top:hover .f-top-circle { background: #e6e6e6; transform: translateY(-2px); }
.f-top-circle svg { width: 18px; height: 18px; }

/* Legal bar */
.f-legal {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap;
  border-top: 1px solid #E3E3E3; padding-top: 20px;
  font-size: 0.8438rem; color: #333333;
}
.f-legal p { margin: 0; }
.f-legal ul { display: flex; align-items: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.f-legal li { display: flex; align-items: center; }
.f-legal li + li::before { content: "|"; margin: 0 12px; color: #c9c9c9; }
.f-legal a { color: #333333; text-decoration: none; transition: color var(--fast) ease; }
.f-legal a:hover { color: #000000; }

@media (max-width: 1024px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 96px; }
  .f-brand { grid-column: 1 / -1; }
  .footer-wordmark { bottom: 150px; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 64px; }
  .footer-cols { grid-template-columns: 1fr; gap: 36px; margin-bottom: 84px; }
  .footer-wordmark { font-size: 21vw; bottom: 108px; }
  .f-legal { flex-direction: column; align-items: flex-start; }
}

/* AI Glasses tagline — green passes AA on white for small text */
.tagline-green {
  color: var(--green); font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.01em; margin: 0 0 var(--s4);
}

/* ---------------- Page hero (interior pages) ---------------- */
.page-hero { padding: var(--s8) 0 var(--s6); }
.page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: var(--s3); }
.page-hero .lede { font-size: 1.0938rem; color: var(--muted); max-width: 40rem; }

/* ---------------- Shop ---------------- */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: var(--s6); flex-wrap: wrap;
}
.toolbar-right { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.results-count { font-size: 0.875rem; color: var(--muted); margin: 0; }
.sort-select {
  padding: 10px 40px 10px 18px; border: 1px solid var(--ink); border-radius: 0;
  background-color: var(--paper); font-weight: 600; font-size: 0.8438rem;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111827' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.search-note { font-size: 0.9063rem; color: var(--muted); margin: calc(-1 * var(--s3)) 0 var(--s5); }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6) var(--s5); }
.shop-empty { grid-column: 1 / -1; text-align: center; padding: var(--s8) var(--s5); background: var(--tile); border-radius: 0; }
.pagination { display: flex; justify-content: center; gap: var(--s2); margin-top: var(--s7); }
.page-pill {
  min-width: 42px; height: 42px; padding: 0 14px; border-radius: 0;
  border: 1px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: 0.875rem;
  transition: background-color var(--fast) ease, border-color var(--fast) ease;
}
.page-pill:hover { border-color: var(--ink); }
.page-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- Product detail ---------------- */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s8); align-items: start; }
.product-stage {
  background: var(--tile); border-radius: 0;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 10%;
}
.product-stage svg { width: 100%; height: auto; }
.product-thumbs { display: flex; gap: var(--s3); margin-top: var(--s4); }
.product-thumb {
  width: 84px; height: 84px; padding: 10px; background: var(--tile);
  border: 2px solid transparent; border-radius: 0;
  transition: border-color var(--fast) ease;
}
.product-thumb.is-active { border-color: var(--ink); }
.product-title { font-size: clamp(1.875rem, 3.4vw, 2.625rem); font-weight: 800; margin-bottom: var(--s3); }
.product-price { font-size: 1.375rem; margin-bottom: var(--s3); }
.product-status { margin-bottom: var(--s4); }
.variant-label { font-size: 0.875rem; color: var(--muted); margin-bottom: var(--s2); }
.variant-label strong { color: var(--ink); }
.variant-swatches { display: flex; gap: var(--s3); margin-bottom: var(--s5); }
.variant-swatch {
  width: 34px; height: 34px; border-radius: 0;
  border: 2px solid rgba(17,24,39,0.15); padding: 0;
  transition: transform var(--fast) ease, box-shadow var(--fast) ease;
}
.variant-swatch:hover { transform: scale(1.08); }
.variant-swatch.is-active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.product-sub { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.measure-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-bottom: var(--s5); }
.measure-table th, .measure-table td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.measure-table th { font-weight: 600; color: var(--muted); width: 55%; }
.product-buy { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.qty-stepper {
  display: inline-flex; align-items: center; gap: var(--s2);
  border: 1px solid var(--line); border-radius: 0; padding: 4px;
}
.qty-stepper button {
  width: 34px; height: 34px; border: 0; border-radius: 0;
  background: var(--tile); font-size: 1rem; line-height: 1;
}
.qty-stepper button:hover { background: var(--line); }
.qty-stepper span { min-width: 26px; text-align: center; font-weight: 600; }
.info-box-blush {
  background: var(--blush); border-left: 3px solid var(--gold);
  border-radius: 0; padding: var(--s4) var(--s5);
  font-size: 0.875rem; color: #57534e; margin-top: var(--s4);
}
.info-box-blush strong { color: var(--ink); }
.product-missing { text-align: center; padding: var(--s8) 0; grid-column: 1 / -1; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }

/* ---------------- Cart page ---------------- */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--s7); align-items: start; }
.cart-row {
  display: grid; grid-template-columns: 96px 1fr auto auto auto;
  gap: var(--s4); align-items: center;
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { width: 96px; height: 96px; background: var(--tile); border-radius: 0; padding: 8px; }
.cart-brand { margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cart-name { margin: 0; font-weight: 700; }
.cart-name a { text-decoration: none; }
.cart-name a:hover { text-decoration: underline; }
.cart-variant, .cart-unit { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.cart-line-price { margin: 0; font-weight: 700; min-width: 76px; text-align: right; }
.cart-remove { border: 0; background: none; color: var(--muted); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-remove:hover { color: var(--err); }
.cart-summary { background: var(--tile); border-radius: 0; padding: var(--s5); }
.cart-summary-title { font-size: 1.125rem; margin-bottom: var(--s4); }
.cart-totals { margin: 0 0 var(--s4); }
.cart-totals > div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9375rem; }
.cart-totals dt { color: var(--muted); }
.cart-totals dd { margin: 0; font-weight: 600; }
.cart-totals .cart-total { border-top: 1px solid #d6d3d1; margin-top: var(--s2); padding-top: var(--s3); font-size: 1.0625rem; }
.cart-totals .cart-total dt { color: var(--ink); font-weight: 700; }
.cart-note { font-size: 0.8125rem; color: var(--muted); margin-bottom: var(--s4); }
.cart-summary .ghost-link { display: block; text-align: center; margin-top: var(--s3); }
.cart-empty { text-align: center; padding: var(--s8) 0; grid-column: 1 / -1; }

/* ---------------- Reserve ---------------- */
.reserve-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s7); align-items: start; }
.reserve-panel { background: var(--tile); border-radius: 0; padding: var(--s5); }
.reserve-list { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.reserve-list li {
  display: flex; justify-content: space-between; gap: var(--s4);
  padding: 9px 0; border-bottom: 1px solid #e0ded9; font-size: 0.9063rem;
}
.reserve-list em { color: var(--muted); font-style: normal; }
.reserve-success, .booking-success { background: var(--tile); border-radius: 0; padding: var(--s7); text-align: center; }

/* ---------------- Booking ---------------- */
.booking-layout { max-width: 760px; margin: 0 auto; }
.booking-layout fieldset[data-step] { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-dots { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-bottom: var(--s6); }
.step-dot {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 0;
  border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; color: var(--muted);
}
.step-dot.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-dot.is-done { border-color: var(--green); color: var(--green); }
.service-pills { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s5); }
.service-pill { position: relative; }
.service-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.service-pill span {
  display: inline-block; padding: 12px 22px; border-radius: 0;
  border: 1px solid var(--line); font-weight: 600; font-size: 0.9063rem;
  transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease;
}
.service-pill span { cursor: pointer; }
/* With the pill shape gone, a chip and a text input are the same rectangle. The
   hover state is what now says which one you press, so both choice controls get
   one and it is deliberately the same one. */
.service-pill:hover input:not(:checked) + span { border-color: var(--ink); background: var(--tile); }
.service-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-pill input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.time-prefs { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Appointment times.
   The pills are drawn by forms.js from the opening-hours table, so a weekday
   shows twenty of them and a Sunday ten. A fixed column count would leave a
   ragged half-empty row on the short days; auto-fill lets the row close
   itself, and the 88px floor keeps "10:30 AM" on one line on a 320px phone. */
.field-label { display: block; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; }
.hours-strip { list-style: none; margin: 0 0 var(--s5); padding: 0; background: var(--tile); border-radius: 0; overflow: hidden; }
.hours-strip li {
  display: flex; justify-content: space-between; gap: var(--s4);
  padding: 10px var(--s4); font-size: 0.875rem;
  border-bottom: 1px solid #e0ded9;
}
.hours-strip li:last-child { border-bottom: 0; }
.hours-strip li span:first-child { color: var(--muted); }
.hours-strip li span:last-child { font-weight: 600; }
.slot-hint { margin: 6px 0 0; font-size: 0.8125rem; color: var(--muted); }
.slot-empty { margin: var(--s3) 0 0; font-size: 0.875rem; font-weight: 600; color: var(--err); }
.slot-group {
  margin: var(--s4) 0 8px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.slot-group:first-child { margin-top: 0; }
.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.time-slot { position: relative; }
.time-slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.time-slot span {
  display: block; text-align: center; padding: 10px 4px;
  border-radius: 0; border: 1px solid var(--line);
  font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease;
}
.time-slot:hover input:not(:checked) + span { border-color: var(--ink); background: var(--tile); }
.time-slot input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.time-slot input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.step-actions { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s6); }
.review-list { margin: 0 0 var(--s5); }
.review-list > div { display: flex; justify-content: space-between; gap: var(--s4); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 600; text-align: right; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }

/* ---------------- Insurance ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.step-card { background: var(--tile); border-radius: 0; padding: var(--s5); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 0;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: var(--s4);
}
.step-card h3 { font-size: 1.0625rem; margin-bottom: var(--s2); }
.step-card p { font-size: 0.875rem; color: var(--muted); margin: 0; }
.insurer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.insurer-chip {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  padding: var(--s4); min-height: 96px;
  transition: transform var(--fast) ease, box-shadow var(--fast) ease;
}
.insurer-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.insurer-chip img { max-height: 52px; width: auto; object-fit: contain; }
.qualified-note {
  background: var(--tile); border-radius: 0;
  padding: var(--s4) var(--s5); font-size: 0.875rem; color: #57534e;
}

/* ---------------- About / Contact ---------------- */
.about-photo { border-radius: 0; overflow: hidden; background: var(--tile); margin-bottom: var(--s7); }
.about-photo img { width: 100%; height: auto; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s7); align-items: start; }
.accent-line { font-family: var(--font-accent); font-style: italic; font-size: 1.375rem; color: var(--ink); }
.visit-card { background: var(--tile); border-radius: 0; padding: var(--s5); }
.visit-card h2 { font-size: 1.125rem; }
.contact-list { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.contact-list li { padding: 9px 0; border-bottom: 1px solid #e0ded9; font-size: 0.9063rem; display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.contact-list .label { color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.hours-note { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s7); align-items: start; }
.map-placeholder {
  background: var(--tile); border-radius: 0;
  min-height: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s2);
  color: var(--muted); font-size: 0.875rem; text-align: center; padding: var(--s5);
  margin-top: var(--s5);
}
.map-placeholder svg { width: 34px; height: 34px; }

/* ---------------- 404 ---------------- */
.notfound { text-align: center; padding: var(--s9) 0; }
.notfound .code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: var(--s4); }
.notfound .code span { color: var(--gold); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-panel { min-height: 380px; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; }
  .split-photo img { aspect-ratio: 16 / 9; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .product-layout, .cart-layout, .reserve-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .insurer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: var(--s7) 0; }
  .hero { padding: var(--s6) 0 var(--s6); }
  .benefit-row { grid-template-columns: 1fr; gap: var(--s5); margin-top: var(--s6); }
  .showcase-grid, .shop-grid, .related-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .insurer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: 1fr; }
  .editorial-panel { padding: var(--s6); min-height: 340px; }
  .split-form { padding: var(--s6); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; grid-auto-rows: auto; }
  .cart-thumb { width: 72px; height: 72px; grid-row: span 2; }
  .cart-line-price { text-align: left; }
  .step-dots { flex-wrap: wrap; }
  .time-slots { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .hero-mini-card { position: static; margin-top: var(--s3); max-width: none; box-shadow: none; border: 1px solid var(--line); }
}

/* Delivery address on the reserve page.
   A fieldset rather than a run of loose inputs, because the whole group has
   one job - deciding the tax - and saying so once at the top is clearer than
   repeating it on four labels. Everything below reuses the .field and
   .form-grid-2 rules the rest of the form already uses, so the block reads as
   part of the same form and not as something bolted on. */
.reserve-address {
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 0;
  padding: 1rem 1.1rem 0.4rem;
  margin-bottom: 1.25rem;
}
.reserve-address legend {
  padding: 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #78716c);
}
.reserve-address .cart-note { margin-top: 0; }
.tax-note { margin-top: 0.5rem; }
.tax-note.is-ok { color: #1b7f4b; }
.tax-note.is-warn { color: #a8620a; }
