/*
Theme Name: Juice Babiee
Theme URI: https://juicebabiee.com
Author: Juice Babiee
Description: Custom WordPress theme for Juice Babiee, a pop-up drink bar and catering company based in the Atlanta, GA Metro area. Built to work with the WooCommerce plugin for shop, cart, and checkout.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: juice-babiee
Tags: e-commerce, custom-colors, custom-logo, custom-menu, threaded-comments, translation-ready
*/

/* =====================================================================
   JUICE BABIEE — THEME STYLESHEET
   =====================================================================
   WordPress requires the comment block above (Theme Name, etc.) to be
   at the very top of this file — do not remove it or move it.

   Everything below is organized into labeled sections. Search for
   "=====" to jump between them.

   1. DESIGN TOKENS (colors, fonts, spacing)
   2. RESET & BASE STYLES
   3. TYPOGRAPHY
   4. BUTTONS
   5. LAYOUT / CONTAINERS
   6. HEADER + NAVIGATION (incl. WooCommerce cart icon)
   7. FOOTER
   8. HERO / SPLASH SECTION (homepage)
   9. SECTION DIVIDERS
   10. CARDS (used for events/services display outside WooCommerce)
   11. TABS (Gallery, Event Calendar)
   12. FORMS / CONTACT PAGE
   13. GALLERY GRID
   14. UTILITIES
   15. WOOCOMMERCE STYLING — makes the Shop, Cart, and Checkout pages
       that the WooCommerce plugin generates match the rest of the site
   16. RESPONSIVE / MOBILE
   17. SECTION TRANSITIONS — sections dissolve into one continuous
       background field instead of ending on hard lines, with a drifting
       light bloom at each boundary and a focus-pull content reveal
   ===================================================================== */


/* =====================================================================
   1. DESIGN TOKENS
   ===================================================================== */
:root {
  /* ---- BRAND CORE -------------------------------------------------
     The only hand-picked colors in the system. Everything else below
     is derived from these, so changing one here ripples through every
     tint, border and shadow rather than leaving orphaned hex values
     scattered down the file. */
  --jb-pink:        #ff3da6;
  --jb-pink-dark:   #d81b83;
  --jb-blue:        #22c3ee;
  --jb-blue-dark:   #0f9bc4;
  --jb-navy:        #10182b;
  --jb-yellow:      #ffd447;
  --jb-cream:       #fff6fb;
  --jb-white:       #ffffff;

  /* ---- DERIVED COLOR ----------------------------------------------
     color-mix() in oklab, not sRGB: oklab mixes perceptually, so a
     "60% navy" tint actually looks 60% of the way there instead of
     going muddy through the middle like sRGB blending does. */
  --jb-navy-deep:     color-mix(in oklab, var(--jb-navy) 86%, black);
  --jb-navy-raised:   color-mix(in oklab, var(--jb-navy) 92%, var(--jb-blue));
  --jb-ink-muted:     color-mix(in oklab, var(--jb-navy) 64%, var(--jb-cream));
  --jb-on-dark:       color-mix(in oklab, var(--jb-white) 92%, var(--jb-blue));
  --jb-on-dark-muted: color-mix(in oklab, var(--jb-white) 58%, var(--jb-navy));
  --jb-rule:          color-mix(in oklab, var(--jb-navy) 14%, transparent);
  --jb-rule-on-dark:  color-mix(in oklab, var(--jb-white) 18%, transparent);

  --jb-gradient-party: linear-gradient(135deg, var(--jb-blue) 0%, #57d3f2 40%, var(--jb-pink) 100%);
  --jb-gradient-pink:  linear-gradient(135deg, #ff6fc1 0%, var(--jb-pink) 100%);
  --jb-gradient-blue:  linear-gradient(135deg, #6fe0fb 0%, var(--jb-blue) 100%);

  /* ---- TYPE -------------------------------------------------------- */
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-hero:    'Luckiest Guy', cursive;
  --font-body:    'Quicksand', system-ui, sans-serif;

  /* A fluid modular scale. Each step interpolates between a phone and a
     desktop size on its own curve, so type scales continuously with the
     viewport instead of jumping at breakpoints — and the big display
     steps scale harder than body copy, which is what keeps the
     hierarchy intact on a small screen instead of flattening out. */
  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.81rem + 0.16vw, 0.95rem);
  --step-0:  clamp(1rem,    0.96rem + 0.22vw, 1.12rem);
  --step-1:  clamp(1.18rem, 1.10rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.42rem, 1.28rem + 0.70vw, 1.95rem);
  --step-3:  clamp(1.72rem, 1.46rem + 1.25vw, 2.6rem);
  --step-4:  clamp(2.05rem, 1.64rem + 2.00vw, 3.5rem);
  --step-5:  clamp(2.5rem,  1.80rem + 3.20vw, 4.8rem);
  --step-6:  clamp(3rem,    1.85rem + 5.40vw, 6.8rem);

  /* ---- SPACE ------------------------------------------------------- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* ---- SHAPE ------------------------------------------------------- */
  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-card: 28px;
  --radius-pill: 999px;
  --outline-thick: 3px solid var(--jb-navy);
  --hairline: 1px solid var(--jb-rule);

  /* ---- ELEVATION ---------------------------------------------------
     Real shadows are two shadows: a tight contact shadow where the
     object meets the surface, and a wide soft one for the ambient
     cast. A single blurred box-shadow is the giveaway of a template. */
  --elev-1: 0 1px 2px rgba(16,24,43,.05),  0 3px 8px rgba(16,24,43,.06);
  --elev-2: 0 2px 4px rgba(16,24,43,.06),  0 10px 24px rgba(16,24,43,.09);
  --elev-3: 0 4px 10px rgba(16,24,43,.07), 0 22px 48px rgba(16,24,43,.13);
  --shadow-card: var(--elev-2);

  /* The sticker/pop shadow — the brand's signature. Kept as a token so
     the offset is identical on every control that uses it. */
  --shadow-pop:    0 5px 0 var(--jb-navy);
  --shadow-pop-lg: 0 8px 0 var(--jb-navy);

  /* ---- MOTION ------------------------------------------------------
     Expo-out decelerates hard and settles without overshoot. Nothing
     in this system bounces: bounce reads as a toy, not as craft. */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 720ms;
}

/* =====================================================================
   2. RESET & BASE STYLES
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--jb-navy);
  /* THE FIELD — one continuous aurora of soft brand-colored light
     behind the whole page. background-attachment: fixed holds it still
     while the content scrolls over it, so the color behind the page
     genuinely shifts as you move down it instead of every section
     carrying its own disconnected block of color. The section fills
     dissolve at their edges (see section 17) to let this show through
     at every boundary — that's what removes the hard cuts. */
  background-color: var(--jb-cream);
  background-image:
    radial-gradient(58% 34% at 14%  6%, rgba( 34,195,238,0.26), transparent 72%),
    radial-gradient(52% 30% at 88% 22%, rgba(255, 61,166,0.22), transparent 70%),
    radial-gradient(64% 36% at 22% 46%, rgba(255,212, 71,0.14), transparent 72%),
    radial-gradient(56% 32% at 84% 64%, rgba( 34,195,238,0.22), transparent 70%),
    radial-gradient(54% 32% at 10% 86%, rgba(255, 61,166,0.20), transparent 70%),
    radial-gradient(60% 34% at 78% 98%, rgba(111,224,251,0.20), transparent 72%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--jb-navy);
  outline-offset: 3px;
}


/* =====================================================================
   3. TYPOGRAPHY
   ===================================================================== */
/* Headings get room to breathe. A line-height of 1.1 packed the two
   lines of a wrapped heading so tightly they read as one solid block,
   and the gap beneath a heading is now set per level — a big section
   title earns more room than an h3 sitting inside a card. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 1.15rem;
  color: var(--jb-navy);
  /* Balances the ragged right edge across a heading's lines instead of
     leaving one orphaned word on the last line. Browsers that don't
     support it just wrap normally. */
  text-wrap: balance;
  /* Display type is set tighter than body type — at 3rem the default
     tracking reads loose and unconfident. */
  letter-spacing: -0.015em;
}

