/* hero.css — Hero section with services accordion
   ═══════════════════════════════════════════════════════════════════════════
   CONTENTS:
   1. Scroll arrow
   2. Hero container
   3. Editorial top (title area)
   4. Editorial bottom (photo + services)
   5. Services accordion
   6. Responsive — Tablet (≤1024px)
   7. Responsive — Mobile (≤768px)
   ═══════════════════════════════════════════════════════════════════════════ */


/* =============================================================================
   1. SCROLL ARROW
   ============================================================================= */

.hero-c .scroll-arrow {
    position: absolute;
    bottom: clamp(16px, 2vh, 32px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0.85;
    cursor: pointer;
    transition: opacity 200ms ease;
    z-index: 2;
}

.scroll-arrow:hover {
    opacity: 1;
}

.scroll-arrow::after {
    content: '↓';
    font-size: clamp(20px, 2.8vw, 26px);
    font-weight: 500;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}


/* =============================================================================
   2. HERO CONTAINER
   ============================================================================= */

.hero-c {
    background: transparent;
    min-height: 900px;
    border-top: 0;
    border-bottom: 2px solid var(--charcoal);
}


/* =============================================================================
   3. EDITORIAL TOP (title area)
   ============================================================================= */

.hero-c .editorial-top {
    min-height: calc(100svh - clamp(24px, 3vh, 48px));
    padding: var(--header-height) var(--space-10) clamp(60px, 8vh, 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    border-bottom: 2px solid var(--charcoal);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-c .editorial-top::before {
    display: none;
}

.hero-c .editorial-top > *:not(.scroll-arrow) {
    position: relative;
    z-index: 1;
}

.hero-c .editorial-title {
    position: relative;
    width: 100%;
    padding-right: clamp(72px, 9vw, 126px);
    text-align: left;
    font-size: clamp(3.5rem, min(9.5vw, 12vh), 6.75rem);
    text-wrap: pretty;
    line-height: 0.9;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-wrap: balance;
    color: var(--charcoal);
}

.hero-c .editorial-title-tail {
    display: inline;
    white-space: nowrap;
}

.hero-c .editorial-title-logo {
    position: absolute;
    right: 0;
    bottom: 0.05em;
    width: clamp(80px, 10vw, 140px);
    height: clamp(80px, 10vw, 140px);
    object-fit: contain;
    display: block;
}


/* =============================================================================
   4. EDITORIAL BOTTOM (photo + services)
   ============================================================================= */

.hero-c .editorial-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
}

.hero-c .editorial-image {
    background: var(--charcoal);
    color: var(--bone);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    border-right: 2px solid var(--charcoal);
}

.hero-c .editorial-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    filter: var(--media-filter);
    display: block;
}

.hero-c .editorial-copy {
    background: var(--persimmon);
    color: var(--bone);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* =============================================================================
   5. SERVICES ACCORDION
   ============================================================================= */

.hero-c .editorial-services {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(12px, 3vh, 32px);
    font-size: clamp(1rem, 2.1vw, 1.5rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    height: 100%;
}

.hero-c .editorial-services li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 12px;
    font-weight: 600;
    border-bottom: 2px solid rgba(245,245,240,0.4);
    padding-bottom: 12px;
}

.hero-c .editorial-service-title {
    display: block;
    grid-column: 1;
}

/* Expand/collapse chevron button */
.hero-c .editorial-service-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    color: rgba(245,245,240,0.6);
    padding: 0 2px;
    transition: color 180ms ease;
    min-width: 44px;
    min-height: 44px;
}

.hero-c .editorial-services li:hover .editorial-service-chevron,
.hero-c .editorial-services li.is-open .editorial-service-chevron {
    color: rgba(245,245,240,1);
}

.hero-c .editorial-service-chevron::before {
    content: '+';
}

.hero-c .editorial-services li.is-open .editorial-service-chevron::before {
    content: '–';
}

/* Desktop hover: show – to indicate expandable */
@media (hover: hover) and (min-width: 1025px) {
    .hero-c .editorial-services li:hover .editorial-service-chevron::before,
    .hero-c .editorial-services li:focus-within .editorial-service-chevron::before {
        content: '–';
    }
}

/* Description wrapper (accordion content) */
.hero-c .editorial-service-desc-wrap {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-c .editorial-service-desc {
    margin: 0;
    overflow: hidden;
    min-height: 0;
    max-height: 0;
    opacity: 0;
    transition: opacity 250ms ease, max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    font-size: var(--font-size-nav);
    font-weight: 400;
    letter-spacing: 0.15px;
    line-height: 1.55;
    text-transform: none;
    color: var(--bone);
    padding-top: 0;
}

/* Open state (click) */
.hero-c .editorial-services li.is-open .editorial-service-desc-wrap {
    grid-template-rows: 1fr;
}

.hero-c .editorial-services li.is-open .editorial-service-desc {
    opacity: 1;
    max-height: 500px;
    padding-top: 8px;
    transition: opacity 300ms ease 80ms, max-height 400ms cubic-bezier(0.4, 0, 0.2, 1), padding-top 300ms ease;
}

/* Desktop hover/focus expand */
@media (hover: hover) and (min-width: 1025px) {
    .hero-c .editorial-services li:hover .editorial-service-desc-wrap,
    .hero-c .editorial-services li:focus-within .editorial-service-desc-wrap {
        grid-template-rows: 1fr;
    }

    .hero-c .editorial-services li:hover .editorial-service-desc,
    .hero-c .editorial-services li:focus-within .editorial-service-desc {
        opacity: 1;
        max-height: 500px;
        padding-top: 8px;
        transition: opacity 300ms ease 80ms, max-height 400ms cubic-bezier(0.4, 0, 0.2, 1), padding-top 300ms ease;
    }
}


/* =============================================================================
   6. RESPONSIVE — Tablet (≤1024px)
   ============================================================================= */

@media (max-width: 1024px) {
    /* Hide scroll arrow */
    .hero-c .scroll-arrow {
        display: none;
    }

    /* Hero container */
    .hero-c {
        min-height: auto;
    }

    /* Title area */
    .hero-c .editorial-top {
        min-height: auto;
        padding: calc(var(--header-height) + clamp(24px, 5vw, 56px)) 28px 32px;
        justify-content: flex-start;
    }

    .hero-c .editorial-title {
        font-size: clamp(1.75rem, 4.5vw, 2.75rem);
        letter-spacing: 1.5px;
    }

    .hero-c .editorial-title-logo {
        width: clamp(56px, 8vw, 90px);
        height: clamp(56px, 8vw, 90px);
    }

    /* Photo */
    .hero-c .editorial-image {
        align-items: flex-start;
    }

    .hero-c .editorial-image img {
        max-height: none;
        aspect-ratio: auto;
    }

    /* Services overlay */
    .hero-c .editorial-bottom {
        position: relative;
    }

    .hero-c .editorial-copy {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
        padding: 16px 20px;
        overflow: hidden;
    }

    /* Services list */
    .hero-c .editorial-services {
        font-size: clamp(0.875rem, 2vw, 1.125rem);
        gap: 0;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .hero-c .editorial-services li {
        min-height: 48px;
        padding: 12px 0;
        gap: 8px 16px;
        cursor: pointer;
        border-bottom: 1px solid rgba(245,245,240,0.3);
    }

    .hero-c .editorial-service-chevron {
        width: 2.5em;
        height: 2.5em;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.3em;
        font-weight: 300;
        color: rgba(245,245,240,0.8);
        grid-column: 2;
        grid-row: 1;
    }

    .hero-c .editorial-service-desc {
        font-size: 0.8125rem;
        line-height: 1.4;
        min-height: 0;
    }

    .hero-c .editorial-service-desc-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}


/* =============================================================================
   7. RESPONSIVE — Mobile (≤768px)
   ============================================================================= */

@media (max-width: 768px) {
    /* Scroll arrow (redundant but explicit) */
    .hero-c .scroll-arrow {
        display: none;
    }

    /* Hero container — stack vertically */
    .hero-c {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding-top: var(--header-height);
    }

    .hero-c .editorial-bottom {
        display: contents;
    }

    /* Photo first */
    .hero-c .editorial-image {
        order: 1;
        display: block;
        position: static;
        width: 100%;
        height: auto;
        background: transparent;
        border-right: 0;
        border-bottom: 2px solid var(--charcoal);
        overflow: visible;
    }

    .hero-c .editorial-image img {
        display: block;
        position: static;
        width: 100%;
        height: auto;
        object-fit: unset;
        object-position: unset;
    }

    /* Tagline second */
    .hero-c .editorial-top {
        order: 2;
        flex-shrink: 0;
        min-height: 0;
        padding: 28px 20px;
        border-top: 0;
        border-bottom: 2px solid var(--charcoal);
    }

    .hero-c .editorial-title {
        font-size: clamp(1.75rem, 6.5vw, 2.5rem);
        letter-spacing: 2px;
        line-height: 0.92;
        padding-right: 0;
        text-wrap: balance;
    }

    .hero-c .editorial-title-logo {
        display: none;
    }

    /* Services third */
    .hero-c .editorial-copy {
        position: relative;
        z-index: 1;
        width: 100%;
        order: 3;
        padding: 20px;
        background-color: var(--persimmon);
        background-image: none;
    }

    .hero-c .editorial-services {
        font-size: clamp(0.9375rem, 4vw, 1.125rem);
    }

    .hero-c .editorial-services li {
        min-height: 56px;
        padding: 14px 0;
        gap: 12px 16px;
    }

    .hero-c .editorial-service-chevron {
        width: 2.5em;
        height: 2.5em;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.4em;
    }

    /* Safari iOS: use max-height instead of grid animation */
    .hero-c .editorial-service-desc-wrap {
        grid-column: 1 / -1;
        display: block;
    }

    .hero-c .editorial-service-desc {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        font-size: 0.875rem;
        line-height: 1.5;
        transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 300ms ease,
                    padding 300ms ease;
    }

    .hero-c .editorial-services li.is-open .editorial-service-desc {
        max-height: 200px !important;
        opacity: 1 !important;
        padding-top: 10px !important;
        padding-bottom: 4px !important;
    }
}
