/* ==========================================================================
   CSS Resets & Variables
   ========================================================================== */

:root {
    --primary-color: #0B2B26; /* Deep Forest Green */
    --accent-color: #D4AF37;  /* Metallic Gold */
    --accent-hover: #b5952f;
    --text-dark: #333333;
    --text-light: #FAF9F6;  /* Parchment White */
    --bg-light: #FAF9F6;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: var(--accent-color);
    color: var(--bg-light);
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 2.1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.text-column {
    max-width: 650px;
    margin: 0 auto;
    padding: 180px 5%;
    text-align: center;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 999;
    transition: all 0.5s ease;
}

.header.scrolled {
    background-color: rgba(250, 249, 246, 0.85); /* background light color with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 5%;
    border-bottom: 1px solid rgba(11, 43, 38, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.logo h1 {
    color: var(--text-light); /* Changed to light for contrast over dark photo */
    font-size: 1.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.header.scrolled .logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color); /* Revert to dark when on solid background */
}

.logo .subtitle {
    color: rgba(250, 249, 246, 0.8); /* Semi-transparent light */
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    display: block;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.header.scrolled .logo .subtitle {
    color: var(--accent-color); /* Revert to gold when on solid background */
}

.nav-cta {
    color: var(--text-light); /* Light text over the dark photo */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding-bottom: 5px;
}

.header.scrolled .nav-cta {
    color: var(--primary-color); /* Revert to dark when on solid background */
}

.nav-cta:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ==========================================================================
   Floating CTA
   ========================================================================== */

.floating-cta {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(11, 43, 38, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-cta .cta-arrow {
    transition: transform 0.3s ease;
}

.floating-cta:hover {
    background-color: var(--primary-color);
    color: var(--bg-light);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(11, 43, 38, 0.3);
}

.floating-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Music Toggle Button
   ========================================================================== */

.music-toggle {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(250, 249, 246, 0.5); /* Semi-transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(11, 43, 38, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.music-toggle:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: gentlePulse 3s infinite ease-in-out;
}

@keyframes gentlePulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ==========================================================================
   Full Screen Hero
   ========================================================================== */

.hero-full {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: -10%; 
    left: 0;
    width: 100%;
    height: 120%; /* for parallax margin */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
}

/* Dark gradient overlay on hero to make text readable */
.hero-full::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11, 43, 38, 0.4) 0%, rgba(11, 43, 38, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
    color: var(--text-light); /* Override primary color */
}

.hero-title i {
    font-style: italic;
    font-weight: 300;
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-family: var(--font-body);
    text-transform: uppercase;
    margin-top: 15px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Story Blocks (Text -> Image alternating structure)
   ========================================================================== */

/* ==========================================================================
   Story Blocks (Text -> Image alternating structure)
   ========================================================================== */

.story-container {
    padding-top: 0; /* Removed padding because Hero takes full height */
}

.story-block {
    width: 100%;
}

.story-subtitle {
    color: var(--accent-color);
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.story-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 3.5rem;
}

.story-title i {
    font-style: italic;
    font-weight: 300;
    color: var(--accent-color);
}

.story-text {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #4a4a4a;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.story-text p {
    margin-bottom: 2rem;
}

/* ==========================================================================
   Parallax Image Container (Full Width)
   ========================================================================== */

.parallax-container {
    width: 100%;
    height: 80vh; /* Large impactful height */
    position: relative;
    overflow: hidden;
    margin: 0;
}

.parallax-bg {
    position: absolute;
    top: -10%; /* Offset for parallax movement */
    left: 0;
    width: 100%;
    height: 120%; /* Larger than container to allow scroll movement without empty space */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Will-change for better performance on transform */
    will-change: transform;
    /* initial scale for drama */
    transform: scale(1.05);
}

/* Cinematic Overlay to color grade the images slightly */
.parallax-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* This multiplier subtly shifts images toward the Navarria green/gold vibe */
    background-color: rgba(11, 43, 38, 0.15); 
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.header .nav-cta,
.header .logo h1,
.header .logo .subtitle {
    text-shadow: 1px 2px 6px rgba(0,0,0,0.8); /* Stronger shadow to pop against any hero photo initially */
}

.header.scrolled .nav-cta,
.header.scrolled .logo h1,
.header.scrolled .logo .subtitle {
    text-shadow: none; /* Remove text shadow when header gets white background */
}

/* Optional second overlay for bottom vignette if needed */
.parallax-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ==========================================================================
   Buttons & CTA inside text & GSAP Container
   ========================================================================== */

.gsap-section {
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

.gsap-text-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gsap-cta-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    z-index: 1;
    opacity: 0; /* Hidden initially, GSAP will reveal */
}

.gsap-cta-layer .footer-title {
    color: var(--primary-color);
}

.gsap-cta-layer .footer-text {
    color: #4a4a4a;
    max-width: 600px;
}

.gsap-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--primary-color);
    line-height: 1.3;
    text-align: center;
    will-change: transform, opacity;
    padding: 0 20px;
}

.gsap-text i {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 300;
}

.btn-large {
    display: inline-block;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: var(--primary-color);
    font-size: 1.3rem;
    padding: 22px 70px;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    margin-top: 30px;
    border-radius: 4px;
}

.btn-large:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-color: var(--primary-color);
}

.action-cta-area {
    margin-top: 60px;
    padding-bottom: 40px;
}

/* ==========================================================================
   Footer Title & Text (Used in GSAP CTA layer)
   ========================================================================== */

.footer-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 30px;
}