h1 { font-size: var(--step-5); margin-bottom: 1.5rem;  letter-spacing: -0.025em; }
h2 { font-size: var(--step-4); margin-bottom: 1.4rem;  letter-spacing: -0.02em; }
h3 { font-size: var(--step-2); margin-bottom: 0.85rem; letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); letter-spacing: 0; }

/* The body line-height above spaces the lines WITHIN a paragraph; this
   is the gap BETWEEN paragraphs, which is what makes a stack of them
   read as separate thoughts instead of one wall of text. The last-child
   rule stops that gap from adding dead space at the end of a block. */
p {
  margin: 0 0 1.45rem;
  max-width: 62ch;
  font-size: var(--step-0);
  /* Stops a single word being left alone on the final line. */
  text-wrap: pretty;
}
p:last-child { margin-bottom: 0; }

.eyebrow-note {
  font-family: var(--font-display);
  color: var(--jb-pink-dark);
  font-size: 1rem;
}


/* =====================================================================
   4. BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 0.95rem 2.05rem;
  border-radius: var(--radius-pill);
  border: var(--outline-thick);
  background: var(--jb-white);
  color: var(--jb-navy);
  box-shadow: var(--shadow-pop);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--jb-navy); }

.btn-pink { background: var(--jb-pink); color: var(--jb-white); }
.btn-blue { background: var(--jb-blue); color: var(--jb-navy); }
.btn-yellow { background: var(--jb-yellow); color: var(--jb-navy); }
.btn-outline { background: transparent; }
.btn-block { width: 100%; }
.btn-form { background: var(--jb-yellow); color: var(--jb-navy); }


/* =====================================================================
   5. LAYOUT / CONTAINERS
   ===================================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Vertical room around each block of content, plus a floor on how
   short a section is allowed to get.

   The floor is what keeps the scroll rhythm even. Without it, a section
   holding two lines of text collapses to a sliver sitting between two
   tall ones, and scrolling the page feels lumpy. Content is centred
   inside whatever height the section ends up at, so a short section
   reads as deliberate breathing room rather than text stranded at the
   top of an empty box.

   Note that section 17 dissolves each section's edges over --jb-fade,
   which is kept well inside this padding so text never lands in a fade. */
.section {
  padding: 7rem 0;
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-tight {
  padding: 5rem 0;
  min-height: 38vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* .container is each section's only child. min-width: 0 lets it shrink
   instead of overflowing if something inside is unusually wide — a
   WooCommerce cart table, for instance. */
.section > .container,
.section-tight > .container { min-width: 0; }

/* Section colors.
   Note that the fill is NOT applied here — each variant only declares
   it as a token, and section 17 paints it onto a masked layer so the
   section dissolves at its top and bottom edges instead of ending on a
   hard line. Each variant declares:
     --jb-fill   the background that masked layer paints
     --jb-bloom  the accent light that pools at its top boundary
   Text color is set here as normal and is unaffected by any of that. */
.section-pink {
  --jb-fill: var(--jb-gradient-pink);
  --jb-bloom: rgba(255, 111, 193, 0.34);
  color: var(--jb-white);
}
.section-blue {
  --jb-fill: var(--jb-gradient-blue);
  --jb-bloom: rgba(111, 224, 251, 0.30);
  color: var(--jb-navy);
}
.section-white {
  --jb-fill: var(--jb-white);
  --jb-bloom: rgba(255, 255, 255, 0.26);
}
.section-cream {
  --jb-fill: var(--jb-cream);
  --jb-bloom: rgba(255, 246, 251, 0.28);
}
.section-pink h2, .section-pink h3 { color: var(--jb-white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }


/* =====================================================================
   6. HEADER + NAVIGATION
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--jb-white);
  border-bottom: var(--outline-thick);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--space-md);
  max-width: 1180px;
  margin: 0 auto;
  gap: var(--space-sm);
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a.current-menu-item, .nav-links .current-menu-item > a {
  border-color: var(--jb-pink);
  color: var(--jb-pink-dark);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }

/* Cart icon — links straight to the WooCommerce cart page */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: var(--outline-thick);
  background: var(--jb-white);
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--jb-pink);
  color: var(--jb-white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--jb-white);
}

.nav-social { display: flex; gap: 0.5rem; }
.nav-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--jb-navy);
}
.nav-social a:hover { background: var(--jb-yellow); }
.nav-social svg { width: 18px; height: 18px; }

