/* ==================================================================
   EDITORIAL CATEGORY PAGES - STORYTELLING & SCROLL ANIMATIONS
   Yummy-Z Inspired Design System
================================================================== */

/* ===== 1. HERO SECTION - FULL SCREEN ===== */
.category-hero-fullscreen {
    position: relative;
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;

    /* Fix for fixed header overlap */
}

.hero-bg-image-category {
    position: absolute;
    inset: 0;
    background-image: url('../images/palm_grove_hero_1765799066839.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.1);
    transition: transform 0.6s ease-out;
}

.category-hero-fullscreen:hover .hero-bg-image-category {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.hero-subtitle {
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title-large {
    font-size: 5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
}

.hero-description {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0.95;
}

.btn-hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--color-primary);
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-scroll:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-scroll svg {
    transition: transform 0.3s ease;
}

.btn-hero-scroll:hover svg {
    transform: translateY(3px);
}

.scroll-indicator-hero {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    animation: scrollLineMove 2s infinite;
}

@keyframes scrollLineMove {
    0% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(60px);
    }
}

/* ===== 2. CATEGORY STORY SECTION ===== */
.category-story-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.story-grid-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.section-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title-editorial {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 30px;
    line-height: 1.2;
}

.story-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.9;
}

.story-description p {
    margin-bottom: 20px;
}

.visual-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-float);
}

.story-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.visual-card:hover .story-image {
    transform: scale(1.05);
}

.visual-stat {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 25px 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Key Features */
.key-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ===== 3. PRODUCTS REVEAL SECTION ===== */
.products-reveal-section {
    padding: 100px 0;
    background: white;
}

.section-header-products {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
}

.products-reveal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 60px;
}

/* Product Card with Scroll Reveal */
.product-card-reveal {
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px);
    position: relative;
}

.product-card-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card-reveal:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.product-image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: white;
}

.product-image-reveal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-reveal:hover .product-image-reveal {
    transform: scale(1.1);
}

.product-badge-premium {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info-reveal {
    padding: 35px 30px;
}

.product-name-reveal {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 15px;
    min-height: 60px;
}

.product-name-reveal a {
    color: inherit;
    transition: color 0.3s ease;
}

.product-name-reveal a:hover {
    color: var(--color-accent);
}

.product-excerpt-reveal {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 80px;
}

.product-meta-reveal {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-meta-reveal svg {
    color: var(--color-accent);
}

.product-price-reveal {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 25px;
}

.product-actions-reveal .button {
    width: 100%;
    text-align: center;
    padding: 16px 30px !important;
    font-size: 1rem !important;
    border-radius: var(--radius-pill) !important;
}

/* ===== 4. QUALITY TRUST SECTION ===== */
.quality-trust-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, white, var(--color-bg));
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.trust-card {
    text-align: center;
    padding: 50px 30px;
    background: white;
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
}

.trust-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: var(--color-accent);
}

.trust-icon {
    color: var(--color-accent);
    margin-bottom: 25px;
}

.trust-card h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.trust-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== 5. FINAL CTA SECTION ===== */
.final-cta-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.cta-content-box {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    padding: 80px 60px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(44, 85, 48, 0.2);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.cta-content-box.is-visible {
    opacity: 1;
    transform: scale(1);
}

.cta-content-box h2 {
    color: white;
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.cta-content-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-cta-primary {
    background: white;
    color: var(--color-primary);
    padding: 18px 40px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta-primary:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 18px 40px;
    border: 2px solid white;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.product-card-reveal:nth-child(1) {
    transition-delay: 0s;
}

.product-card-reveal:nth-child(2) {
    transition-delay: 0.15s;
}

.product-card-reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.trust-card:nth-child(1) {
    transition-delay: 0s;
}

.trust-card:nth-child(2) {
    transition-delay: 0.1s;
}

.trust-card:nth-child(3) {
    transition-delay: 0.2s;
}

.trust-card:nth-child(4) {
    transition-delay: 0.3s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-title-large {
        font-size: 4rem;
    }

    .section-title-editorial {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .story-grid-editorial {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .key-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-reveal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .hero-title-large {
        font-size: 3rem;
    }

    .cta-content-box h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .category-hero-fullscreen {
        min-height: 80vh;
    }

    .hero-title-large {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .category-story-section {
        padding: 80px 0;
    }

    .section-title-editorial {
        font-size: 2rem;
    }

    .story-description {
        font-size: 1rem;
    }

    .products-reveal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }

    .cta-content-box {
        padding: 50px 30px;
    }

    .cta-content-box h2 {
        font-size: 2rem;
    }
}

/* No Products Editorial Message */
.no-products-editorial {
    text-align: center;
    padding: 80px 20px;
}

.no-products-editorial p {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}