.footer-text {
    font-size: 1.2rem;
    margin-bottom: 50px;
    font-weight: 300;
    line-height: 2;
}

/* ==========================================================================
   Mini Footer (Contact Info Only)
   ========================================================================== */

.footer-mini {
    padding: 40px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 2;
    opacity: 0.9;
}

.footer-mini .separator {
    margin: 0 10px;
    opacity: 0.5;
}

.mt-5 { margin-top: 5rem; }

/* ==========================================================================
   Animations
   ========================================================================== */

/* Scroll Triggered Animations for Text */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(5px);
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 1.5s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Initial load animation for Logo/Header */
.header {
    animation: fadeInDown 1.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* ---- Tablet (max 900px) ---- */
@media (max-width: 900px) {
    .text-column {
        padding: 100px 8%;
        max-width: 100%;
    }
    
    .story-title {
        font-size: 2.8rem;
    }
    
    .story-subtitle {
        font-size: 0.85rem;
    }
    
    .parallax-container {
        height: 55vh;
    }
    
    .hero-full {
        height: 85vh;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .footer-title {
        font-size: 2.5rem;
    }
    
    .gsap-section {
        height: 80vh;
    }
    
    .gsap-text {
        font-size: 2rem;
    }
}

/* ---- Mobile (max 600px) ---- */
@media (max-width: 600px) {
    body {
        line-height: 1.9;
    }

    /* Header */
    .header {
        padding: 12px 4%;
    }
    
    .header.scrolled {
        padding: 10px 4%;
    }
    
    .logo h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .logo .subtitle {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }
    
    .nav-cta {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    /* Hero */
    .hero-full {
        height: 100vh;
        height: 100svh; /* Safe viewport height for mobile browsers */
    }
    
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    /* Story Blocks */
    .story-container {
        padding-top: 0;
    }
    
    .text-column {
        padding: 70px 6%;
        max-width: 100%;
    }
    
    .story-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .story-subtitle {
        font-size: 0.75rem;
        letter-spacing: 3px;
        margin-bottom: 1rem;
    }
    
    .story-text {
        font-size: 1rem;
    }
    
    .story-text p {
        margin-bottom: 1.2rem;
    }
    
    .parallax-container {
        height: 45vh;
    }

    /* Floating CTA */
    .floating-cta {
        padding: 12px 20px;
        bottom: 15px;
        right: 15px;
        font-size: 0.75rem;
        letter-spacing: 1px;
        gap: 8px;
    }
    
    .floating-cta .cta-arrow {
        width: 14px;
        height: 14px;
    }

    /* Music Toggle */
    .music-toggle {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }

    /* GSAP Section */
    .gsap-section {
        height: 70vh;
    }
    
    .gsap-text {
        font-size: 1.5rem;
        padding: 0 10%;
    }
    
    .gsap-cta-layer {
        padding: 0 8%;
    }
    
    .gsap-cta-layer .footer-title {
        font-size: 2rem;
    }
    
    .gsap-cta-layer .footer-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Buttons */
    .btn-large {
        font-size: 1rem;
        padding: 16px 40px;
    }

    /* Mini Footer */
    .footer-mini {
        font-size: 0.75rem;
        padding: 25px 5%;
    }
    
    .footer-mini .separator {
        display: inline;
        margin: 0 5px;
    }
}

/* ---- Small Mobile (max 400px) ---- */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .story-title {
        font-size: 1.7rem;
    }
    
    .text-column {
        padding: 60px 5%;
    }
    
    .parallax-container {
        height: 40vh;
    }
    
    .gsap-text {
        font-size: 1.2rem;
    }
    
    .gsap-cta-layer .footer-title {
        font-size: 1.6rem;
    }
    
    .floating-cta {
        padding: 10px 16px;
        font-size: 0.7rem;
    }
}