.nav-toggle { display: none; border: var(--outline-thick); border-radius: 12px; background: var(--jb-white); padding: 0.4rem 0.6rem; }

/* --- Dropdown submenus (Shop > Catering Packages / Bottled Beverages) --- */
.nav-links li { position: relative; }
.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--jb-white);
  border: var(--outline-thick);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
  z-index: 50;
}
.nav-links li.menu-item-has-children:hover > .sub-menu,
.nav-links li.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.nav-links .sub-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border-bottom: none;
  white-space: nowrap;
}
.nav-links .sub-menu a:hover { background: var(--jb-cream); color: var(--jb-pink-dark); }


/* =====================================================================
   6B. ANNOUNCEMENT BAR
   =====================================================================
   A horizontally scrolling strip shown on every page above the header,
   automatically populated with the soonest upcoming event by
   jb_get_next_event() in functions.php (see header.php). It disappears
   on its own once no events remain in that list.
   ===================================================================== */
.announcement-bar {
  overflow: hidden;
  background: var(--jb-navy);
  color: var(--jb-white);
  white-space: nowrap;
  padding: 0.55rem 0;
}
.announcement-track {
  display: inline-flex;
  width: max-content;
  animation: jb-marquee 26s linear infinite;
}
.announcement-item {
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0 2rem;
  color: var(--jb-yellow);
}
@keyframes jb-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =====================================================================
   7. FOOTER
   ===================================================================== */
/* The navy fill lives on a masked layer (section 17) that dissolves at
   its top edge, so the footer rises out of the page rather than
   starting on a hard line. The extra top padding keeps footer content
   clear of that dissolving zone. */
.site-footer {
  color: var(--jb-white);
  padding: calc(var(--space-lg) + 2.25rem) 0 var(--space-lg);
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); text-align: center; }
.footer-grid h4 { color: var(--jb-yellow); margin-bottom: 1.15rem; }
.footer-grid a { display: block; padding: 0.5rem 0; color: rgba(255,255,255,0.85); }
.footer-grid a:hover { color: var(--jb-yellow); }
.footer-grid img { margin-left: auto; margin-right: auto; }
.footer-social { display: flex; justify-content: center; gap: 0.75rem; margin-top: var(--space-sm); }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--jb-white);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--jb-yellow); border-color: var(--jb-yellow); }
/* White by default so the icon shows up against the dark navy footer;
   swaps to navy on hover so it still shows once the circle turns yellow. */
.footer-social svg { width: 20px; height: 20px; color: var(--jb-white); }
.footer-social a:hover svg { color: var(--jb-navy); }
.footer-note {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}
.footer-note strong { color: var(--jb-white); }


/* =====================================================================
   8. HERO / SPLASH SECTION
   =====================================================================
   A looping background video (assets/video/hero-loop.*, built from 5
   short clips crossfaded together — see front-page.php) fills the
   section behind the headline. The gradient below is a fallback that
   shows if the video can't load, plus fills any edge gap since the
   video is sized with object-fit: cover.
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--jb-gradient-party); /* fallback if the video fails to load */
  color: var(--jb-white);
  padding: var(--space-xl) 0 calc(var(--space-xl) + 40px);
  text-align: center;
  isolation: isolate;
}

/* The background video itself — fills the section, cropped to cover */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* A light wash over the video so the white headline text stays readable
   without hiding the footage — brightness kept high on purpose so the
   video itself reads as the star of the section. */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(16,24,43,0.12) 0%, rgba(16,24,43,0.22) 100%);
  pointer-events: none;
}

/* Hide the video for people who've asked their OS/browser to reduce
   motion — the gradient + overlay behind it still reads fine on its own. */
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
}

/* The hero video ends on a hard edge; this scrim melts its bottom into
   the cream the page continues with, so the section below reads as a
   continuation instead of a new slab dropped underneath. It sits above
   the video and its overlay (same z-index, painted later as ::after)
   but below the hero's own text, which is at z-index 1. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 246, 251, 0.00)  0%,
    rgba(255, 246, 251, 0.08) 38%,
    rgba(255, 246, 251, 0.34) 64%,
    rgba(255, 246, 251, 0.72) 84%,
    var(--jb-cream)          100%
  );
}

.hero > .container { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.1rem;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  animation: jb-fade-up 0.7s ease both;
}

.hero-logo {
  width: min(320px, 60vw);
  margin: 0 auto var(--space-sm);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.25));
  animation: jb-fade-up 0.7s ease both;
}
.hero h1 {
  font-family: var(--font-hero);
  font-weight: normal; /* Luckiest Guy only ships one weight */
  letter-spacing: 0.01em;
  color: var(--jb-white);
  text-shadow: 0 4px 0 rgba(16,24,43,0.25), 0 2px 16px rgba(16,24,43,0.6);
  animation: jb-fade-up 0.8s ease both;
  animation-delay: 0.05s;
}
.hero .lede {
  max-width: 46ch;
  margin: 0 auto var(--space-md);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(16,24,43,0.7);
  animation: jb-fade-up 0.8s ease both;
  animation-delay: 0.15s;
}
.hero-ctas {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
  animation: jb-fade-up 0.8s ease both;
  animation-delay: 0.25s;
}
@keyframes jb-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero-logo, .hero h1, .hero .lede, .hero-ctas {
    animation: none !important;
  }
}


/* =====================================================================
   9. SECTION DIVIDERS
   ===================================================================== */
.divider { display: block; width: 100%; height: auto; margin-bottom: -1px; }
.divider.flip { transform: scaleY(-1); }


/* =====================================================================
   10. CARDS
   (used for the homepage's upcoming-events preview and the Event
   Calendar's festival-history-by-year lists — plain content cards
   outside of WooCommerce)
   ===================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
.card {
  background: var(--jb-white);
  border: var(--outline-thick);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card-media {
  aspect-ratio: 4 / 3;
  background: var(--jb-gradient-blue);
  display: flex; align-items: center; justify-content: center;
  color: var(--jb-white);
  font-family: var(--font-display);
  text-align: center;
  padding: var(--space-sm);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
/* Scoped to the placeholder emoji specifically. This used to be
   ".card-media span", which also caught the date chip sitting in the
   same box — a .card-chip is a <span> too, and ".card-media span"
   out-weighs ".card-chip", so the date was being blown up to 3rem and
   pushed straight out through the side of the card. */
