/* Beyond 2020 Vision Specialists: site-wide styles.
   Page designs live in each page's own <style> block (src/content). This file holds the
   shared frame: base type, header, phone menu, title banner, phone Call/Book bar and the
   site-wide overrides that used to live in Squarespace's Custom CSS. */

:root {
  --b20-ink: #0f0e0c;
  --b20-ink-soft: #1c1a17;
  --b20-ivory: #f6f2ea;
  --b20-paper: #fbf9f5;
  --b20-gold: #c8982c;
  --b20-gold-bright: #ecb22f;
  --b20-stone: #6f6a61;
  --b20-mist: #b9b2a5;
  --b20-line: #e4ddd0;
  --b20-display: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --b20-body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

/* Base */
/* Squarespace's theme gave paragraphs 1.8 line spacing; the page designs were built on it */
p { line-height: 1.8em; }
figure { margin: 0; }
.site-header, .site-header *, .menu, .menu *, .b20-mbar, .b20-mbar * { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--b20-paper); font-family: var(--b20-body); font-weight: 300; font-size: 16px; color: var(--b20-ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; }
::selection { background: var(--b20-gold-bright); color: var(--b20-ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; padding: 12px 18px; background: var(--b20-ink); color: var(--b20-ivory); font: 500 12px/1 var(--b20-body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: relative; z-index: 1000; background: var(--b20-paper); border-bottom: 1px solid var(--b20-line); }
.site-header .hd { display: flex; align-items: center; padding: 3vw 4vw; }
.site-header .logo { display: block; flex: none; line-height: 0; }
.site-header .logo img { display: block; height: 54px; width: auto; }
@media (min-width: 800px) { .site-header .logo img { height: 66px; } }
.site-header .hd-nav { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 1.3vw; margin-left: 2vw; }
.site-header .hd-nav a { padding: .1em 0; font: 400 13px/28.8px var(--b20-body); letter-spacing: .16em; text-transform: uppercase; color: var(--b20-ink); text-decoration: none; white-space: nowrap; transition: color .2s; }
.site-header .hd-nav a:hover { color: var(--b20-gold); }
.site-header .hd-cta { flex: none; margin-left: 5.5vw; padding: 1.2em 2.2em; border: 1px solid var(--b20-ink); font: 500 12px/normal var(--b20-body); letter-spacing: .2em; text-transform: uppercase; color: var(--b20-ink); text-decoration: none; transition: background .25s, color .25s; }
.site-header .hd-cta:hover { background: var(--b20-ink); color: var(--b20-ivory); }
.site-header .burger { display: none; }

@media (max-width: 799px) {
  .site-header .hd { align-items: flex-start; height: calc(12vw + 39px); padding: 6vw; }
  .site-header .hd-nav, .site-header .hd-cta { display: none; }
  .site-header .burger { position: relative; display: block; margin: 1px 0 0 auto; width: 47px; height: 37px; padding: 0; border: 0; background: none; cursor: pointer; }
  .site-header .burger span { position: absolute; left: 6px; width: 35px; height: 1px; background: #000; transition: transform .25s, width .25s, left .25s, top .25s; }
  .site-header .burger span:nth-child(1) { top: 13px; }
  .site-header .burger span:nth-child(2) { top: 24px; }
  body.header--menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; }
  body.header--menu-open .site-header .burger span { left: 8.5px; width: 30px; top: 18px; }
  body.header--menu-open .site-header .burger span:nth-child(1) { transform: rotate(45deg); }
  body.header--menu-open .site-header .burger span:nth-child(2) { transform: rotate(-45deg); }
}

/* Phone menu */
.menu { position: fixed; inset: 0; z-index: 999; background: var(--b20-ink); }
.menu[hidden] { display: none; }
.menu nav { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 23.5px; }
.menu nav a { font: 400 30px/30px var(--b20-display); color: var(--b20-ivory); text-decoration: none; }
.menu nav a:hover { color: var(--b20-gold-bright); }
.menu .menu-cta { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); padding: 1.2em 2.2em; border: 1px solid var(--b20-gold-bright); background: var(--b20-gold-bright); font: 500 12px/normal var(--b20-body); letter-spacing: .2em; text-transform: uppercase; color: var(--b20-ink); text-decoration: none; white-space: nowrap; }
body.header--menu-open { overflow: hidden; }
@media (min-width: 800px) { .menu { display: none !important; } }

/* Title banner at the top of every inner page */
.b20-title { background: #0f0e0c; color: #f6f2ea; padding: 56px 0 64px; }
.b20-title .wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.b20-title .eb { display: flex; align-items: center; gap: 14px; font: 500 12px/1 "Jost", "Futura", "Helvetica Neue", Arial, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #ecb22f; }
.b20-title h1 { margin: 22px 0 0; font: 500 clamp(40px, 5.6vw, 76px)/1.05 "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.005em; color: #f6f2ea; text-wrap: balance; max-width: 20ch; }

/* Space between the banner and the page design */
.page-body { padding-top: clamp(40px, 6vw, 72px); }
body.homepage .page-body { padding-top: 0; }

/* Phone Call / Book bar */
.b20-mbar { display: none; }
@media (max-width: 767px) {
  .b20-mbar { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #0f0e0c; border-top: 1px solid #34302a; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .b20-mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; font: 500 11.5px/1.15 "Jost", "Futura", "Helvetica Neue", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #f6f2ea; border: 1px solid rgba(246,242,234,.3); }
  .b20-mbar a small { font-size: 10.5px; letter-spacing: .06em; text-transform: none; color: #b9b2a5; }
  .b20-mbar a.book { background: #ecb22f; border-color: #ecb22f; color: #0f0e0c; }
  body.b20-has-mbar { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.header--menu-open .b20-mbar { display: none; }
}

/* Typography: one clean sans for all headings; Bodoni is kept only for the logo wordmark */
.b20h, .b20p, .b20j, .b20f { --display: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif !important; }
.b20h h1, .b20h h2, .b20h h3, .b20p h2, .b20p h3, .b20p h4, .b20j h2, .b20-title h1 { font-weight: 500 !important; letter-spacing: -.005em !important; }
.b20h .hero h1 { font-weight: 700 !important; letter-spacing: .03em !important; }
.b20-title h1 { font-family: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif !important; }
.b20h em, .b20p em, .b20j em, .b20-title em, .b20h .quote p, .b20p blockquote { font-style: normal !important; }
.b20j h2 { font-family: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif !important; }
.b20f .mark { font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif !important; }
.b20f .vs em { font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif !important; font-style: italic !important; }

/* Readability: darker, heavier body text */
body .b20p p, body .b20p .ticks li, body .b20p .pairs span { font-weight: 400; }
body .b20p .article p, body .b20p .article .ticks li, body .b20p .article .pairs span, body .b20p .intro .copy p:not(.lead), body .b20p .family .story p { color: #57524a; }
body .b20p .article p, body .b20p .article .ticks li { font-size: 17px; line-height: 1.7; }
body .b20h .head p, body .b20h .service p, body .b20h .eyewear .copy p, body .b20h .family .story p, body .b20h .loc .addr, body .b20h .hero .copy > p { font-weight: 400; color: #57524a; }

/* Shorter top photo on inner pages (desktop) */
@media (min-width: 861px) { body .b20p .hero-img img { aspect-ratio: 3 / 1; } }
@media (min-width: 861px) { body .b20p .hero-img img[src*="dsc01767"] { object-position: center 45%; } body .b20p .hero-img img[src*="hero-front-desk"] { object-position: center 58%; } }

/* Banner already shows the page name */
body .b20p > .wrap > .intro .eyebrow { display: none; }

/* Phone: booking buttons near the top of inner pages */
.b20p .m-book { display: none; }
@media (max-width: 1000px) { .b20p .m-book { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(28px, 6vw, 40px); } .b20p .m-book .btn { flex: 1 1 150px; } }
@media (max-width: 1000px) { body .b20p .m-book .btn { padding: 0 10px; letter-spacing: .12em; } }

/* Text for screen readers only */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Social links in the phone menu */
.menu .menu-social { position: absolute; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 12px; }
.menu .menu-social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(236,178,47,.55); color: var(--b20-gold-bright); text-decoration: none; }
.menu .menu-social a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu .menu-social a:hover { background: var(--b20-gold-bright); color: var(--b20-ink); }

/* "Follow us" prompt: appears once, can be dismissed */
.b20-follow-card { position: fixed; z-index: 9998; right: 24px; bottom: 24px; width: min(340px, calc(100vw - 24px)); padding: 20px 20px 18px; background: var(--b20-ink); color: var(--b20-ivory); border: 1px solid #34302a; box-shadow: 0 18px 50px rgba(0,0,0,.28); font-family: var(--b20-body); transform: translateY(16px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.b20-follow-card.show { transform: none; opacity: 1; }
.b20-follow-card .t { margin: 0 28px 4px 0; font: 500 18px/1.3 var(--b20-display); color: var(--b20-ivory); }
.b20-follow-card .t span { color: var(--b20-gold-bright); }
.b20-follow-card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--b20-mist); }
.b20-follow-card .links { display: flex; gap: 8px; }
.b20-follow-card .links a { flex: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; border: 1px solid rgba(236,178,47,.55); color: var(--b20-ivory); text-decoration: none; font: 500 10.5px/1 var(--b20-body); letter-spacing: .14em; text-transform: uppercase; }
.b20-follow-card .links a svg { color: var(--b20-gold-bright); }
.b20-follow-card .links a:hover { background: var(--b20-gold-bright); border-color: var(--b20-gold-bright); color: var(--b20-ink); }
.b20-follow-card .links a:hover svg { color: var(--b20-ink); }
.b20-follow-card .x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: none; color: var(--b20-mist); font-size: 22px; line-height: 1; cursor: pointer; }
.b20-follow-card .x:hover { color: var(--b20-ivory); }
@media (max-width: 767px) { .b20-follow-card { right: 12px; left: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .b20-follow-card { transition: none; } }

/* Readable gold: small gold labels and headline accents on light backgrounds use a deeper gold.
   Dark sections set their own bright gold, so they are not affected. */
main :is(.eyebrow, .meta, .langs, .role, .pill, .store, .more, .num, .arr, cite) { --gold: #8a6412; }
main :is(h1, h2, h3) em { --gold: #9a7019; }
