/* ==========================================
   AVENORA - PARALLAX SECTIONS
   Immersive scroll-driven visual effects
   ========================================== */

/* ==========================================
   1. PARALLAX DIVIDER SECTIONS
   Full-width image bands between content
   ========================================== */

.av-parallax-divider {
    position: relative;
    height: 55vh;
    min-height: 350px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.av-parallax-divider-bg {
    position: absolute;
    inset: -20% 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.av-parallax-divider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.4) 40%,
        rgba(10, 10, 10, 0.4) 60%,
        rgba(10, 10, 10, 0.7) 100%
    );
    z-index: 1;
}

.av-parallax-divider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
}

.av-parallax-divider-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.av-parallax-divider-content p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Gold accent line */
.av-parallax-divider-content .av-parallax-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #C8A96E, #E8D5A8);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* ==========================================
   2. PARALLAX HERO ENHANCEMENT
   Slower background scroll on hero sections
   ========================================== */

.av-hero {
    overflow: hidden;
}

.av-hero-video-bg,
.av-page-hero-bg {
    will-change: transform;
}

/* Page hero parallax wrapper */
.av-page-hero {
    position: relative;
    overflow: hidden;
}

.av-page-hero-bg {
    position: absolute;
    inset: -15% 0;
    width: 100%;
    height: 130%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================
   3. PARALLAX QUOTE / CITATION BAND
   Elegant quote sections with parallax bg
   ========================================== */

.av-parallax-quote {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
    text-align: center;
}

.av-parallax-quote-bg {
    position: absolute;
    inset: -20% 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.av-parallax-quote-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    z-index: 1;
}

.av-parallax-quote-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.av-parallax-quote-content blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 500;
    font-style: italic;
    color: #fff;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    position: relative;
}

.av-parallax-quote-content blockquote::before {
    content: '\201C';
    font-size: 4rem;
    color: #C8A96E;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    opacity: 0.6;
}

.av-parallax-quote-content cite {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #C8A96E;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================
   4. PARALLAX IMAGE + TEXT SPLIT
   Side by side with parallax offset
   ========================================== */

.av-parallax-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
    overflow: hidden;
}

.av-parallax-split-img {
    position: relative;
    overflow: hidden;
}

.av-parallax-split-img-inner {
    position: absolute;
    inset: -15% 0;
    width: 100%;
    height: 130%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.av-parallax-split-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 60%,
        rgba(10, 10, 10, 0.8) 100%
    );
    z-index: 1;
}

.av-parallax-split-img.right .av-parallax-split-img-overlay {
    background: linear-gradient(
        270deg,
        transparent 60%,
        rgba(10, 10, 10, 0.8) 100%
    );
}

.av-parallax-split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem clamp(2rem, 5vw, 5rem);
    background: #0A0A0A;
}

.av-parallax-split-text .av-parallax-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #C8A96E, #E8D5A8);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.av-parallax-split-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.av-parallax-split-text p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.av-parallax-split-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   5. PORTFOLIO PARALLAX ENHANCEMENT
   Subtle offset on portfolio images
   ========================================== */

.av-portfolio-img {
    overflow: hidden;
}

.av-portfolio-img img {
    will-change: transform;
}

/* ==========================================
   6. SECTION SEPARATOR LINES
   Thin gold gradient lines between sections
   ========================================== */

.av-section-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 169, 110, 0.3) 20%,
        rgba(200, 169, 110, 0.5) 50%,
        rgba(200, 169, 110, 0.3) 80%,
        transparent
    );
    margin: 0;
}

/* ==========================================
   7. FLOATING ELEMENTS PARALLAX
   Decorative orbs/shapes with parallax
   ========================================== */

.av-parallax-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.08), transparent 70%);
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}

.av-parallax-orb-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
}

.av-parallax-orb-2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    left: -80px;
}

/* ==========================================
   8. RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .av-parallax-split {
        grid-template-columns: 1fr;
    }

    .av-parallax-split-img {
        height: 350px;
    }

    .av-parallax-split-img-overlay {
        background: linear-gradient(
            180deg,
            transparent 40%,
            rgba(10, 10, 10, 0.9) 100%
        ) !important;
    }

    .av-parallax-split-text {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .av-parallax-divider {
        height: 40vh;
        min-height: 280px;
        max-height: 400px;
    }

    .av-parallax-divider-content h3 {
        font-size: 1.5rem;
    }

    .av-parallax-quote {
        padding: 4rem 1.5rem;
    }

    .av-parallax-split-img {
        height: 280px;
    }

    .av-parallax-split-text {
        padding: 2.5rem 1.5rem;
    }

    .av-parallax-orb {
        display: none;
    }
}

@media (max-width: 480px) {
    .av-parallax-divider {
        height: 35vh;
        min-height: 240px;
    }

    .av-parallax-divider-content h3 {
        font-size: 1.3rem;
    }

    .av-parallax-divider-content p {
        font-size: 0.9rem;
    }
}

/* ==========================================
   9. REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .av-parallax-divider-bg,
    .av-parallax-split-img-inner,
    .av-parallax-quote-bg,
    .av-page-hero-bg,
    .av-parallax-orb {
        transform: none !important;
        inset: 0 !important;
        height: 100% !important;
    }
}
