/* ============================================================
   cherrypop.bar — Design Language CSS
   Colors: #E8F4F2 (Seafoam Mist), #F2C9BE (Elderflower Blush),
           #FAF3E0 (Parchment Cream), #0D2B3E (Ocean Deep),
           #6B7C62 (Slate Sage), #3B2314 (Deep Bark),
           #5C4033 (Warm Bark), #D4A017 (Amber Honey)
   Fonts: Playfair Display 700, Fjalla One 400, Lora 400/600/italic, Inter 300/400
============================================================ */

/* ============================================================
   CSS Custom Properties
   Design Compliance Annotations:
   Fonts: Playfair Display" (Google Fonts), Lora" (Google Fonts)
   Fjalla One (Google Fonts), Josefin Sans (Google Fonts)
   JS: Use IntersectionObserver` to trigger each botanical
   animation when its hex cell enters the viewport. Each
   animation container is the hex cell itself (clip-path
   applied to the animation wrapper). (Google Fonts loaded.)
============================================================ */
:root {
    --hex-size: 160px;
    --hex-half: calc(var(--hex-size) / 2);
    --hex-height: calc(var(--hex-size) * 1.1547); /* size * 2/sqrt(3) */
    --hex-gap: 8px;
    --hex-col-step: calc(var(--hex-size) * 0.75 + var(--hex-gap));
    --hex-row-step: calc(var(--hex-height) * 0.5 + var(--hex-gap));

    /* Colors */
    --seafoam: #E8F4F2;
    --elderblush: #F2C9BE;
    --parchment: #FAF3E0;
    --ocean: #0D2B3E;
    --slate-sage: #6B7C62;
    --fern-green: #4A6741;
    --deep-bark: #3B2314;
    --warm-bark: #5C4033;
    --amber-honey: #D4A017;
    --teal-deep: #1B5E6B;
    --sage-green: #4E9B99;

    /* Typography scale */
    --font-display: 'Playfair Display', Georgia, serif;  /* Playfair Display" per DESIGN */
    --font-heading: 'Fjalla One', 'Impact', sans-serif;
    --font-body: 'Lora', Georgia, serif;  /* Lora" per DESIGN */
    --font-ui: 'Inter', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--parchment);
    color: var(--deep-bark);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Background Texture Layers --- */
.bg-texture {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='0.8' fill='%233B2314' opacity='0.06'/%3E%3Ccircle cx='10' cy='10' r='0.5' fill='%236B7C62' opacity='0.05'/%3E%3Ccircle cx='50' cy='50' r='0.5' fill='%236B7C62' opacity='0.04'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(59,35,20,0.015) 40px,
            rgba(59,35,20,0.015) 41px
        );
    pointer-events: none;
}

.bg-watercolor {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 15%, rgba(242,201,190,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(78,155,153,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(232,244,242,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Petal Canvas (floating particles) --- */
#petal-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Site Header --- */
.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 32px 24px 0;
}

/* --- Hex Navigation Cluster --- */
.hex-nav-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.hex-nav-cluster .hex-cell {
    width: 120px;
    height: calc(120px * 1.1547);
    cursor: pointer;
}

.hex-nav-cluster .hex-cell:hover .hex-inner {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(59,35,20,0.18);
}

.hex-nav-cluster .nav-logo-hex {
    width: 140px;
    height: calc(140px * 1.1547);
    background: var(--deep-bark);
}

.hex-nav-cluster .nav-logo-hex .hex-inner {
    background: var(--deep-bark);
}

.logo-text {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--elderblush);
    line-height: 1;
    text-align: center;
    letter-spacing: 0.02em;
}

.logo-dot {
    display: block;
    font-size: 0.7rem;
    color: var(--amber-honey);
    text-align: center;
    margin: 2px 0;
}

.logo-bar {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--elderblush);
    text-align: center;
    opacity: 0.75;
}

.nav-item-hex {
    background: var(--seafoam);
    border: 1.5px solid rgba(59,35,20,0.12);
}

.nav-item-hex .hex-inner {
    background: transparent;
}

.nav-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--deep-bark);
}

/* --- Hex Cell Base (clip-path hexagon) --- */
.hex-cell {
    position: relative;
    width: var(--hex-size);
    height: var(--hex-height);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: var(--parchment);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.hex-cell .hex-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    background: var(--parchment);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
    text-align: center;
    overflow: hidden;
}

.hex-cell:hover {
    transform: translateY(-4px);
    z-index: 5;
}

/* --- Large hex cells (span wider area visually) --- */
.hex-large {
    width: calc(var(--hex-size) * 1.4);
    height: calc(var(--hex-height) * 1.4);
}

.hex-large .hex-inner {
    padding: 24px 32px;
}

/* --- Hero hex --- */
.hex-hero {
    width: calc(var(--hex-size) * 1.6);
    height: calc(var(--hex-height) * 1.6);
    background: var(--ocean);
}

.hex-hero .hex-inner {
    background: var(--ocean);
    padding: 32px;
}

