/* ==========================================
   HEADER STYLES
   ========================================== */

.site-header {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* ---- Top Bar ---- */
.header-top {
    background: #f0f8f6;
    border-bottom: 1px solid #e2ede9;
    padding: 9px 0;
    font-size: 0.8125rem;
}

.site-header.scrolled .header-top {
    display: none;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-contact {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4A5568;
}

.header-contact-item svg {
    color: #2D8B8B;
    flex-shrink: 0;
}

.header-contact-item a {
    color: #4A5568;
    text-decoration: none;
    transition: color 0.25s ease;
}

.header-contact-item a:hover {
    color: #2D8B8B;
}

.header-social {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-social-link {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(45, 139, 139, 0.1);
    color: #2D8B8B;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.header-social-link:hover {
    background: #2D8B8B;
    color: white;
    transform: translateY(-2px);
}

/* ---- Main Nav ---- */
.header-main {
    padding: 0.875rem 0;
    background: white;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* ---- Branding ---- */
.site-branding {
    flex-shrink: 0;
}

.site-title-link {
    text-decoration: none;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D8B8B;
    line-height: 1.2;
    margin: 0;
    display: block;
    transition: color 0.25s ease;
}

.site-title-link:hover .site-title {
    color: #1F6060;
}

/* ---- Desktop Nav ---- */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
}

.menu-item a {
    display: block;
    color: #1e306e;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.menu-item a:hover,
.menu-item a.active {
    color: #2D8B8B;
    background: rgba(45, 139, 139, 0.08);
}

/* ---- Header Right: CTA + Hamburger ---- */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-cta-btn {
    padding: 9px 20px;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* ---- Hamburger Button ---- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid #e2ede9;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: border-color 0.25s ease;
    flex-shrink: 0;
}

.menu-toggle:hover {
    border-color: #2D8B8B;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #1e306e;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.menu-toggle.active .bar-1 {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   MOBILE OVERLAY
   ========================================== */

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   MOBILE DRAWER
   ========================================== */

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-drawer.active {
    right: 0;
}

/* Drawer Header */
.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #2D8B8B, #3FA5A5);
    flex-shrink: 0;
}

.mobile-drawer-brand {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.mobile-drawer-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Drawer Nav */
.mobile-nav {
    flex: 1;
    padding: 1rem 0;
}

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

.mobile-nav-list li {
    border-bottom: 1px solid #f0f4f8;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: #1e306e;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-nav-link svg {
    color: #2D8B8B;
    flex-shrink: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #2D8B8B;
    background: #f0f8f6;
    padding-left: 1.875rem;
}

.mobile-nav-link.active {
    border-left: 3px solid #2D8B8B;
    padding-left: calc(1.875rem - 3px);
}

/* Drawer Footer */
.mobile-drawer-footer {
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid #e2ede9;
    flex-shrink: 0;
}

.mobile-book-btn {
    display: block;
    text-align: center;
    padding: 13px;
    font-size: 0.9375rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.mobile-contact-info {
    text-align: center;
}

.mobile-contact-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4A5568;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.mobile-contact-info a:hover {
    color: #2D8B8B;
}

.mobile-contact-info svg {
    color: #2D8B8B;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet (max 991px) — show hamburger, hide desktop nav */
@media (max-width: 991px) {
    .header-top {
        padding: 7px 0;
    }

    .header-email {
        display: none;
    }

    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-cta-btn {
        display: none;
    }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
    .header-top {
        display: none;
    }

    .header-main {
        padding: 0.75rem 0;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .mobile-drawer {
        width: 85%;
        max-width: 300px;
    }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
    .header-main {
        padding: 0.6rem 0;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .mobile-drawer {
        width: 100%;
        max-width: none;
    }
}