/*
Theme Name: Mood Cafe
Theme URI: https://moodcafe.example.com
Author: Mood Cafe
Description: A custom theme for Mood Cafe, Adelaide — earthy, warm, curated for every mood. v2: rebuilt to match the Claude Design prototype.
Version: 2.0
Requires PHP: 7.4
Text Domain: mood-cafe
*/

/* ==========================================================================
   1. TOKENS & BASE
   ========================================================================== */
:root {
  --olive: #4a5032;
  --olive-dark: #3a3f27;
  --cream: #f7f4e7;
  --cream-soft: #efe9d6;
  --espresso: #302928;
  --charcoal: #545556;
  --line-cream: rgba(247, 244, 231, 0.14);
  --line-cream-16: rgba(247, 244, 231, 0.16);
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Jost', sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--olive);
  font-family: var(--font-body);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--container); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

/* ==========================================================================
   2. ANIMATIONS (matches design export)
   ========================================================================== */
@keyframes moodReveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  [data-reveal] { animation: moodReveal linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
}
@keyframes moodTicker { to { transform: translateX(-50%); } }
@keyframes moodFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade-up { opacity: 0; animation: moodFadeUp .7s ease-out forwards; }
.anim-d1 { animation-delay: .12s; }
.anim-d2 { animation-delay: .24s; }
.anim-d3 { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up { animation: none !important; opacity: 1 !important; transform: none !important; }
  [data-reveal], .ticker-track { animation: none !important; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   3. HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--olive);
  border-bottom: 1px solid var(--line-cream);
}
.site-header .container {
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup img { width: 92px; height: 38px; object-fit: contain; }
.brand-lockup a.brand-text {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
}
.main-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px 22px;
}
.main-nav ul { display: contents; }
.main-nav a {
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(247,244,231,0.85);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--cream); }
.main-nav li.current-menu-item > a,
.main-nav a.current {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 6px;
  font-weight: 600;
}
.btn-book {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--olive-dark) !important;
  background: var(--cream);
  text-decoration: none !important;
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); color: var(--olive-dark) !important; }
.btn-book:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(0,0,0,0.2); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn-solid, .btn-outline, .btn-outline-dark {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-transform: uppercase;
}
.btn-solid { color: var(--olive-dark); background: var(--cream); }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.btn-solid:active { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.25); }
.btn-outline { color: var(--cream); background: transparent; border: 1.5px solid rgba(247,244,231,0.6); }
.btn-outline:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); border-color: var(--cream); }
.btn-outline:active { transform: translateY(-1px); }
.btn-outline-dark { color: var(--olive-dark); border: 1.5px solid var(--olive-dark); background: transparent; }
.btn-outline-dark:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(48,41,40,0.16); }
.btn-outline-dark:active { transform: translateY(-1px); }

/* ==========================================================================
   5. HERO (home)
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, var(--olive) 0%, var(--olive-dark) 100%);
  padding: clamp(56px, 9vw, 84px) 24px clamp(60px, 9vw, 90px);
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(247,244,231,0.35);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 500;
}
.open-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); display: inline-block; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.06;
  margin: 22px 0 18px;
  color: var(--cream);
  text-wrap: balance;
}
.hero .lede {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(247,244,231,0.88);
  max-width: 46ch;
  margin: 0 0 30px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art img {
  max-width: 100%;  /* Constrains the width to the container */
  height: auto;     /* Maintains the correct proportions */
  display: block; 
  background: var(--olive-dark);
}

/* ==========================================================================
   6. DISH TICKER
   ========================================================================== */
.ticker {
  background: var(--espresso);
  border-top: 1px solid rgba(247,244,231,0.08);
  border-bottom: 1px solid rgba(247,244,231,0.08);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track { display: flex; width: max-content; animation: moodTicker 32s linear infinite; }
.ticker-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.ticker-group span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2.5px;
  color: rgba(247,244,231,0.85);
  white-space: nowrap;
}
.ticker-group svg { opacity: 0.45; flex: none; }

/* ==========================================================================
   7. HIGHLIGHTS (home, cream)
   ========================================================================== */
.highlights { background: var(--cream); color: var(--espresso); padding: clamp(56px, 8vw, 78px) 24px; }
.section-eyebrow-center { text-align: center; margin-bottom: 46px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--olive);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.highlights h2, .h2-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5.5vw, 42px);
  margin: 0;
  color: var(--espresso);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.dish-card {
  display: block;
  background: var(--cream-soft);
  border: 1px solid rgba(48,41,40,0.08);
  border-radius: 16px;
  padding: 26px;
  text-decoration: none;
  color: var(--espresso);
  box-shadow: 0 2px 8px rgba(48,41,40,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dish-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(48,41,40,0.14); }
.dish-card .icon-tile {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  color: var(--olive);
}
.dish-card .title-row { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.dish-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0; flex: 1; }
.dish-card .price { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--olive); }
.dish-card p { font-size: 15px; line-height: 1.55; color: var(--charcoal); margin: 10px 0 0; text-wrap: pretty; }
.center-cta { text-align: center; margin-top: 38px; }

