/* Ike's Gourmet Popcorn — design tokens + base + components
   Brand pulled from real storefront photography: red feature wall,
   black bags with gold circular labels, red script "Ike's" wordmark. */

:root {
  /* Color */
  --red: #B31E2E;
  --red-bright: #D6293B;
  --red-dark: #7E1420;
  --black: #1B1712;
  --gold: #DFA524;
  --gold-light: #F0CC7E;
  --cream: #FBF5E9;
  --cream-deep: #F2E6CC;
  --white: #FFFFFF;
  --text: #241E18;
  --text-muted: #6E6255;
  --line: rgba(27, 23, 18, 0.12);

  /* Type */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-script: "Alex Brush", cursive;
  --font-body: "Work Sans", ui-sans-serif, system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --max: 1160px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  min-height: 100dvh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 2.8rem); }
h3 { font-size: clamp(1.25rem, 1.4vw + 1rem, 1.6rem); }
p { margin: 0 0 1em; color: var(--text); }
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--black); color: var(--white); padding: 0.75em 1.25em;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* focus visibility — never remove */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--cream-deep { background: var(--cream-deep); }
.section--black { background: var(--black); color: var(--cream); }
.section--black h2, .section--black h3 { color: var(--white); }
.section--black .lede { color: rgba(251, 245, 233, 0.72); }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.9rem;
}
.section--black .eyebrow { color: var(--gold-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-bright); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(0,0,0,0.05); }
.section--black .btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover, .btn--gold:hover { transform: translateY(-1px); }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.wordmark { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; color: var(--text); }
.wordmark__script {
  font-family: var(--font-script); font-size: 2.1rem; color: var(--red); line-height: 1;
}
.wordmark__sub {
  font-family: var(--font-body); font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--black);
  align-self: flex-end; margin-bottom: 0.3rem;
}

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: none; background: transparent; cursor: pointer;
  color: var(--black);
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav__list { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.main-nav__list a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--text);
  position: relative; padding: 0.3rem 0;
}
.main-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--red); transition: right 220ms var(--ease-out);
}
.main-nav__list a:hover::after,
.main-nav__list a[aria-current="page"]::after { right: 0; }
.main-nav__list a[aria-current="page"] { color: var(--red); }

.lang-toggle {
  display: inline-flex; border: 2px solid var(--black); border-radius: 999px;
  overflow: hidden; font-weight: 700; font-size: 0.78rem;
}
.lang-toggle button {
  border: none; background: transparent; padding: 0.45em 0.85em; cursor: pointer;
  color: var(--black); min-height: 40px; min-width: 44px;
  transition: background-color 160ms ease, color 160ms ease;
}
.lang-toggle button[aria-pressed="true"] { background: var(--black); color: var(--cream); }

@media (max-width: 880px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); height: 100dvh;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 5.5rem 1.75rem 2rem; gap: 2rem;
    transform: translateX(100%); transition: transform 320ms var(--ease-out);
    box-shadow: -12px 0 30px rgba(0,0,0,0.18);
  }
  .main-nav[data-open="true"] { transform: translateX(0); }
  .main-nav__list { flex-direction: column; gap: 1.1rem; }
  .main-nav__list a { font-size: 1.2rem; }
  .nav-toggle { display: inline-flex; }
  .nav-scrim {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 90;
  }
  .nav-scrim[data-open="true"] { display: block; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero--split .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
.hero__media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -25px rgba(27,23,18,0.45); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5em; background: var(--gold);
  color: var(--black); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 0.5em 0.9em; border-radius: 999px; margin-bottom: 1.25rem;
}
@media (max-width: 880px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .hero--split .hero__media { order: -1; }
}

/* ===== Cards & grids ===== */
.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }
}

.flavor-group {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  border: 1px solid var(--line);
}
.flavor-group h3 { color: var(--red-dark); margin-bottom: 0.9rem; }
.flavor-group ul { margin: 0; padding: 0; list-style: none; }
.flavor-group li {
  padding: 0.5rem 0; border-top: 1px solid var(--line); display: flex;
  justify-content: space-between; gap: 1rem; font-size: 0.98rem;
}
.flavor-group li:first-child { border-top: none; }
.flavor-group li span.tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gold); white-space: nowrap;
}

.story-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.story-block--reverse { grid-template-columns: 1.1fr 0.9fr; }
.story-block--reverse .story-block__media { order: 2; }
@media (max-width: 880px) {
  .story-block, .story-block--reverse { grid-template-columns: 1fr; }
  .story-block--reverse .story-block__media { order: -1; }
}
.story-block__media img { border-radius: var(--radius); }

