/* =============================================================================
   CUSTOM.CSS — Site-wide base styles
   WordPress theme: JenaInnovation
   Sections:
     1. Utility / Alignment
     2. Full-Height Sections
     3. Header + HUD
     4. Burger + Nav Drawer
     5. Animated SVG Logo (HUD clone)
     6. SVG Slider
     7. Event Cards
     8. News Grid
     9. Growing List
    10. Team Grid
    11. Newsletter Form
   ============================================================================= */


/* =============================================================================
   1. UTILITY / ALIGNMENT
   ============================================================================= */

   .alignfull.quasi-full-wrapper.left {
    margin-right: calc(-49.5vw + 50%);
}

.entry-content {
    margin-block-start: 0;
}

footer.wp-block-template-part {
    margin-block-start: 0 !important;
}


/* =============================================================================
   2. FULL-HEIGHT SECTIONS
   Each .full-height-group is a 100vh flex column. Children start hidden and
   animate in via .is-visible (added by JS IntersectionObserver).
   ============================================================================= */


.full-height-group {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

/* HUD label always sits at the top */
.full-height-group .hud-label {
    margin-top: 1.875rem;
    align-self: flex-start;
    width: 100%;
}

/* Main content fills remaining space, centred vertically */
.full-height-group .hud-content {
    width: 100%;
    margin-top: auto;
    margin-bottom: auto;
}

/* Inner columns respect wide-width container */
.full-height-group .wp-block-columns {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* Partner logos */
.full-height-group .logos img {
    width: auto;
    max-height: 90px;
}

/* Prevent invisible sections from capturing clicks */
.full-height-group:not(.is-visible) {
    pointer-events: none;
}

.full-height-group:not(.is-visible) *:focus {
    opacity: 1;
    transform: translateY(0);
}

/* --- Staggered child reveal ---------------------------------------- */

.full-height-group > * {
    flex: 0 0 auto;
    min-height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity   0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--stagger-index, 0) * 100ms + 150ms);
}

.full-height-group.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Images scale up subtly alongside the fade */
.full-height-group img {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    transform: translateY(20px) scale(1.03);
    transition:
        opacity   1.1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.full-height-group.is-visible img {
    transform: translateY(0) scale(1);
}

/* --- Stretch layout (image column fills full height) --------------- */

.full-height-group .columns-stretch {
    align-items: stretch;
    height: 100%;
}

.full-height-group .columns-stretch .wp-block-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.full-height-group .columns-stretch .wp-block-column:nth-child(2) .wp-block-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
    min-height: 0;
}

.full-height-group .columns-stretch .wp-block-column figure {
    flex: 1;
    margin: 0;
    overflow: hidden;
    min-height: 0;
}

.full-height-group .columns-stretch .wp-block-column figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.full-height-group .columns-stretch .wp-block-column:nth-child(3) {
    justify-content: center;
}

.full-height-group .columns-stretch .wp-block-column:nth-child(3) .wp-block-group {
    width: 100%;
}


/* =============================================================================
   3. HEADER + HUD
   The header is position:absolute so it scrolls away with the page.
   .site-hud is the inner div — JS toggles .is-top and .is-dark on it.
   The burger and close icons are position:fixed independently so they
   always stay pinned to the top-right of the browser window.
   ============================================================================= */

/* Header scrolls with the page */
header.wp-block-template-part {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
}

