/* ==========================================================================
   HEADER (NAVBAR) STYLES — FIGMA DESIGN SPECIFICATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 88px;
    z-index: 1000;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header state when scrolling down past 30px: White background */
.site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 120px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Navigation Links (Default Top State on Hero: White Text) */
.header-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 41px;
}

.nav-item-link {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    padding: 4px 8px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, font-weight 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.nav-item-link.active {
    font-weight: 600;
    color: #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
}

.nav-item-link:hover,
.nav-item-link:focus,
.nav-item-link:active {
    color: rgba(255, 255, 255, 0.85);
    outline: none;
}

/* Navigation Links (Scrolled White Navbar State: Dark Text) */
.site-header.header-scrolled .nav-item-link {
    color: #333333;
}

.site-header.header-scrolled .nav-item-link:focus,
.site-header.header-scrolled .nav-item-link:active {
    color: #333333;
}

.site-header.header-scrolled .nav-item-link.active,
.site-header.header-scrolled .nav-item-link.active:focus,
.site-header.header-scrolled .nav-item-link.active:active {
    color: #C62828;
    font-weight: 600;
    border-bottom: 2px solid #C62828;
}

.site-header.header-scrolled .nav-item-link:hover {
    color: #C62828;
}

.site-header.header-scrolled .nav-item-link:focus,
.site-header.header-scrolled .nav-item-link:active {
    color: #333333;
}

.site-header.header-scrolled .nav-item-link.active,
.site-header.header-scrolled .nav-item-link.active:focus,
.site-header.header-scrolled .nav-item-link.active:active {
    color: #C62828;
    font-weight: 600;
    border-bottom: 2px solid #C62828;
}

.site-header.header-scrolled .nav-item-link:hover {
    color: #C62828;
}

/* WhatsApp Red Button */
.header-whatsapp {
    display: flex;
    align-items: center;
}

.btn-wa-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
    width: 143px;
    height: 48px;
    background: #C62828;
    border-radius: 24px;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.btn-wa-header img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-wa-header span {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.008em;
    color: #FFFFFF;
    white-space: nowrap;
}

.btn-wa-header:hover {
    background: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.4);
}

/* Hamburger Toggle */
.header-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}

.header-toggle span {
    width: 24px;
    height: 2.5px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Hamburger Toggle Lines: Dark on Scrolled Header */
.site-header.header-scrolled .header-toggle span {
    background: #1D3A72;
}

/* Hamburger Toggle Open (X) State */
.header-toggle.open span {
    background: #1D3A72 !important;
}

.header-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header-toggle.open span:nth-child(2) {
    opacity: 0;
}

.header-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5.5px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop, Macbook, Tablet, Mobile)
   Hamburger Button active for screens <= 1024px
   ========================================================================== */

/* MACBOOK & LAPTOP (1025px - 1440px) */
@media (max-width: 1440px) {
    .header-inner {
        padding: 0 60px;
    }
    .header-nav {
        gap: 32px;
    }
}

/* TABLET & MOBILE (<= 1024px) -> Hamburger Menu Active */
@media (max-width: 1024px) {
    .site-header {
        height: 72px;
    }

    .header-inner {
        padding: 0 24px;
    }

    .header-logo-img {
        width: 48px;
        height: 48px;
    }

    .header-toggle {
        display: flex;
    }

    .header-whatsapp {
        display: none;
    }

    .header-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 24px;
        background: #FFFFFF;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .header-nav.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item-link {
        width: 100%;
        text-align: left;
        padding: 16px 0;
        font-size: 18px;
        line-height: 24px;
        color: #333333;
        border-bottom: 1px solid #E2E8F0;
        box-sizing: border-box;
    }

    .nav-item-link.active {
        color: #C62828;
        border-bottom: 2px solid #C62828;
    }

    .header-whatsapp-mobile {
        display: flex;
        width: 100%;
        margin-top: 24px;
        padding-top: 12px;
    }

    .header-whatsapp-mobile .btn-wa-header {
        width: 100%;
        height: 50px;
    }
}

/* MOBILE (< 576px) */
@media (max-width: 576px) {
    .header-inner {
        padding: 0 16px;
    }
}
