/* ============================================================
   Nixon's Coffee — Stylesheet
   Display: Cormorant Garamond  |  UI/Body: Schibsted Grotesk
   ============================================================ */

:root {
  /* Surfaces */
  --espresso:      #1c1712;
  --espresso-2:    #241d16;
  --espresso-3:    #2e251c;
  --cream:         #f6efe3;
  --cream-deep:    #ece1cf;
  --paper:         #fbf8f1;
  --ink:           #221c15;
  --ink-soft:      #5a4f43;

  /* Accents (tweakable) */
  --gold:          #c0934b;
  --gold-deep:     #a8772f;
  --blue:          #2f5d86;
  --blue-deep:     #234a6c;

  /* Role tokens — re-pointed by tweaks */
  --accent:        var(--gold);
  --accent-deep:   var(--gold-deep);
  --accent-2:      var(--blue);

  /* Type */
  --display: "Cormorant Garamond", Georgia, serif;
  --ui: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Geometry */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 4px;

  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.04; letter-spacing: -0.01em; }

/* ---------- Reusable atoms ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ui); font-weight: 600; font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #221a0e; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: currentColor; }
.btn-ghost.on-dark:hover { color: var(--espresso); }
.btn-ghost.on-light:hover { color: var(--cream); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

.section { padding-block: clamp(72px, 11vw, 140px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-logo img { height: 42px; width: auto; transition: filter .35s; }
.nav-logo .wordmark {
  font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: .01em;
  line-height: 1; color: #fff; transition: color .35s;
}
.nav-logo .wordmark small { display:block; font-family: var(--ui); font-size: 9.5px; letter-spacing: .42em; font-weight: 600; opacity: .65; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.82);
  padding: 9px 16px; border-radius: 999px;
  transition: color .25s, background .25s;
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* scrolled state */
.nav.scrolled { background: rgba(251,248,241,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(34,28,21,.08); }
.nav.scrolled .wordmark { color: var(--ink); }
.nav.scrolled .nav-logo img { filter: brightness(0) saturate(100%); } /* white png -> dark via invert below */
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav.scrolled .nav-links a.active { color: var(--accent-deep); }
.nav.scrolled .btn-ghost { color: var(--ink); }

.nav-burger { display:none; background:none; border:none; cursor:pointer; padding:10px; }
.nav-burger span { display:block; width:24px; height:2px; background:#fff; margin:5px 0; transition:.3s; }
.nav.scrolled .nav-burger span { background: var(--ink); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: var(--espresso); display:flex; flex-direction:column;
  padding: 30px var(--gutter); transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.2,1); }
.drawer.open { transform: translateY(0); }
.drawer-top { display:flex; justify-content:space-between; align-items:center; }
.drawer-close { background:none;border:none;color:#fff;font-size:30px;cursor:pointer;line-height:1; }
.drawer nav { display:flex; flex-direction:column; gap:6px; margin-top: 8vh; }
.drawer nav a { font-family: var(--display); font-size: 40px; color: var(--cream); padding: 8px 0; transition: color .2s; }
.drawer nav a:hover { color: var(--accent); }
.drawer .drawer-foot { margin-top:auto; color: rgba(255,255,255,.5); font-size:14px; display:flex; gap:20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(192,147,75,.16), transparent 55%),
    linear-gradient(180deg, var(--espresso-2), var(--espresso) 60%, #15110c);
  color: var(--cream);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,72px); align-items:center; width:100%; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(50px, 7.4vw, 104px); font-weight: 500; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { font-size: clamp(17px,1.4vw,20px); color: rgba(246,239,227,.78); max-width: 46ch; margin: 26px 0 38px; line-height: 1.6; }
.hero-actions { display:flex; gap:16px; flex-wrap:wrap; }
.hero-meta { display:flex; gap: 34px; margin-top: 54px; }
.hero-meta .m-num { font-family: var(--display); font-size: 34px; color: #fff; line-height:1; }
.hero-meta .m-lab { font-size: 12.5px; letter-spacing:.14em; text-transform:uppercase; color: rgba(246,239,227,.55); margin-top:8px; }
.hero-meta > div { position: relative; }
.hero-meta > div + div { padding-left: 34px; }
.hero-meta > div + div::before { content:""; position:absolute; left:0; top:2px; bottom:2px; width:1px; background: rgba(246,239,227,.18); }

.hero-visual { position: relative; }
.hero-visual > img { width: 100%; height: min(64vh, 580px); object-fit: cover; border-radius: 6px; display:block; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
.hero-emblem {
  position:absolute; left:-54px; bottom:-46px; width:148px; height:148px;
  background: var(--espresso); border-radius:50%; display:grid; place-items:center;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); border: 1px solid rgba(192,147,75,.3);
}
.hero-emblem img { width: 104px; }
.hero-badge {
  position:absolute; right: 20px; top: 20px; background: var(--accent); color:#231a0c;
  font-weight:700; font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  padding:10px 16px; border-radius:999px;
}

/* hero centered variant (tweak) */
body[data-hero="center"] .hero-grid { grid-template-columns: 1fr; text-align:center; justify-items:center; }
body[data-hero="center"] .hero-visual { display:none; }
body[data-hero="center"] .hero-copy { max-width: 860px; }
body[data-hero="center"] .hero-lead { margin-inline:auto; }
body[data-hero="center"] .hero-actions,
body[data-hero="center"] .hero-meta { justify-content:center; }
body[data-hero="center"] .hero .eyebrow::after { content:""; width:26px; height:1.5px; background:var(--accent); display:inline-block; }

/* hide marquee (tweak) */
body[data-strip="off"] .strip { display:none; }

/* steam decoration */
.steam { position:absolute; right: 8%; top: 0; width: 2px; height: 30%; pointer-events:none; opacity:.0; }

/* marquee strip */
.strip { background: var(--accent); color: #231a0c; overflow:hidden; }
.strip-track { display:flex; gap: 0; white-space:nowrap; animation: marquee 32s linear infinite; }
.strip-track span { font-family: var(--display); font-style: italic; font-size: 26px; padding: 16px 30px; display:inline-flex; align-items:center; }
.strip-track span::after { content:"✦"; font-size:13px; margin-left:36px; opacity:.5; font-style:normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   GENERIC SECTION HEADER
   ============================================================ */
.sec-head { max-width: 720px; margin-bottom: clamp(40px,5vw,64px); }
.sec-head.center { margin-inline:auto; text-align:center; }
.sec-head h2 { font-size: clamp(36px,4.6vw,62px); font-weight: 500; margin-top: 18px; }
.sec-head p { color: var(--ink-soft); font-size: 18px; margin-top: 18px; max-width: 56ch; }
.sec-head.center p { margin-inline:auto; }

/* ============================================================
   FEATURED
   ============================================================ */
.featured { background: var(--cream); }
.feat-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,2.5vw,34px); }
.feat-card { display:flex; flex-direction:column; }
.feat-card img { width:100%; height: 320px; object-fit: cover; border-radius: 6px; display:block; }
.feat-card .fc-cat { margin-top:22px; font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:var(--accent-deep); font-weight:600; }
.feat-card h3 { font-size: 30px; font-weight:600; margin-top:8px; }
.feat-card p { color: var(--ink-soft); font-size:15.5px; margin-top:8px; }
.feat-card .fc-price { margin-top:auto; padding-top:16px; font-family:var(--display); font-size:22px; color:var(--ink); }

/* ============================================================
   MENU (interactive)
   ============================================================ */
.menu { background: var(--espresso); color: var(--cream); }
.menu .sec-head h2 { color:#fff; }
.menu .sec-head p { color: rgba(246,239,227,.66); }
.menu-tabs { display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 30px; }
.menu-tab {
  font-family:var(--ui); font-weight:600; font-size:14.5px; color: rgba(246,239,227,.7);
  background: transparent; border:1.5px solid rgba(246,239,227,.2); border-radius:999px;
  padding:11px 22px; cursor:pointer; transition: .25s;
}
.menu-tab:hover { border-color: rgba(246,239,227,.5); color:#fff; }
.menu-tab.active { background: var(--accent); border-color: var(--accent); color:#231a0c; }

.menu-filters { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom: 42px; }
.menu-filters .flab { font-size:12px; letter-spacing:.16em; text-transform:uppercase; color: rgba(246,239,227,.45); margin-right:6px; }
.chip {
  font-family:var(--ui); font-size:13px; font-weight:500; color: rgba(246,239,227,.8);
  background: rgba(246,239,227,.06); border:1px solid rgba(246,239,227,.16); border-radius:999px;
  padding:7px 15px; cursor:pointer; transition:.2s;
}
.chip:hover { background: rgba(246,239,227,.12); }
.chip.active { background: var(--accent-2); border-color: var(--accent-2); color:#fff; }

.menu-list { display:grid; grid-template-columns: 1fr 1fr; gap: 6px 56px; }
.menu-item {
  display:grid; grid-template-columns: 1fr auto; align-items:baseline; gap: 8px 16px;
  padding: 18px 0; border-bottom: 1px solid rgba(246,239,227,.1);
  transition: opacity .3s, transform .3s;
}
.menu-item .mi-name { font-family:var(--display); font-size: 24px; font-weight:600; color:#fff; }
.menu-item .mi-dots { flex:1; }
.menu-item .mi-price { font-family:var(--display); font-size:21px; color: var(--accent); white-space:nowrap; }
.menu-item .mi-desc { grid-column:1 / -1; color: rgba(246,239,227,.6); font-size:14.5px; margin-top:2px; max-width: 50ch; }
.menu-item .mi-tags { grid-column:1/-1; display:flex; gap:7px; margin-top:9px; }
.menu-item .mi-tags span { font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--accent-2);
  border:1px solid rgba(47,93,134,.6); border-radius:4px; padding:3px 8px; font-weight:600; }
.menu-item.hidden { display:none; }

/* ============================================================
   LUNCH (split)
   ============================================================ */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,80px); align-items:center; }
.split.flip .split-media { order:2; }
.split-media img { width:100%; height: min(70vh, 560px); object-fit: cover; border-radius: 6px; display:block; }
.split-body h2 { font-size: clamp(34px,4.4vw,58px); font-weight:500; margin-top:18px; }
.split-body p { color: var(--ink-soft); margin-top:20px; font-size:17.5px; }
.lunch-list { margin-top: 30px; display:flex; flex-direction:column; }
.lunch-row { display:flex; justify-content:space-between; align-items:baseline; gap:18px; padding:16px 0; border-top:1px solid var(--cream-deep); }
.lunch-row:last-child { border-bottom:1px solid var(--cream-deep); }
.lunch-row .lr-name { font-family:var(--display); font-size:21px; color:var(--ink); }
.lunch-row .lr-name span { display:block; font-family:var(--ui); font-size:13px; color:var(--ink-soft); margin-top:3px; }
.lunch-row .lr-price { font-family:var(--display); font-size:19px; color: var(--accent-deep); }

/* ============================================================
   BAKERY STORY
   ============================================================ */
.bakery { background: var(--espresso); color: var(--cream); position:relative; }
.bakery .split-body h2 { color:#fff; }
.bakery .split-body p { color: rgba(246,239,227,.72); }
.bakery .bk-quote { font-family:var(--display); font-style:italic; font-size: clamp(24px,2.4vw,32px); color: var(--accent);
  line-height:1.3; margin-top:30px; padding-left:22px; border-left:2px solid var(--accent); }

/* ============================================================
   ABOUT / PHILOSOPHY
   ============================================================ */
.about { background: var(--paper); }
.phil-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3vw,48px); margin-top: 20px; }
.phil { padding-top: 26px; border-top: 2px solid var(--ink); }
.phil .p-num { font-family:var(--display); font-size: 20px; color: var(--accent-deep); }
.phil h3 { font-size: 27px; font-weight:600; margin-top:14px; }
.phil p { color: var(--ink-soft); font-size:15.5px; margin-top:12px; }

/* ============================================================
   VISIT
   ============================================================ */
.visit { background: var(--cream); }
.visit-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,60px); }
.visit-info dl { margin:0; }
.visit-info .vrow { display:flex; justify-content:space-between; gap:20px; padding:15px 0; border-bottom:1px solid var(--cream-deep); }
.visit-info .vrow dt { font-size:13px; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-soft); font-weight:600; }
.visit-info .vrow dd { margin:0; font-family:var(--display); font-size:19px; color:var(--ink); text-align:right; }
.visit-info .vrow dd.open { color: #2e7d4f; }
.visit-actions { display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.visit-map { position:relative; border-radius:var(--radius); overflow:hidden; min-height: 380px; }
.visit-map iframe { width:100%; height:100%; min-height:380px; border:0; display:block; }
.visit-pin { position:absolute; left:50%; top:50%; transform:translate(-50%,-100%); z-index:2; }
.visit-pin .pin-dot { width:18px;height:18px;border-radius:50%;background:var(--accent);border:3px solid #fff;box-shadow:0 6px 18px rgba(0,0,0,.3); margin:0 auto; }
.visit-pin .pin-lab { background:#fff;color:var(--ink);font-weight:600;font-size:12.5px;padding:6px 12px;border-radius:6px;margin-top:8px;box-shadow:0 6px 18px rgba(0,0,0,.18);white-space:nowrap; }

/* ============================================================
   INSTAGRAM
   ============================================================ */
.insta { background: var(--espresso); color: var(--cream); }
.insta .sec-head h2 { color:#fff; }
.insta-grid { display:grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.insta-grid img { width:100%; aspect-ratio:1; height:auto; object-fit: cover; border-radius: 4px; display:block; }
.insta-foot { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-top:38px; flex-wrap:wrap; }
.insta-foot .handle { font-family:var(--display); font-size: 30px; color:#fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #15110c; color: rgba(246,239,227,.6); padding-block: 72px 38px; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 84px; margin-bottom:18px; }
.footer-brand p { max-width: 34ch; font-size:15px; }
.footer h4 { font-family:var(--ui); font-size:12px; letter-spacing:.18em; text-transform:uppercase; color: var(--accent); margin:0 0 16px; }
.footer ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:11px; }
.footer ul a { font-size:15px; color: rgba(246,239,227,.72); transition:color .2s; }
.footer ul a:hover { color: var(--accent); }
.footer-bot { display:flex; justify-content:space-between; gap:20px; margin-top:54px; padding-top:26px; border-top:1px solid rgba(246,239,227,.12); font-size:13.5px; flex-wrap:wrap; }

/* ============================================================
   Accessibility & misc
   ============================================================ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.menu-empty { color: rgba(246,239,227,.6); font-family: var(--display); font-style: italic; font-size: 22px; padding: 26px 0; margin: 0; }
.visit-info dd a { border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.visit-info dd a:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
html.js .reveal { opacity:0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity:1; transform:none; transition:none; } .strip-track{ animation:none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display:none; }
  .nav-burger { display:block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 40px) 64px; }
  .hero-visual { margin-top: 8px; }
  .hero-visual > img { height: 340px; }
  .hero-emblem { left: auto; right: 14px; bottom: -30px; width: 104px; height: 104px; }
  .hero-emblem img { width: 72px; }
  .hero-badge { right: 14px; top: 14px; }
  .hero-meta { margin-top: 38px; gap: 26px; }
  .feat-grid { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order:0; }
  .phil-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .insta-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .hero-meta > div + div { padding-left:20px; }
}
