/* === DEPTH SANDWICH HEADERS (Global) === */
.depth-header {
    position: sticky;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    /* Sits below content */
    user-select: none;

    font-family: var(--font-heading);
    font-size: clamp(8rem, 25vw, 40rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--primary-color);
    opacity: 0.15;
    white-space: nowrap;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: -0.04em;
    will-change: transform;
}

/* === VERTICAL STICKY HEADER (Vins: CELLER) === */
.vertical-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    mix-blend-mode: overlay;
}

.vertical-header::before {
    content: "VINS";
    position: sticky;
    top: 50vh;
    left: 4vw;

    transform: translateY(-50%) rotate(180deg);
    display: block;
    width: min-content;

    font-family: var(--font-heading);
    font-size: 15vh;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
    writing-mode: vertical-rl;
    white-space: nowrap;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* === CLASSIC HEADLINE (Tast: EXPERIÈNCIES) === */
.classic-header {
    position: absolute;
    top: 5vh;
    /* Position from top of section */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 30;
    pointer-events: none;

    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Adjust Accordion to fill entire section */
.tasting-accordion-section .accordion-container {
    padding: 0;
    /* No padding, title is absolutely positioned */
    margin: 0;
    height: 100%;
    /* Fill parent section completely */
    align-items: stretch;
    /* CRITICAL: Panels need this to have height */
    width: 100%;
}


/* Specific Section Adjustments for basic Depth Headers */
.philosophy-editorial .depth-header,
.team-editorial-section .depth-header,
.team-parallax-section .depth-header,
.location-section .depth-header {
    color: transparent;
    opacity: 0.12;
    transition: opacity 0.4s ease;
    /* Smooth fade transition */
}

/* Hide Ubicació header when footer is visible */
.location-section[data-footer-visible="true"] .depth-header {
    opacity: 0;
}


/* Ensure Parent Sections allow sticky */
.philosophy-editorial,
.wine-stack-section,
.team-editorial-section,
.team-parallax-section,
.location-section {
    position: relative;
    overflow: visible;
}

.philosophy-editorial,
.team-editorial-section,
.team-parallax-section {
    min-height: 100vh;
}

/* Tast section: exact full-screen, no gaps */
.tasting-accordion-section {
    position: relative;
    height: 100vh !important;
    /* Exact viewport height, no gaps */
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .depth-header {
        font-size: clamp(5rem, 20vw, 15rem);
        top: 40%;
        opacity: 0.08;
    }

    .vertical-header::before {
        font-size: 10vh;
        left: 20px;
    }

    /* Classic Header Mobile */
    .classic-header {
        top: 20px;
        font-size: 1.5rem;
    }

    .tasting-accordion-section .accordion-container {
        padding-top: 80px;
    }
}