/* ═══════════════════════════════════════════════════════
   Oklahoma Eyewear — McAlester, OK
   Type-led, minimal-imagery build.
   Swap tokens in :root to re-skin.
   ═══════════════════════════════════════════════════════ */

:root {
  /* Warm neutral palette */
  --paper:    #FDFCFA;
  --bone:     #F5F2EC;
  --sand:     #E9E4DA;
  --line:     rgba(35, 36, 31, .13);
  --line-soft:rgba(35, 36, 31, .07);

  --ink:      #23241F;
  --ink-2:    #4A4C45;
  --muted:    #67695F;   /* 5.0:1 on the bone panels — clears WCAG AA */
  --charcoal: #2E3130;

  --accent:   #3F534C;   /* deep muted eucalyptus — used sparingly */

  --serif: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --gut: clamp(20px, 5vw, 48px);

  --topbar-h: 132px;     /* utility bar + header; keep in sync with the two below */
  --r: 3px;
  --shadow: 0 1px 2px rgba(35,36,31,.04), 0 12px 32px -18px rgba(35,36,31,.22);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* Keep phone numbers, times and addresses from breaking mid-value */
.nw { white-space: nowrap; }

/* Anchor links must clear the pinned bar, or headings land underneath it */
section[id], main[id] { scroll-margin-top: calc(var(--topbar-h) + 10px); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 12px 20px; font-size: 14px;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Shared type ───────────────────────────────────── */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 18px;
}
.ilink {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(63,83,76,.35);
  padding: 8px 0;
  white-space: nowrap;
}
.ilink:hover { border-bottom-color: var(--accent); }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); border-color: rgba(253,252,250,.5); }

.btn--sm { min-height: 40px; padding: 0 20px; font-size: 11px; }

/* ── Sticky top ────────────────────────────────────────
   The utility bar and the header pin together as one unit, so the phone
   number and hours stay on screen for the whole scroll. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ── Utility bar ───────────────────────────────────── */
.utility {
  background: var(--charcoal);
  color: rgba(253,252,250,.72);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.utility__in {
  display: flex; align-items: center; gap: 14px;
  min-height: 40px;
  flex-wrap: wrap;
}
.utility__sep { width: 1px; height: 11px; background: rgba(253,252,250,.28); }
.utility__item { flex: none; }
.utility__item--short { display: none; }   /* swapped in on narrow phones */
.utility__phones {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  margin-left: auto;
}
.utility__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  white-space: nowrap;      /* must never break across two lines in a pinned bar */
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: .1em;
}
.utility__lbl { color: rgba(253,252,250,.58); }
.utility__phone:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ── Header ────────────────────────────────────────── */
.site-head {
  background: rgba(253,252,250,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}
/* Logo — inline SVG inherits `color`, so one property re-inks it */
.logo {
  display: flex;
  align-items: center;
  min-height: 44px;          /* full-size tap target, not just the artwork */
  color: var(--ink);
  text-decoration: none;
  transition: color .18s ease;
  flex: none;
}
.logo:hover { color: var(--accent); }
.logo__svg {
  display: block;
  /* Two-deck lockup (viewBox 96 tall vs the old 76) — heights scaled up
     so the wordmark renders at the same size as before. */
  height: clamp(37px, 3vw, 43px);
  width: auto;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 30px); }
.nav a {
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color .16s ease;
}
.nav a:hover { color: var(--accent); }
.nav a.btn { color: var(--paper); }

/* The checkbox stays in the accessibility tree (visually hidden, not display:none)
   so keyboard and screen-reader users can open the mobile menu. */
