#wpadminbar { display: none; }

.body__wrap {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.video-section__wrap {
    background-color: var(--teal-80);
    padding: 100px 0;
}

@media (max-width: 1024px) {
    .video-section__wrap {
        padding: 60px 0;
    }
}
@media (max-width: 767px) {
    .video-section__wrap {
        padding: 50px 0;
    }
}

.video-section {
    grid-column: 2 / -2;
}

@media (max-width: 1024px) {
    .video-section {
        grid-column: 1 / -1;
    }
}

/* The source is 16:9; the ratio is declared so the box holds its height
   before the metadata lands and nothing below it jumps. */
.video-section__video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-color: var(--teal-100);
}

.footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 80px 0 40px;
}

@media (max-width: 767px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }   
}

/* || Navigation
   Desktop (>1024px): logo left, inline links right.
   Tablet/mobile (<=1024px): logo stays top-left, hamburger top-right, and the
   header itself becomes the full-viewport takeover panel when open. */

.navbar {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
}

@media (max-width: 767px) {
    .navbar {
        padding: 24px 0;
    }
}


.navbar__logo {
    display: inline-flex;
    line-height: 0;
}

.nav-items--wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.nav-item {
    font-family: var(--font-family);
    font-size: var(--text-nav);
    line-height: var(--line-height-nav);
    letter-spacing: var(--letter-spacing-nav);
    font-weight: var(--medium);
    padding: 0;
    margin: 0;
    color: var(--neutral-50);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--neutral-10);
}

.nav-item:focus-visible {
    outline: 2px solid var(--green-30);
    outline-offset: 6px;
}

/* || Nav toggle (hamburger)
   Hidden above 1024px. The 44px hit area is pulled 8px past the grid edge so
   the bars themselves stay flush with the container padding. */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--neutral-30);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.nav-toggle:hover {
    color: var(--neutral-10);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--green-30);
    outline-offset: 2px;
}

.nav-toggle__bars {
    position: relative;
    display: block;
    width: 28px;
    height: 18px;
}

.nav-toggle__bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 8px; }
.nav-toggle__bar:nth-child(3) { top: 16px; }

/* Bars collapse into an X: outer two meet in the middle and rotate, the
   middle one scales away. */
body.nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Scroll lock. --scrollbar-width is set by main.js so hiding the scrollbar
   doesn't shift the page or the fixed header's right edge. */
:root {
    --scrollbar-width: 0px;
}

body.nav-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    /* Wraps onto its own row below the logo/toggle line once shown. */
    .nav-items--wrapper {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 32px;
        padding-top: 48px;
    }

    .nav-item {
        padding: 6px 0;
    }

    body.nav-open header {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: var(--scrollbar-width);
        z-index: 100;
        background-color: var(--teal-100);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.nav-open .nav-items--wrapper {
        display: flex;
    }

    /* Staggered entrance. An animation (not a transition) is used because the
       panel goes from display:none, which transitions can't animate out of.
       backwards fill holds the from-state through the delay. */
    body.nav-open .nav-item {
        animation: nav-item-in 0.4s cubic-bezier(0.2, 0.6, 0.2, 1) backwards;
    }

    body.nav-open .nav-item:nth-child(1) { animation-delay: 0.05s; }
    body.nav-open .nav-item:nth-child(2) { animation-delay: 0.10s; }
    body.nav-open .nav-item:nth-child(3) { animation-delay: 0.15s; }
    body.nav-open .nav-item:nth-child(4) { animation-delay: 0.20s; }
    body.nav-open .nav-item:nth-child(5) { animation-delay: 0.25s; }
    body.nav-open .nav-item:nth-child(6) { animation-delay: 0.30s; }
}

@keyframes nav-item-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-toggle__bar,
    body.nav-open .nav-item {
        transition: none;
        animation: none;
    }
}



.body-section {
    grid-column: 3 / -3;
    color: var(--teal-20);
} 

@media (max-width: 1024px) {
    .body-section {
        grid-column: 1 / -1;
    }
}