/**
 * Band of Beans Parallax Storytelling
 * Immersive narrative experiences through scroll-driven storytelling
 */

/* Parallax Container */
.parallax-story-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-section {
    background: none !important;
}

.hero-section .hero-content-wrapper,
.hero-section .hero-content,
.hero-section .hero-text,
.hero-section .story-layer-inner {
    background: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Fixed Hero Background */
.parallax-hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

/* Scrollable Story Content */
.parallax-story-content {
    position: relative;
    z-index: 10;
    min-height: 400vh; /* Allow for deep scroll */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 50vh 0; /* Start and end with empty space */
}

/* Story Layer Base Styles */
.story-layer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-layer.in-view {
    opacity: 1;
    transform: translateY(0);
}

.story-layer-inner {
    max-width: 800px;
    width: 100%;
    text-align: center;
    background: linear-gradient(
        to bottom,
        rgba(26, 52, 64, 0.55),
        rgba(26, 52, 64, 0.45)
    );
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* Layer Type Specific Styles */
.story-layer-hook .story-layer-inner {
    background: linear-gradient(
        to bottom,
        rgba(26, 52, 64, 0.55),
        rgba(26, 52, 64, 0.45)
    );
    color: white;
    text-align: center;
}

.story-layer-hook h1,
.story-layer-hook h2,
.story-layer-hook h3 {
    font-family: 'Stardos Stencil', serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #C9CC68;
}

.story-layer-hook p {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
}

.story-layer-context .story-layer-inner {
    background: linear-gradient(
        to bottom,
        rgba(26, 52, 64, 0.55),
        rgba(26, 52, 64, 0.45)
    );
    color: white;
}

.story-layer-context h1,
.story-layer-context h2,
.story-layer-context h3 {
    font-family: 'Stardos Stencil', serif;
    color: #7E5D4C;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.story-layer-development .story-layer-inner {
    background: linear-gradient(
        to bottom,
        rgba(26, 52, 64, 0.55),
        rgba(26, 52, 64, 0.45)
    );
    color: white;
}

.story-layer-development p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.story-layer-peak .story-layer-inner {
    background: linear-gradient(
        to bottom,
        rgba(26, 52, 64, 0.55),
        rgba(26, 52, 64, 0.45)
    );
    color: white;
    border: 3px solid rgba(26, 52, 64, 0.3);
}

.story-layer-peak h1,
.story-layer-peak h2,
.story-layer-peak h3 {
    font-family: 'Stardos Stencil', serif;
    color: #7E5D4C;
    font-size: 2.8rem;
}

.story-layer-peak p {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.5;
}

.story-layer-resolution .story-layer-inner {
    background: linear-gradient(
        to bottom,
        rgba(26, 52, 64, 0.55),
        rgba(26, 52, 64, 0.45)
    );
    color: white;
}

.story-layer-resolution h1,
.story-layer-resolution h2,
.story-layer-resolution h3 {
    color: #C9CC68;
    font-family: 'Stardos Stencil', serif;
}

.story-layer-final-cta {
    min-height: 50vh;
}

.story-layer-final-cta .story-layer-inner {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

/* Position Variations */
.position-left .story-layer-inner {
    margin-right: auto;
    margin-left: 5%;
    text-align: left;
}

.position-right .story-layer-inner {
    margin-left: auto;
    margin-right: 5%;
    text-align: right;
}

.position-bottom .story-layer-inner {
    margin-top: auto;
    margin-bottom: 10vh;
}

.position-top .story-layer-inner {
    margin-bottom: auto;
    margin-top: 10vh;
}

/* Style Variations */
.style-quote .story-layer-inner {
    padding: 4rem;
    text-align: center;
}

.style-quote p {
    font-size: 2.5rem;
    font-style: italic;
    line-height: 1.3;
    font-weight: 300;
    position: relative;
}

.style-quote p:before {
    content: """;
    font-size: 4rem;
    color: #C9CC68;
    position: absolute;
    top: -1rem;
    left: -2rem;
}

.style-quote p:after {
    content: """;
    font-size: 4rem;
    color: #C9CC68;
    position: absolute;
    bottom: -2rem;
    right: -2rem;
}

.style-headline .story-layer-inner h1,
.style-headline .story-layer-inner h2,
.style-headline .story-layer-inner h3 {
    font-family: 'Stardos Stencil', serif;
    font-size: 3.5rem;
    color: #7E5D4C;
    margin-bottom: 2rem;
}

.style-subtitle .story-layer-inner {
    padding: 2rem 3rem;
}

.style-subtitle p {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.4;
    color: #666;
}

/* CTA Button */
.parallax-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #C9CC68 0%, #B8865E 100%);
    color: #333;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.parallax-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #B8865E 0%, #7E5D4C 100%);
    color: white;
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    .parallax-hero-background {
        background-attachment: scroll; /* Fixed attachment is problematic on mobile */
    }
    
    .story-layer-inner {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .story-layer-hook h1,
    .story-layer-hook h2,
    .story-layer-hook h3 {
        font-size: 2rem;
    }
    
    .style-quote p {
        font-size: 1.8rem;
    }
    
    .style-headline .story-layer-inner h1,
    .style-headline .story-layer-inner h2,
    .style-headline .story-layer-inner h3 {
        font-size: 2.5rem;
    }
    
    .parallax-cta-button {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .position-left .story-layer-inner,
    .position-right .story-layer-inner {
        margin-left: 1rem;
        margin-right: 1rem;
        text-align: center;
    }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .story-layer {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .parallax-hero-background {
        background-attachment: scroll;
    }
}

/* Hero Section Styles */
.hero-section .parallax-hero-background {
    background-attachment: fixed;
}

.hero-section .parallax-overlay {
    background: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: none;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: none;
}

.hero-text {
    max-width: 600px;
    background: none;
}

.hero-section .hero-title {
    font-family: 'Stardos Stencil', serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.hero-section .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.hero-section .btn-primary {
    background: #C9CC68;
    color: #333;
    border: 2px solid #C9CC68;
}

.hero-section .btn-primary:hover {
    background: #b8c255;
    border-color: #b8c255;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 204, 104, 0.4);
}

.hero-section .btn-secondary {
    background: rgba(184, 134, 94, 0.9);
    color: white;
    border: 2px solid rgba(184, 134, 94, 0.9);
}

.hero-section .btn-secondary:hover {
    background: rgba(126, 93, 76, 0.9);
    border-color: rgba(126, 93, 76, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 94, 0.4);
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-section .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .hero-section .btn {
        width: 100%;
        text-align: center;
    }
}