.navtoggle {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.burger { display: none; }
@media (min-width: 1001px) {
  .navtoggle { display: none; }   /* no menu to toggle on desktop */
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  padding: clamp(64px, 11vw, 128px) 0 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, var(--paper) 42%, var(--bone) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero__in { max-width: 880px; text-align: center; }
.hero__h1 {
  font-size: clamp(40px, 6.6vw, 74px);
  line-height: 1.08;
  margin: 0 0 26px;
}
.hero__h1 em { font-style: italic; color: var(--accent); }
.hero__lede {
  max-width: 620px;
  margin: 0 auto 38px;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--muted);
}
.hero__acts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.trust {
  list-style: none;
  margin: clamp(56px, 8vw, 92px) 0 0;
  padding: 34px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.trust__i {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center;
  padding: 4px 12px;
  border-left: 1px solid var(--line-soft);
}
.trust__i:first-child { border-left: 0; }
.trust__n {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
  color: var(--ink);
}
.trust__t {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Address band ──────────────────────────────────── */
.band {
  background: var(--sand);
  padding: 26px 0;
  text-align: center;
}
.band__t {
  margin: 0;
  font-size: clamp(11.5px, 1.5vw, 13px);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Sections ──────────────────────────────────────── */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec--alt { background: var(--bone); }

.sec__head { max-width: 640px; margin: 0 0 clamp(44px, 6vw, 68px); }

/* Section header with a photo beside the text */
.sec__head--media {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.headph {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.headph img {
  display: block;
  width: 100%;
  height: clamp(200px, 18vw, 250px);
  object-fit: cover;
}

/* ── Photo band ────────────────────────────────────── */
.photoband { margin: 0; }
.photoband img {
  display: block;
  width: 100%;
  height: clamp(200px, 30vw, 400px);
  object-fit: cover;
  object-position: center 42%;
}

/* Photo in the About column */
.about__ph {
  margin: 30px 0 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__ph img {
  display: block;
  width: 100%;
  height: auto;
}
.sec__h2 {
  font-size: clamp(30px, 4.2vw, 47px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.sec__lede { color: var(--muted); font-size: 17.5px; margin: 0; }

/* ── Cards ─────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* four featured services */
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 36px 28px 38px;
  box-shadow: var(--shadow);
}
/* Nav can deep-link straight to the contacts card */
.card[id] { scroll-margin-top: calc(var(--topbar-h) + 24px); }
.card__n {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--accent);
  margin: 0 0 22px;
}
.card__h {
  font-size: 25px;
  margin: 0 0 14px;
}
.card p { color: var(--muted); font-size: 16px; margin: 0; }

/* ── Split (About) ─────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}
.split__l .sec__h2 { margin-bottom: 0; }
.split__r .lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: .9em;
}
.split__r p { color: var(--muted); }

/* ── Visit ─────────────────────────────────────────── */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 40px clamp(26px, 3.4vw, 42px) 44px;
  box-shadow: var(--shadow);
}
.panel__h {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
/* Live open/closed status */
.status {
  display: inline-flex; align-items: center; gap: 9px;
  margin: -12px 0 24px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.status[data-open="yes"] .status__dot { background: #4F7A4A; }
.status[data-open="no"]  .status__dot { background: #A8A399; }

.hours { margin: 0; }
.hours__note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.hours__r {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.hours__r:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.hours dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.hours__r--off dt { color: var(--muted); }
.hours__r--off dd { color: var(--muted); font-style: italic; font-size: 17px; }

/* Two labeled phone lines in the Find Us panel.
   Label column is fixed-width so both numbers align — no yawning gap
   between the label and the number. */
.phones { margin: 0; }   /* last element in the panel — no trailing gap */
.phones__r {
  display: flex; align-items: baseline;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.phones__r:first-child { border-top: 1px solid var(--line-soft); }
.phones dt {
  flex: 0 0 104px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.phones dd { margin: 0; }
.phones__link {
  display: inline-block;
  padding: 6px 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}
.phones__link:hover { color: var(--accent); }

.addr {
  font-style: normal;
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 20px;
}
.panel__p { color: var(--muted); font-size: 15.5px; margin: 0 0 30px; }

/* ── Map ───────────────────────────────────────────── */
.map {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map__frame {
  display: block;
  width: 100%;
  height: clamp(480px, 52vw, 640px);
  border: 0;
  filter: saturate(.82);   /* pull Google's palette toward the site's */
}
.map__fallback {
  margin: 0;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.map__fallback .ilink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
}
.map__sep { margin: 0 10px; color: var(--muted); }

/* ── CTA ───────────────────────────────────────────── */
.cta {
  background: var(--charcoal);
  color: rgba(253,252,250,.78);
  padding: clamp(72px, 9vw, 112px) 0;
  text-align: center;
}
.cta__h {
  color: var(--paper);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
}
.cta__p { margin: 0 0 34px; font-size: 17px; }

/* ── Footer ────────────────────────────────────────── */
.foot {
  background: #262927;
  color: rgba(253,252,250,.62);
  font-size: 14.5px;
  padding: clamp(56px, 7vw, 80px) 0 0;
}
.foot__in {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: clamp(44px, 6vw, 64px);
}
.footmark { color: var(--paper); }
.footmark__svg { display: block; width: 152px; height: auto; }
.foot__sub {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(253,252,250,.58);
}
.foot__h {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(253,252,250,.58);
  margin: 0 0 16px;
}
.foot__addr { font-style: normal; margin: 0 0 10px; line-height: 1.75; }
.foot__addr--dim { color: rgba(253,252,250,.58); }
.foot__link {
  display: flex;
  align-items: center;
  min-height: 44px;          /* comfortable thumb target on phones */
  color: rgba(253,252,250,.78);
  text-decoration: none;
  transition: color .16s ease;
}
.foot__link:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.foot__bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(253,252,250,.12);
  font-size: 12.5px;
  color: rgba(253,252,250,.58);
}
.foot__bar p { margin: 0; }

/* ═══ Responsive ═══════════════════════════════════ */
/* Four cards need room — drop to 2×2, then stack on phones */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .visit { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; gap: 34px; }
  .sec__head--media { grid-template-columns: 1fr; }
  .headph img { height: clamp(180px, 34vw, 260px); }
  .about__ph { margin-top: 24px; }
}

/* Both labeled phone numbers need ~460px; below this the bar keeps only
   the primary (Optometry) line — the dispensary number stays in the
   Find Us panel and footer. */
@media (max-width: 1080px) {
  .utility__phone--alt, .utility__sep--phones { display: none; }
}

/* The logo lockup is wide, so the nav collapses well before phone widths —
   below 1000px there isn't room for the wordmark and five nav items. */
@media (max-width: 1000px) {
  :root { --topbar-h: 112px; }
  .site-head__in { min-height: 72px; flex-wrap: wrap; }
  .logo__svg { height: clamp(30px, 4vw, 38px); }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px;
    cursor: pointer;
    margin-right: -10px;
  }
  .burger span {
    display: block; height: 1px; width: 24px; background: var(--ink);
    margin-inline: auto;
    transition: transform .2s ease;
  }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 14px;
  }
  .navtoggle:checked ~ .nav { display: flex; }
  .navtoggle:focus-visible + .burger {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }
  .nav a {
    padding: 14px 2px;
    border-top: 1px solid var(--line-soft);
  }
  .nav a.btn { margin-top: 14px; border: 1px solid var(--ink); padding: 14px; min-height: 48px; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 116px; }
  body { font-size: 16.5px; }

  /* Pinned now, so the bar has to stay one line. The city is dropped — it's
     already in the address band and the footer; the hours and phone are what
     someone actually needs while scrolling. */
  .utility__in { flex-wrap: nowrap; justify-content: space-between; min-height: 44px; font-size: 11.5px; gap: 10px; }
  .utility__item--city, .utility__sep { display: none; }
  .utility__phones { margin-left: 0; }
  .utility__phone { min-height: 44px; }
  .utility__lbl { display: none; }   /* label won't fit beside the hours on one line */

  /* Micro-labels sit on the small side by design; nudge them up on phones */
  .trust__t, .foot__h, .foot__sub { font-size: 11.5px; }

  .footmark__svg { width: 132px; }

  .hero__acts .btn { width: 100%; }

  .foot__in { grid-template-columns: 1fr; gap: 30px; }
  .foot__bar { flex-direction: column; gap: 6px; }
}

/* Under ~380px the full hours string can't share a line with the phone number */
@media (max-width: 380px) {
  .utility__item--long { display: none; }
  .utility__item--short { display: inline; }
  .utility__in { font-size: 11px; letter-spacing: .06em; }
}

/* Smallest phones: the logo and the burger have to share one row, or the
   pinned bar grows to two rows and eats the viewport. */
@media (max-width: 400px) {
  .site-head__in { gap: 10px; padding-inline: 16px; }
  .logo__svg { height: 28px; }
}

/* Below ~820px the longest label ("McAlester & surrounding areas") no longer
   fits on one line, which made the three-across row ragged. Stack instead,
   with hairline separators so the list reads as one deliberate unit. */
@media (max-width: 820px) {
  .trust { grid-template-columns: 1fr; padding: 6px 0 10px; }
  .trust__i { border-left: 0; padding: 20px 12px; }
  .trust__i + .trust__i { border-top: 1px solid var(--line-soft); }
}

/* ═══ Print ════════════════════════════════════════ */
@media print {
  .utility, .site-head, .cta, .hero__acts, .map { display: none; }
  body { background: #fff; color: #000; }
}