.card-media .card-emoji { font-size: 3rem; }
.card-body { padding: 1.9rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-body .btn { margin-top: auto; }


/* =====================================================================
   11. TABS (Gallery, Event Calendar)
   ===================================================================== */
.tab-bar { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-lg); }
.tab-btn {
  font-family: var(--font-display);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: var(--outline-thick);
  background: var(--jb-white);
  color: var(--jb-navy);
}
.tab-btn[aria-selected="true"] { background: var(--jb-pink); color: var(--jb-white); }
.tab-panel[hidden] { display: none; }


/* =====================================================================
   12. FORMS / CONTACT PAGE
   ===================================================================== */
.form-embed-wrap {
  border: var(--outline-thick);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--jb-white);
  box-shadow: var(--shadow-card);
}
.form-embed-wrap iframe { width: 100%; min-height: 900px; border: none; display: block; }

.contact-info-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: var(--space-sm); font-size: 1.05rem; }
.contact-info-list svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; color: var(--jb-pink-dark); }


/* =====================================================================
   13. GALLERY GRID
   ===================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gallery-grid figure {
  margin: 0; border-radius: 20px; overflow: hidden;
  border: var(--outline-thick);
  aspect-ratio: 1 / 1;
  background: var(--jb-gradient-blue);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--space-sm);
  font-family: var(--font-display);
  color: var(--jb-white);
}


/* =====================================================================
   14. UTILITIES
   ===================================================================== */
/* Any block that centres its text also needs its paragraph boxes
   centred — see the note below. These are the centred blocks in the
   theme; add to this list if another one is introduced. */
.footer-note p,
.footer-grid p { margin-left: auto; margin-right: auto; }

/* Centre the paragraph BOX, not just the text inside it.

   p carries a max-width of 62ch, so in a centred block it sits flush
   left unless its own side margins are auto. That is what left lines
   like "No upcoming dates on the books right now…" and "No product
   photos yet…" visibly off-centre even though the text within them was
   centred — the box itself was parked on the left.

   Both forms are covered: a p nested anywhere inside a .text-center
   block, and a p carrying .text-center itself. */
.text-center { text-align: center; }
.text-center p,
p.text-center { margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.34rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--jb-yellow);
  color: var(--jb-navy);
  margin-bottom: 1.1rem;
}


/* =====================================================================
   15. WOOCOMMERCE STYLING
   =====================================================================
   These rules re-skin WooCommerce's own default markup (shop grid,
   single product page, cart, checkout) so it matches the rest of the
   site without needing custom template files. WooCommerce adds these
   classes automatically — you generally should NOT need to touch this
   section unless you want to change the shop's look.
   ===================================================================== */

/* Give the main WooCommerce content area the same page padding as the
   rest of the site (see the wrapper hooks in functions.php). */
.jb-woo-wrap { padding: calc(var(--space-lg) + 1rem) 0; }

/* Shop / category grid of products */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  list-style: none;
  margin: 0;
}
.woocommerce ul.products li.product {
  background: var(--jb-white);
  border: var(--outline-thick);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
  padding: 0 0 var(--space-md);
  text-align: center;
  transition: transform 0.15s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-3px); }
.woocommerce ul.products li.product img {
  border-radius: 0;
  margin-bottom: var(--space-sm);
  aspect-ratio: 1/1;
  object-fit: contain;
  background: var(--jb-cream);
  padding: var(--space-sm);
  border-bottom: 2px solid var(--jb-navy);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0 var(--space-sm);
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-display);
  color: var(--jb-pink-dark);
  font-size: 1.1rem;
}
.woocommerce ul.products li.product .button {
  display: inline-flex;
  margin: var(--space-sm) auto 0;
  font-family: var(--font-display);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: var(--outline-thick);
  background: var(--jb-pink);
  color: var(--jb-white) !important;
  box-shadow: var(--shadow-pop);
}

/* Product category header (used on the Catering / Bottled Beverages
   archive pages) */
.woocommerce-products-header__title { text-align: center; }
.term-description { max-width: 62ch; margin: 0 auto var(--space-lg); text-align: center; }

/* Single product page */
.woocommerce div.product .summary .price { color: var(--jb-pink-dark); font-family: var(--font-display); font-size: 1.6rem; }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
  font-family: var(--font-display);
  border-radius: var(--radius-pill);
  border: var(--outline-thick);
  background: var(--jb-pink);
  color: var(--jb-white) !important;
  box-shadow: var(--shadow-pop);
  padding: 0.85rem 1.9rem;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { transform: translateY(-2px); }

/* Cart + Checkout tables */
.woocommerce table.shop_table {
  border: var(--outline-thick);
  border-radius: var(--radius-card);
  overflow: hidden;
  border-collapse: separate;
}
.woocommerce table.shop_table th { font-family: var(--font-display); background: var(--jb-cream); }
.woocommerce-cart table.cart img { border-radius: 12px; }
.woocommerce a.remove { color: var(--jb-pink-dark) !important; }

.woocommerce-checkout #payment { border-radius: var(--radius-card); border: var(--outline-thick); }
.woocommerce-checkout #payment div.payment_box { background: var(--jb-cream); }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--jb-pink) !important;
  border-radius: 12px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--jb-pink) !important; }