/* ==========================================================================
   8. SWIRL DIVIDER
   ========================================================================== */
.swirl-divider { display: flex; justify-content: center; padding: 34px 0 0; }
.swirl-divider.on-olive { background: var(--olive); }
.swirl-divider.on-cream { background: var(--cream); padding: 0 0 8px; }
.swirl-divider svg { color: var(--cream); opacity: 0.5; }
.swirl-divider.on-cream svg { color: var(--olive); opacity: 0.55; }

/* ==========================================================================
   9. INFO CARDS SECTION (home: hours & location; olive)
   ========================================================================== */
.info-band { background: var(--olive); color: var(--cream); padding: clamp(44px, 7vw, 56px) 24px clamp(56px, 8vw, 84px); }
.info-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 38px);
  margin: 0 0 40px;
  text-align: center;
}
.info-card {
  background: rgba(247,244,231,0.07);
  border: 1px solid var(--line-cream-16);
  border-radius: 16px;
  padding: 28px;
}
.info-card.flex-col { display: flex; flex-direction: column; gap: 14px; }
.info-label {
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: rgba(247,244,231,0.8);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.info-card.flex-col .info-label { margin-bottom: 0; }
.hours-row { display: flex; justify-content: space-between; font-size: 16px; padding: 6px 0; }
.hours-row strong { font-weight: 600; }
.info-card p { font-size: 16px; line-height: 1.6; margin: 0; }
.info-card .grows { flex: 1; }
.btn-book-sm {
  align-self: flex-start;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--olive-dark);
  background: var(--cream);
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease;
  text-transform: uppercase;
}
.btn-book-sm:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-book-sm:active { transform: translateY(0); }

/* ==========================================================================
   10. FOOTER (espresso)
   ========================================================================== */
.site-footer { background: var(--espresso); color: var(--cream); padding: clamp(40px, 6vw, 54px) 24px 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 84px; height: 34px; object-fit: contain; }
.footer-brand span { font-size: 11px; letter-spacing: 3px; font-weight: 500; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav ul { display: contents; }
.footer-nav a {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(247,244,231,0.85);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease;
}
.footer-nav a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--line-cream-16);
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom span { font-size: 13px; color: rgba(247,244,231,0.75); }

/* ==========================================================================
   11. PAGE HEADERS (menu / about / contact)
   ========================================================================== */
.page-hero { background: var(--olive); color: var(--cream); text-align: center; padding: clamp(48px, 8vw, 72px) 24px; }
.page-hero .eyebrow { color: rgba(247,244,231,0.8); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 58px);
  margin: 0;
  color: var(--cream);
}
.page-hero .sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(247,244,231,0.85);
  max-width: 52ch;
  margin: 16px auto 0;
  text-wrap: pretty;
}

/* ==========================================================================
   12. MENU PAGE
   ========================================================================== */
.jump-bar {
  position: sticky;
  top: 63px;
  z-index: 40;
  background: var(--olive-dark);
  border-bottom: 1px solid var(--line-cream);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.jump-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}
.jump-bar button {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: rgba(247,244,231,0.85);
  background: transparent;
  border: 1px solid rgba(247,244,231,0.3);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.jump-bar button:hover { transform: translateY(-1px); }
.jump-bar button.active { background: var(--cream); color: var(--olive-dark); border-color: var(--cream); }

.menu-body { background: var(--cream); color: var(--espresso); padding: clamp(48px, 7vw, 72px) 24px; }
.menu-cat { max-width: 860px; margin: 0 auto 72px; scroll-margin-top: 130px; }
.menu-cat:last-child { margin-bottom: 0; }
.cat-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.cat-head .icon-tile {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--cream-soft);
  border: 1px solid rgba(48,41,40,0.08);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  color: var(--olive);
}
.cat-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 36px);
  margin: 0;
  color: var(--espresso);
}
.cat-head .cat-sub { font-size: 14px; letter-spacing: 0.5px; color: var(--charcoal); margin-top: 2px; }

.subgroup-pill {
  display: inline-block;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 8px 20px;
  border-radius: 999px;
  margin: 30px 0 12px;
  text-transform: uppercase;
}
.subgroup-note { display: inline-block; margin-left: 10px; font-size: 12px; letter-spacing: 1.5px; font-weight: 600; color: var(--olive); text-transform: uppercase; }
.subgroup-desc { font-size: 14px; color: var(--charcoal); margin: 0 0 10px; }

.menu-list { display: flex; flex-direction: column; }
.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  border-bottom: 1px dashed rgba(48,41,40,0.15);
  transition: background .18s ease;
}
.menu-row:hover { background: rgba(48,41,40,0.04); }
.menu-row:last-child { border-bottom: none; }
.item-name { font-weight: 600; font-size: 16.5px; color: var(--espresso); }
.item-name .light { font-weight: 500; font-size: 14px; color: var(--charcoal); }
.item-desc { font-size: 14px; line-height: 1.5; color: var(--charcoal); margin-top: 3px; max-width: 54ch; }
.item-price { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; white-space: nowrap; color: var(--espresso); }
.diet-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--olive);
  border: 1px solid rgba(74,80,50,0.45);
  border-radius: 999px;
  padding: 1.5px 8px;
  margin-left: 6px;
  vertical-align: 2px;
}
.variant-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 14px; color: var(--charcoal); }
.variant-lines .item-price { font-size: 14.5px; }

