/*
Theme Name: High Days v5 (FSE) — Block Party
Theme URI: https://highdays.com
Author: High Days Beverage Co.
Description: Full-site editing block theme built from the "Block Party" design handoff. Festival-poster energy, orbiting sun nav, sticker-print shadows, Bagel Fat One + Baloo 2 + Hanken Grotesk + Pacifico. Standard WooCommerce. V4 stays as fallback.
Version: 0.5.4
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: highdays-v5
Tags: full-site-editing, block-templates, block-patterns, woocommerce, e-commerce, beverages
*/

/* ============================================================
   High Days v5 — Block Party theme
   Tokens come from theme.json. Component CSS uses .hd-* classes.
   Hard rules:
   - 2.5px ink outline + offset sticker shadow (no blur) on cards/buttons
   - Grain overlay via inline-SVG turbulence, fixed full-page
   - Suns built from repeating-conic-gradient masked to a ring
   ============================================================ */

:root {
    --hd-ink:           #43230E;
    --hd-ink-soft:      #6B4226;
    --hd-ink-softer:    #7A4B2B;
    --hd-cream-paper:   #FBF3DE;
    --hd-cream-warm:    #FFF6E2;
    --hd-cream-deep:    #F6E2B8;
    --hd-sun-gold:      #F2A93B;
    --hd-sun-light:     #FFD46A;
    --hd-sun-soft:      #FFD98A;
    --hd-sun-pale:      #FFE08A;
    --hd-burnt:         #E0552A;
    --hd-burnt-deep:    #B5431F;
    --hd-cocoa:         #7A3D1B;
    --hd-cocoa-dark:    #3A2014;
    --hd-cocoa-black:   #2A1710;
    --hd-flavor-orange:     #E9552A;
    --hd-flavor-watermelon: #5BA046;
    --hd-flavor-cream:      #C9772E;
    --hd-flavor-rootbeer:   #7A4B2B;

    --hd-outline:       2.5px solid var(--hd-ink);
    --hd-radius-pill:   999px;
    --hd-radius-card:   22px;
    --hd-radius-input:  12px;
    --hd-sticker:       0 6px 0 var(--hd-ink);
    --hd-sticker-sm:    0 4px 0 var(--hd-ink);
    --hd-sticker-lg:    0 8px 0 var(--hd-ink);
    --hd-soft-shadow:   0 20px 40px rgba(120, 40, 10, 0.25);
    --hd-ease:          cubic-bezier(0.22, 0.61, 0.36, 1);

    --hd-font-display:  'Bagel Fat One', 'Arial Black', Impact, sans-serif;
    --hd-font-heading:  'Baloo 2', 'Trebuchet MS', sans-serif;
    --hd-font-body:     'Hanken Grotesk', 'Helvetica Neue', system-ui, sans-serif;
    --hd-font-script:   'Pacifico', 'Brush Script MT', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--hd-cream-paper);
    color: var(--hd-ink);
    font-family: var(--hd-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Grain overlay (fixed, full-page) ---------- */

.hd-grain {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.13;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hd-grain--dark {
    mix-blend-mode: overlay;
    opacity: 0.16;
}

/* ---------- CSS sun (reusable, sized by font-size or width) ---------- */

.hd-sun {
    --sun-rays-color: var(--hd-burnt);
    --sun-face-from:  var(--hd-sun-pale);
    --sun-face-to:    var(--hd-sun-gold);
    --sun-size: 1em;
    width: var(--sun-size);
    height: var(--sun-size);
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none;
}
.hd-sun::before {
    content: "";
    position: absolute;
    inset: -34%;
    border-radius: 50%;
    background: repeating-conic-gradient(var(--sun-rays-color) 0deg 9deg, transparent 9deg 18deg);
    -webkit-mask: radial-gradient(closest-side, transparent 54%, #000 55%);
            mask: radial-gradient(closest-side, transparent 54%, #000 55%);
    animation: hd-spin 22s linear infinite;
}
.hd-sun__face {
    width: 62%;
    height: 62%;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, var(--sun-face-from), var(--sun-face-to) 72%);
}
.hd-sun--fast::before { animation-duration: 9s; }
.hd-sun--slow::before { animation-duration: 60s; }

@keyframes hd-spin       { to { transform: rotate(360deg); } }
@keyframes hd-spin-rev   { to { transform: rotate(-360deg); } }
@keyframes hd-marquee    { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hd-float      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hd-rise       { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hd-pop        { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes hd-fade-in    { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Typography defaults ---------- */

h1, h2, h3, h4 {
    font-family: var(--hd-font-display);
    font-weight: 400;
    color: var(--hd-ink);
    line-height: 0.92;
    margin: 0 0 0.5em;
    letter-spacing: -0.005em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.875rem, 8.4vw, 7.375rem); }
h2 { font-size: clamp(1.875rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-family: var(--hd-font-heading); font-weight: 700; font-size: 1.25rem; }
p { margin: 0 0 1em; }

.hd-script { font-family: var(--hd-font-script); font-weight: 400; }
.hd-eyebrow {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    color: var(--hd-burnt);
}

a { color: var(--hd-burnt); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--hd-ink); }

/* ---------- Buttons (sticker style) ---------- */

.hd-btn,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--hd-ink);
    background: var(--hd-sun-gold);
    border: var(--hd-outline);
    border-radius: var(--hd-radius-pill);
    padding: 0.95rem 1.85rem;
    text-decoration: none;
    box-shadow: var(--hd-sticker);
    cursor: pointer;
    transition: transform 0.15s var(--hd-ease), box-shadow 0.15s var(--hd-ease), background-color 0.15s var(--hd-ease);
    white-space: nowrap;
}
.hd-btn:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    transform: translateY(2px);
    box-shadow: var(--hd-sticker-sm);
    background: var(--hd-sun-light);
}
.hd-btn:active,
.wp-block-button__link:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--hd-ink);
}
.hd-btn--burnt { background: var(--hd-burnt); color: var(--hd-cream-warm); }
.hd-btn--burnt:hover { background: var(--hd-burnt-deep); }
.hd-btn--cream { background: var(--hd-cream-warm); }
.hd-btn--green { background: var(--hd-flavor-watermelon); color: var(--hd-cream-warm); }
.hd-btn--ghost {
    background: transparent;
    color: var(--hd-cream-warm);
    border-color: var(--hd-cream-warm);
    box-shadow: none;
}
.hd-btn--ghost:hover {
    background: rgba(255, 246, 226, 0.1);
    transform: none;
    box-shadow: none;
}

/* WP outline button variant inherits sticker treatment. */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border-color: var(--hd-ink);
    box-shadow: var(--hd-sticker-sm);
    color: var(--hd-ink);
}

