/* ============================================================
   FIXED HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--navy);
    padding: 0 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    border-bottom: 3px solid var(--red);
    transition: padding 0.4s ease;
}

.site-header.scrolled {
    padding: 0 40px;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    transition: height 0.4s ease;
}

.site-header.scrolled .header-inner { height: 52px; }

/* Logo — absolutely centered → slides left on scroll */
.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    line-height: 0;
    transition: left      0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .logo-wrapper {
    left: 0;
    transform: translateX(0);
}

.logo {
    width: auto;
    height: auto;
    transition: max-width  0.55s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon-only logo: shown centered at top */
.logo-icon {
    max-height: 90px;
    max-width: 260px;
    display: block;
}

/* Full logo: hidden at top, shown when scrolled left */
.logo-full {
    max-width: 160px;
    max-height: 44px;
    display: none;
}

.site-header.scrolled .logo-icon { display: none; }
.site-header.scrolled .logo-full { display: block; }

/* Social icons — top-right */
.header-social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.header-social-icon {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: background 0.3s, border-color 0.3s;
}

.header-social-icon:hover {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: #fff;
}

/* ============================================================
   NAVIGATION — fixed, just below header
   ============================================================ */
.site-nav {
    position: fixed;
    top: 103px; /* 100px header-inner + 3px border-bottom */
    left: 0; right: 0;
    z-index: 999;
    background: var(--red);
    padding: 13px 0;
    transition: top 0.4s ease, box-shadow 0.3s ease;
}

.site-nav.compact {
    top: 55px; /* 52px header-inner + 3px border */
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.menu-toggle { display: none; }

.hamburger {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px; height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-nav a {
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ============================================================
   RESPONSIVE — header & nav only
   ============================================================ */
@media screen and (max-width: 768px) {

    .site-header { padding: 4px 20px; }
    .site-header.scrolled { padding: 0 20px; }
    .header-inner { height: 80px; }
    .site-header.scrolled .header-inner { height: 44px; }
    .logo-icon { max-height: 72px; }
    .logo { max-width: 220px; }
    .site-header.scrolled .logo { max-width: 130px; }
    .header-social { display: none; }

    .site-nav { top: 91px; }   /* 4px + 80px + 4px + 3px */
    .site-nav.compact { top: 47px; }  /* 44px header-inner + 3px border */
    .hamburger { display: flex; }

    .site-nav ul {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--red);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 30px 30px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 1000;
        overflow-y: auto;
    }

    .site-nav ul li { width: 100%; margin-bottom: 4px; }

    .site-nav a {
        display: block;
        width: 100%;
        padding: 13px 20px;
        font-size: 17px;
        border-radius: 4px;
    }

    .menu-toggle:checked ~ ul { right: 0; }
    .menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translate(8px,8px); }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }
}

/* ============================================================
   PAGE SPLASH
   ============================================================ */
#site-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.5s ease;
}

#site-splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-logo-wrap {
    animation: splashIn 0.55s ease forwards;
}

.splash-logo {
    max-width: 420px;
    width: 70vw;
    display: block;
}

.splash-tagline {
    font-family: 'Handlee', cursive;
    font-size: clamp(18px, 3vw, 26px);
    color: rgba(255,255,255,0.75);
    animation: splashIn 0.55s ease 0.2s both;
}

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

/* Keep the full navigation on one line on smaller desktop screens. */
@media (min-width:769px) and (max-width:1100px) {
    .site-nav ul { gap:6px; padding:0 12px; }
    .site-nav a { font-size:12px; padding:5px 6px; }
}