/* Inner HUD div — colour transitions on dark/light section changes */
.site-hud {
    padding: 30px 90px;
    pointer-events: none;
    color: var(--wp--preset--color--contrast, #000);
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-hud.is-dark {
    color: #fff;
}

/* Site logo — only visible at the top of the page */
.wp-block-site-logo {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    top: 30px;
}

.wp-block-site-logo a,
.wp-block-site-logo img {
    position: static !important;
}

.site-hud.is-top .wp-block-site-logo {
    opacity: 1;
    pointer-events: all;
}

/* Invert site logo on dark sections */
.site-hud.is-dark .wp-block-site-logo img {
    filter: invert(1);
    transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


/* =============================================================================
   4. BURGER + NAV DRAWER
   Burger and close icons are fixed to the top-right of the viewport.
   JS toggles .nav-is-open on .site-hud to swap them and open the drawer.
   ============================================================================= */

/* Both icons pinned to top-right regardless of header scroll */
.hud-burger,
.hud-close {
    position: fixed !important;
    top: 30px;
    right: 30px;
    z-index: 99999;
    cursor: pointer;
    margin: 0;
    transition: opacity 0.3s ease, filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 0;
}

/* Default: burger visible, close hidden */
.hud-burger {
    opacity: 1;
    pointer-events: all;
}

.hud-close {
    opacity: 0;
    pointer-events: none;
}

/* Open state: swap icons */
.site-hud.nav-is-open .hud-burger {
    opacity: 0;
    pointer-events: none;
}

.site-hud.nav-is-open .hud-close {
    opacity: 1;
    pointer-events: all;
}

/* Invert icons to white on dark sections */
.site-hud.is-dark .hud-burger img {
    filter: invert(1);
}

/* Close icon is always white (drawer is always dark) */
.site-hud.nav-is-open .hud-close img {
    filter: invert(0);
}

/* --- Nav drawer ---------------------------------------------------- */

/* ── Drawer container ── */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 64%;
    height: 100vh;        /* fallback for very old browsers */
    height: 100dvh;       /* overrides for anything that supports it */
    background: #000;
    color: #fff;
    z-index: 9998;
    box-sizing: border-box;
    font-family: var(--wp--preset--font-family--heading);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.nav-drawer.is-open {
    transform: translateX(0);
    pointer-events: all;
}

/* Strip WP wrappers — make the three zones direct children */
.nav-drawer > .wp-block-group,
.nav-drawer > .wp-block-group > .wp-block-group {
    display: contents;
}

/* ── TOP: logo far left ── */
.nav-drawer--top {
    display: block !important;
    position: absolute;
    top: 30px;
    left: 30px;
    right: 90px; /* leave space for close button */
}

.nav-drawer--top img {
    height: 65px;
    width: auto;
}

/* ── MIDDLE: list flush left, vertically centred ── */
.nav-drawer--middle {
    display: flex !important;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
}

ul.nav-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.nav-drawer__list li {
    padding: 0;
    transition: padding-left 0.2s ease;
}

ul.nav-drawer__list li a {
   font-size: 1.875rem;
}

ul.nav-drawer__list li:hover {
    padding-left: 0.75rem;
}

ul.nav-drawer__list li,
ul.nav-drawer__list li a {
    text-decoration: none;
    text-transform: uppercase;
}

/* ── BOTTOM: nav far left, sponsor far right ── */
.nav-drawer--bottom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end;
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
}

/* WP nav — force visible, hide responsive toggle */
.nav-drawer--bottom .wp-block-navigation__responsive-container-open {
    display: none !important;
}

.nav-drawer--bottom .wp-block-navigation__responsive-container {
    display: block !important;
    position: static !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
}

.nav-drawer--bottom .wp-block-navigation__responsive-dialog {
    display: block !important;
}

.nav-drawer--bottom .wp-block-navigation__container {
    display: flex;
}

/* ── Staggered list entrance ── */
.nav-drawer.is-open .nav-drawer__list li {
    animation: drawerLinkIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav-drawer__list li:nth-child(1) { animation-delay: 0.05s; }
.nav-drawer__list li:nth-child(2) { animation-delay: 0.10s; }
.nav-drawer__list li:nth-child(3) { animation-delay: 0.15s; }
.nav-drawer__list li:nth-child(4) { animation-delay: 0.20s; }
.nav-drawer__list li:nth-child(5) { animation-delay: 0.25s; }

@keyframes drawerLinkIn {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.nav-drawer--bottom nav {
    text-transform: uppercase;
}

/* =============================================================================
   5. ANIMATED SVG LOGO (fixed HUD logo)
   Icon image pinned to top-centre of viewport.
   Visible once the slider scrolls out of view. On the last full-height-group
   the icon fades out and a wordmark image fades in (.show-wordmark).
   is-dark is toggled by the same JS that controls the HUD.
   ============================================================================= */

   .hud-svg-logo {
    position: fixed;
    top: 30px;
    left: 50vw;
    transform: translateX(calc(-50% + 30px));
    width: 598px;
    height: 67px;
    pointer-events: none;
    opacity: 0;
    overflow: visible;
    z-index: 9997;
    margin-left: 50px;
}

.single-website-logo {
    position: fixed !important;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    margin: 0 !important;
    padding: 0 !important;
    width: 65px !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.single-website-logo a {
    pointer-events: all;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
}

.single-website-logo figure,
.single-website-logo figure a,
.single-website-logo figure img {
    margin: 0 !important;
    padding: 0 !important;
    width: 65px !important;
    height: auto !important;
    display: block !important;
}

/* Icon image — fills the container, fades out on show-wordmark */
.hud-svg-logo__icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Invert icon to white on dark backgrounds */
.hud-svg-logo.is-dark .hud-svg-logo__icon {
    filter: invert(1);
}

/* Wordmark — hidden by default, positioned to the right of the container */
.hud-svg-logo__wordmark {
    position: absolute;
    width: 598px;
    height: 67px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

/* Invert wordmark to white on dark backgrounds */
.hud-svg-logo.is-dark .hud-svg-logo__wordmark {
    filter: invert(1);
}

/* Swap: icon fades out, wordmark fades in */
.hud-svg-logo.show-wordmark .hud-svg-logo__icon {
    opacity: 0;
}

.hud-svg-logo.show-wordmark .hud-svg-logo__wordmark {
    opacity: 1;
}

/* =============================================================================
   6. SVG SLIDER
   ============================================================================= */

.svg-slider__svg line {
    transform-origin: center;
    transform-box: fill-box;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.svg-slider__svg.is-flying {
    overflow: visible !important;
    width: 700px !important;
    height: 100% !important;
}

.svg-image-slider:has(.is-flying),
.svg-slider__image-col:has(.is-flying) {
    overflow: visible !important;
}


/* =============================================================================
   7. EVENT CARDS
   Rows with a floating thumbnail that follows the cursor on hover.
   ============================================================================= */

.event-card-row {
    display: grid;
    grid-template-columns: 0 15% 1fr 15% 3%;
    gap: 1em;
    align-items: center;
    padding: 1.5rem 0 1.5rem 0.5rem;
    border-bottom: 3px solid currentColor;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    transition: background 0.25s ease;
}

.wp-block-columns.event-card-row {
    padding-top: var(--wp--preset--spacing--40) !important;
    padding-bottom: var(--wp--preset--spacing--40) !important;
}

.event-card-row:first-child {
    border-top: 3px solid currentColor;
}

.event-card-row a {
    text-decoration: none;
}

/* Hover: background inverts, text flips to mint */
.event-card-row:hover {
    background: currentColor;
}

.event-card-row:hover .event-date,
.event-card-row:hover h3 a,
.event-card-row:hover h3,
.event-card-row:hover .event-details {
    color: var(--wp--preset--color--sage-green);
}

/* Floating hover image — created and positioned by JS */
#event-hover-image {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#event-hover-image.visible {
    opacity: 1;
    transform: scale(1);
}

/* Thumbnail block — exists only as a data carrier for JS, never shown */
.event-card-thumb {
    display: none !important;
}

.event-date {
    line-height: 3.125rem;
}


/* =============================================================================
   8. NEWS GRID
   ============================================================================= */

.wp-block-post-template.columns-3 li {
    border-left: 3px solid #fff;
    padding-left: 2rem;
}

.wp-block-post-template li:nth-child(n+4) {
    margin-top: var(--wp--preset--spacing--40);
}

/* Original archive group hidden — JS moves the link into the grid */
.parent-wrapper > .wp-block-group:last-child {
    display: none;
}

.wp-block-post-template li .news-item a {
    color: inherit;
    text-decoration: none;
}

.archive-link .news-item a {
    text-transform: uppercase;
    font-family: var(--wp--preset--font-family--heading);
}

li.archive-link {
    border-left: none !important;
}


/* =============================================================================
   9. GROWING LIST
   Items reveal one-by-one on scroll. JS adds .is-visible and sets
   transition-delay inline for the stagger effect.
   ============================================================================= */

.growing-list ul.wp-block-list {
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    list-style: none;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}

.growing-list ul.wp-block-list li {
    border-bottom: 3px solid #000;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(16px) scaleY(0.96);
    transform-origin: bottom center;
    transition:
        opacity   0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.growing-list ul.wp-block-list li:first-child {
    border-top: 3px solid #000;
}

.growing-list ul.wp-block-list li.is-visible {
    opacity: 1;
    transform: translateY(0) scaleY(1);
}


/* =============================================================================
   10. TEAM GRID
   Cards animate in via JS (.team-card-animate → .is-visible).
   ============================================================================= */

.col-bottom.logos .wp-block-image img {
    width: auto;
    max-height: 90px;
}

.team-card-animate {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity   1.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.team-card-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================================
   11. NEWSLETTER FORM
   ============================================================================= */

input[type=email], input[type=text] {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 3px solid #000 !important;
    font-size: var(--wp--preset--font-size--larger) !important;
    font-family: var(--wp--preset--font-family--heading) !important;
    color: #000 !important;
    padding-left: 0 !important;
}

input[type=email]::placeholder, input[type=text]::placeholder {
    color: #000 !important;
    text-transform: uppercase;
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--larger);
    opacity: 1 !important;
}

button[type=submit] {
    background: #000 !important;
    border-radius: 0 !important;
    font-family: var(--wp--preset--font-family--heading) !important;
}








.featured-image-caption {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--small);
    width: 50%;
    margin-block-start: 10px;
    line-height: 1.5;
    float: left;
}



.has-larger-font-size {
    line-height: 3.125rem;
}





:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px var(--wp--preset--color--background, #fff),
        0 0 0 5px var(--wp--preset--color--contrast, #1d1d1b);
    border-radius: 2px;
    transition: box-shadow 0.15s ease;
}


.block-newsletter.full-height-group {
    height: auto !important;
    max-height: none !important;
    min-height: calc(100dvh - var(--footer-height, 0px));
}


footer nav {
    text-transform: uppercase;
}



