/* Make header float over hero */
header {
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

}

/* 2. THE GAP FEATURE: For pages WITHOUT a hero */
/* If the header is roughly 100px tall, we set padding to 150px (Header + 50px gap) */
body.no-hero {
    padding-top: 150px;
}

/* Layout */
/* GLASS HEADER */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    box-sizing: border-box;
    padding: 10px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0 !important;
    /* REMOVE MARGIN HERE to stop the jump */
}

/* NAV menu color white BEFORE the scroll */
.site-header .main-nav a {
    color: white;
}

/* NAV menu color white AFTER the scroll */
.site-header.scrolled .main-nav a {
    color: black;
}

body.no-hero .site-header.scrolled .main-nav a {
    color: black;
}

body.no-hero .site-header .main-nav a {
    color: black;
}

body.has-hero-overlay {
    padding-top: 0;
    /* No padding needed when header is floating over hero */
}

/* We use fixed here instead of absolute to prevent the "jump" */
body.has-hero-overlay .site-header {
    position: fixed;
    /* Fixed from the start prevents coordinate jumping */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.has-hero-overlay .site-header {
    position: absolute;
    /* Sits ON TOP of the hero */
    background: rgba(255, 255, 255, 0.08);
    /* Your glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* SCROLLED STATE: Makes it sticky/fixed once user moves down */
.site-header.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 8px 0;
    /* Slightly smaller on scroll */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scrolled adjustments for logo/nav */
.site-header.scrolled .logo img {
    height: 45px;
    /* Shrink logo slightly on scroll */
}

.site-header.scrolled .main-nav a {
    font-size: 16px;
}

/* INNER */
/* Desktop Layout */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    padding-left: var(--header-padding-left);
    padding-right: var(--header-padding-right);
}

.menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1a3c34;
    /* Match your studio green */
    transition: 0.3s;
}

/* Mobile Layout (Break at 992px or 768px) */
@media (max-width: 991px) {

    /* Force mobile menu links to stay black, even on the hero overlay */
    .site-header .main-nav a,
    .site-header.scrolled .main-nav a,
    .has-hero-overlay .site-header .main-nav a {
        color: #000000;
    }

    /* Keep the "Book" button white text so it's readable on the orange background */
    .main-nav ul li a[href*="book"],
    .main-nav ul li.btn-book a {
        color: #ffffff !important;
    }

    .menu-toggle {
        display: flex;
        /* Show burger */
        z-index: 1000;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hide off-screen */
        width: 250px;
        height: 100vh;
        background: #fff;
        padding-top: 80px;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav a {
        color: black;
    }

    /* When menu is active */
    .main-nav.is-active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Burger to X Animation */
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .logo img {
        padding-left: 10px;
    }
}

/* LOGO */
.logo img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

/* NAV */
.main-nav a {
    text-decoration: none;
    font-size: 18px;
    color: #000000;
    font-weight: 500;
    transition: 0.2s ease;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    opacity: 0.7;
}

/* Book Button (Chamfer + Rounded hybrid) */
.btn-book {
    padding: 12px 22px;
    background: #ff4d4d;
    color: #fff !important;
    font-weight: 600;

    /* Chamfer + rounded look */
    border-radius: 25px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.btn-book:hover {
    background: #ff1a1a;
}


/* SCROLLED STATE */
header.scrolled .site-header {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
}

header.scrolled .logo img {
    height: 38px;
}

header.scrolled .main-nav a {
    font-size: 15px;
}

.main-nav ul li a[href*="book"],
.main-nav ul li.btn-book a {
    display: inline-block !important;
    background-color: #f7a731 !important;
    /* Your Orange */
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    /* This creates the Pill shape */
    font-weight: bold !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, background-color 0.3s;
    line-height: 1;
}

/* Hover effect for the pill button only */
.main-nav ul li a[href*="book"]:hover,
.main-nav ul li.btn-book a:hover {
    background-color: #e69620 !important;
    transform: translateY(-1px);
}