/* =====================================================================
   16. RESPONSIVE / MOBILE
   ===================================================================== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--jb-white);
    border-bottom: var(--outline-thick);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-sm) var(--space-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-social { display: none; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

/* =====================================================================
   17. SECTION TRANSITIONS
   =====================================================================
   What replaced the hard, flat-color cuts between sections. Three
   independent layers — if a browser doesn't support one of them the
   page still reads correctly, it just loses that layer's polish:

   A) THE FIELD — set on <body>, section 2. One continuous aurora of
      soft brand light behind the entire page, fixed in place so it
      shifts relative to the content as you scroll down.

   B) DISSOLVING EDGES — below. Each section's colored fill moves onto a
      ::before layer that is then masked away at its top and bottom
      edges. A section therefore doesn't end at a line: it dissolves
      into the field from (A), and the next one materializes back out of
      it. Because the fill and the mask are the same element, the color
      can never mismatch at a seam — which is exactly what went wrong
      with the earlier attempt, where a separate band was drawn in one
      flat color while the sections themselves are filled with
      135-degree diagonal gradients, leaving a visible line at every
      boundary.

   C) LIGHT BLOOM + FOCUS PULL — below. A wide, soft pool of each
      section's own accent light drifts slowly across its boundary. And
      content doesn't slide in as a block: it resolves, rising a few
      pixels while pulling from blurred to sharp, each element a beat
      behind the one above it.

   HOW THE REVEAL IS DRIVEN: one IntersectionObserver in
   assets/js/main.js adds a single class, .jb-in, to a section as it
   scrolls into view. Everything inside is then revealed by CSS
   descending from that class — nothing is observed individually. That
   is deliberate: cards sitting inside a hidden tab panel on the Gallery
   and Event Calendar pages are already revealed by the time you switch
   to that tab, instead of showing up blank.

   All of (C) is gated behind html.jb-js, set by the inline script at
   the top of <head> in header.php before anything paints. With
   JavaScript off — or for a search-engine crawler that never runs it —
   every element is simply visible from the start.
   ===================================================================== */

:root {
  /* Expo-out: decelerates hard, then settles without overshooting. The
     springy, overshooting curve used before is what made the old
     version read as cheap — things that bounce look like toys. */
  --jb-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------------
   B. DISSOLVING EDGES
   The fade distance is deliberately kept shorter than each section's
   own vertical padding, so body text never sits inside the dissolving
   zone and text contrast is never affected by it.
   --------------------------------------------------------------------- */
.section      { --jb-fade: 72px; }
.section-tight { --jb-fade: 48px; }

.section,
.section-tight,
.site-footer {
  position: relative;
  isolation: isolate; /* keeps these layers scoped to their own section */
}

.section::before,
.section-tight::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--jb-fill, transparent);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--jb-fade),
    #000 calc(100% - var(--jb-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--jb-fade),
    #000 calc(100% - var(--jb-fade)),
    transparent 100%
  );
}

/* The footer only dissolves at its top edge — there's nothing below it
   to dissolve into. Its fill is declared here rather than in section 7
   so the whole mechanism stays in one place. The bloom matters more
   here than anywhere else: fading navy straight into a pale page would
   pass through a dull grey, and a cool wash of light across that
   boundary turns it into the dark panel rising out of a glow. */
.site-footer {
  --jb-fade: 76px;
  --jb-fill: var(--jb-navy);
  --jb-bloom: rgba(34, 195, 238, 0.30);
}
.site-footer::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--jb-fade));
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--jb-fade));
}

/* ---------------------------------------------------------------------
   C1. LIGHT BLOOM ACROSS EACH BOUNDARY
   A wide, very soft pool of the section's accent light, centred on its
   top edge and drifting slowly sideways. The animation moves nothing
   but a transform, so it's composited on the GPU and is effectively
   free to run.
   --------------------------------------------------------------------- */
.section > .container,
.section-tight > .container,
.site-footer > .container { position: relative; z-index: 1; }

.section::after,
.section-tight::after,
.site-footer::after {
  content: "";
  position: absolute;
  top: -75px;
  left: -20%;
  width: 140%;
  height: 150px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    50% 50% at 50% 50%,
    var(--jb-bloom, transparent) 0%,
    transparent 72%
  );
  animation: jb-bloom-drift 26s ease-in-out infinite alternate;
}
@keyframes jb-bloom-drift {
  from { transform: translate3d(-5%, 0, 0); }
  to   { transform: translate3d(5%, 0, 0); }
}

/* No bloom on the first section of a page — there is no boundary above
   it, only the header, so a pool of light there reads as a smudge. */
.site-header + .section::after,
.site-header + .section-tight::after { display: none; }

/* ---------------------------------------------------------------------
   C2. FOCUS-PULL CONTENT REVEAL
   Only the content moves — never the colored section itself. Animating
   whole blocks of color is what made the previous version look like
   sliding panels. This uses the `translate` property rather than
   `transform`, so the hover lifts elsewhere in this stylesheet (which
   use `transform`) keep working independently and stay snappy.
   --------------------------------------------------------------------- */
html.jb-js .section > .container > *:not(.card-grid):not(.gallery-grid),
html.jb-js .section-tight > .container > *:not(.card-grid):not(.gallery-grid) {
  opacity: 0;
  translate: 0 24px;
  filter: blur(7px);
  transition:
    opacity 0.8s var(--jb-ease),
    translate 0.8s var(--jb-ease),
    filter 0.8s var(--jb-ease);
}
/* The :not()s are repeated here on purpose. Without them this rule
   would carry LESS specificity than the hidden state above, so
   opacity: 0 would never be overridden and the section's text would
   stay invisible forever. */
