/* ===================================
   PROCESS PAGE STYLES
   =================================== */

/* Hero Section */
.process-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-align: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

body.light-mode .hero-video-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.process-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 var(--spacing-md);
    animation: fadeInUp 1.2s ease;
}

.process-hero .hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
}

.process-hero .hero-subheadline {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ===================================
   COFFEE JOURNEY (SCROLLYTELLING)
   =================================== */

.coffee-journey {
    position: relative;
    background: var(--bg);
    padding: var(--spacing-xl) 0;
}

.journey-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Left Column: Scrolling Steps */
.journey-steps {
    position: relative;
    z-index: 1;
}

.journey-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    opacity: 0.3;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(50px);
}

.journey-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.step-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.step-title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.step-body {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.8;
    color: var(--text);
    max-width: 600px;
}

/* Right Column: Sticky Visual */
.journey-visual-sticky {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.visual-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.visual-image.active {
    opacity: 1;
    z-index: 2;
}

.visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: var(--spacing-lg) var(--spacing-md);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    font-style: italic;
}

/* ===================================
   CHOCOLATE JOURNEY
   =================================== */

.chocolate-journey {
    background: var(--bg-light);
    padding: var(--spacing-xxl) 0;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-intro .section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-md);
}

.section-intro .section-subheadline {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
}

.chocolate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.chocolate-card {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-muted);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.chocolate-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.chocolate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
}

.chocolate-image {
    height: 300px;
    overflow: hidden;
}

.chocolate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.chocolate-card:hover .chocolate-image img {
    transform: scale(1.1);
}

.chocolate-content {
    padding: var(--spacing-lg);
}

.chocolate-step {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.chocolate-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.chocolate-subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.chocolate-body {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text);
}

/* ===================================
   FINAL CTA
   =================================== */

.final-cta {
    background: var(--bg);
    padding: var(--spacing-xxl) 0;
}

.cta-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.cta-text {
    padding-right: var(--spacing-lg);
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.cta-subheadline {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: var(--spacing-lg);
}

.cta-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.product-showcase {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.product-showcase:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.product-showcase img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-showcase:hover img {
    transform: scale(1.1);
}

.product-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: var(--spacing-md);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 968px) {
    .journey-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .journey-visual-sticky {
        position: relative;
        top: 0;
        height: 60vh;
        order: -1;
        margin-bottom: var(--spacing-xl);
    }

    .visual-container {
        height: 60vh;
    }

    .journey-step {
        min-height: auto;
        padding: var(--spacing-lg) var(--spacing-md);
        opacity: 1;
        transform: translateY(0);
    }

    .cta-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .cta-text {
        padding-right: 0;
        text-align: center;
    }

    .cta-products {
        order: -1;
    }
}

@media (max-width: 768px) {
    .process-hero .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .chocolate-grid {
        grid-template-columns: 1fr;
    }

    .cta-products {
        grid-template-columns: 1fr;
    }

    .product-showcase img {
        height: 250px;
    }

    .step-headline {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

@media (max-width: 480px) {
    .journey-step {
        padding: var(--spacing-md);
    }

    .visual-container {
        height: 50vh;
    }

    .chocolate-card {
        margin-bottom: var(--spacing-md);
    }
}
