/* Hoekwil Country Cafe. Tokens first: colours from their pink tables, green roof and coffee. */
:root {
  --cream: #F7F2EA;
  --cream-2: #EFE6D8;
  --ink: #2B1D16;
  --ink-soft: #5A4A40;
  --green: #1E4D3A;
  --green-deep: #153829;
  --pink: #EDBACB;
  --pink-pale: #F7E1E8;
  --coffee: #4A2E22;
  --lavender: #7D6AA8;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --header: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
}
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px;
}
.skip:focus { left: 8px; }
section[id] { scroll-margin-top: var(--header); }

/* ---------- Pills and discs ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.pill:hover { transform: translateY(-2px); }
.pill-pink { background: var(--pink); color: var(--ink); }
.pill-pink:hover { background: var(--cream); }
.pill-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.pill-cream:hover { background: var(--pink); border-color: var(--pink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  background: var(--cream);
  border-bottom: 1.5px solid var(--ink);
}
.wordmark {
  font-family: var(--script); font-size: 2.15rem; line-height: 1;
  color: var(--green); text-decoration: none; white-space: nowrap;
  margin-right: auto; padding-top: 4px;
}
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.95rem; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-color: var(--ink); }
.burger {
  display: none; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 16px;
  background: var(--ink); color: var(--cream);
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.burger-lines, .burger-lines::before, .burger-lines::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  transition: transform 200ms ease;
}
.burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; }
.burger-lines::before { top: -6px; }
.burger-lines::after { top: 6px; }
.burger[aria-expanded="true"] .burger-lines { background: transparent; }
.burger[aria-expanded="true"] .burger-lines::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines::after { transform: translateY(-6px) rotate(-45deg); }

.overlay {
  position: fixed; inset: var(--header) 0 0 0; z-index: 90;
  background: var(--green); color: var(--cream);
  padding: 40px var(--gutter);
  display: flex; flex-direction: column; gap: 32px;
}
.overlay[hidden] { display: none; }
.overlay nav { display: grid; gap: 6px; }
.overlay nav a {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.05; text-decoration: none;
}
.overlay .pill { align-self: flex-start; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
  display: flex; align-items: flex-end;
  background: var(--green-deep); color: var(--cream);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: scale(1.12); transform-origin: 50% 60%;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(21, 32, 24, 0.86) 0%, rgba(21, 32, 24, 0.5) 38%, rgba(21, 32, 24, 0) 70%),
    linear-gradient(90deg, rgba(21, 32, 24, 0.5) 0%, rgba(21, 32, 24, 0) 55%);
}
.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(36px, 6vh, 72px);
}
.hero h1 {
  font-size: clamp(4.2rem, 13.5vw, 12.5rem);
  line-height: 0.84; letter-spacing: -0.02em;
}
.hero h1 span { display: block; }
.hero-lede {
  max-width: 34ch; margin: 22px 0 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500;
}
.disc {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 80px);
  width: clamp(120px, 13vw, 180px); aspect-ratio: 1;
  border-radius: 50%; background: var(--pink); color: var(--ink);
  display: grid; place-items: center;
}
.disc-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.disc-text text {
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: 2.4px; text-transform: uppercase; fill: var(--ink);
}
.disc-sprig { width: 42%; height: 42%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 2. Intro ---------- */
.intro {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--gutter) clamp(60px, 9vw, 110px);
  display: grid; gap: 36px;
}
.intro h2 {
  color: var(--green);
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  max-width: 17ch;
}
.intro-body { display: flex; gap: 32px; align-items: flex-start; max-width: 62ch; }
.intro-body p { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; margin: 0; }
.sticker { width: 120px; height: 120px; flex: none; }
.sticker-sprig { transform: rotate(-12deg); }

