/* =========================================================
   HEYBOBA — premium franchise site
   Palette: warm cream, espresso ink, caramel accent
   ========================================================= */

:root {
  --cream:      #F7F1E7;
  --cream-2:    #EFE6D8;
  --ink:        #1A1410;
  --ink-soft:   #4A413A;
  --paper:      #FFFDFA;
  --caramel:    #B15C2E;
  --caramel-dk: #97481E;
  --line:       #E4D8C6;
  --line-dark:  rgba(247,241,231,.16);

  --shadow-sm: 0 2px 10px rgba(26,20,16,.06);
  --shadow-md: 0 18px 50px -20px rgba(26,20,16,.35);
  --shadow-lg: 0 40px 90px -30px rgba(26,20,16,.45);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --r: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--caramel);
  margin-bottom: 18px;
}
.eyebrow--light { color: #E9A877; }

.sec-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.sec-lede {
  margin-top: 20px;
  font-size: 1.075rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.sec-head { max-width: 760px; margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--caramel); border-color: var(--caramel); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(26,20,16,.24); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav__logo { height: 30px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color .2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--caramel); transition: width .28s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 8px; }

.nav.scrolled {
  background: rgba(255,253,250,.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 150px 0 90px;
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.02em; margin-bottom: 26px;
}
.hero__title em { font-style: italic; color: var(--caramel); font-weight: 400; }
.hero__lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 34px; list-style: none; margin-top: 46px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__meta li { font-size: .9rem; color: var(--ink-soft); }
.hero__meta strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1; margin-bottom: 4px; }

.hero__media { position: relative; }
.hero__img {
  width: 100%; border-radius: var(--r); box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4; object-fit: cover;
}
.hero__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--ink); color: var(--cream);
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow-md);
  transform: rotate(-8deg);
}
.hero__badge-k { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.hero__badge-v { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  background: var(--ink); color: var(--cream);
  overflow: hidden; padding: 16px 0; white-space: nowrap;
}
.ticker__track { display: inline-flex; gap: 30px; align-items: center; animation: ticker 34s linear infinite; }
.ticker__track span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.ticker__track span:nth-child(even) { color: var(--caramel); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 104px 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .sec-lede { color: rgba(247,241,231,.75); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feature { background: var(--paper); padding: 38px 30px; }
.feature__num { font-family: var(--serif); font-size: 1rem; color: var(--caramel); font-weight: 600; margin-bottom: 22px; }
.feature h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 12px; line-height: 1.2; }
.feature p { font-size: .96rem; color: var(--ink-soft); }

/* ---------- Menu grid ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.drink { position: relative; }
.drink img {
  width: 100%; aspect-ratio: 5/4; object-fit: cover;
  border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: transform .4s ease, box-shadow .4s ease;
}
.drink:hover img { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.drink figcaption {
  margin-top: 14px; font-weight: 600; font-size: .95rem; text-align: center;
}
.menu-note { text-align: center; margin-top: 46px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Offer grid ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer {
  background: rgba(247,241,231,.05); border: 1px solid var(--line-dark);
  border-radius: var(--r); padding: 34px 30px; transition: background .3s ease, transform .3s ease;
}
.offer:hover { background: rgba(247,241,231,.09); transform: translateY(-4px); }
.offer h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 12px; }
.offer p { color: rgba(247,241,231,.72); font-size: .98rem; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 40px 20px; background: var(--cream); border-radius: var(--r); border: 1px solid var(--line); }
.stat__v { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); line-height: 1; }
.stat__l { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); letter-spacing: .01em; }
.stat-foot { margin-top: 26px; font-size: .82rem; color: var(--ink-soft); max-width: 70ch; }
[data-tk] { color: var(--caramel); }

/* ---------- World / merch ---------- */
.world { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.world__copy .btn { margin-top: 28px; }
.world__media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.world__media figure:first-child { grid-column: 1 / -1; }
.world__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-sm); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 20px; border-top: 2px solid var(--ink); }
.step__n {
  display: grid; place-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--caramel); color: var(--cream);
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  margin-bottom: 20px;
}
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.loc { text-align: center; padding: 46px 20px; border: 1px solid var(--line-dark); border-radius: var(--r); background: rgba(247,241,231,.04); }
.loc__v { font-family: var(--serif); font-weight: 600; font-size: 2.8rem; color: #E9A877; line-height: 1; }
.loc__l { margin-top: 12px; color: rgba(247,241,231,.72); font-size: .95rem; }

/* ---------- Enquire / form ---------- */
.enquire { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.enquire__contacts { list-style: none; margin-top: 34px; display: grid; gap: 14px; }
.enquire__contacts li { font-size: 1rem; color: var(--ink-soft); }
.enquire__contacts span { display: inline-block; min-width: 64px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--caramel); font-weight: 600; }
.enquire__contacts a { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--caramel); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; box-shadow: var(--shadow-md); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(177,92,46,.14); background: var(--paper);
}
.field textarea { resize: vertical; }
.form__submit { margin-top: 6px; }
.form__note { font-size: .82rem; color: var(--ink-soft); text-align: center; }
.form__note a { border-bottom: 1px solid var(--caramel); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: .92rem; text-align: center; padding: 12px 16px; border-radius: 12px; margin-top: 4px; }
.form__status.is-success { background: #EAF3EA; color: #2C6E33; border: 1px solid #CFE4CF; }
.form__status.is-error { background: #FBEDE9; color: #9A3B22; border: 1px solid #F1D6CD; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--cream); padding: 70px 0 34px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__logo { height: 30px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer__brand p { color: rgba(247,241,231,.6); font-size: .92rem; max-width: 34ch; }
.footer__nav { display: grid; gap: 12px; }
.footer__nav a { color: rgba(247,241,231,.75); font-size: .94rem; transition: color .2s; }
.footer__nav a:hover { color: var(--caramel); }
.footer__contact a { color: var(--cream); border-bottom: 1.5px solid var(--caramel); font-weight: 600; }
.footer__legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line-dark);
  font-size: .8rem; color: rgba(247,241,231,.5);
}

/* Nav logo goes white while over the dark ticker? keep black on cream hero. */

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
/* Reveals only hide when JS is present, so no-JS / slow-JS never yields blank sections */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .feature-grid, .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid, .stat-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .world, .enquire { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); padding: 12px 24px 22px; box-shadow: var(--shadow-md);
  }
  .nav.open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav__cta { display: inline-flex; }

  .hero { padding: 120px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { order: -1; }
  .hero__badge { width: 80px; height: 80px; left: auto; right: -10px; }
  .hero__meta { gap: 22px; }

  .section { padding: 76px 0; }
  .sec-head { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .feature-grid, .menu-grid, .offer-grid, .stat-grid, .steps, .loc-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__meta { flex-wrap: wrap; }
}