/* ---------- Section utility classes ---------- */

.hd-section,
section.hd-section {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6.25rem) clamp(1.25rem, 5vw, 3rem);
}
.hd-section--cream { background: var(--hd-cream-paper); }
.hd-section--cream-deep { background: var(--hd-cream-deep); }
.hd-section--cocoa { background: var(--hd-cocoa-dark); color: var(--hd-cream-warm); }
.hd-section--cocoa h1, .hd-section--cocoa h2, .hd-section--cocoa h3 { color: var(--hd-cream-warm); }
.hd-section--ink { background: var(--hd-cocoa-black); color: var(--hd-cream-warm); }
.hd-section--ink h1, .hd-section--ink h2, .hd-section--ink h3 { color: var(--hd-cream-warm); }
.hd-section--hero-warm {
    background: radial-gradient(120% 130% at 50% -10%, var(--hd-sun-light), var(--hd-sun-gold) 40%, var(--hd-burnt) 100%);
    color: var(--hd-cream-warm);
}
.hd-section__inner { max-width: 1240px; margin: 0 auto; }

/* ---------- Marquee (true scrolling) ---------- */

.hd-marquee {
    overflow: hidden;
    border-top: 3px solid var(--hd-ink);
    border-bottom: 3px solid var(--hd-ink);
    padding: 0.875rem 0;
    background: var(--hd-sun-gold);
    color: var(--hd-ink);
}
.hd-marquee__track {
    display: flex;
    width: max-content;
    animation: hd-marquee 24s linear infinite;
    font-family: var(--hd-font-display);
    font-size: clamp(1.125rem, 2vw, 1.625rem);
    white-space: nowrap;
    will-change: transform;
}
.hd-marquee:hover .hd-marquee__track { animation-play-state: paused; }
.hd-marquee__group { display: inline-flex; align-items: center; flex-shrink: 0; padding-right: 1rem; }
.hd-marquee__group > span { padding: 0 0.5rem; }
.hd-marquee__star { color: var(--hd-burnt); }

/* ---------- Ticket stub (Block Party hero) ---------- */