/* ---------- 3. Cheesecake wheel ---------- */
.wheel { position: relative; background: var(--pink-pale); overflow-x: clip; }
html { overflow-x: clip; }
.drift-word {
  position: absolute; top: 12vh; left: 0; margin: 0; z-index: 0;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(7rem, 22vw, 22rem); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px rgba(43, 29, 22, 0.16);
  pointer-events: none; will-change: transform;
}
.wheel-stage {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) var(--gutter);
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
.wheel-head h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); color: var(--ink); margin-bottom: 18px; }
.wheel-head p { max-width: 46ch; color: var(--ink-soft); margin: 0; }
.cake-wrap { display: grid; place-items: center; }
.cake { width: min(78vw, 520px); height: auto; overflow: visible; }
.cake .slice { transition: transform 450ms cubic-bezier(.2,.8,.2,1); }
.cake .slice-fill { stroke: var(--cream); stroke-width: 2.5; }
.cake .slice-crust { fill: none; stroke: #A8743F; stroke-width: 9; }
.cake .slice-empty { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6; }
.cake .slice-q { font-family: var(--display); font-weight: 800; font-size: 26px; fill: var(--ink); }
.flavour-panel { display: grid; gap: 28px; align-content: center; }
.flavours { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.flavours li {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.12;
  color: var(--ink);
}
.flavours li::before {
  content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; flex: none;
  background: var(--dot, transparent); border: 2px solid var(--ink);
  align-self: center;
}
.flavour-note {
  font-family: var(--body); font-weight: 600; text-transform: none;
  font-size: 1rem; color: var(--ink-soft); letter-spacing: 0;
}
.flavour-photo { display: none; }

/* The live, scroll driven wheel (only when JavaScript runs and motion is allowed) */
.wheel.is-live { height: 420vh; }
.wheel.is-live .wheel-stage {
  position: sticky; top: var(--header);
  height: calc(100vh - var(--header));
  padding-top: 32px; padding-bottom: 32px;
  grid-template-columns: 1fr; grid-template-rows: auto 1fr auto;
  align-items: center; gap: 12px;
}
.wheel.is-live .cake { width: min(70vw, 44vh, 520px); }
.wheel.is-live .flavours li { transition: opacity 300ms ease, transform 300ms ease; }
.wheel.is-live .flavours li:not(.is-active) { display: none; }
.wheel.is-live .flavours li.is-active { font-size: clamp(2rem, 8vw, 3.2rem); }
.wheel.is-live .wheel-head p { display: none; }

/* ---------- 4. Arch strip ---------- */
.arches { overflow: hidden; padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 120px); text-align: center; }
.arches h2 {
  font-size: clamp(3rem, 8vw, 7rem); color: var(--ink);
  padding: 0 var(--gutter); max-width: 14ch; margin: 0 auto;
}
.arches-lede { max-width: 46ch; margin: 22px auto 56px; padding: 0 var(--gutter); color: var(--ink-soft); }
.arch-row {
  display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 28px);
  width: max-content; padding: 0 var(--gutter);
  will-change: transform;
}
.arch { margin: 0; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--cream-2); flex: none; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-row .arch { width: clamp(220px, 24vw, 340px); height: clamp(280px, 30vw, 400px); }
.arch-row .arch-tall { height: clamp(340px, 38vw, 500px); }
.arch-row .arch-small { width: clamp(180px, 18vw, 240px); height: clamp(230px, 22vw, 300px); }
.round-sticker {
  flex: none; width: clamp(90px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  background: var(--green); display: grid; place-items: center; margin-bottom: 40px;
}
.round-sticker svg { width: 60%; height: 60%; }
.round-pink { background: var(--pink); margin-bottom: 140px; }
html:not(.motion) .arch-row { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; }

/* ---------- 5. Menu ---------- */
.menu { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 130px) var(--gutter); }
.menu-head { display: grid; gap: 20px; margin-bottom: 40px; }
.menu-head h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.menu-head p { max-width: 50ch; color: var(--ink-soft); margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tabs[hidden] { display: none; }
.tabs button {
  min-height: 46px; padding: 10px 22px; cursor: pointer;
  border-radius: 999px; border: 2px solid var(--pink);
  background: transparent; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tabs button:hover { background: var(--pink-pale); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.menu-body { display: grid; gap: 40px; }
.panel-title { font-size: 1.6rem; margin: 0 0 14px; color: var(--green); }
.panel + .panel { margin-top: 40px; }
.menu.is-live .panel + .panel { margin-top: 0; }
.menu.is-live .panel-title { display: none; }
.panel ul { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.panel li { padding: 16px 0; border-bottom: 1px solid rgba(43, 29, 22, 0.22); color: var(--ink-soft); }
.panel li b {
  display: block; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.01em;
}
.menu-board { margin: 0; border-radius: 28px; overflow: hidden; align-self: start; }

/* ---------- 6. Reviews ---------- */
.reviews { overflow: hidden; background: var(--cream-2); padding: clamp(80px, 11vw, 140px) 0; }
.reviews h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.ratings {
  list-style: none; margin: 28px auto 48px; padding: 0 var(--gutter); max-width: var(--max);
  display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--ink-soft);
}
.ratings b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ink); margin-right: 6px; }
.quote-row { display: flex; gap: 20px; width: max-content; padding: 0 var(--gutter); will-change: transform; }
html:not(.motion) .quote-row { width: auto; overflow-x: auto; }
.quote {
  margin: 0; flex: none; width: clamp(280px, 30vw, 420px);
  padding: 34px 32px 30px; border-radius: 28px; color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 290px;
}
.quote::before {
  content: "\201C"; font-family: var(--display); font-weight: 800; font-size: 5rem; line-height: 0.6;
  color: var(--pink); display: block; height: 40px;
}
.quote p { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.35; font-weight: 500; margin: 18px 0 22px; }
.quote footer { font-weight: 600; font-size: 0.98rem; opacity: 0.92; }
.q-green { background: var(--green); }
.q-coffee { background: var(--coffee); }

/* ---------- 7. Village store ---------- */
.store {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--gutter);
  display: grid; gap: 48px; align-items: center;
}
.store-art { position: relative; display: grid; justify-items: center; }
.arc-title { width: min(100%, 560px); height: auto; margin-bottom: -46px; overflow: visible; }
.arc-title text {
  font-family: var(--display); font-weight: 800; font-size: 66px; text-transform: uppercase;
  fill: var(--ink); letter-spacing: 1px;
}
.store-photo { width: min(72vw, 360px); height: min(90vw, 450px); }
.disc-link {
  position: absolute; right: 8%; bottom: -26px; left: auto;
  width: 140px; text-decoration: none; text-align: center;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1rem; line-height: 1.1;
  border: 2px solid var(--ink); transition: transform 300ms ease, background-color 200ms ease;
}
.disc-link span { padding: 0 16px; }
.disc-link:hover { transform: rotate(-8deg) scale(1.05); background: var(--cream); }
.store-lede { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; text-transform: uppercase; }
.store-quote { margin: 30px 0 0; padding: 26px 0 0; border-top: 2px solid var(--ink); }
.store-quote p { font-size: 1.25rem; line-height: 1.45; }
.store-quote footer { font-weight: 600; color: var(--ink-soft); }