html.jb-js .section.jb-in > .container > *:not(.card-grid):not(.gallery-grid),
html.jb-js .section-tight.jb-in > .container > *:not(.card-grid):not(.gallery-grid) {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

/* Each element lands a beat behind the one above it. */
html.jb-js .jb-in > .container > *:nth-child(1) { transition-delay: 0s; }
html.jb-js .jb-in > .container > *:nth-child(2) { transition-delay: 0.08s; }
html.jb-js .jb-in > .container > *:nth-child(3) { transition-delay: 0.16s; }
html.jb-js .jb-in > .container > *:nth-child(4) { transition-delay: 0.24s; }
html.jb-js .jb-in > .container > *:nth-child(5) { transition-delay: 0.32s; }
html.jb-js .jb-in > .container > *:nth-child(6) { transition-delay: 0.40s; }
html.jb-js .jb-in > .container > *:nth-child(n+7) { transition-delay: 0.46s; }

/* Grid items get their own, slightly tighter cascade so a row of cards
   resolves one after another instead of all at once. */
html.jb-js .card-grid > .card,
html.jb-js .gallery-grid > figure,
html.jb-js .woocommerce ul.products > li.product {
  opacity: 0;
  translate: 0 28px;
  filter: blur(8px);
  transition:
    opacity 0.7s var(--jb-ease),
    translate 0.7s var(--jb-ease),
    filter 0.7s var(--jb-ease),
    transform 0.15s ease; /* keeps the existing hover lift snappy */
}
html.jb-js .jb-in .card-grid > .card,
html.jb-js .jb-in .gallery-grid > figure,
html.jb-js .jb-in ul.products > li.product {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}
html.jb-js .jb-in .card-grid > .card:nth-child(1),
html.jb-js .jb-in .gallery-grid > figure:nth-child(1),
html.jb-js .jb-in .woocommerce ul.products > li.product:nth-child(1) { transition-delay: 0.06s; }
html.jb-js .jb-in .card-grid > .card:nth-child(2),
html.jb-js .jb-in .gallery-grid > figure:nth-child(2),
html.jb-js .jb-in .woocommerce ul.products > li.product:nth-child(2) { transition-delay: 0.13s; }
html.jb-js .jb-in .card-grid > .card:nth-child(3),
html.jb-js .jb-in .gallery-grid > figure:nth-child(3),
html.jb-js .jb-in .woocommerce ul.products > li.product:nth-child(3) { transition-delay: 0.20s; }
html.jb-js .jb-in .card-grid > .card:nth-child(4),
html.jb-js .jb-in .gallery-grid > figure:nth-child(4),
html.jb-js .jb-in .woocommerce ul.products > li.product:nth-child(4) { transition-delay: 0.27s; }
html.jb-js .jb-in .card-grid > .card:nth-child(5),
html.jb-js .jb-in .gallery-grid > figure:nth-child(5),
html.jb-js .jb-in .woocommerce ul.products > li.product:nth-child(5) { transition-delay: 0.34s; }
html.jb-js .jb-in .card-grid > .card:nth-child(n+6),
html.jb-js .jb-in .gallery-grid > figure:nth-child(n+6),
html.jb-js .jb-in .woocommerce ul.products > li.product:nth-child(n+6) { transition-delay: 0.40s; }

/* Images settle out of a slight oversize as their card resolves, so the
   picture feels like it's coming to rest rather than just appearing.
   The card's own overflow: hidden keeps the oversize cleanly clipped. */
html.jb-js .card-media img,
html.jb-js .gallery-grid figure img {
  scale: 1.07;
  transition: scale 1.1s var(--jb-ease);
}
html.jb-js .jb-in .card-media img,
html.jb-js .jb-in .gallery-grid figure img { scale: 1; }

/* ---------------------------------------------------------------------
   C3. REDUCED MOTION
   Anyone who has asked their system to reduce motion keeps the soft
   color dissolves (those don't move) but gets a plain, quick fade with
   no travel, no focus pull, no stagger, and no drifting bloom.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.jb-js .section > .container > *,
  html.jb-js .section-tight > .container > *,
  html.jb-js .card-grid > .card,
  html.jb-js .gallery-grid > figure,
  html.jb-js .woocommerce ul.products > li.product,
  html.jb-js .card-media img,
  html.jb-js .gallery-grid figure img {
    translate: none !important;
    scale: none !important;
    filter: none !important;
    transition: opacity 0.35s ease !important;
    transition-delay: 0s !important;
  }
  .section::after,
  .section-tight::after { animation: none !important; }
}

/* ---------------------------------------------------------------------
   C4. SMALL SCREENS
   Shorter dissolves and a shallower bloom, because there's far less
   vertical room to spend on a transition on a phone.
   --------------------------------------------------------------------- */
@media (max-width: 700px) {
  /* No vh floor on a phone — there the content is already tall
     relative to the screen, and a floor would only add dead space. */
  .section       { --jb-fade: 48px; padding: 4.5rem 0;  min-height: 0; }
  .section-tight { --jb-fade: 32px; padding: 3.25rem 0; min-height: 0; }
  .site-footer   { --jb-fade: 60px; }
  .section::after,
  .section-tight::after,
  .site-footer::after { top: -60px; height: 120px; }
  .hero::after { height: 130px; }
}


/* =====================================================================
   18. THE 2.0 LAYER — TEXTURE, EDITORIAL COMPONENTS, ADVANCED CSS
   =====================================================================
   Everything below exists to settle an argument the site was having
   with itself: chunky 3px outlines and hard sticker shadows on one
   hand, soft dissolving gradients on the other. The resolution is to
   keep the brand's bold, confident shapes and let the SURFACE do the
   sophistication — grain, real depth, dark contrast sections, and
   motion that is driven by the scroll rather than by a timer.

   Every advanced feature in here is additive. Grain, scroll-driven
   animation, container queries and view transitions each sit behind
   their own capability check, so a browser that lacks one simply
   doesn't get that flourish — nothing breaks, nothing disappears.
   ===================================================================== */

/* ---------------------------------------------------------------------
   18.1 FILM GRAIN
   A single fixed layer of SVG fractal noise over the whole page at 3.5%
   opacity. It's the cheapest way to stop large flat color fields from
   looking like flat color fields — it breaks up gradient banding and
   gives the page a printed quality. Generated inline rather than loaded
   as an image, so it costs no request.
   --------------------------------------------------------------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) { body::after { opacity: 0.02; } }

/* ---------------------------------------------------------------------
   18.2 SMALL CRAFT
   The details a developer notices in the first ten seconds.
   --------------------------------------------------------------------- */
::selection { background: var(--jb-pink); color: var(--jb-white); }
html { scrollbar-color: var(--jb-pink) var(--jb-cream); scrollbar-width: thin; }

/* A two-tone focus ring: a pink band with a white gap inside it, so it
   stays visible on light AND dark sections without needing a variant. */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--jb-pink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--jb-white);
  border-radius: 6px;
}

/* ---------------------------------------------------------------------
   18.3 SCROLL PROGRESS BAR
   Driven by scroll position in pure CSS — no scroll listener, no
   JavaScript, and it runs off the main thread so it cannot stutter.
   Hidden entirely in browsers without scroll-driven animation rather
   than faked with a fallback, because a progress bar that doesn't
   track progress is worse than no progress bar.
   --------------------------------------------------------------------- */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block;
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 300;
    pointer-events: none;
    background: linear-gradient(90deg, var(--jb-pink), var(--jb-yellow) 45%, var(--jb-blue));
    transform-origin: 0 50%;
    scale: 0 1;
    animation: jb-scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes jb-scroll-progress { to { scale: 1 1; } }
}