.hd-ticket {
    display: inline-flex;
    align-items: stretch;
    background: var(--hd-cream-warm);
    color: var(--hd-ink);
    border: var(--hd-outline);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--hd-sticker-lg);
    transform: rotate(-2deg);
    font-family: var(--hd-font-heading);
    font-weight: 800;
}
.hd-ticket__cell { padding: 0.75rem 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.hd-ticket__cell strong { font-size: 1.125rem; }
.hd-ticket__cell small {
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    color: var(--hd-burnt-deep);
    text-transform: uppercase;
    margin-right: 0.4em;
    font-weight: 700;
}
.hd-ticket__perf {
    width: 2.5px;
    background: repeating-linear-gradient(var(--hd-ink) 0 6px, transparent 6px 12px);
}

/* ---------- Lineup row (festival flavor list) ---------- */

.hd-lineup { display: flex; flex-direction: column; gap: 1rem; }
.hd-lineup__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.875rem, 3vw, 2.125rem);
    padding: clamp(0.875rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);
    background: rgba(255, 246, 226, 0.04);
    border: 2.5px solid rgba(255, 246, 226, 0.18);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s var(--hd-ease), background 0.15s var(--hd-ease), border-color 0.15s var(--hd-ease);
}
.hd-lineup__row:hover {
    transform: translateY(-3px);
    background: rgba(255, 246, 226, 0.08);
    border-color: var(--hd-sun-gold);
}
.hd-lineup__left { display: flex; align-items: center; gap: clamp(0.875rem, 2.5vw, 1.75rem); }
.hd-lineup__thumb {
    width: clamp(4rem, 9vw, 6.5rem);
    height: clamp(4rem, 9vw, 6.5rem);
    border-radius: 50%;
    border: 3px solid var(--hd-ink);
    overflow: hidden;
    flex: none;
    box-shadow: 0 4px 0 rgba(20, 10, 5, 0.4);
}
.hd-lineup__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-lineup__stage {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hd-lineup__name {
    font-family: var(--hd-font-display);
    font-size: clamp(1.625rem, 4.4vw, 3.25rem);
    line-height: 0.95;
}
.hd-lineup__right { display: flex; align-items: center; gap: clamp(0.875rem, 3vw, 2.125rem); flex: none; }
.hd-lineup__meta { font-family: var(--hd-font-heading); font-weight: 700; font-size: 0.9375rem; opacity: 0.8; }
.hd-lineup__price { font-family: var(--hd-font-display); font-size: clamp(1.375rem, 3vw, 2.125rem); color: var(--hd-sun-gold); }
.hd-lineup__plus {
    font-family: var(--hd-font-heading);
    font-weight: 800;
    font-size: 1.375rem;
    color: var(--hd-ink);
    background: var(--hd-sun-gold);
    border: var(--hd-outline);
    border-radius: 50%;
    width: 2.875rem;
    height: 2.875rem;
    display: grid;
    place-items: center;
    box-shadow: var(--hd-sticker-sm);
    flex: none;
}

/* ---------- Day-goes 3-block ---------- */

.hd-daygoes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: clamp(22.5rem, 40vw, 32.5rem);
}
.hd-daygoes__cell {
    position: relative;
    padding: clamp(1.875rem, 4vw, 3.25rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.hd-daygoes__cell--gold   { background: var(--hd-sun-gold); color: var(--hd-ink); }
.hd-daygoes__cell--burnt  { background: var(--hd-burnt); color: var(--hd-cream-warm); }
.hd-daygoes__cell--green  { background: var(--hd-flavor-watermelon); color: var(--hd-cream-warm); }
.hd-daygoes__num {
    font-family: var(--hd-font-display);
    font-size: clamp(3.75rem, 8vw, 7.5rem);
    line-height: 0.8;
    opacity: 0.18;
    position: absolute;
    top: 0.875rem;
    left: 1.125rem;
}
.hd-daygoes__eyebrow {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    letter-spacing: 0.14em;
    font-size: 0.8125rem;
    text-transform: uppercase;
}
.hd-daygoes__title {
    font-family: var(--hd-font-display);
    font-size: clamp(1.625rem, 3.4vw, 2.625rem);
    line-height: 0.95;
    margin: 0.375rem 0 0.625rem;
}
.hd-daygoes__copy { font-size: 0.9375rem; line-height: 1.5; max-width: 30ch; margin: 0; }

@media (max-width: 781px) {
    .hd-daygoes { grid-template-columns: 1fr; }
}

/* ---------- Stockist logo grid ---------- */

.hd-stockists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.hd-stockist-tile {
    background: rgba(255, 246, 226, 0.06);
    border: 2px dashed rgba(255, 230, 189, 0.4);
    border-radius: 18px;
    height: 6rem;
    display: grid;
    place-items: center;
    color: rgba(255, 230, 189, 0.55);
    font-family: var(--hd-font-heading);
    font-weight: 700;
}

/* ---------- WooCommerce overrides ---------- */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0;
    padding: 1.25rem;
    background: var(--hd-cream-warm);
    border: var(--hd-outline);
    border-radius: var(--hd-radius-card);
    box-shadow: var(--hd-sticker);
    transition: transform 0.18s var(--hd-ease), box-shadow 0.18s var(--hd-ease);
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--hd-sticker-lg);
}
.woocommerce ul.products li.product a img {
    border-radius: 14px;
    background: var(--hd-cream-deep);
    margin-bottom: 1rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--hd-font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 0.95;
    color: var(--hd-ink);
    padding: 0;
    margin: 0 0 0.5rem;
}
.woocommerce ul.products li.product .price {
    font-family: var(--hd-font-display);
    font-size: 1.5rem;
    color: var(--hd-burnt);
    margin-bottom: 0.75rem;
}
.woocommerce span.onsale {
    background: var(--hd-flavor-watermelon);
    color: var(--hd-cream-warm);
    border: var(--hd-outline);
    border-radius: var(--hd-radius-pill);
    font-family: var(--hd-font-heading);
    font-weight: 700;
    padding: 0.25rem 0.9rem;
    box-shadow: var(--hd-sticker-sm);
}
.woocommerce div.product .product_title {
    font-family: var(--hd-font-display);
    font-size: clamp(2.25rem, 5.4vw, 4.25rem);
    line-height: 0.92;
    color: var(--hd-ink);
    margin-bottom: 1rem;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: var(--hd-font-display);
    font-size: 2rem;
    color: var(--hd-burnt);
}

/* ---------- Sun loader (carried from v4) ---------- */

.hd-loader {
    position: fixed;
    inset: 0;
    background: var(--hd-cocoa-black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    pointer-events: none;
    transition: opacity 0.55s var(--hd-ease), visibility 0s 0.6s;
}
.hd-loader__mark { width: 40vmin; height: 40vmin; max-width: 240px; max-height: 240px; position: relative; }
.hd-loader__mark svg {
    width: 100%; height: 100%;
    animation: hd-spin 9s linear infinite;
    transform-origin: center;
    filter: drop-shadow(0 0 60px rgba(242, 169, 59, 0.5));
}
.hd-loader.is-retreating .hd-loader__mark svg { animation-play-state: paused; }
.hd-loader.is-retreating .hd-loader__mark .rays {
    transform: scale(0.18);
    opacity: 0;
    transition: transform 0.62s var(--hd-ease), opacity 0.62s var(--hd-ease);
    transform-origin: center; transform-box: fill-box;
}
.hd-loader__wordmark {
    font-family: var(--hd-font-display);
    font-size: clamp(2.5rem, 8vmin, 5rem);
    color: var(--hd-cream-warm);
    line-height: 1;
}
.hd-loader.is-retreating { opacity: 0; transition: opacity 0.55s var(--hd-ease); }
.hd-loader.is-gone { visibility: hidden; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .hd-loader, .hd-loader * { animation: none !important; transition: none !important; display: none; }
    .hd-marquee__track,
    .hd-sun::before,
    [class*="hd-spin"] { animation: none !important; }
}

/* ---------- Mobile ---------- */

@media (max-width: 781px) {
    .hd-lineup__row { flex-wrap: wrap; gap: 1rem; }
    .hd-lineup__right { width: 100%; justify-content: space-between; }
}

/* ============================================================
   Orbit Sun Nav — header bar + full-screen overlay
   ============================================================ */

.hd-nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    font-family: var(--hd-font-body);
}

/* ---- Top bar ---- */