.info-card {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem;
  border: 1px solid var(--line); height: 100%;
}
.info-card h3 { margin-bottom: 0.6rem; }
.info-card p { color: var(--text-muted); margin-bottom: 0; }

/* pull quote */
.pull {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--red-dark); border-left: 4px solid var(--gold); padding-left: 1.25rem;
  margin: 2rem 0; max-width: 62ch;
}

/* map + hours panel */
.visit-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
@media (max-width: 880px) { .visit-panel { grid-template-columns: 1fr; } }
.map-frame--static {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 4/3; background: var(--white); text-decoration: none; color: var(--text);
  padding: 2rem; position: relative; overflow: hidden;
  transition: border-color 160ms ease, transform 160ms var(--ease-out);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(179,30,46,0.06), transparent 55%),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 48px);
}
.map-frame--static:hover { border-color: var(--red); transform: translateY(-2px); }
.map-frame--static svg { width: 44px; height: 44px; fill: var(--red); flex-shrink: 0; }
.map-frame--static strong { font-family: var(--font-display); font-size: 1.15rem; }
.map-frame--static .map-frame__cta {
  margin-top: auto; font-weight: 700; color: var(--red-dark); font-size: 0.95rem;
}
.hours-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.hours-table td { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.note-callout {
  background: var(--cream-deep); border-radius: 10px; padding: 1rem 1.25rem;
  font-size: 0.92rem; color: var(--text-muted);
}

/* ===== Footer ===== */
.site-footer { background: var(--black); color: var(--cream); padding: 3.5rem 0 1.75rem; }
.site-footer p, .site-footer li { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-grid h4 {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.78rem; color: var(--gold-light); margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { text-decoration: none; color: inherit; }
.footer-grid a:hover { color: var(--white); }
.footer-wordmark .wordmark__script { color: var(--gold-light); }
.footer-wordmark .wordmark__sub { color: var(--cream); }
.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(251,245,233,0.3);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.social-row a:hover { background: rgba(251,245,233,0.12); border-color: rgba(251,245,233,0.6); }
.social-row svg { width: 20px; height: 20px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(251,245,233,0.16); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom__built a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom__made { font-size: 0.78rem; opacity: 0.75; }

.ai-tab {
  position: fixed; right: 0; top: 62%; transform: translateY(-50%) rotate(-90deg) translateX(50%);
  transform-origin: right center;
  background: var(--black); color: var(--gold-light); text-decoration: none;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.5em 0.9em; border-radius: 8px 8px 0 0; z-index: 80;
  transition: background-color 160ms ease;
}
.ai-tab:hover { background: var(--red-dark); }
@media (max-width: 880px) { .ai-tab { display: none; } }
.footer-ai-link { font-size: 0.85rem; opacity: 0.85; }

/* sticky mobile CTA bar */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--red); color: var(--white);
  display: none; align-items: stretch;
  box-shadow: 0 -8px 20px rgba(0,0,0,0.18);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-cta-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95rem 0.5rem; text-decoration: none; color: var(--white); font-weight: 700; font-size: 0.92rem;
  min-height: 56px;
}
.mobile-cta-bar a + a { border-left: 1px solid rgba(255,255,255,0.25); }
.mobile-cta-bar svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 720px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 56px; }
}

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition-duration: 1ms; transform: none; }
}

/* language visibility handled via [hidden] attribute in markup/JS */

.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0; }
.badge-row span {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4em 0.9em; font-size: 0.82rem; font-weight: 600; color: var(--red-dark);
}
.section--black .badge-row span { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: var(--gold-light); }

.anniversary-strip {
  background: var(--gold); color: var(--black); text-align: center;
  font-weight: 700; font-size: 0.88rem; padding: 0.6rem 1rem;
}
.anniversary-strip a { text-decoration: underline; }

/* ===== Homepage-only scrolling marquee banner ===== */
.marquee-strip {
  background: var(--gold); color: var(--black);
  overflow: hidden; white-space: nowrap;
  padding: 0.65rem 0;
}
.marquee-strip__track {
  display: inline-flex; width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-strip:hover .marquee-strip__track,
.marquee-strip:focus-within .marquee-strip__track { animation-play-state: paused; }
.marquee-strip__set { display: inline-flex; flex-shrink: 0; }
.marquee-strip__item {
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.01em;
  padding: 0 1.5rem; position: relative;
}
.marquee-strip__item::after {
  content: "•"; position: absolute; right: -0.1rem; color: var(--red-dark); opacity: 0.6;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-strip { overflow-x: auto; }
  .marquee-strip__track { animation: none; }
}

visually-hidden, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
