/* =====================================================================
   Slow Current — responsive rules
   Mobile 320–767 · Tablet 768–1023 · Desktop 1024+
   ===================================================================== */

/* ----- Tablet & below ------------------------------------------------- */
@media (max-width: 1023px) {
    body { font-size: 16.5px; }

    /* Mobile navigation */
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
        width: 46px; height: 46px; padding: 0 10px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; z-index: 120;
    }
    .nav-toggle .bar { display: block; height: 1px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; }
    .nav-open .nav-toggle .bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
    .nav-open .nav-toggle .bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
    .nav-open .site-header { color: var(--forest) !important; }
    .nav-open .site-header .brand-light { display: none !important; }
    .nav-open .site-header .brand-dark { display: inline-flex !important; }

    .main-nav {
        position: fixed; inset: 0; z-index: 110; background: var(--ivory); color: var(--forest);
        height: 100vh; height: 100dvh;
        flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 32px;
        padding: 104px var(--gutter) 48px;
        opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
        overflow-y: auto; overscroll-behavior: contain;
    }
    /* Keep the logo and close button above the open menu */
    .nav-open .site-header .brand, .nav-open .nav-toggle { position: relative; z-index: 120; }
    .nav-open .site-header::before { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nav-open .main-nav { opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 6px; }
    .main-nav ul a { font-family: var(--serif); font-size: clamp(38px, 9vw, 54px); letter-spacing: 0; text-transform: none; font-weight: 400; }
    .main-nav ul a::after { display: none; }
    .main-nav ul a[aria-current] { font-style: italic; }
    .main-nav .nav-cta { --btn-bg: var(--forest) !important; --btn-fg: var(--ivory) !important; --btn-bd: var(--forest) !important; }
    .nav-mobile-meta { display: grid; gap: 6px; font-size: 15px; color: var(--olive); }
    .nav-mobile-meta a { text-decoration: none; }
    .nav-tagline { font-size: 11px; letter-spacing: .32em; color: var(--stone); margin: 12px 0 0; }
    .nav-open { overflow: hidden; }

    .intro-grid, .experience-grid, .detail-grid, .enquiry-layout { grid-template-columns: 1fr; }
    .experience-media { max-width: 640px; }
    .spotlight { grid-template-columns: 1fr; min-height: 0; }
    .spotlight-media { min-height: 60vh; }
    .facts-card { position: static; }
    .reviews-track { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .gallery-preview { grid-template-columns: repeat(3, 1fr); }
    .gallery-preview a:nth-child(4) { grid-row: span 1; }
    .room-card { grid-template-columns: 1fr 1fr; }
    .hero-tagline { display: none; }
}

/* ----- Mobile --------------------------------------------------------- */
@media (max-width: 767px) {
    :root { --section: 80px; }
    body { font-size: 16px; }
    .site-header { padding: 14px 0; }
    .brand-emblem { width: 40px; height: 40px; }
    .wm-slow { font-size: 22px; }
    .wm-current { font-size: 21px; }
    .wm-current::after { display: none; }
    .brand-logo-img { max-height: 44px; }

    .hero h1 { font-size: clamp(42px, 12vw, 52px); }
    .hero-actions .btn { flex: 1 1 100%; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .section-head.center { align-items: center; }

    .property-list { grid-template-columns: 1fr; gap: 64px; }
    .property-card:nth-child(even) { margin-top: 0; }
    .card-media { aspect-ratio: 4 / 4.4; }

    .experience-media { padding-bottom: 24%; }
    .experience-lines li { font-size: 21px; }
    .spotlight-copy { padding: 56px var(--gutter); }
    .spotlight-facts { grid-template-columns: repeat(2, auto); gap: 16px 32px; }

    .why-grid { grid-template-columns: 1fr; }
    .why-item, .why-item + .why-item { padding: 32px 0; border-left: 0; }
    .why-num { margin-bottom: 16px; }

    .reviews-track { grid-auto-columns: 88%; gap: 16px; }
    .review-card { padding: 34px 26px; }
    .review-text { font-size: 21px; }

    .gallery-preview { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
    .gallery-preview a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .masonry { columns: 2 140px; column-gap: 10px; }
    .masonry-item { margin-bottom: 10px; }
    .masonry-item figcaption { display: none; }
    .lightbox { padding: 60px 12px; }
    .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }

    .detail-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
    .detail-gallery button:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .detail-gallery button:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }

    .room-card { grid-template-columns: 1fr; }
    .room-media { min-height: 0; aspect-ratio: 4 / 3; }
    .map-embed { aspect-ratio: 4 / 3; }

    .form-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .form-actions .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; }
    .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .cta-band .btn { width: 100%; max-width: 360px; }
}

@media (max-width: 374px) {
    .wordmark { gap: 4px; }
    .wm-slow { font-size: 19px; }
    .wm-current { font-size: 18px; }
    .brand-emblem { width: 34px; height: 34px; }
    .hero h1 { font-size: 38px; }
    .spotlight-facts { grid-template-columns: 1fr; }
}

/* ----- Large screens -------------------------------------------------- */
@media (min-width: 1600px) {
    :root { --container: 1400px; }
}
