
/**
 * Invomize Playbook — Adaptive Fixed Header
 *
 * White header over the dark hero.
 * Dark header over the light playbook content.
 *
 * Original logo colors remain unchanged.
 * Smooth background transition: 420ms.
 */

/* =====================================================
   1. HEADER VARIABLES
   ===================================================== */

:root {
    --invp-header-height: 76px;
    --invp-header-top: 10px;
    --invp-header-gap: 10px;

    --invp-header-dark: #16232B;
    --invp-header-light: #FFFFFF;
    --invp-header-accent: #F5C842;
}

/* =====================================================
   2. FIXED HEADER
   ===================================================== */

.invp-site-header {
    position: fixed;
    z-index: 1000;

    top: var(--invp-header-top);
    left: 0;
    right: 0;

    width: calc(100% - 68px);
    max-width: 1784px;
    margin-inline: auto;

    min-height: var(--invp-header-height);

    border-radius: 13px;

    background: var(--invp-header-dark);
    color: #FFFFFF;

    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);

    transition:
        background-color 420ms ease,
        color 420ms ease,
        border-color 420ms ease,
        box-shadow 420ms ease;
}

/* =====================================================
   3. HEADER BACKGROUND STATES
   ===================================================== */

/* White header over dark hero */

.invp-site-header--light {
    background: #FFFFFF;
    color: #16232B;

    border-color: rgba(22, 35, 43, 0.09);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Dark header over light content */

.invp-site-header--dark {
    background: #16232B;
    color: #FFFFFF;

    border-color: rgba(255, 255, 255, 0.10);

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
}

/* =====================================================
   4. HEADER INNER CONTAINER
   ===================================================== */

.invp-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: var(--invp-header-height);

    padding: 10px 13px;
}

/* =====================================================
   5. LOGO CONTAINER
   ===================================================== */

.invp-site-header__brand {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    min-width: 0;
    flex-shrink: 1;

    text-decoration: none;
}

/* Base image styling */

.invp-site-header__brand img {
    display: block;

    object-fit: contain;
    object-position: left center;

    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;

    transition: none !important;
}

/* Logo icon */

.invp-site-header__icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    filter: none !important;
}

/* Logo wordmark */

.invp-site-header__wordmark {
    width: auto;
    height: 33px;

    max-width: min(200px, 44vw);

    filter: none !important;

    /* No logo color animation */
    transition: none !important;
}

/* =====================================================
   6. PRESERVE ORIGINAL LOGO COLORS
   ===================================================== */

/*
 * Both logos remain in their original colors,
 * regardless of header background state.
 */

.invp-site-header .invp-site-header__icon,
.invp-site-header .invp-site-header__wordmark,

.invp-site-header--light .invp-site-header__icon,
.invp-site-header--light .invp-site-header__wordmark,

.invp-site-header--dark .invp-site-header__icon,
.invp-site-header--dark .invp-site-header__wordmark {
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;

    transition: none !important;
}

/* =====================================================
   7. BOOK NOW BUTTON
   ===================================================== */

.invp-site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    flex-shrink: 0;

    min-height: 46px;

    padding: 10px 22px;

    background: #F5C842;

    border: 1px solid #F5C842;
    border-radius: 999px;

    color: #16232B;

    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.invp-site-header__cta:hover {
    background: #FFE070;
    border-color: #FFE070;

    color: #16232B;

    transform: translateY(-1px);
}

.invp-site-header__cta svg {
    flex: none;
}

/* =====================================================
   8. ACCESSIBILITY
   ===================================================== */

.invp-site-header a:focus-visible {
    outline: 3px solid #F5C842;
    outline-offset: 3px;
}

.invp-skip-link {
    position: fixed;
    z-index: 1100;

    left: 12px;
    top: -100px;

    padding: 10px 16px;

    background: #FFFFFF;
    color: #16232B;

    border-radius: 6px;
}

.invp-skip-link:focus {
    top: 96px;
}

/* =====================================================
   9. PAGE SPACING AND STICKY OFFSETS
   ===================================================== */

/* No unwanted gap above hero */

body.home .invp-app {
    padding-top: 0;
}

/* Sticky mobile chapter navigation */

.invp-chipbar {
    top: calc(
        var(--invp-header-top) +
        var(--invp-header-height) +
        6px
    );
}

/* Sticky sidebar and booking content */

.invp-sidebar,
.invp-bookgrid__right {
    top: calc(
        var(--invp-header-top) +
        var(--invp-header-height) +
        20px
    );
}

/* Anchor scrolling offset */

.invp-page,
.invp-cta,
[id="book"] {
    scroll-margin-top: calc(
        var(--invp-header-top) +
        var(--invp-header-height) +
        68px
    );
}

/* =====================================================
   10. TABLET AND MOBILE
   ===================================================== */

@media (max-width: 767px) {

    :root {
        --invp-header-height: 62px;
        --invp-header-top: 8px;
        --invp-header-gap: 8px;
    }

    .invp-site-header {
        width: calc(100% - 24px);
        border-radius: 10px;
    }

    .invp-site-header__inner {
        padding: 8px 10px;
        gap: 8px;
    }

    .invp-site-header__brand {
        gap: 5px;
    }

    .invp-site-header__icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .invp-site-header__wordmark {
        height: 27px;
        max-width: min(160px, 39vw);
    }

    .invp-site-header__cta {
        min-height: 40px;

        padding: 8px 13px;

        gap: 6px;

        font-size: 13px;
    }

    .invp-site-header__cta svg {
        width: 17px;
        height: 17px;
    }

    .invp-chipbar {
        top: calc(
            var(--invp-header-top) +
            var(--invp-header-height) +
            4px
        );
    }
}

/* =====================================================
   11. EXTRA SMALL MOBILE
   ===================================================== */

@media (max-width: 365px) {

    .invp-site-header__wordmark {
        max-width: 115px;
    }

    .invp-site-header__cta {
        padding-inline: 10px;
    }
}

/* =====================================================
   12. REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    .invp-site-header,
    .invp-site-header__wordmark,
    .invp-site-header__cta {
        transition: none !important;
    }
}