.hd-nav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 74px;
    pointer-events: auto;
    z-index: 1001;
    background: transparent;
    transition: background-color 0.25s var(--hd-ease), backdrop-filter 0.25s var(--hd-ease), box-shadow 0.25s var(--hd-ease);
}
.hd-nav-bar.is-scrolled {
    background: rgba(251, 243, 222, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(67, 35, 14, 0.08);
}
.hd-nav[data-tone="onDark"]    .hd-nav-bar:not(.is-scrolled) { color: var(--hd-cream-warm); }
.hd-nav[data-tone="onLight"]   .hd-nav-bar:not(.is-scrolled) { color: var(--hd-ink); }
.hd-nav-bar.is-scrolled { color: var(--hd-ink); }

.hd-nav-bar__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.hd-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}
.hd-nav__brand .hd-sun { font-size: 34px; }
.hd-nav__wordmark {
    font-family: var(--hd-font-script);
    font-size: 1.6875rem;
    color: inherit;
    line-height: 1;
}
.hd-nav__right {
    display: flex;
    align-items: center;
    gap: clamp(0.625rem, 2vw, 1.125rem);
    pointer-events: auto;
}
.hd-nav__shop {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hd-cream-warm);
    background: var(--hd-burnt);
    border: 2px solid var(--hd-ink);
    border-radius: var(--hd-radius-pill);
    padding: 0.55rem 1.15rem;
    text-decoration: none;
    box-shadow: var(--hd-sticker-sm);
    white-space: nowrap;
}
.hd-nav__shop:hover { background: var(--hd-burnt-deep); color: var(--hd-cream-warm); }
.hd-nav__cart {
    position: relative;
    color: inherit;
    text-decoration: none;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
}
.hd-nav__cart-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--hd-burnt);
    color: var(--hd-cream-warm);
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--hd-font-heading);
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    padding: 0 4px;
}
.hd-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}
.hd-nav__trigger .hd-sun { font-size: 30px; --sun-rays-color: currentColor; --sun-face-from: currentColor; --sun-face-to: currentColor; }
.hd-nav__menu-label { display: inline-block; }

/* ---- Orbit overlay ---- */

.hd-orbit {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 46%, #FBE9C4 0%, #F4C66B 38%, #E78B33 72%, #C9551F 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--hd-ease), visibility 0s linear 0.35s;
    z-index: 1500;
}
.hd-orbit::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    mix-blend-mode: multiply;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hd-orbit.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s var(--hd-ease), visibility 0s linear 0s;
}

.hd-orbit__ring {
    position: absolute;
    left: 50%;
    top: calc(50% + 40px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px dashed rgba(122, 61, 23, 0.45);
    pointer-events: none;
}
.hd-orbit__ring--outer { width: min(640px, 70vw); aspect-ratio: 1; }
.hd-orbit__ring--inner { width: min(460px, 52vw); aspect-ratio: 1; border-color: rgba(122, 61, 23, 0.3); }

.hd-orbit__center {
    position: absolute;
    left: 50%;
    top: calc(50% + 40px);
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
}
.hd-orbit__center .hd-sun { font-size: 150px; --sun-rays-color: var(--hd-burnt); --sun-face-from: #FFE493; --sun-face-to: var(--hd-sun-gold); }
.hd-sun__face--smile {
    position: relative;
    box-shadow: inset -6px -10px 18px rgba(196, 85, 31, 0.4);
}
.hd-sun__face--smile::before,
.hd-sun__face--smile::after {
    content: "";
    position: absolute;
    width: 9px; height: 13px;
    border-radius: 50%;
    background: var(--hd-cocoa);
    top: 32%;
}
.hd-sun__face--smile::before { left: 32%; }
.hd-sun__face--smile::after  { right: 32%; }
.hd-sun__face--smile > .hd-sun__mouth { /* if you add a mouth element */ display: none; }

.hd-orbit__caption {
    position: absolute;
    left: 50%;
    top: 5.5vh;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    color: var(--hd-cocoa);
}
.hd-orbit__caption .hd-script {
    font-family: var(--hd-font-script);
    font-size: clamp(1.375rem, 3.4vw, 2.125rem);
    color: var(--hd-cream-warm);
    text-shadow: 0 2px 0 rgba(150, 60, 20, 0.35);
}
.hd-orbit__caption-shout {
    font-family: var(--hd-font-display);
    font-size: clamp(1.875rem, 5vw, 3.25rem);
    color: var(--hd-cocoa);
    line-height: 0.95;
    margin-top: 0.125rem;
}

.hd-orbit__link {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: clamp(1.125rem, 1.7vw, 1.625rem);
    color: var(--hd-ink);
    background: rgba(255, 246, 226, 0.92);
    border: var(--hd-outline);
    border-radius: var(--hd-radius-pill);
    padding: 0.625rem 1.15rem;
    text-decoration: none;
    box-shadow: 0 5px 0 var(--hd-cocoa);
    opacity: 0;
    animation: hd-pop 0.5s var(--hd-ease) both;
    white-space: nowrap;
}
.hd-orbit__link:hover {
    background: var(--hd-cream-warm);
    transform: translate(-50%, -50%) scale(1.05) !important;
}
.hd-orbit__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--hd-ink);
    flex: none;
}