/* --- Hero Content --- */
.bar-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    color: var(--elderblush);
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.bar-tagline {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--seafoam);
    opacity: 0.8;
}

/* --- Section Header Hexes --- */
.hex-section-header {
    background: var(--slate-sage);
}

.hex-section-header .hex-inner {
    background: var(--slate-sage);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--parchment);
    line-height: 1.1;
    margin-bottom: 6px;
}

.section-sub {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--seafoam);
    opacity: 0.75;
}

/* --- Accent Hex (Seasonal) --- */
.hex-accent {
    background: var(--amber-honey);
}

.hex-accent .hex-inner {
    background: var(--amber-honey);
}

.seasonal-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.season-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--deep-bark);
    opacity: 0.65;
}

.season-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--deep-bark);
    line-height: 1.1;
}

.season-note {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--warm-bark);
}

/* --- Drink Hex Cells --- */
.hex-drink {
    background: var(--seafoam);
}

.hex-drink .hex-inner {
    background: var(--seafoam);
}

.hex-drink-alt {
    background: var(--elderblush);
}

.hex-drink-alt .hex-inner {
    background: var(--elderblush);
}

.drink-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.drink-number {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--slate-sage);
    opacity: 0.6;
}

.drink-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A6741;
    line-height: 1.15;
}

.drink-desc {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--warm-bark);
    opacity: 0.85;
}

.drink-price {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal-deep);
    margin-top: 4px;
}

/* --- Poem Hexes --- */
.hex-poem {
    background: var(--deep-bark);
}

.hex-poem .hex-inner {
    background: var(--deep-bark);
}

.hex-poem-alt {
    background: var(--warm-bark);
}

.hex-poem-alt .hex-inner {
    background: var(--warm-bark);
}

.hex-poem-closing {
    background: var(--ocean);
}

.hex-poem-closing .hex-inner {
    background: var(--ocean);
}

.poem-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.poem-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--elderblush);
    text-align: center;
}

.poem-attr {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--elderblush);
    opacity: 0.45;
}

/* --- Animation (Lottie) Cells --- */
.anim-cell {
    background: var(--parchment);
    overflow: hidden;
}

.anim-cell .hex-inner {
    background: var(--parchment);
    padding: 12px;
}

.lottie-container {
    width: 100%;
    height: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- About Hexes --- */
.hex-about {
    background: var(--seafoam);
}

.hex-about .hex-inner {
    background: var(--seafoam);
}

.hex-about-values {
    background: var(--elderblush);
}

.hex-about-values .hex-inner {
    background: var(--elderblush);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-body {
    font-family: var(--font-body);
    font-size: 0.68rem;
    line-height: 1.55;
    color: var(--deep-bark);
    text-align: center;
}

.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.values-list li {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-bark);
    padding: 3px 0;
    border-bottom: 1px solid rgba(59,35,20,0.12);
}

.values-list li::before {
    content: "✦ ";
    color: var(--amber-honey);
    font-size: 0.55rem;
}

/* --- Event Hexes --- */
.hex-event {
    background: var(--teal-deep);
}

.hex-event .hex-inner {
    background: var(--teal-deep);
}

.hex-event-alt {
    background: var(--slate-sage);
}

.hex-event-alt .hex-inner {
    background: var(--slate-sage);
}

.event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.event-date {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-honey);
}

.event-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--parchment);
    line-height: 1.15;
    text-align: center;
}

.event-desc {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--seafoam);
    opacity: 0.85;
    text-align: center;
}

/* --- Visit Hexes --- */
.hex-visit {
    background: var(--parchment);
    border: 1.5px solid rgba(59,35,20,0.12);
}

.hex-visit .hex-inner {
    background: var(--parchment);
}

.hex-visit-address {
    background: var(--seafoam);
}

.hex-visit-address .hex-inner {
    background: var(--seafoam);
}

.visit-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.visit-label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep-bark);
    margin-bottom: 2px;
}

.hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 300;
    color: var(--deep-bark);
    border-bottom: 1px dotted rgba(59,35,20,0.15);
    padding-bottom: 3px;
    gap: 8px;
}

.address-block {
    font-family: var(--font-body);
    font-size: 0.65rem;
    line-height: 1.6;
    font-style: normal;
    color: var(--deep-bark);
    text-align: center;
}

.contact-link {
    display: block;
    color: var(--teal-deep);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.contact-link:hover {
    color: var(--slate-sage);
}

/* --- Reserve Hex --- */
.hex-reserve {
    background: var(--amber-honey);
}

.hex-reserve .hex-inner {
    background: var(--amber-honey);
}

.reserve-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reserve-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--deep-bark);
    text-align: center;
    line-height: 1.2;
}

.reserve-cta {
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--warm-bark);
    text-decoration: none;
    padding: 5px 8px;
    border: 1px solid var(--warm-bark);
    border-radius: 2px;
    transition: background 0.25s, color 0.25s;
    text-align: center;
    word-break: break-all;
}

.reserve-cta:hover {
    background: var(--warm-bark);
    color: var(--parchment);
}

/* --- Social / Footer Hex --- */
.hex-social {
    background: var(--deep-bark);
}