/* ---------------------------------------------------------------------
   18.4 CROSS-DOCUMENT VIEW TRANSITIONS
   WordPress serves a full page load on every link. This makes those
   loads cross-fade instead of flashing white, and holds the header
   visually in place across the navigation so it reads as one app
   rather than a stack of documents. One declaration; browsers without
   it navigate exactly as before.
   --------------------------------------------------------------------- */
@view-transition { navigation: auto; }

.site-header { view-transition-name: jb-header; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: jb-vt-out 260ms var(--ease-out-quint) both; }
  ::view-transition-new(root) { animation: jb-vt-in  380ms var(--ease-out-expo) both; }
  @keyframes jb-vt-out { to { opacity: 0; } }
  @keyframes jb-vt-in  { from { opacity: 0; translate: 0 14px; } }
}

/* ---------------------------------------------------------------------
   18.5 DARK SECTION
   The site had no dark surface at all, which is why every screen read
   at the same pitch. A navy section every few screens gives the scroll
   somewhere to land, and makes the pink and blue sections hit harder by
   contrast. It plugs into the same --jb-fill / --jb-bloom mechanism as
   every other section variant (see section 17).
   --------------------------------------------------------------------- */
.section-dark {
  --jb-fill: radial-gradient(130% 110% at 18% -10%, var(--jb-navy-raised), var(--jb-navy-deep) 68%);
  --jb-bloom: rgba(34, 195, 238, 0.26);
  color: var(--jb-on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--jb-white); }
.section-dark p { color: var(--jb-on-dark-muted); }
.section-dark .eyebrow { color: var(--jb-blue); }
.section-dark a:not(.btn) { color: var(--jb-blue); }

/* ---------------------------------------------------------------------
   18.6 EYEBROW
   Replaces the yellow pill in editorial contexts. Uppercase, tracked
   out wide, with a rule on each side — it labels a section without
   shouting, and it reads as typography rather than as a UI chip.
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.35rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jb-pink-dark);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}
/* Left-aligned blocks only need the trailing rule. */
.text-left .eyebrow::before, .eyebrow-start::before { display: none; }
.section-pink .eyebrow { color: var(--jb-white); }
.section-blue .eyebrow { color: var(--jb-navy); }

/* ---------------------------------------------------------------------
   18.7 MARQUEE
   The festival list used to be a cloud of pills that wrapped onto a
   ragged second line. As a continuous ticker it carries motion, never
   wraps badly, and scales to any number of festivals. The track holds
   the list twice and travels exactly -50%, which is what makes the loop
   seamless; the mask fades both ends so items enter and leave instead
   of popping at the edge of the screen.
   --------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 0.35rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: jb-marquee 42s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes jb-marquee { to { transform: translate3d(-50%, 0, 0); } }

.marquee-item {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--jb-white);
  border: var(--outline-thick);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--jb-navy);
  white-space: nowrap;
}
.marquee-item::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--jb-pink);
  flex: none;
}
.marquee-item:nth-child(3n)::before   { background: var(--jb-blue); }
.marquee-item:nth-child(3n+1)::before { background: var(--jb-yellow); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  /* The duplicate half exists only to make the loop seamless — with no
     motion it would just read as every festival listed twice. */
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------------------------------------------------------------------
   18.9 FEATURE CARDS
   The three services used to be three bold-led paragraphs in a stack.
   As numbered cards they gain structure and scanability. The outlined
   numeral is the editorial device doing the work.

   container-type makes each card query ITS OWN width rather than the
   viewport's — so a card reflows correctly no matter what column it is
   dropped into later, which a viewport media query cannot do.
   --------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: var(--space-md);
  width: 100%;
}
.feature {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: var(--jb-white);
  border: var(--outline-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  text-align: left;
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop-lg);
}
.feature-num {
  position: absolute;
  top: 0.9rem;
  right: 1.25rem;
  font-family: var(--font-hero);
  font-size: var(--step-4);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--jb-navy);
  opacity: 0.18;
  pointer-events: none;
}
.feature h3 { margin-bottom: 0.2rem; }
.feature p { color: var(--jb-ink-muted); margin-bottom: 0.4rem; }
.feature .btn { align-self: flex-start; margin-top: auto; }

/* Narrow card: drop the numeral out of the way and tighten padding. */
@container (max-width: 300px) {
  .feature { padding: var(--space-md); }
  .feature-num { font-size: var(--step-2); top: 0.6rem; right: 0.9rem; }
}

/* ---------------------------------------------------------------------
   18.10 PULL QUOTE
   One oversized line to break the wall of body copy in the About block
   and give the section a focal point.
   --------------------------------------------------------------------- */
.pull-quote {
  margin: var(--space-md) 0;
  padding-left: 1.4rem;
  border-left: 5px solid var(--jb-pink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--jb-navy);
  max-width: 24ch;
  text-wrap: balance;
}

/* ---------------------------------------------------------------------
   18.11 HERO REFINEMENTS
   --------------------------------------------------------------------- */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 2px 10px rgba(16,24,43,0.6);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero-meta span + span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--jb-yellow);
}

/* A quiet nudge that there's more below — it fades out as soon as you
   start scrolling, so it never nags. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  translate: -50% 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.scroll-cue::after {
  content: "";
  width: 4px; height: 9px;
  border-radius: 2px;
  background: var(--jb-white);
  animation: jb-cue 1.9s var(--ease-out-quint) infinite;
}
@keyframes jb-cue {
  0%   { transform: translateY(-8px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(9px);  opacity: 0; }
}
@supports (animation-timeline: scroll()) {
  .scroll-cue {
    animation: jb-cue-fade linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 220px;
  }
  @keyframes jb-cue-fade { to { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
}

/* ---------------------------------------------------------------------
   18.12 KINETIC HEADLINE
   main.js splits a [data-split] heading into one span per word, each
   wrapped in a clipping box. The words then rise out of that box in
   sequence, so the line assembles itself rather than fading in as a
   block. Untouched if the script doesn't run — the heading is just a
   heading.
   --------------------------------------------------------------------- */