.hd-orbit__close {
    position: absolute;
    top: 22px;
    right: clamp(16px, 4vw, 40px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: var(--hd-outline);
    background: var(--hd-cream-warm);
    color: var(--hd-cocoa);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 0 rgba(122, 61, 23, 0.3);
}
.hd-orbit__footnote {
    position: absolute;
    left: 50%;
    bottom: 4vh;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    pointer-events: none;
    font-family: var(--hd-font-heading);
    font-weight: 600;
    color: var(--hd-cocoa);
}
.hd-orbit__age-badge {
    border: 2px solid var(--hd-cocoa);
    border-radius: var(--hd-radius-pill);
    padding: 0.2rem 0.7rem;
    font-size: 0.8125rem;
}

@media (max-width: 859px) {
    .hd-nav__menu-label { display: none; }
    .hd-orbit__ring { display: none; }
}

/* ============================================================
   Footer
   ============================================================ */

.hd-footer {
    position: relative;
    background: var(--wp--preset--gradient--footer-stack, linear-gradient(180deg, #E0552A 0%, #B5431F 34%, #7A3D1B 70%, #4E2A15 100%));
    color: var(--hd-cream-warm);
    overflow: hidden;
}
.hd-footer__scallop {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 26px;
    background: var(--hd-cream-paper);
    -webkit-mask: radial-gradient(26px at 26px 0, transparent 0 24px, #000 25px) repeat-x;
            mask: radial-gradient(26px at 26px 0, transparent 0 24px, #000 25px) repeat-x;
    -webkit-mask-size: 52px 26px;
            mask-size: 52px 26px;
}
.hd-footer__marquee {
    position: relative;
    border-bottom: 2px solid rgba(255, 240, 210, 0.25);
    padding: 14px 0;
    overflow: hidden;
    margin-top: 26px;
    color: var(--hd-sun-soft);
}
.hd-footer__inner {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem) 1.75rem;
}
.hd-footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.25rem;
    align-items: start;
    padding-bottom: 2.875rem;
    border-bottom: 2px solid rgba(255, 240, 210, 0.22);
}
.hd-footer__brand-name {
    font-family: var(--hd-font-script);
    font-size: clamp(2.125rem, 5vw, 2.875rem);
    color: var(--hd-cream-warm);
    line-height: 1;
}
.hd-footer__brand-blurb {
    margin: 0.875rem 0 0;
    max-width: 30ch;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(252, 239, 212, 0.85);
}
.hd-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.hd-footer__social a {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 240, 210, 0.5);
    display: grid;
    place-items: center;
    color: var(--hd-cream-warm);
    text-decoration: none;
}
.hd-footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem 1.5rem;
    padding: 2.625rem 0;
}
.hd-footer__col-title {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--hd-sun-soft);
    margin: 0 0 0.875rem;
}
.hd-footer__col-list { display: flex; flex-direction: column; gap: 0.7rem; list-style: none; padding: 0; margin: 0; }
.hd-footer__col-list a { color: var(--hd-cream-warm); text-decoration: none; font-size: 0.9375rem; }
.hd-footer__col-list a:hover { color: var(--hd-sun-soft); }

.hd-footer__compliance {
    border-top: 2px solid rgba(255, 240, 210, 0.22);
    padding-top: 2rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.hd-footer__age-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--hd-font-heading);
    font-weight: 700;
    color: var(--hd-sun-soft);
}
.hd-footer__age-badge {
    border: 2.5px solid var(--hd-sun-soft);
    border-radius: var(--hd-radius-pill);
    padding: 0.25rem 0.9rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}
.hd-footer__disclaimer {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(252, 239, 212, 0.72);
    max-width: 90ch;
    margin: 0;
}
.hd-footer__copyright {
    font-size: 0.8125rem;
    color: rgba(252, 239, 212, 0.55);
    margin-top: 1.25rem;
}
.hd-footer__newsletter input {
    flex: 1;
    min-width: 180px;
    font-family: var(--hd-font-body);
    font-size: 0.95rem;
    padding: 0.8rem 1.15rem;
    border-radius: var(--hd-radius-pill);
    border: 2px solid var(--hd-ink);
    background: var(--hd-cream-paper);
    color: var(--hd-ink);
    outline: none;
}
.hd-footer__newsletter form { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.hd-footer__newsletter button {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hd-cream-warm);
    background: var(--hd-sun-gold);
    border: 2px solid var(--hd-ink);
    border-radius: var(--hd-radius-pill);
    padding: 0.8rem 1.5rem;
    box-shadow: 0 3px 0 var(--hd-ink);
    cursor: pointer;
}
.hd-footer__newsletter-blurb { font-size: 0.95rem; color: rgba(252, 239, 212, 0.8); margin: 0.5rem 0 1rem; }
.hd-footer__newsletter-fine { margin-top: 0.75rem; font-size: 0.8125rem; color: rgba(252, 239, 212, 0.7); }

/* Reveal-on-scroll (matches v4 fail-safe pattern). */
@media (prefers-reduced-motion: no-preference) {
    body.hd-js .hd-section.is-pending-reveal > *,
    body.hd-js .hd-reveal.is-pending-reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s var(--hd-ease), transform 0.7s var(--hd-ease);
    }
    body.hd-js .hd-section.is-in-view > *,
    body.hd-js .hd-reveal.is-in-view {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s var(--hd-ease), transform 0.7s var(--hd-ease);
    }
}

/* Top spacing for fixed nav. */
.hd-main { padding-top: 0; }

/* ============================================================
   Block Party home — poster hero, lifestyle bleed
   ============================================================ */

