/**
 * Verdant Custom Styles
 * Complex drinks for a complex world
 */

/* ============================================
   HIDE BLOCKSY DEFAULT HEADER
   ============================================ */
/* Hide Blocksy default header */
.site-header.ct-header,
.ct-header-top,
#header {
    display: none !important;
}

/* Ensure custom nav is visible */
nav.verdant-nav {
    display: flex !important;
}

/* ============================================
   CSS VARIABLES - COLOR PALETTE
   ============================================ */
:root {
    --sage: #9CA38C;
    --deep-green: #3A4A3D;
    --cream: #F8F6F0;
    --warm-white: #FFFEF9;
    --charcoal: #2C2C2C;
    --soft-gray: #E8E6DF;
    --accent-rust: #C47B5A;
}

/* ============================================
   FORCE CREAM BACKGROUND EVERYWHERE
   ============================================ */
/* Force uniform background everywhere */
html,
body,
.verdant-hero,
.verdant-hero-bg,
.flavors-section,
.drink-showcase,
.statement-section,
.process-section,
.process-columns-section,
.about-section,
.about-container,
.contact-section,
.contact-container,
.footer,
section,
main {
    background: var(--cream) !important;
    background-color: var(--cream) !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
body {
    font-family: 'Archivo', sans-serif;
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6,
.display-text {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    letter-spacing: 0.08em;
}

.display-text {
    font-weight: 400;
}

/* ============================================
   NAVIGATION
   ============================================ */
.verdant-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 4rem 2rem 4rem;
    background: var(--cream) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.verdant-logo {
    font-family: 'Cormorant', serif;
    font-size: 3.22rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--charcoal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.verdant-logo .logo-v {
    display: inline-block;
    color: var(--charcoal);
}

.verdant-logo .logo-erdant {
    display: inline-block;
    opacity: 0;
    color: var(--charcoal);
    transition: opacity 0.4s ease;
}

.verdant-logo:hover .logo-erdant {
    opacity: 1;
}

.verdant-nav-links {
    display: flex;
    gap: 2.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.verdant-nav-links a {
    font-family: 'Archivo', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--deep-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.verdant-nav-links a:hover {
    color: var(--accent-rust);
}

/* ============================================
   HERO SECTION
   ============================================ */
.verdant-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.verdant-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.verdant-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cream);
    background-image: url('/wp-content/themes/verdant-child/assets/images/dance.gif');
    background-position: center center;
    background-size: cover; /* Changed from contain */
    background-repeat: no-repeat; /* Changed from repeat-x */
    opacity: 0.40;
}

.verdant-hero-bg img {
    display: none;
}

.verdant-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cream);
    opacity: 0.3;
    z-index: 1; /* ABOVE the gif (z-index: 0) but BELOW content (z-index: 2) */
}

.verdant-hero-content {
    position: relative;
    z-index: 2; /* ABOVE the overlay */
    text-align: center;
    padding: 2rem 2.2rem;
}

.verdant-hero-title {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.08em;
    color: var(--deep-green);
    line-height: 1.2;
    margin: 0;
}

/* ============================================
   FROSTED GLASS CONTENT BOXES
   ============================================ */
.frosted-box {
    background: rgba(248, 246, 240, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1200px;
}

/* ============================================
   DRINK SHOWCASE SECTIONS
   ============================================ */
.flavors-section {
    scroll-snap-type: y mandatory;
    scroll-padding: 2rem 0;
}

.drink-showcase {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 2rem 4rem 2rem;
    position: relative;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.drink-showcase-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.drink-showcase.reverse .drink-showcase-inner {
    direction: rtl;
}

.drink-showcase.reverse .drink-showcase-inner > * {
    direction: ltr;
}

.drink-image-container {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 8px;
    max-width: 375px;
    margin: 0 auto;
}

.drink-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drink-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Entry animations */
.drink-photo {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.drink-photo.visible {
    opacity: 1;
    transform: translateX(0);
}

.drink-details {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
    padding: 2rem 4rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drink-details.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Exit animations */
.drink-photo.exit {
    opacity: 0;
    transform: translateX(-100vw) !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

.drink-details.exit {
    opacity: 0;
    transform: translateX(100vw) !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}


.drink-name {
    font-family: 'Cormorant', serif;
    font-size: clamp(3rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--deep-green);
    margin-bottom: 1rem;
    line-height: 1.1;
    white-space: nowrap;
}

.drink-flavor {
    font-family: 'Archivo', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--sage);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.drink-flavor-large {
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    color: var(--sage);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    display: inline-flex;
    transition: transform 0.3s ease;
    order: -1;
}

.dropdown-arrow svg {
    width: 12px;
    height: 8px;
}

/* Rotate arrow when expanded */
.drink-card.expanded .dropdown-arrow {
    transform: rotate(180deg);
}

.drink-description {
    font-family: 'Archivo', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--charcoal);
    font-style: italic;
}

.drink-description-large {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
    font-style: italic;
    font-weight: 300;
    max-width: 600px;
}

/* ============================================
   ABOUT SECTION - SCROLL-TRIGGERED CROSSFADE
   ============================================ */
.about-section {
    position: relative;
    height: 300vh;
    background: var(--cream);
}

.about-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.about-statement {
    position: absolute;
    max-width: 95%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.about-statement.active {
    opacity: 1;
    pointer-events: auto;
}

.about-statement h2 {
    font-family: 'Cormorant', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--deep-green);
    line-height: 1.4;
    max-width: 95%;
    margin: 0 auto;
}

/* ============================================
   PROCESS SECTION - CROSSFADE LIKE ABOUT
   ============================================ */
.process-section {
    position: relative;
    min-height: 150vh;
    background: var(--cream);
}

.process-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.process-statement {
    position: absolute;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.process-statement.active {
    opacity: 1;
}

.process-statement h2 {
    font-family: 'Cormorant', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--deep-green);
    line-height: 1.3;
}

/* Columns inside second statement */
.process-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 2rem;
}

.process-column {
    text-align: center;
}

.process-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--deep-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon svg {
    width: 100%;
    height: 100%;
}

.process-column-title {
    font-family: 'Cormorant', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--deep-green);
    margin-bottom: 1rem;
}

.process-column-text {
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--charcoal);
    font-weight: 300;
}

/* ============================================
   COLD MACERATION GRID
   ============================================ */
.maceration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.maceration-item {
    text-align: center;
    padding: 2rem;
}

.maceration-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--deep-green);
}

