/* ============================================================
   RESPONSIVE STYLESHEET — All Media Queries
   ============================================================ */


/* ============================================================
   XXL - 1400px
   ============================================================ */
@media (max-width: 1400px) {
    :root {
        --container-max: 1200px;
    }
}


/* ============================================================
   XL - 1200px
   ============================================================ */
@media (max-width: 1200px) {
    :root {
        --container-max: 100%;
        --container-pad: 20px;
        --fs-4xl: 3.25rem;
        --fs-3xl: 2.5rem;
        --fs-2xl: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1.4fr;
        gap: var(--space-lg);
    }

    .footer-grid > *:nth-child(2) {
        display: none;
    }
}


/* ============================================================
   LG - 992px (Tablet Landscape) - NAVBAR FIX
   ============================================================ */
@media (max-width: 992px) {
    :root {
        --nav-height: 64px;
        --space-2xl: 4.5rem;
        --space-xl: 3rem;
    }

    /* ---------- Header Container ---------- */
    .site-header {
        overflow: visible;
        min-height: 64px;
        border: none;
    }

    /* ---------- Navbar Layout ---------- */
    .navbar {
        height: 64px;
        min-height: 64px;
        gap: 8px;
        padding: 0 4px;
        align-items: center;
        overflow: visible;
        border: none;
    }

    /* ---------- Brand (Logo) ---------- */
    .nav-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
        align-items: center;
        border: none;
        outline: none;
        padding: 0;
        height: auto;
        display: inline-flex;
    }

    .nav-brand:focus,
    .nav-brand:focus-visible,
    .nav-brand:hover,
    .nav-brand:active {
        outline: none;
        border: none;
    }

    .nav-brand img {
        display: block;
        max-height: 30px;
        width: auto;
        border: none;
    }

    .nav-brand-text {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        overflow: hidden;
        line-height: 1;
    }

    .nav-brand-text strong {
        display: inline-block;
        font-family: var(--font-heading);
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1;
        color: var(--color-dark);
        white-space: nowrap;
        letter-spacing: -0.02em;
    }

    .nav-brand-text strong span {
        color: var(--color-primary);
    }

    /* Hide subtitle on mobile */
    .nav-brand-text small {
        display: none !important;
    }

    /* ---------- Nav Actions ---------- */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        height: auto;
    }

    .nav-phone {
        display: none;
    }

    /* ---------- Desktop Book Now — HIDDEN on mobile ---------- */
    .nav-cta-desktop {
        display: none !important;
    }

    /* ---------- Hamburger ---------- */
    .nav-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        padding: 0;
        flex-shrink: 0;
        border: none;
        outline: none;
        background: transparent;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    .nav-toggle:focus,
    .nav-toggle:focus-visible,
    .nav-toggle:hover,
    .nav-toggle:active {
        outline: none;
        border: none;
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--color-dark);
        border-radius: 2px;
        transition: all var(--transition-base);
    }

    /* ---------- Mobile Menu (slide-down) ---------- */
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px var(--container-pad) 240px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        transform: translateY(-110%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        z-index: 999;
        list-style: none;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-menu li {
        list-style: none;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 15px;
        font-weight: 500;
        color: var(--color-dark);
        text-decoration: none;
    }

    .nav-link.active {
        color: var(--color-primary);
    }

    .nav-link::after {
        display: none;
    }

    /* ---------- Mobile Book Now — INSIDE menu ---------- */
    .nav-cta-mobile {
        display: block !important;
        list-style: none;
        border-bottom: none !important;
        margin-top: 16px;
        padding-top: 0;
        border-top: none;
    }

    .nav-cta-mobile .btn {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 14px 20px;
        font-size: 13px;
        margin-top: 0;
    }

    /* ---------- Hero ---------- */
    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: var(--fs-2xl);
    }

    .hero-subtitle {
        font-size: var(--fs-base);
    }

    /* ---------- Footer ---------- */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .footer-grid > *:nth-child(2) {
        display: block;
    }

    /* ---------- Forms ---------- */
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   MD - 768px (Tablet Portrait)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --space-2xl: 3.5rem;
        --space-xl: 2.5rem;
        --space-lg: 2rem;
        --fs-4xl: 2.5rem;
        --fs-3xl: 2rem;
        --fs-2xl: 1.75rem;
        --fs-xl: 1.5rem;
        --container-pad: 18px;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }

    .nav-brand img {
        max-height: 28px;
    }

    .nav-brand-text strong {
        font-size: 1.05rem;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 60px);
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: var(--fs-2xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .page-banner {
        padding: calc(var(--nav-height) + 60px) 0 60px;
    }

    .page-banner h1 {
        font-size: var(--fs-2xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: var(--fs-sm);
    }

    .alert {
        padding: 14px 16px;
        font-size: var(--fs-xs);
    }
}


/* ============================================================
   SM - 576px (Mobile)
   ============================================================ */
@media (max-width: 576px) {
    :root {
        --nav-height: 60px;
        --space-2xl: 3rem;
        --space-xl: 2rem;
        --space-md: 1.25rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.5rem;
        --fs-xl: 1.25rem;
        --container-pad: 16px;
    }

    /* ---------- NAVBAR ---------- */
    .site-header,
    .navbar {
        min-height: 60px;
    }

    .navbar {
        height: 60px;
        gap: 6px;
        padding: 0 2px;
    }

    .nav-brand {
        gap: 5px;
    }

    .nav-brand img {
        max-height: 26px;
    }

    .nav-brand-text strong {
        font-size: 1rem;
    }

    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }

    .nav-toggle {
        width: 34px;
        height: 34px;
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
    }

    /* ---------- Hero ---------- */
    .hero {
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: var(--fs-2xl);
    }

    .hero-subtitle {
        font-size: var(--fs-sm);
    }

    .section-title {
        font-size: var(--fs-xl);
    }

    .section-subtitle {
        font-size: var(--fs-sm);
    }

    .btn {
        padding: 12px 24px;
        font-size: var(--fs-xs);
    }

    .form-control {
        padding: 12px 14px;
        font-size: var(--fs-sm);
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-float {
        width: 46px;
        height: 46px;
        right: 16px;
        bottom: 68px;
    }

    .whatsapp-float svg {
        width: 22px;
        height: 22px;
    }
}


/* ============================================================
   XS - 400px
   ============================================================ */
@media (max-width: 400px) {
    :root {
        --container-pad: 14px;
        --fs-2xl: 1.375rem;
    }

    .nav-brand-text strong {
        font-size: 0.9rem;
    }

    .nav-actions {
        gap: 4px;
    }

    .nav-toggle {
        width: 32px;
        height: 32px;
    }

    .nav-toggle span {
        width: 18px;
        height: 2px;
    }

    .hero-title {
        font-size: var(--fs-xl);
    }

    .section-title {
        font-size: var(--fs-lg);
    }
}


/* ============================================================
   LANDSCAPE ORIENTATION
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 30px);
        padding-bottom: 30px;
    }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .scroll-top,
    .whatsapp-float,
    .nav-toggle,
    .page-loader {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================================
   BOOK NOW BUTTON — DEFAULT (Desktop)
   ============================================================ */
.nav-cta-mobile {
    display: none;
}

.nav-cta-desktop {
    display: inline-flex;
}