.hd-poster-hero {
    position: relative;
    min-height: 96vh;
    display: grid;
    place-items: center;
    padding: 6.25rem clamp(1.125rem, 4vw, 2.5rem) 3.75rem;
    overflow: hidden;
    background: var(--wp--preset--gradient--hero-poster, linear-gradient(180deg, #2A1710 0%, #3A2014 60%, #C9551F 100%));
    color: var(--hd-cream-warm);
}
.hd-poster-hero__photo {
    position: absolute;
    inset: 0;
    background: var(--hd-cocoa-black);
    background-image: linear-gradient(135deg, var(--hd-cocoa-black), var(--hd-burnt-deep));
    background-size: cover;
    background-position: center;
}
.hd-poster-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(42, 23, 16, 0.55) 0%, rgba(201, 72, 30, 0.45) 45%, rgba(42, 23, 16, 0.82) 100%);
}
.hd-poster-hero__rays {
    position: absolute;
    top: -26vmax;
    left: 50%;
    width: 70vmax;
    height: 70vmax;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.4;
    background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, 0.85) 0deg 5deg, transparent 5deg 10deg);
    -webkit-mask: radial-gradient(closest-side, #000 26%, transparent 70%);
            mask: radial-gradient(closest-side, #000 26%, transparent 70%);
    animation: hd-spin 110s linear infinite;
}
.hd-poster-hero__inner {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
}
.hd-poster-hero__presents {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--hd-font-heading);
    font-weight: 700;
    letter-spacing: 0.32em;
    font-size: 0.875rem;
    color: var(--hd-sun-soft);
    text-transform: uppercase;
    margin-bottom: 0.625rem;
}
.hd-poster-hero__rule { width: 30px; height: 2px; background: var(--hd-sun-soft); }
.hd-poster-hero__title {
    font-family: var(--hd-font-display);
    font-weight: 400;
    font-size: clamp(3.625rem, 14vw, 11.25rem);
    line-height: 0.84;
    margin: 0;
    color: var(--hd-cream-warm);
    text-shadow: 0 6px 0 rgba(120, 40, 10, 0.55), 0 0 60px rgba(255, 180, 90, 0.4);
}
.hd-poster-hero__tagline {
    font-family: var(--hd-font-script);
    font-size: clamp(1.375rem, 4vw, 2.625rem);
    color: var(--hd-sun-soft);
    margin-top: 0.375rem;
    text-shadow: 0 2px 8px rgba(80, 30, 5, 0.6);
}
.hd-poster-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; justify-content: center; margin-top: 2.125rem; }
.hd-poster-hero__ticket-wrap { margin-top: 2.375rem; display: flex; justify-content: center; }
.hd-poster-hero__cue {
    position: absolute;
    bottom: 1.125rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--hd-sun-pale);
    font-family: var(--hd-font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.hd-poster-hero__cue-arrow {
    font-size: 1.125rem;
    animation: hd-float 2.4s ease-in-out infinite;
}

/* Lifestyle bleed */

.hd-bleed-lifestyle {
    position: relative;
    min-height: clamp(26.25rem, 52vw, 40rem);
    display: grid;
    place-items: center;
    padding: 3.75rem 1.5rem;
    overflow: hidden;
}
.hd-bleed-lifestyle__photo {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hd-burnt) 0%, var(--hd-cocoa-dark) 100%);
    background-size: cover;
    background-position: center;
}
.hd-bleed-lifestyle__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(42, 23, 16, 0.78), rgba(42, 23, 16, 0.25) 60%, rgba(42, 23, 16, 0.6));
    pointer-events: none;
}
.hd-bleed-lifestyle__copy {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
}

/* ============================================================
   v0.5.1 — Endless Summer home pattern + bar-legibility fix
   ============================================================ */

/* ---------- Top-bar legibility on light pages ----------
   Issue: onDark tone (cream text) is invisible over cream pages.
   Fix: always give unscrolled bar a subtle translucent dark backdrop
   so text reads regardless of what's behind it. */