.jb-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.jb-word > span {
  display: inline-block;
  translate: 0 110%;
  transition: translate var(--dur-slow) var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.jb-in .jb-word > span,
.hero .jb-word > span { translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .jb-word > span { translate: 0 0; transition: none; }
}

/* ---------------------------------------------------------------------
   18.13 MAGNETIC BUTTONS
   main.js writes the pointer offset into --mx / --my while the cursor
   is near a button. Deliberately set on `translate` and not on
   `transform`, so it composes with the existing hover lift instead of
   overwriting it. Fine-pointer devices only — there is no cursor to be
   magnetic towards on a touchscreen.
   --------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn {
    translate: var(--mx, 0px) var(--my, 0px);
    transition:
      transform var(--dur-fast) ease,
      box-shadow var(--dur-fast) ease,
      translate var(--dur-base) var(--ease-out-expo);
  }
}

/* ---------------------------------------------------------------------
   18.14 LINK + BUTTON CRAFT
   --------------------------------------------------------------------- */
/* An underline that grows from the left on hover, rather than the
   browser's default underline switching on and off. */
.link-underline {
  position: relative;
  font-weight: 700;
  color: var(--jb-pink-dark);
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: currentColor;
  transform-origin: 0 50%;
  scale: 0 1;
  transition: scale var(--dur-base) var(--ease-out-expo);
}
.link-underline:hover::after, .link-underline:focus-visible::after { scale: 1 1; }
.section-dark .link-underline { color: var(--jb-blue); }

/* Arrow that steps forward on hover. */
.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: translate var(--dur-base) var(--ease-out-expo);
}
.btn-arrow:hover::after { translate: 4px 0; }

/* ---------------------------------------------------------------------
   18.15 EVENT CARD UPGRADE
   A date chip pinned to the image, and the image itself easing in
   closer on hover behind the card's clipped corner.
   --------------------------------------------------------------------- */
.card { box-shadow: var(--shadow-pop); transition: transform var(--dur-base) var(--ease-out-expo), box-shadow var(--dur-base) var(--ease-out-expo); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop-lg); }
.card-media { position: relative; }
.card-media img { transition: scale var(--dur-slow) var(--ease-out-expo); }
.card:hover .card-media img { scale: 1.06; }
.card-chip {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  /* Belt and braces: whatever the date string, the chip can never grow
     past the card. A long one wraps onto a second line rather than
     being clipped by the card's overflow. */
  max-width: calc(100% - 1.7rem);
  z-index: 1;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--jb-white);
  border: 2px solid var(--jb-navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  line-height: 1.3;
  color: var(--jb-navy);
}
.card-meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jb-ink-muted);
}

/* ---------------------------------------------------------------------
   18.16 EDITORIAL LAYOUT HELPERS
   --------------------------------------------------------------------- */
.text-left { text-align: left; }
.text-left p, .text-left .pull-quote { margin-left: 0; margin-right: 0; }

/* Asymmetric split — the text column gets the wider share, which is
   what stops a two-column block reading like two equal slabs. */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}
.split-reverse { grid-template-columns: 0.85fr 1.15fr; }

/* A framed image that sits slightly off its own shadow — the sticker
   language applied to pictures, not just to buttons. */
.framed {
  margin: 0;
  border: var(--outline-thick);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-pop-lg);
  background: var(--jb-white);
  rotate: -1.5deg;
  transition: rotate var(--dur-slow) var(--ease-out-expo);
}
.framed:hover { rotate: 0deg; }
.framed img { width: 100%; display: block; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-md);
}
.text-center .btn-row, .btn-row-center { justify-content: center; }

@media (max-width: 900px) {
  .split, .split-reverse { grid-template-columns: 1fr; gap: var(--space-lg); }
  .framed { rotate: 0deg; }
}

/* ---------------------------------------------------------------------
   18.17 TEXT-ONLY CARDS
   A listing card with no photo still needs colour, or a grid of them
   reads as a row of empty boxes. A brand strip across the top does it
   without inventing an image that doesn't exist.
   --------------------------------------------------------------------- */
.card-plain::before {
  content: "";
  display: block;
  flex: none;
  height: 9px;
  background: var(--jb-gradient-party);
}
.card-plain .card-body { padding-top: var(--space-md); }
.card-plain .card-meta:first-of-type { color: var(--jb-pink-dark); }

/* ---------------------------------------------------------------------
   18.18 SKIP LINK
   Keyboard and screen-reader users land on the nav on every single page
   load and have to tab through all of it to reach the content. This lets
   them jump straight past it. Hidden until focused, so it costs nothing
   visually — and it is the first thing in the tab order on purpose.
   --------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--jb-navy);
  color: var(--jb-white);
  font-family: var(--font-display);
  font-weight: 700;
  transition: translate var(--dur-base) var(--ease-out-expo);
}
.skip-link:focus-visible { translate: -50% 0; }

/* The jump target must not draw its own focus ring — the eye should land
   on the content, not on a box around the whole page. */
#jb-content:focus { outline: none; }

/* On a narrow screen the hero meta items wrap, which left a separator
   dot stranded at the start of a line. Below this width the gap alone
   does the separating. */
@media (max-width: 620px) {
  .hero-meta span + span::before { display: none; }
  .hero-meta { gap: 0.35rem 1.4rem; }
}

/* ---------------------------------------------------------------------
   18.19 LAST OF THE INLINE STYLES
   These replace style="..." attributes that were sitting in the
   templates. Design decisions belong in the stylesheet, not in the
   markup — otherwise they can't be themed, overridden or found again.
   --------------------------------------------------------------------- */
.footer-logo  { height: 60px; margin-bottom: 1rem; }
.footer-blurb { color: var(--jb-on-dark-muted); }
.embed-tall   { min-height: 600px; }
.post-card    { margin-bottom: var(--space-md); padding: var(--space-md); }

/* ---------------------------------------------------------------------
   18.20 ABOUT LOGO
   The splash logo sits in the About column in place of a photograph.
   It is a transparent cut-out, so it gets a drop-shadow that follows
   its actual silhouette rather than a box shadow, and drifts very
   slightly so it reads as floating rather than pasted on.
   --------------------------------------------------------------------- */
.about-logo {
  display: block;
  width: min(430px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(16, 24, 43, 0.22));
  animation: jb-float 7s ease-in-out infinite alternate;
}
@keyframes jb-float {
  from { translate: 0 -8px; rotate: -1.2deg; }
  to   { translate: 0  8px; rotate:  1.2deg; }
}
@media (prefers-reduced-motion: reduce) {
  .about-logo { animation: none; }
}
