/* css/work-editorial.css */

/* Core Variables for Editorial Theme */
:root {
    --ed-bg: #FAFAFA;
    /* Soft off-white */
    --ed-text: #1A1A1A;
    /* Deep charcoal, almost black */
    --ed-text-light: #5A5A5A;
    /* Warm grey */
    --ed-plum: #4A2B4D;
    /* Deep plum accent */
    --ed-lavender: #F2EFF5;
    /* Pale lavender for CTA */
    --ed-border: #E0DCE3;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    /* Fallback to your global font */
}

/* Force light theme on body for this specific page */
body.editorial-theme {
    background-color: var(--ed-bg);
    color: var(--ed-text);
    font-family: var(--font-sans);
}

/* Overriding Global Nav for Editorial */
.editorial-theme nav {
    background: transparent;
    border-bottom: 1px solid var(--ed-border);
}

.editorial-theme nav a {
    color: var(--ed-text);
}

.editorial-theme .logo a {
    color: var(--ed-text);
}

/* Common Typographic Utilities */
.small-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ed-text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.serif-heading {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--ed-text);
    margin-bottom: 1.5rem;
}

.serif-title {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--ed-text);
}

.diagonal-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

a.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

/* Base Image Block Styling */
[data-label] {
    background-color: #EAEAEA;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

[data-label]::after {
    content: attr(data-label);
    color: #999;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* SECTION 01: Hero */
.editorial-hero {
    padding: 12rem 5vw 6rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-support {
    font-size: 1.4rem;
    color: var(--ed-text-light);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 5rem;
}

.hero-visual-composition {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    height: 500px;
    margin-bottom: 5rem;
}

.comp-img {
    width: 100%;
    height: 100%;
}

/* Filters */
.project-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--ed-border);
    padding-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--ed-border);
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    color: var(--ed-text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--ed-plum);
    color: var(--ed-plum);
}

.filter-btn.active {
    background: var(--ed-plum);
    color: #FFF;
    border-color: var(--ed-plum);
}

/* SECTION 02: Featured Work & Grid */
.work-gallery {
    padding: 6rem 5vw;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.filter-item {
    transition: opacity 0.3s ease;
}

/* Featured APx Project */
.featured-project {
    margin-bottom: 8rem;
}

.featured-project:hover .diagonal-arrow {
    transform: translate(3px, -3px);
}

.large-visual {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 2.5rem;
}

.project-meta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}

.meta-left .serif-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ed-text-light);
}

.meta-right {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--ed-border);
    padding-top: 1.5rem;
}

.project-services {
    font-size: 0.95rem;
    color: var(--ed-text-light);
}

/* 2-Column Grid */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem 4rem;
}

.grid-project:hover .diagonal-arrow {
    transform: translate(3px, -3px);
}

.grid-visual {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 2rem;
}

.grid-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.grid-title-row .serif-title {
    font-size: 2rem;
}

/* SECTION 04: Explore By Deliverable */
.explore-section {
    padding: 8rem 5vw;
    background: #FFF;
    border-top: 1px solid var(--ed-border);
}

.explore-container {
    max-width: 1400px;
    margin: 0 auto;
}

.explore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.explore-card {
    display: block;
    text-decoration: none;
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    padding: 3rem;
    transition: all 0.3s ease;
}

.explore-card:hover {
    border-color: var(--ed-plum);
    background: var(--ed-lavender);
}

.explore-card:hover .diagonal-arrow {
    transform: translate(3px, -3px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--ed-text-light);
}

.card-num {
    font-size: 0.9rem;
    font-weight: 500;
}

.explore-card h4 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ed-text);
    margin-bottom: 0.5rem;
}

.explore-card p {
    font-size: 1rem;
    color: var(--ed-text-light);
}

/* SECTION 05: Thinking Behind Design */
.thinking-section {
    padding: 8rem 5vw;
}

.thinking-container {
    max-width: 1400px;
    margin: 0 auto;
}

.thinking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.thinking-visual {
    width: 100%;
    aspect-ratio: 3/4;
    margin-bottom: 2rem;
}

.thinking-col .serif-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.thinking-col p {
    color: var(--ed-text-light);
    line-height: 1.6;
}

/* SECTION 06: CTA */
.editorial-cta {
    background: var(--ed-lavender);
    padding: 10rem 5vw;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.editorial-cta .serif-heading {
    font-size: 4rem;
}

.cta-support {
    font-size: 1.2rem;
    color: var(--ed-text-light);
    margin-bottom: 3rem;
}

.plum-btn {
    display: inline-block;
    background: var(--ed-plum);
    color: #FFF;
    text-decoration: none;
    padding: 1.2rem 3rem;
    border-radius: 40px;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.plum-btn:hover {
    background: #361f38;
}

/* Footer Adjustments */
.editorial-footer {
    background: #FFF;
    border-top: 1px solid var(--ed-border);
}

.editorial-footer .footer-quote {
    color: var(--ed-text);
}

.editorial-footer .footer-links a {
    color: var(--ed-text-light);
}

.editorial-footer .footer-links a:hover {
    color: var(--ed-plum);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .serif-heading {
        font-size: 3.5rem;
    }

    .hero-visual-composition {
        grid-template-columns: 1fr 1fr;
    }

    .img-3 {
        display: none;
    }

    .project-meta-bar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .meta-right {
        border-top: none;
        padding-top: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

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

    .thinking-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .thinking-visual {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {

    .serif-heading,
    .editorial-cta .serif-heading {
        font-size: 2.8rem;
    }

    .hero-visual-composition {
        grid-template-columns: 1fr;
        height: auto;
        aspect-ratio: 4/3;
    }

    .img-2 {
        display: none;
    }
}