/* The Golden Bean — site styles
   Brand: black + gold (sampled from the logo). Layout modelled on a classic
   drive-thru café site: announcement bar, simple header, full-bleed photo
   heroes with centred type, airy centred text sections, dark footer. */

:root {
  --bg: #FBFAF9;
  --surface: #FFFFFF;
  --tint: #F3F0EA;
  --ink: #2E2B27;
  --ink-strong: #1C1A17;
  --muted: #6A645B;
  --line: #E4DFD6;
  --black: #161412;
  --gold: #E1B440;
  --gold-hover: #CFA232;
  --footer: #1C1A17;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Libre Franklin", system-ui, sans-serif;
  --font-btn: "Oswald", "Arial Narrow", sans-serif;

  --wrap: 1180px;
  --narrow: 860px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--black); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(var(--narrow), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 650;
  color: var(--ink-strong);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(22px, 2.2vw, 27px); }
h4 { font-size: 20px; }
p { text-wrap: pretty; }
.amp { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-style: normal; }
.lead { font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; color: var(--ink-strong); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font-family: var(--font-btn); font-weight: 500; font-size: 15px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border-radius: 4px; border: 2px solid transparent;
  background: var(--black); color: #fff;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--black); }
.btn:active { transform: scale(.97); }
.btn--light { background: #fff; color: var(--black); }
.btn--light:hover { background: var(--gold); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--black); color: #fff; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 13px; }

/* ---------- announcement bar ---------- */
.announce { background: var(--gold); color: var(--black); font-size: 14px; font-weight: 500; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-block: 6px; text-align: center; position: relative; }
.announce a { font-weight: 600; text-underline-offset: 3px; }
.announce button { position: absolute; right: 0; background: none; border: 0; width: 40px; height: 40px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--black); }
.announce[hidden] { display: none; }

/* ---------- header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand img { height: 60px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; padding: 0; }
.nav a {
  display: block; padding: 10px 11px; text-decoration: none;
  font-size: 14.5px; font-weight: 600; letter-spacing: .06em; color: var(--ink-strong);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #000; border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--black); }
.nav-toggle { display: none; position: relative; z-index: 2; background: none; border: 0; width: 48px; height: 48px; margin-right: -10px; cursor: pointer; color: var(--black); }
.burger { position: relative; display: block; width: 26px; height: 18px; margin: 0 auto; }
.burger span { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, top .45s cubic-bezier(.4, 0, .2, 1); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* No tap flash or focus ring for mouse and touch; keyboard users still get the ring */
a, button { -webkit-tap-highlight-color: transparent; }
.nav-toggle:focus:not(:focus-visible), .nav a:focus:not(:focus-visible) { outline: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .brand { position: relative; z-index: 2; }
  /* Full-screen panel under the header: fades in while the links rise into place */
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 0px); z-index: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 24px var(--gutter) 12vh; background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .4s;
  }
  .nav ul { flex-direction: column; align-items: center; gap: 6px;
    transform: translateY(28px); transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .4s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
  .nav.is-open ul { transform: none; }
  .nav a { font-size: clamp(26px, 7.4vw, 34px); font-weight: 600; letter-spacing: .04em; padding: 6px 0; border: 0; text-align: center; }
  .nav a[aria-current="page"] { color: var(--ink-strong); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- heroes ---------- */
.hero { position: relative; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--black); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(12, 10, 8, .34); }
.hero__inner { position: relative; z-index: 2; padding: 48px var(--gutter); }
.hero h1 { color: #fff; }
.hero p { margin-top: 14px; font-weight: 600; font-size: clamp(16px, 1.5vw, 18px); }
.hero .btn { margin-top: 26px; }
.hero--home { min-height: clamp(460px, 78vh, 760px); }
.hero > img.pos-low, .feature > img.pos-low { object-position: 50% 78%; }
.hero > img.pos-building { object-position: 50% 62%; }
.feature > img.pos-mid { object-position: 50% 6%; }
.feature.feature--tall { min-height: clamp(560px, 72vw, 1040px); }
.feature--tall > img.pos-mid { object-position: 50% 14%; }
.hero.hero--tall { min-height: clamp(300px, 36vw, 520px); }
.hero > img.pos-cups { object-position: 50% 86%; }
.hero > img.pos-sign { object-position: 50% 24%; }
.feature > img.pos-matcha { object-position: 50% 22%; }
.hero--top { place-items: start center; }
.hero--top .hero__inner { padding-top: clamp(56px, 11vh, 120px); }
img.on-cream { background: #FBF7EE; }
.hero--home h1 { font-size: clamp(40px, 5.6vw, 66px); }
.hero--page { min-height: clamp(200px, 26vw, 300px); }
.hero--page h1 { font-size: clamp(34px, 4.6vw, 54px); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--tight { padding-block: calc(var(--section) * .6); }
.centred { text-align: center; }
.centred .lead, .centred p { margin-inline: auto; max-width: 62ch; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 28px; }
.rule { border: 0; border-top: 1px solid var(--line); margin-block: clamp(40px, 6vw, 64px); }

.feature { position: relative; display: grid; place-items: center; text-align: center; min-height: clamp(320px, 44vw, 600px); overflow: hidden; }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature--title::after { content: ""; position: absolute; inset: 0; background: rgba(12,10,8,.28); }
.feature h2 { position: relative; z-index: 2; color: #fff; padding: 0 var(--gutter); font-size: clamp(32px, 4.4vw, 54px); text-shadow: 0 2px 18px rgba(0,0,0,.25); }

/* skyline motif (Golden Bean's own menu artwork) */
.skyline { margin: 36px auto 0; width: min(560px, 92%); }
.skyline img { width: 100%; }
.skyline::after { content: ""; display: block; height: 3px; background: var(--black); border-radius: 2px; }
.badge-art { margin: 32px auto 0; width: 132px; color: var(--black); }

/* ---------- menu page ---------- */
.menu-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: 28px; }
.menu-group + .menu-group { margin-top: 44px; }
.menu-group > h3 { text-align: center; margin-bottom: 18px; }
.menu-item { text-align: center; padding-block: 12px; }
.menu-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 17px; color: var(--ink-strong); }
.menu-item p { font-size: 15px; font-weight: 300; color: var(--muted); margin-top: 2px; }
.menu-section-title { text-align: center; font-size: clamp(34px, 4vw, 48px); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.duo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; text-align: left; }
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px 22px 24px; }
.deal h3 { font-size: 21px; }
.deal p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.note { font-size: 15px; }
.note em { font-style: italic; }

/* ---------- captioned tiles (treats, dogs) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles figure { margin: 0; }
.tiles img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tiles figcaption { margin-top: 12px; font-family: var(--font-head); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 19px; color: var(--ink-strong); }
.tiles--4 figcaption { font-size: 17px; }

/* ---------- photo grid ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- overlap story blocks (image + offset text panel) ---------- */
.overlap { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; margin-top: 56px; }
.overlap > img { grid-column: 1 / 9; grid-row: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.overlap__panel { grid-column: 7 / 13; grid-row: 1; background: var(--surface); padding: clamp(24px, 3.4vw, 44px); position: relative; z-index: 2; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 40px -24px rgba(0,0,0,.35); }
.overlap__panel p { margin-top: 12px; font-size: 16px; color: var(--muted); }
.overlap--flip > img { grid-column: 5 / 13; }
.overlap--flip .overlap__panel { grid-column: 1 / 7; }

/* ---------- locations ---------- */
.locations { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; border: 1px solid var(--line); background: var(--surface); margin-top: 36px; }
.store { padding: 26px 26px 30px; }
.store h3 { font-size: 22px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { font-size: 12.5px; font-weight: 600; background: var(--tint); border-radius: 999px; padding: 3px 10px; }
.store address { font-style: normal; margin-top: 14px; }
.hours { margin-top: 16px; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours .is-today { font-weight: 700; color: var(--ink-strong); }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 15px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2f9e57; box-shadow: 0 0 0 4px rgba(47,158,87,.15); }
.status.is-closed::before { background: #b5473a; box-shadow: 0 0 0 4px rgba(181,71,58,.14); }
.store .btn { margin-top: 20px; }
.map { min-height: 460px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---------- accordions ---------- */
.faq-group + .faq-group { margin-top: 44px; }
.faq-group > .faq-heading { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; padding: 15px 2px; font-weight: 500; color: var(--ink-strong); }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; flex: none; width: 16px; font-size: 20px; line-height: 1.2; font-weight: 300; transition: transform .2s ease; }
details[open] summary::before { transform: rotate(45deg); }
details .answer { padding: 0 2px 18px 30px; color: var(--muted); }
details .answer p + p { margin-top: 10px; }

/* ---------- contact + jobs ---------- */
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.contact-list--3 { grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin-inline: auto; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.contact-card h3 { font-size: 21px; }
.contact-card p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.contact-card a.big { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--ink-strong); text-underline-offset: 3px; }
.role { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 28px; margin-top: 36px; }
.role .meta { font-family: var(--font-head); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 18px; margin-top: 10px; color: var(--ink-strong); }
.role .btn { margin-top: 18px; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: #D7D1C6; font-size: 15px; }
.footer-sky { background: var(--footer); padding-top: 44px; }
.footer-sky img { width: min(720px, 90%); margin-inline: auto; opacity: .9; }
.footer-sky::after { content: ""; display: block; width: min(720px, 90%); margin: 0 auto; height: 2px; background: rgba(255,255,255,.85); }
.site-footer .cols { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 28px 40px; padding-block: 44px 30px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--gold); }
.site-footer .fine { border-top: 1px solid #36322c; padding-block: 18px 26px; font-size: 13.5px; color: #9C958A; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer .credit a { color: #C9C2B6; }
.site-footer .credit a:hover { color: var(--gold); }
.site-footer .social { display: flex; gap: 10px; margin-top: 14px; }
.site-footer .social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #4a453d; }
.site-footer .social a:hover { border-color: var(--gold); }
.site-footer .social svg { width: 20px; height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .menu-block, .duo { grid-template-columns: 1fr; }
  .deals { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid > img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; object-position: 50% 22%; }
  .tiles, .tiles--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tiles figcaption { font-size: 16px; margin-top: 8px; }
  .overlap { display: block; }
  .overlap > img { aspect-ratio: 4 / 3; }
  .overlap__panel { margin: -48px 16px 0; }
  .locations { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 360px; }
  .contact-list, .contact-list--3 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .site-header .wrap { min-height: 66px; }
  .announce .wrap { padding-right: 36px; font-size: 13.5px; }
  .photo-grid { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