/* ---------- 8. Visit card ---------- */
.visit { padding: 0 var(--gutter) clamp(80px, 11vw, 140px); }
.visit-card {
  position: relative; max-width: var(--max); margin: 0 auto;
  background: var(--green); color: var(--cream);
  border-radius: 40px; padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
  display: grid; gap: 36px;
}
.visit-card h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 14ch; }
.visit-lede { font-size: 1.2rem; max-width: 46ch; margin: 0; }
.visit-grid { display: grid; gap: 36px; }
.visit-card h3 { font-size: 1.3rem; letter-spacing: 0.04em; margin-bottom: 16px; color: var(--pink); }
.hours { margin: 0; border-top: 1.5px solid rgba(247, 242, 234, 0.5); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1.5px solid rgba(247, 242, 234, 0.25); }
.hours dt { font-weight: 600; white-space: nowrap; }
.hours dd { white-space: nowrap; }
.hours dd { margin: 0; text-align: right; }
.small { font-size: 0.98rem; margin-top: 14px; }
.visit-card address { font-style: normal; font-size: 1.15rem; line-height: 1.55; margin-bottom: 12px; }
.big-link { font-family: var(--display); font-weight: 800; font-size: 1.8rem; text-decoration: none; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.visit-actions .pill-pink { border-color: var(--pink); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: 24px; background: var(--green-deep); }
.card-sticker-a, .card-sticker-b { position: absolute; width: 110px; height: 110px; }
.card-sticker-a { top: -48px; right: clamp(20px, 6vw, 80px); transform: rotate(18deg); }
.card-sticker-b { bottom: -40px; left: clamp(10px, 4vw, 50px); transform: rotate(-28deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: var(--cream); padding: 72px var(--gutter) 28px; overflow: hidden; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--pink); }
.foot-cols { max-width: var(--max); margin: 0 auto; display: grid; gap: 36px; }
.foot-title { font-family: var(--script); font-size: 2.4rem; line-height: 1; margin-bottom: 18px; }
.foot-label { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; margin-bottom: 12px; color: var(--pink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.giant {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(5rem, 23vw, 25rem); line-height: 0.8; letter-spacing: -0.03em;
  text-align: center; margin: 56px 0 24px; color: var(--cream);
}
.foot-base {
  max-width: var(--max); margin: 0 auto; padding-top: 18px;
  border-top: 1.5px solid rgba(247, 242, 234, 0.3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.95rem;
}
.foot-base p { margin: 0; }

/* ---------- Tablet and up ---------- */
@media (min-width: 760px) {
  .intro { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .menu-body { grid-template-columns: 1.15fr 1fr; }
  .store { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1000px) {
  .wheel-stage { grid-template-columns: 1fr 1fr; align-items: center; }
  .wheel-head { grid-column: 1 / -1; }
  .flavour-photo { display: block; width: 300px; height: 360px; }
  .wheel.is-live .wheel-stage {
    grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr;
    padding-top: 40px; padding-bottom: 40px; column-gap: 56px;
  }
  .wheel.is-live .wheel-head { grid-column: 1 / -1; }
  .wheel.is-live .wheel-head p { display: block; }
  .wheel.is-live .cake { width: min(36vw, calc(100vh - 360px), 520px); }
  .wheel.is-live .flavour-photo {
    position: absolute; top: 40px; right: var(--gutter);
    width: clamp(170px, 15vw, 230px); height: clamp(220px, 19vw, 290px);
  }
  .wheel.is-live .flavours li { font-size: clamp(1.15rem, 1.7vw, 1.7rem); white-space: nowrap; }
  .wheel.is-live .flavours li:not(.is-active) { display: flex; opacity: 0.28; }
  .wheel.is-live .flavours li.is-active { font-size: clamp(1.6rem, 2.6vw, 2.6rem); transform: translateX(10px); }
  .flavour-photo { transition: opacity 300ms ease; }
  .flavour-photo.is-empty { opacity: 0; }
  .visit-card { grid-template-columns: 1.1fr 1fr; column-gap: 56px; align-items: start; }
  .visit-card .visit-grid { grid-template-columns: 1fr; }
  .visit-card h2, .visit-lede { grid-column: 1; }
  .visit-grid { grid-column: 1; }
  .map { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; }
  .map iframe { height: 100%; min-height: 460px; }
}

/* ---------- Phone ---------- */
@media (max-width: 899px) {
  .site-nav, .header-call { display: none; }
  .burger { display: inline-flex; }
  .wordmark { font-size: 1.8rem; }
}
@media (max-width: 420px) {
  :root { --header: 72px; }
  .wordmark { font-size: 1.55rem; }
  .burger-label { display: none; }
  .disc { width: 112px; bottom: auto; top: 24px; }
  .disc-text text { font-size: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-photo img { transform: none !important; }
}