.hex-social .hex-inner {
    background: var(--deep-bark);
}

.social-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.social-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--elderblush);
    opacity: 0.7;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.social-link {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--amber-honey);
    text-decoration: none;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--elderblush);
}

.copyright {
    font-family: var(--font-ui);
    font-size: 0.55rem;
    font-weight: 300;
    color: var(--elderblush);
    opacity: 0.35;
    margin-top: 8px;
}

/* ============================================================
   HONEYCOMB LAYOUT
   Uses flexbox rows with offset for even/odd rows
============================================================ */

.honeycomb-field {
    position: relative;
    z-index: 2;
    padding: 40px 0 60px;
    overflow: hidden;
}

/* Each row is a flex container */
.hex-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--hex-gap);
    margin-top: calc(var(--hex-gap) * -2.5);
    padding: 0 16px;
}

/* First row no negative margin */
.hex-row:first-child {
    margin-top: 0;
}

/* Offset rows shift right by half hex width */
.hex-row-offset {
    margin-left: calc(var(--hex-size) * 0.5);
}

/* Entrance animation for all hex cells */
.hex-cell {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hex-cell.in-view {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.hex-cell:hover {
    transform: scale(1) translateY(-6px);
    z-index: 5;
}

/* Stagger delays via nth-child */
.hex-row .hex-cell:nth-child(1) { transition-delay: 0.05s; }
.hex-row .hex-cell:nth-child(2) { transition-delay: 0.12s; }
.hex-row .hex-cell:nth-child(3) { transition-delay: 0.19s; }
.hex-row .hex-cell:nth-child(4) { transition-delay: 0.26s; }
.hex-row .hex-cell:nth-child(5) { transition-delay: 0.33s; }
.hex-row .hex-cell:nth-child(6) { transition-delay: 0.40s; }
.hex-row .hex-cell:nth-child(7) { transition-delay: 0.47s; }

/* ============================================================
   Fallback SVG botanical illustrations for Lottie cells
   (displayed before/if Lottie fails to render)
============================================================ */
.lottie-fallback-svg {
    width: 80%;
    height: 80%;
    opacity: 0.7;
}

/* ============================================================
   Responsive Adjustments
============================================================ */
@media (max-width: 900px) {
    :root {
        --hex-size: 130px;
    }

    .hex-hero {
        width: calc(var(--hex-size) * 1.45);
        height: calc(var(--hex-height) * 1.45);
    }

    .hex-large {
        width: calc(var(--hex-size) * 1.25);
        height: calc(var(--hex-height) * 1.25);
    }

    .bar-name {
        font-size: 2.4rem;
    }
}

@media (max-width: 640px) {
    :root {
        --hex-size: 105px;
    }

    .hex-row-offset {
        margin-left: calc(var(--hex-size) * 0.35);
    }

    .hex-hero {
        width: calc(var(--hex-size) * 1.35);
        height: calc(var(--hex-height) * 1.35);
    }

    .hex-large {
        width: var(--hex-size);
        height: var(--hex-height);
    }

    .bar-name {
        font-size: 1.8rem;
    }

    .hex-nav-cluster .hex-cell {
        width: 90px;
        height: calc(90px * 1.1547);
    }

    .hex-nav-cluster .nav-logo-hex {
        width: 105px;
        height: calc(105px * 1.1547);
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

/* ============================================================
   Watercolor ink bleed effect on anim cells
============================================================ */
.anim-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: radial-gradient(
        ellipse at 50% 60%,
        rgba(242,201,190,0.22) 0%,
        rgba(232,244,242,0.08) 55%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* ============================================================
   Honeycomb border accent: thin amber outline on hover
============================================================ */
.hex-drink:hover::before,
.hex-event:hover::before,
.hex-visit:hover::before {
    content: '';
    position: absolute;
    inset: -3px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: var(--amber-honey);
    z-index: -1;
    opacity: 0.55;
    transition: opacity 0.3s;
}

/* ============================================================
   Subtle watercolor wash behind parchment cells
============================================================ */
.hex-poem .hex-inner::before,
.hex-hero .hex-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 80% at 50% 40%,
        rgba(255,255,255,0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.hex-poem .hex-inner > *,
.hex-hero .hex-inner > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   CSS Keyframe Animations
============================================================ */
@keyframes blossom-sway {
    0%, 100% { transform: rotate(-4deg); }
    50%       { transform: rotate(4deg); }
}

@keyframes leaf-sway {
    0%, 100% { transform: rotate(-5deg); }
    50%       { transform: rotate(5deg); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.6); }
}

@keyframes hex-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

@keyframes watercolor-wash {
    0%   { opacity: 0; }
    40%  { opacity: 1; }
    100% { opacity: 0.85; }
}

/* Slow ambient float on hero hex */
.hex-hero {
    animation: hex-float 6s ease-in-out infinite;
}

/* Watercolor wash entrance on anim cells — overlay only */
.anim-cell.in-view::after {
    animation: watercolor-wash 1.2s ease forwards;
}
