/* ==========================================================================
   AERIE GLOBAL | JOURNAL PAGE | PREMIUM EDITORIAL DESIGN
   ========================================================================== */

/* ==========================================================================
   1. HERO — Full-Screen Cinematic Header
   ========================================================================== */
.journal-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.journal-hero .hero-bg-container {
    position: absolute;
    inset: 0;
}

.journal-hero .hero-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) saturate(1.2);
}

.journal-hero .hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(5, 5, 5, 0.95) 0%,
            rgba(5, 5, 5, 0.4) 40%,
            transparent 70%);
}

.journal-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem var(--spacing-page);
    max-width: 900px;
}

.journal-hero .hero-title {
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 0.95;
    margin-bottom: 2rem;
}

.journal-hero .hero-subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
}

/* ==========================================================================
   2. FEATURED DISPATCH — Full-Width Feature Story
   ========================================================================== */
.journal-featured {
    position: relative;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.journal-featured .featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) saturate(1.1);
    transition: transform 8s ease;
}

.journal-featured:hover .featured-bg {
    transform: scale(1.05);
}

.journal-featured .featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(5, 5, 5, 0.95) 0%,
            rgba(5, 5, 5, 0.5) 40%,
            transparent 70%);
}

.journal-featured .featured-content {
    position: relative;
    z-index: 2;
    padding: 6rem var(--spacing-page);
    max-width: 800px;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    color: #fff;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.featured-excerpt {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   3. HORIZONTAL SCROLL — Dispatch Cards (GSAP Pinned)
   ========================================================================== */
.journal-dispatches {
    position: relative;
    width: 100%;
    background: var(--bg-prime);
}

.dispatch-header {
    padding: 0 var(--spacing-page) 1rem;
    padding-top: 0.5rem;
}

.journal-dispatches.horizontal-scroll-section {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    z-index: 1;
}

.journal-dispatches .horizontal-container {
    display: flex;
    padding-left: 10vw;
    padding-right: 4vw;
    gap: 2rem;
    align-items: center;
    will-change: transform;
}

.dispatch-card {
    width: 30vw;
    min-width: 320px;
    height: 70vh;
    max-height: 550px;
    flex-shrink: 0;
    background: var(--bg-sec);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.6s var(--ease-vincent),
        box-shadow 0.6s var(--ease-vincent),
        transform 0.6s var(--ease-vincent);
    cursor: pointer;
}

.dispatch-card:hover,
.dispatch-card:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.08);
    transform: translateY(-8px);
}

.dispatch-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55) saturate(1.1);
    transition: transform 1.5s var(--ease-vincent), filter 1s ease;
}

.dispatch-card:hover .dispatch-img {
    transform: scale(1.08);
    filter: brightness(0.7) saturate(1.3);
}

.dispatch-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.97) 0%,
            rgba(0, 0, 0, 0.9) 30%,
            rgba(0, 0, 0, 0.6) 60%,
            rgba(0, 0, 0, 0.2) 80%,
            transparent 100%);
    z-index: 2;
}

.dispatch-meta {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 0.6rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.dispatch-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.dispatch-excerpt {
    font-family: var(--font-editorial);
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    max-width: 95%;
}

.full-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* ==========================================================================
   4. EDITORIAL GRID — Deep Reads
   ========================================================================== */
.journal-editorial {
    padding: 10rem var(--spacing-page);
    background: var(--bg-prime);
    position: relative;
    z-index: 20;
}

.editorial-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6rem;
}

.editorial-subtitle {
    max-width: 550px;
    margin: 1rem auto 0;
    opacity: 0.7;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.editorial-card {
    background: var(--bg-sec);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.6s var(--ease-vincent);
    position: relative;
}

.editorial-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.editorial-large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 500px;
}

.editorial-img-wrap {
    overflow: hidden;
    height: 300px;
}

.editorial-large .editorial-img-wrap {
    height: 100%;
}

.editorial-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-vincent);
    filter: brightness(0.85) saturate(1.1);
}

.editorial-card:hover .editorial-img-wrap img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.2);
}

.editorial-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editorial-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.editorial-card-content .section-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-sec);
    opacity: 0.7;
    margin-bottom: 2rem;
}

.editorial-card-content .btn-gold-minimal {
    align-self: flex-start;
}

/* ==========================================================================
   5. NATURE GALLERY — Mosaic Photography Grid
   ========================================================================== */
.journal-gallery {
    padding: 10rem var(--spacing-page);
    background: var(--bg-prime);
    position: relative;
    z-index: 20;
}

.journal-gallery .gallery-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6rem;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.mosaic-item.mosaic-tall {
    grid-row: span 2;
}

.mosaic-item.mosaic-wide {
    grid-column: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--ease-vincent), filter 0.8s ease;
    filter: brightness(0.75) saturate(1.1);
}

.mosaic-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.9) saturate(1.3);
}

.mosaic-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mosaic-item:hover .mosaic-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   6. CTA — Archive Access
   ========================================================================== */
.journal-cta {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 8rem var(--spacing-page);
    z-index: 20;
}

.journal-cta .cta-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) saturate(0.8);
}

.journal-cta .cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.6);
}

.journal-cta .cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    margin-top: 1rem;
}

/* ==========================================================================
   RESPONSIVE — Tablet (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .journal-hero .hero-title {
        font-size: clamp(3rem, 6vw, 4.5rem);
    }

    .journal-featured {
        height: 70vh;
    }

    .featured-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .editorial-large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .editorial-large .editorial-img-wrap {
        height: 350px;
    }

    .gallery-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    /* Tablet: Adjust card sizes for GSAP horizontal scroll */
    .dispatch-card {
        width: 55vw;
        min-width: 280px;
        height: 420px;
    }
}

/* ==========================================================================
   RESPONSIVE — Mobile (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    .journal-hero .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .journal-hero .hero-content {
        padding: 0 var(--spacing-page) 15vh;
    }

    .journal-featured {
        height: 60vh;
    }

    .journal-featured .featured-content {
        padding: 3rem var(--spacing-page);
    }

    .featured-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .dispatch-card {
        width: 85vw;
        min-width: 260px;
        height: 380px;
    }

    .dispatch-header {
        padding-top: 2rem;
    }

    .editorial-card-content {
        padding: 1.5rem;
    }

    .editorial-card-title {
        font-size: 1.5rem;
    }

    .editorial-img-wrap {
        height: 220px;
    }

    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .mosaic-item.mosaic-tall,
    .mosaic-item.mosaic-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .mosaic-caption {
        opacity: 1;
        transform: translateY(0);
    }

    .journal-editorial,
    .journal-gallery {
        padding: 6rem var(--spacing-page);
    }

    .editorial-header,
    .journal-gallery .gallery-header {
        margin-bottom: 3rem;
    }

    .cta-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

/* ==========================================================================
   RESPONSIVE — Small Mobile (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .journal-hero .hero-title {
        font-size: 2.5rem;
    }

    .featured-title {
        font-size: 2rem;
    }

    .dispatch-card {
        width: 90vw;
        height: 340px;
    }

    .gallery-mosaic {
        grid-auto-rows: 200px;
    }
}