/* ==========================================================================
   LICK BARCELONA OFFICIAL DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-cream: #e8dccf;
    --text-primary: #7e6850;
    --text-secondary: #c2b19e;
    --header-height: 105px;
    --font-main:
        "Josefin Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   RESET & SYSTEM ARCHITECTURE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    overflow-x: hidden;
    background: var(--bg-cream);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   HEADER NAVIGATION MODULE
   ========================================================================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(232, 220, 207, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12%;
    border-bottom: 1px solid rgba(126, 104, 80, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.sticky-header.visible {
    transform: translateY(0);
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.header-logo .lick-small {
    font-size: 2.9rem;
    font-weight: 700;
    letter-spacing: 5px;
    margin-right: -5px;
    color: var(--text-primary);
    line-height: 0.95;
}

.header-logo .bcn-small {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-right: -4px;
    color: var(--text-secondary);
    margin-top: 6px;
    text-transform: uppercase;
    line-height: 1;
}

.header-right-cluster {
    display: flex;
    align-items: center;
    gap: 40px;
}

.lang-switcher {
    display: flex;
    gap: 15px;
    list-style: none;
}

.lang-switcher a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: var(--text-primary);
    font-weight: 700;
}

.menu-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 16px;
    padding: 0;
}

.menu-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition:
        transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.3s ease;
    transform-origin: center;
}

.menu-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.menu-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   NAVIGATION OVERLAY DRAWER
   ========================================================================== */