.hd-nav-bar:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(42, 23, 16, 0.32), rgba(42, 23, 16, 0));
    color: var(--hd-cream-warm);
}
.hd-nav-bar:not(.is-scrolled) .hd-nav__menu-label,
.hd-nav-bar:not(.is-scrolled) .hd-nav__wordmark { text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.hd-nav-bar.is-scrolled { color: var(--hd-ink); }
.hd-nav-bar.is-scrolled .hd-nav__menu-label,
.hd-nav-bar.is-scrolled .hd-nav__wordmark { text-shadow: none; }

/* ---------- Endless Summer hero ---------- */

.hd-summer-hero {
    position: relative;
    min-height: 100vh;
    padding: 6.5rem clamp(1.25rem, 5vw, 3rem) 4.375rem;
    display: flex;
    align-items: center;
    background: radial-gradient(120% 90% at 70% 8%, #FFD46A 0%, #F4A23C 30%, #E76E2C 60%, #C9481E 100%);
    overflow: hidden;
    color: var(--hd-cream-warm);
}
.hd-summer-hero__sunburst {
    position: absolute;
    top: -32vmax;
    left: 50%;
    width: 80vmax;
    height: 80vmax;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.5;
    background: repeating-conic-gradient(from 0deg, rgba(255,232,160,0.9) 0deg 5deg, transparent 5deg 10deg);
    -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 72%);
            mask: radial-gradient(closest-side, #000 30%, transparent 72%);
    animation: hd-spin 90s linear infinite;
}
.hd-summer-hero__disc {
    position: absolute;
    top: -12vmax;
    left: 50%;
    width: 34vmax;
    height: 34vmax;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 60%, #FFE8A6, #FFCB5B 70%);
    filter: blur(2px);
    pointer-events: none;
    opacity: 0.55;
}
.hd-summer-hero__can {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 18px 24px rgba(120,40,10,0.35));
    animation: hd-float 7.5s ease-in-out infinite;
}
.hd-summer-hero__can--left {
    left: -3vw;
    bottom: 6vh;
    width: clamp(7.5rem, 15vw, 14.375rem);
    transform: rotate(-9deg);
    animation-duration: 7s;
}
.hd-summer-hero__can--right {
    right: -2vw;
    top: 16vh;
    width: clamp(6rem, 11vw, 11.25rem);
    transform: rotate(11deg);
    animation-duration: 8.5s;
}
.hd-summer-hero__grid {
    position: relative;
    z-index: 3;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.75rem, 4vw, 3.75rem);
    align-items: center;
}
.hd-summer-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,246,226,0.9);
    border: 2px solid var(--hd-ink);
    border-radius: var(--hd-radius-pill);
    padding: 0.4375rem 1rem;
    color: var(--hd-ink);
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 3px 0 rgba(67,35,14,0.4);
}
.hd-summer-hero__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hd-summer-hero__title {
    font-family: var(--hd-font-display);
    font-weight: 400;
    color: var(--hd-cream-warm);
    font-size: clamp(2.875rem, 8.4vw, 7.375rem);
    line-height: 0.9;
    margin: 1.25rem 0 0;
    text-shadow: 0 5px 0 rgba(150,55,18,0.45), 0 0 40px rgba(255,210,120,0.35);
}
.hd-summer-hero__title-em {
    color: var(--hd-cocoa);
    text-shadow: 0 4px 0 rgba(255,246,226,0.6);
}
.hd-summer-hero__lead {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    color: #FFF1DA;
    max-width: 46ch;
    margin: 1.5rem 0 0;
    font-weight: 500;
}
.hd-summer-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 1.875rem; }
.hd-summer-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.375rem;
    margin-top: 1.875rem;
    font-family: var(--hd-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: #FFF1DA;
}
.hd-summer-hero__photo-wrap { position: relative; }
.hd-summer-hero__photo {
    position: relative;
    border: 5px solid var(--hd-cream-warm);
    border-radius: 240px 240px 30px 30px;
    overflow: hidden;
    box-shadow: 0 26px 50px rgba(120,40,10,0.4);
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--hd-burnt), var(--hd-cocoa-dark));
    display: grid;
    place-items: center;
}
.hd-summer-hero__photo-placeholder {
    color: var(--hd-cream-warm);
    font-family: var(--hd-font-heading);
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.95rem;
}
.hd-summer-hero__sticker {
    position: absolute;
    bottom: -1.625rem;
    left: -1.375rem;
    background: var(--hd-flavor-watermelon);
    color: var(--hd-cream-warm);
    border: var(--hd-outline);
    border-radius: var(--hd-radius-pill);
    padding: 0.625rem 1.125rem;
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: var(--hd-sticker);
    transform: rotate(-5deg);
}
.hd-summer-hero__cue {
    position: absolute;
    bottom: 1.375rem;
    left: 50%;
    transform: translateX(-50%);
    color: #FFF1DA;
    font-family: var(--hd-font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    opacity: 0.9;
}
.hd-summer-hero__cue-arrow { font-size: 1.125rem; animation: hd-float 2.5s ease-in-out infinite; }

@media (max-width: 781px) {
    .hd-summer-hero__grid { grid-template-columns: 1fr; }
    .hd-summer-hero__photo-wrap { max-width: 380px; margin: 1.5rem auto 0; }
}

/* ---------- Dark marquee variant ---------- */

.hd-marquee--dark {
    background: var(--hd-ink);
    color: var(--hd-sun-soft);
    border-top-color: var(--hd-ink);
    border-bottom-color: var(--hd-ink);
}
.hd-marquee--dark .hd-marquee__star { color: var(--hd-sun-gold); }

/* ---------- Flavor grid (endless summer) ---------- */

.hd-flavor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(1.125rem, 2.4vw, 1.875rem);
}
.hd-flavor-card {
    background: var(--hd-cream-warm);
    border: var(--hd-outline);
    border-radius: var(--hd-radius-card);
    box-shadow: var(--hd-sticker);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s var(--hd-ease), box-shadow 0.2s var(--hd-ease);
}
.hd-flavor-card:hover { transform: translateY(-4px); box-shadow: var(--hd-sticker-lg); }
.hd-flavor-card__img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--hd-cream-deep);
}
.hd-flavor-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--hd-ease);
}
.hd-flavor-card:hover .hd-flavor-card__img img { transform: scale(1.06); }
.hd-flavor-card__body { padding: 1.125rem 1.25rem 1.375rem; text-align: left; }
.hd-flavor-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
}
.hd-flavor-card__row + .hd-flavor-card__row { margin-top: 0.75rem; }
.hd-flavor-card__body h3 {
    font-family: var(--hd-font-heading);
    font-weight: 800;
    font-size: 1.3125rem;
    margin: 0;
    color: var(--hd-ink);
}
.hd-flavor-card__tag {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.625rem;
    border-radius: var(--hd-radius-pill);
}
.hd-flavor-card__meta {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    color: var(--hd-ink-softer);
    font-size: 0.9375rem;
}
.hd-flavor-card__price {
    font-family: var(--hd-font-heading);
    font-weight: 800;
    color: var(--hd-burnt);
    font-size: 1.125rem;
}

/* ---------- Lifestyle photos + sun marker + stat chips ---------- */

.hd-life-photo {
    border: 5px solid var(--hd-cream-warm);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(120,40,10,0.28);
    aspect-ratio: 5 / 4;
    background: linear-gradient(135deg, var(--hd-burnt), var(--hd-cocoa-dark));
    display: grid;
    place-items: center;
}
.hd-life-photo--rotate-left  { transform: rotate(-2deg); }
.hd-life-photo--rotate-right { transform: rotate(2deg); }
.hd-life-photo__placeholder {
    color: var(--hd-cream-warm);
    font-family: var(--hd-font-heading);
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.95rem;
}
.hd-life-photo__sun {
    position: absolute;
    top: -1.125rem;
    right: 6%;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    z-index: 2;
}

.hd-stat-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hd-stat-chip {
    background: var(--hd-cream-warm);
    border: 2px solid var(--hd-ink);
    border-radius: 16px;
    padding: 0.75rem 1.125rem;
    box-shadow: 0 4px 0 rgba(67,35,14,0.3);
}
.hd-stat-chip__big {
    font-family: var(--hd-font-display);
    font-size: 1.5rem;
    line-height: 1;
}
.hd-stat-chip__lbl {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hd-ink-softer);
    font-family: var(--hd-font-heading);
    margin-top: 0.25rem;
}