.booster-box {
  background: var(--olive);
  color: var(--cream);
  border-radius: 16px;
  padding: 22px 26px;
  margin-top: 30px;
}
.booster-box .booster-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.booster-row { display: flex; justify-content: space-between; gap: 18px; font-size: 14.5px; line-height: 1.55; padding: 4px 0; }
.booster-row .item-price { color: var(--cream); font-size: 14.5px; }
.booster-inline {
  font-size: 14.5px;
  color: var(--charcoal);
  margin: 16px 0 0;
}
.booster-inline .booster-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--olive);
  text-transform: uppercase;
}

.fine-print {
  max-width: 860px;
  margin: 60px auto 0;
  border-top: 1px solid rgba(48,41,40,0.15);
  padding-top: 28px;
}
.diet-key { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 13.5px; color: var(--charcoal); margin-bottom: 18px; }
.fine-print ul { list-style: disc; padding-left: 20px; }
.fine-print li { font-size: 13.5px; line-height: 1.7; color: var(--charcoal); }

/* ==========================================================================
   13. CTA BAND
   ========================================================================== */
.cta-band { background: var(--olive); color: var(--cream); text-align: center; padding: clamp(52px, 8vw, 72px) 24px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 40px); margin: 0 0 12px; }
.cta-band p { font-size: 17px; color: rgba(247,244,231,0.85); margin: 0 0 28px; }
.cta-band .cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   14. ABOUT PAGE
   ========================================================================== */
.story-section { background: var(--cream); color: var(--espresso); padding: clamp(56px, 8vw, 78px) 24px; }
.story-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}
.story-art {
  background: var(--cream-soft);
  border: 1px solid rgba(48,41,40,0.08);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 300px;
  color: var(--olive);
}
.story-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 38px);
  margin: 0 0 18px;
  color: var(--espresso);
}
.story-section p { font-size: 16.5px; line-height: 1.7; color: var(--charcoal); margin: 0 0 16px; }
.story-section p:last-child { margin-bottom: 0; }

.principles { background: var(--espresso); color: var(--cream); padding: clamp(56px, 8vw, 78px) 24px; }
.principles h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 40px);
  margin: 0 0 40px;
  text-align: center;
}
.principle-card {
  background: rgba(247,244,231,0.06);
  border: 1px solid var(--line-cream-16);
  border-radius: 16px;
  padding: 28px;
}
.principle-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 10px; }
.principle-card p { font-size: 15px; line-height: 1.6; color: rgba(247,244,231,0.85); margin: 0; }

/* ==========================================================================
   15. CONTACT PAGE
   ========================================================================== */
.contact-body { background: var(--cream); color: var(--espresso); padding: clamp(48px, 7vw, 72px) 24px; }
.contact-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 5vw, 50px);
  align-items: start;
}
.contact-stack { display: flex; flex-direction: column; gap: 34px; }
.contact-stack .info-label { color: var(--olive); }
.contact-stack p { font-size: 16px; line-height: 1.65; color: var(--espresso); margin: 0; }
.contact-stack .muted { font-size: 14.5px; color: var(--charcoal); margin-top: 8px; }
.contact-stack a { color: var(--espresso); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(48,41,40,0.35); transition: text-decoration-color .18s ease; }
.contact-stack a:hover { text-decoration-color: var(--espresso); }
.contact-hours-row { display: flex; justify-content: space-between; gap: 14px; font-size: 16px; padding: 5px 0; }
.contact-hours-row strong { font-weight: 600; }
.map-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(48,41,40,0.12);
  min-height: 420px;
  box-shadow: 0 2px 12px rgba(48,41,40,0.08);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.booking-band { background: var(--olive); color: var(--cream); text-align: center; padding: clamp(52px, 8vw, 72px) 24px; }
.booking-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 40px); margin: 0 0 14px; }
.booking-band p { font-size: 17px; line-height: 1.6; color: rgba(247,244,231,0.88); max-width: 56ch; margin: 0 auto 28px; }
.booking-band .group-note { font-size: 14.5px; color: rgba(247,244,231,0.75); margin: 26px auto 0; }

/* ==========================================================================
   16. GENERIC PAGE FALLBACK
   ========================================================================== */
.generic-page { background: var(--olive); color: var(--cream); padding: 90px 24px; }
.generic-page .container { max-width: 780px; }
.generic-page h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 44px); margin-bottom: 24px; }
.generic-page .page-content { font-size: 16.5px; line-height: 1.7; }
.generic-page .page-content p { margin: 0 0 1em; }