.nav-drawer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(232, 220, 207, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-drawer.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    max-width: 400px;
    width: 100%;
    margin-top: calc(var(--header-height) - 20px);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.drawer-links a {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
    display: inline-block;
}

.drawer-links a:hover {
    color: #534333;
    transform: scale(1.05);
}

.drawer-socials {
    display: flex;
    gap: 35px;
    list-style: none;
    border-top: 1px solid rgba(126, 104, 80, 0.15);
    padding-top: 30px;
    width: 100%;
    justify-content: center;
}

.drawer-socials a {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.drawer-socials a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   HERO AREA SECTION
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    background: var(--bg-cream);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url("img/hero-image.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(232, 220, 207, 0.2);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 5;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.logo-wrap {
    display: block;
    text-decoration: none;
    margin-bottom: 2.5rem;
    text-align: center;
}

.logo-wrap .lick {
    display: block;
    font-size: clamp(10rem, 12rem, 17rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 25px;
    margin-right: -25px;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0;
    transform: scale(0.95);
    animation: logoScaleUp 1.2s ease-in-out forwards;
    animation-delay: 0.1s;
}

.logo-wrap .bcn {
    display: block;
    font-size: 5rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 12px;
    margin-right: -12px;
    text-transform: uppercase;
    margin-top: 14px;
    opacity: 0;
    transform: translateY(30px);
    animation: bcnSlideUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.25s;
}

@keyframes logoScaleUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes bcnSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tagline-container::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    background-image: radial-gradient(
        circle,
        rgba(232, 220, 207, 0.95) 0%,
        rgba(232, 220, 207, 0.6) 35%,
        rgba(232, 220, 207, 0) 65%
    );
    border-radius: 50%;
    filter: blur(15px);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.tagline {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    max-width: 480px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: taglineFadeIn 1.2s ease-in-out forwards;
    animation-delay: 0.1s;
}

@keyframes taglineFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SECTION 1: PHILOSOPHY SHOWCASE
   ========================================================================== */
.brand-showcase {
    position: relative;
    width: 100%;
    background-color: var(--bg-cream);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 140px 12% 120px 12%;
    overflow: hidden;
}

.showcase-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 2px;
    max-width: 800px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.showcase-heading strong {
    font-weight: 700;
}

.showcase-text {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 650px;
    color: var(--text-primary);
}

.scoops-stage {
    position: relative;
    width: 100%;
    max-width: 950px;
    height: 480px;
    margin: 50px auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-scoop {
    position: absolute;
    height: auto;
    object-fit: contain;
    will-change: transform, opacity;
    transform: translateY(40px);
    opacity: 0;
    transition:
        transform 1.2s ease-in-out,
        opacity 1.2s ease-in-out;
}

.floating-scoop.mint {
    width: 23vw;
    left: 0;
    top: 0;
    z-index: 1;
    transition-delay: 0s;
}
.floating-scoop.cheesecake {
    width: 23vw;
    left: 16vw;
    top: 5vh;
    z-index: 2;
    transition-delay: 0.15s;
}
.floating-scoop.fig {
    width: 23vw;
    left: 32vw;
    top: 10vh;
    z-index: 3;
    transition-delay: 0.3s;
}

.brand-showcase.scrolled-in .floating-scoop.mint {
    transform: translateY(-25px);
    opacity: 1;
}
.brand-showcase.scrolled-in .floating-scoop.cheesecake {
    transform: translateY(-25px);
    opacity: 1;
}
.brand-showcase.scrolled-in .floating-scoop.fig {
    transform: translateY(-25px);
    opacity: 1;
}

.flavours-cta-wrap {
    margin-top: -3vh;
    opacity: 0;
    transform: translateY(3vh);
    transition:
        opacity 1.2s ease-in-out,
        transform 1.2s ease-in-out;
    transition-delay: 0.5s;
    z-index: 15;
}

.brand-showcase.scrolled-in .flavours-cta-wrap {
    opacity: 1;
    transform: translateY(0);
}

.flavours-link {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 36px 12px 36px;
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    background: transparent;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.flavours-link:hover {
    background: var(--text-primary);
    color: var(--bg-cream);
}

/* ==========================================================================
   SECTION 2: REVIEWS PANEL SYSTEM
   ========================================================================== */
.review-showcase {
    position: relative;
    width: 100%;
    min-height: 110vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background-color: #f7f3ee;
    z-index: 10;
}

.review-media-panel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 110vh;
    overflow: hidden;
}

.review-team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.review-content-panel {
    position: relative;
    background-color: var(--bg-cream);
    padding: 10% 12%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.text-bold-accent {
    font-weight: 500;
}

.review-intro-heading {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.review-intro-heading cubic {
    font-weight: 700;
    font-style: normal;
}

.review-intro-text {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 50px;
    letter-spacing: 0.3px;
    max-width: 550px;
}

.review-cards-deck {
    position: relative;
    width: 100%;
    max-width: 420px;
    min-height: 250px;
}

.review-card-anchor {
    text-decoration: none;
    color: inherit;
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translateY(15px);
    transition:
        opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-card-anchor.active-slide {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
    transform: translateY(0);
}

.review-card-body {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(126, 104, 80, 0.12);
    border-radius: 6px;
    padding: 35px 30px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(126, 104, 80, 0.04);
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-card-quote {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-style: italic;
}
.review-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(126, 104, 80, 0.1);
    padding-top: 20px;
}
.review-author {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.review-action-indicator {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.review-card-anchor:hover .review-card-body {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(126, 104, 80, 0.25);
    transform: translateY(-4px);
}
.review-card-anchor:hover .review-action-indicator {
    opacity: 1;
    transform: translateX(4px);
}

/* ==========================================================================
   SECTION 3: LOYALTY CARD OVERLAY ENVIRONMENT
   ========================================================================== */
.loyalty-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 680px;
    background-color: var(--bg-cream);
    overflow: hidden;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loyalty-bg-graphics-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.loyalty-background-card-asset {
    width: auto;
    height: 135%;
    max-width: none;
    object-fit: contain;
    opacity: 0.4;
    transform: translateY(60px) rotate(-10deg);
    transition:
        transform 1.4s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 1.4s ease-in-out;
}

.loyalty-floating-panel {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 680px;
    text-align: center;
    padding: 60px 50px;
    border-radius: 12px;
    border: 1px solid #c2b19e;
    background: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    box-shadow: 0 20px 50px rgba(126, 104, 80, 0.06);
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition:
        transform 1.2s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 1.2s ease-in-out;
    transition-delay: 0.1s;
}

.loyalty-floating-panel .loyalty-heading {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.loyalty-floating-panel .loyalty-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-primary);
    max-width: 540px;
    margin: 0 auto;
}

.loyalty-section.scrolled-in .loyalty-background-card-asset {
    opacity: 0.6;
    transform: translateY(0) rotate(-4deg);
}

.loyalty-section.scrolled-in .loyalty-floating-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   SECTION 4: PREMIUM STRUCTURAL FOOTER
   ========================================================================== */
.site-footer {
    background-color: #dfd3c3;
    color: var(--text-primary);
    padding: 100px 12% 40px 12%;
    border-top: 1px solid rgba(126, 104, 80, 0.1);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 25px;
    align-self: flex-start;
}

.footer-address-block {
    font-family: var(--font-main);
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-primary);
}

.footer-address-block strong {
    font-weight: 700;
}

.footer-contact-detail,
.footer-hours-row {
    display: inline-block;
    margin-top: 2px;
}

.footer-brand-column .footer-logo-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
    line-height: 1;
}
.footer-brand-column .footer-logo-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 6px;
    line-height: 1;
}
.footer-brand-column .footer-motto {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 320px;
    text-align: left;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 25px;
}
.footer-list {
    list-style: none;
}
.footer-list li {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 12px;
}
.footer-list li strong {
    font-weight: 700;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
    display: inline-block;
}
.footer-link:hover {
    color: #534333;
    padding-left: 4px;
}

.footer-legal-bar {
    border-top: 1px solid rgba(126, 104, 80, 0.15);
    padding-top: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.copyright-text {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.legal-links-cluster {
    display: flex;
    gap: 30px;
}
.legal-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    text-transform: uppercase;
}
.legal-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   BREAKPOINTS & RESPONSIVE DISCOVERY
   ========================================================================== */
@media (max-width: 1024px) {
    .review-showcase {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .review-media-panel {
        height: 55vh;
        min-height: auto;
    }
    .review-content-panel {
        padding: 80px 8%;
    }
    .review-cards-deck {
        max-width: 100%;
        min-height: 220px;
    }

    .loyalty-section {
        height: 70vh;
        min-height: 520px;
        padding: 40px 6%;
    }

    .loyalty-background-card-asset {
        height: 90%;
        width: auto;
        transform: translateY(40px) rotate(-6deg);
    }

    .loyalty-floating-panel {
        padding: 45px 30px;
        width: 100%;
    }

    .loyalty-section.scrolled-in .loyalty-background-card-asset {
        opacity: 0.45;
        transform: translateY(0) rotate(-2deg);
    }

    .site-footer {
        padding: 80px 8% 40px 8%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .sticky-header {
        padding: 0 6%;
        height: 85px;
    }
    .header-logo .lick-small {
        font-size: 2rem;
    }
    .header-logo .bcn-small {
        font-size: 0.75rem;
    }
    .header-right-cluster {
        gap: 25px;
    }

    .hero-background {
        background-position: center center;
    }

    .logo-wrap .lick {
        font-size: 7.5rem;
        letter-spacing: 12px;
        margin-right: -12px;
    }
    .logo-wrap .bcn {
        font-size: 2.2rem;
        letter-spacing: 8px;
        margin-right: -8px;
        margin-top: 8px;
    }

    .review-cards-deck {
        display: block; /* Ensures a clean block-level context on mobile */
        width: 100%;
        min-height: 280px; /* Gives enough breathing room for the longest quote */
        height: auto; /* Forces the deck container to expand to content size */
        position: relative;
    }

    .review-card-anchor {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto; /* Allows individual cards to scale dynamically */
        display: none; /* Pairs perfectly with the active-slide state */
    }

    /* Keeps the current active slide smoothly displayed */
    .review-card-anchor.active-slide {
        display: block;
    }

    .loyalty-section {
        height: auto; /* Breaks out of any desktop fixed height restrictions */
        padding: 60px 6%; /* Generates a beautiful cushion above and below the box */
        display: flex;
        flex-direction: column; /* Aligns the image asset and text panel beautifully */
        align-items: center;
        justify-content: center;
        gap: 30px; /* Clear space between graphic background and text elements */
    }

    .loyalty-floating-panel {
        position: relative; /* Removes absolute positioning constraints on small screens */
        top: 0;
        left: 0;
        transform: none; /* Disables desktop center translation resets */
        width: 100%;
        max-width: 480px; /* Perfectly frames the panel on standard smartphones */
        padding: 40px 30px; /* Guarantees wide breathing space inside the card itself */
        text-align: center;
    }

    .tagline-container::before {
        width: 350px;
        height: 350px;
        filter: blur(10px);
    }
    .brand-showcase {
        padding: 90px 8% 100px 8%;
    }
    .scoops-stage {
        height: 340px;
        margin: 30px auto 10px auto;
    }
    .floating-scoop.fig {
        display: none !important;
    }

    .floating-scoop.mint {
        width: 50vw;
        left: 5vw;
        top: 15%;
        z-index: 1;
        transition-delay: 0.45s;
    }
    .floating-scoop.cheesecake {
        width: 50vw;
        left: 35vw;
        top: 25%;
        z-index: 2;
        transition-delay: 0.35s;
    }

    .brand-showcase.scrolled-in .floating-scoop.mint {
        transform: translateY(-15px);
        opacity: 1;
    }
    .brand-showcase.scrolled-in .floating-scoop.cheesecake {
        transform: translateY(-5px);
        opacity: 1;
    }

    .footer-legal-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    .legal-links-cluster {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   FLAVOURS PAGE INTRO HERO ENVIRONMENT
   ========================================================================== */
.flavours-hero {
    padding: 160px 12% 60px 12%;
    background-color: var(--bg-cream);
    display: flex;
    justify-content: center;
    text-align: center;
}

.flavours-intro-content {
    max-width: 700px;
}

.flavours-main-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 3.5rem;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.flavours-intro-text {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-primary);
}

/* ==========================================================================
   TRANSPARENT ARCHITECTURAL CANVAS MATRIX FOR FLAVOURS
   ========================================================================== */
.flavours-container {
    padding: 0 12% 140px 12%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Updated grid rule: Transformed from a 2-column layout to a sleek 3-column system */
.flavour-pair-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px; /* Reduced gap value to give 3 items comfortable breathing room */
    margin-bottom: 120px;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    will-change: transform, opacity;
    transition:
        opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Modifier Rule: Ensures the weekly specials remain a clean, balanced dual-set row instead of an awkward gap */
.flavour-pair-row.rotating-block {
    grid-template-columns: 1fr 1fr;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Triggered State: Fired strictly via viewport Intersection Observer JS */
.flavour-pair-row.visible-row {
    opacity: 1;
    transform: translateY(0);
}

.flavour-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pure Presentation Workspace Stage (Stripped background boxes completely) */
.flavour-visual-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    background: transparent;
}

/* Layer 2: Main Transparent WebP Scoop Asset */
.floating-scoop-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    transform: scale(0.95);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible-row .floating-scoop-img {
    transform: scale(1);
}

.flavour-card:hover .floating-scoop-img {
    transform: scale(1.04);
}

/* ==========================================================================
   ASYNCHRONOUS INGREDIENT LAYERS (STAGGERED SLIDE-IN SYSTEM)
   ========================================================================== */
.ingredient-accent {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
    z-index: 1; /* Sits layered intentionally behind the main floating scoop image */
    opacity: 0;
    will-change: transform, opacity;
    transition:
        transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 1.2s ease;
}

/* Mint Leaves Accent coordinates & initial entrance angle offsets */
.mint-leaves {
    width: 85%;
    bottom: 10%;
    right: -10%;
    transform: translate(20px, 30px) rotate(15deg);
}

/* Sliced Fig Accent coordinates & initial entrance angle offsets */
.sliced-fig {
    width: 40%;
    top: 5%;
    left: 2%;
    transform: translate(-30px, -20px) rotate(-25deg);
}

/* Chocolate Chunks Accent coordinates & distinct structural trajectory */
.chocolate-chunks {
    width: 75%;
    top: 15%;
    right: -7%;
    /* Pre-shifted way out up-and-right, heavily tilted backward */
    transform: translate(25px, -15px);
    /* Delayed slightly past the mint leaves to create a multi-layered entrance sequence */
    transition:
        transform 1.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 1.4s ease;
    transition-delay: 0.15s;
}

/* Fires dynamic isolated translation sequence precisely as the viewport hits the row */
.visible-row .ingredient-accent {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
}

/* Typography & Text Block alignment rules below the stage layout */
.flavour-details {
    text-align: center;
    max-width: 85%;
    margin: 0 auto;
}

.flavour-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.flavour-details p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
    color: var(--text-primary);
}

/* Menu Custom Thin Row Partition Rule line */
.menu-divider {
    border: none;
    height: 1px;
    background-color: rgba(126, 104, 80, 0.15);
    margin: 60px 0 120px 0;
}

/* Rotating Special Selection Badge Tag styling */
.badge-tag {
    position: absolute;
    top: 6%;
    left: 2%;
    background-color: var(--text-primary);
    color: var(--bg-cream);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 14px;
    letter-spacing: 1.5px;
    border-radius: 3px;
    z-index: 3;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM OVERRIDES (MOBILE PORTRAIT CLEAN GRID STACKS)
   ========================================================================== */
@media (max-width: 1024px) {
    .flavours-hero {
        padding: 140px 8% 40px 8%;
    }

    /* On medium screens/tablets, seamlessly drop back down to a crisp 2-column structure */
    .flavour-pair-row,
    .flavour-pair-row.rotating-block {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 80px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .flavours-hero {
        padding: 130px 6% 30px 6%;
    }

    .flavours-main-title {
        font-size: 2.6rem;
        letter-spacing: 2px;
    }

    .flavours-container {
        padding: 0 6% 80px 6%;
    }

    /* Collapse layout down to a beautiful, single-file structural portrait stack on standard smartphones */
    .flavour-pair-row,
    .flavour-pair-row.rotating-block {
        grid-template-columns: 1fr;
        gap: 75px;
        margin-bottom: 75px;
    }

    .flavour-visual-stage {
        aspect-ratio: 4 / 3; /* Shorter landscape aspect ratios on narrow mobile bounding systems */
    }

    .mint-leaves,
    .sliced-fig,
    .chocolate-chunks {
        width: 26%; /* Rescales secondary accents down elegantly to keep descriptions easily readable */
    }
}