/* ---------- Feature tiles ---------- */

.hd-feature-tile {
    background: var(--hd-cream-paper);
    border: var(--hd-outline);
    border-radius: 22px;
    padding: 1.75rem 1.375rem;
    text-align: center;
    box-shadow: 0 6px 0 rgba(67,35,14,0.3);
}
.hd-feature-tile__sun {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
}
.hd-feature-tile__big {
    font-family: var(--hd-font-display);
    font-size: 1.625rem;
    color: var(--hd-ink);
    line-height: 1;
}
.hd-feature-tile__title {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--hd-ink);
}
.hd-feature-tile__desc {
    font-size: 0.875rem;
    color: var(--hd-ink-softer);
    margin: 0.375rem 0 0;
    line-height: 1.45;
}

/* ---------- Polaroid gallery ---------- */

.hd-polaroid-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.875rem;
}
.hd-polaroid {
    border: 4px solid var(--hd-cream-warm);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(120,40,10,0.2);
    background: linear-gradient(135deg, var(--hd-burnt), var(--hd-cocoa-dark));
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
}
.hd-polaroid--tall  { grid-row: span 2; aspect-ratio: 1 / 2; }
.hd-polaroid--wide  { grid-column: span 2; aspect-ratio: 2 / 1; }
.hd-polaroid--rotate-left  { transform: rotate(-1.5deg); }
.hd-polaroid--rotate-right { transform: rotate(1.5deg); }
.hd-polaroid__placeholder {
    color: var(--hd-cream-warm);
    font-family: var(--hd-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 781px) {
    .hd-polaroid-grid { grid-template-columns: repeat(2, 1fr); }
    .hd-polaroid--tall { grid-row: span 1; aspect-ratio: 1 / 1; }
    .hd-polaroid--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
}

/* ---------- CTA Band ---------- */

.hd-cta-band {
    position: relative;
    padding: clamp(4.375rem, 9vw, 8.125rem) clamp(1.25rem, 5vw, 3rem);
    background: var(--wp--preset--gradient--cta-band, radial-gradient(120% 120% at 50% 0%, #F4A23C, #E0552A 55%, #B5431F 100%));
    overflow: hidden;
    text-align: center;
}
.hd-cta-band__rays {
    position: absolute;
    top: -30vmax;
    left: 50%;
    width: 70vmax;
    height: 70vmax;
    transform: translateX(-50%);
    opacity: 0.4;
    pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(255,232,160,0.85) 0deg 5deg, transparent 5deg 10deg);
    -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 72%);
            mask: radial-gradient(closest-side, #000 30%, transparent 72%);
    animation: hd-spin 100s linear infinite;
}
.hd-cta-band__can {
    position: absolute;
    width: clamp(6.875rem, 12vw, 12.5rem);
    bottom: -4%;
    filter: drop-shadow(0 16px 22px rgba(120,40,10,0.35));
    pointer-events: none;
}
.hd-cta-band__can--left  { left: 4%;  transform: rotate(-10deg); }
.hd-cta-band__can--right { right: 4%; transform: rotate(8deg); }
.hd-cta-band__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hd-cta-band__title {
    font-family: var(--hd-font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 7vw, 5.625rem);
    line-height: 0.92;
    color: var(--hd-cream-warm);
    margin: 0;
    text-shadow: 0 5px 0 rgba(150,55,18,0.4);
}
.hd-cta-band__lead {
    color: #FFF1DA;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    margin: 1.25rem auto 0;
    max-width: 42ch;
    font-weight: 500;
}

/* ============================================================
   v0.5.4 fixes — z-index, header spacing
   ============================================================ */

/* Hero text must stack above the floating cans (cans are z-index:2). */
.hd-es-hero,
.hd-es-hero .wp-block-cover__inner-container {
    position: relative;
    z-index: 0;
}
.hd-es-hero__grid,
.hd-es-hero__photo-col {
    position: relative;
    z-index: 5;
}
.hd-es-hero .hd-es-hero__sticker {
    position: relative;
    z-index: 6;
}

/* Header — give Shop button, cart, and Menu trigger more breathing room. */
.hd-nav__right {
    gap: clamp(1rem, 2.5vw, 1.75rem) !important;
}
.hd-nav__trigger {
    padding: 0.5rem 0.5rem 0.5rem 0.85rem;
    margin-left: 0.25rem;
}
.hd-nav__trigger .hd-sun { font-size: 28px; margin-right: 0.15rem; }

/* Empty-state styling for placeholder wp:image figures so they're visible
   in both editor and frontend before a real image is uploaded. */
.wp-block-image:empty,
.wp-block-image > figure:empty,
figure.wp-block-image:not(:has(img)) {
    display: block;
    min-height: 220px;
    background: rgba(67, 35, 14, 0.06);
    border: 2px dashed rgba(67, 35, 14, 0.25);
    border-radius: 14px;
    position: relative;
}
.hd-flavor-card__img:not(:has(img)) { aspect-ratio: 1 / 1; min-height: 0; }
.hd-es-hero__photo:not(:has(img)) {
    aspect-ratio: 4 / 5;
    border-radius: 240px 240px 30px 30px;
    border: 5px solid var(--hd-cream-warm);
    min-height: 0;
}
.hd-life-photo:not(:has(img)) {
    aspect-ratio: 5 / 4;
    border-radius: 28px;
    border: 5px solid var(--hd-cream-warm);
    min-height: 0;
    box-shadow: 0 22px 44px rgba(120,40,10,0.28);
}
.hd-polaroid:not(:has(img)) {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    border: 4px solid var(--hd-cream-warm);
    min-height: 0;
}