.maceration-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--charcoal);
}

/* ============================================
   CONTACT SECTION - SCROLL-BASED CROSSFADE
   ============================================ */
.contact-section {
    position: relative;
    min-height: 150vh;
    background: var(--cream);
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Behind everything */
    background: transparent;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

/* Show only when contact section is active */
.contact-section.in-view ~ .contact-hero-bg {
    opacity: 1;
}

.contact-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cream);
    background-image: url('/wp-content/themes/verdant-child/assets/images/dance.gif');
    background-position: center center;
    background-size: cover; /* Changed from contain */
    background-repeat: no-repeat; /* Changed from repeat-x */
    opacity: 0.40;
}

.contact-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 2rem;
}

.contact-statement {
    position: absolute;
    max-width: 800px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding-bottom: 0;
}

.contact-statement.active {
    opacity: 1;
}

.contact-heading {
    font-family: 'Cormorant', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--deep-green);
    text-transform: lowercase;
}

.contact-subtitle {
    font-family: 'Cormorant', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--deep-green);
    margin-bottom: 2rem;
}

.contact-text {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--charcoal);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.contact-email {
    display: inline-block;
    font-family: 'Cormorant', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--deep-green);
    text-decoration: none;
    margin-top: 2rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--sage);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-email:hover {
    color: var(--sage);
    border-bottom-color: var(--deep-green);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    padding: 3rem 4rem;
    text-align: right;
    background: var(--cream);
    margin-bottom: 0;
}

.footer-copy {
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    color: var(--sage);
    font-weight: 300;
}

/* ============================================
   DRINK CARD EXPAND FUNCTIONALITY
   ============================================ */
.drink-card {
    cursor: pointer;
    transition: all 0.4s ease;
}

.drink-expanded-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    margin-top: 0;
    padding-left: 10%;
}

.drink-card.expanded .drink-expanded-content {
    max-height: 1000px;
    opacity: 1;
    margin-top: 2rem;
}

.expanded-section {
    margin-bottom: 2rem;
}

.expanded-section h4 {
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1rem;
}


.expanded-section p {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.6;
    font-weight: 300;
}


/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* 1. UNIFIED BACKGROUND ON MOBILE */
    html,
    body,
    .verdant-hero,
    .flavors-section,
    .process-section,
    .about-section,
    .contact-section,
    .footer {
        background: var(--cream) !important;
    }
    
    /* 2. NAVIGATION - MOBILE */
    .verdant-nav {
        padding: 1rem 1.5rem;
        background: var(--cream) !important;
    }
    
    .verdant-logo {
        font-size: 2rem;
    }
    
    .verdant-nav-links {
        gap: 1rem;
    }
    
    .verdant-nav-links a {
        font-size: 0.75rem;
    }
    
    /* 3. HERO SECTION - MOBILE */
    .verdant-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
    }
    
    .verdant-hero-content {
        padding: 1.5rem 1rem;
    }
    
    /* 4. DRINK SHOWCASES - STACK VERTICALLY */
    .drink-showcase {
        min-height: auto;
        height: auto;
        padding: 4rem 1.5rem;
    }
    
    .drink-showcase-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }
    
    /* Remove reverse direction on mobile */
    .drink-showcase.reverse .drink-showcase-inner {
        direction: ltr;
    }
    
    .drink-image-container {
        max-width: 300px;
    }
    
    .drink-details {
        padding: 1rem;
        text-align: center;
    }
    
    .drink-name {
        font-size: clamp(2rem, 6vw, 2.5rem);
        white-space: normal; /* Allow wrapping on mobile */
    }
    
    .drink-flavor-large {
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .drink-description-large {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto;
    }
    
    .drink-expanded-content {
        padding-left: 0;
        text-align: center;
    }
    
    /* Disable scroll animations on mobile */
    .drink-photo,
    .drink-details {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .drink-photo.exit,
    .drink-details.exit {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* 5. PROCESS COLUMNS - STACK VERTICALLY */
    .process-columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .process-column-title {
        font-size: 1.5rem;
    }
    
    .process-column-text {
        font-size: 0.95rem;
    }
    
    /* 6. ABOUT SECTION - MOBILE */
    .about-statement h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        padding: 0 1rem;
    }
    
    .about-container {
        padding: 2rem 1rem;
    }
    
    /* 7. CONTACT SECTION - MOBILE */
    .contact-heading {
        font-size: clamp(3rem, 10vw, 5rem);
    }
    
    .contact-subtitle {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .contact-text {
        font-size: 1rem;
    }
    
    .contact-email {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
    
    .contact-container {
        padding: 2rem 1rem;
    }
    
    /* 8. FOOTER - MOBILE */
    .footer {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .footer-copy {
        font-size: 0.75rem;
    }
    
    /* MACERATION GRID */
    .maceration-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
