/* ═══════════════════════════════════════════════════════════════════════
   Park Nahal Oren — additive layer (loads AFTER style.css).
   Desktop is untouched. Adds: mobile hamburger + RTL drawer, the vision
   margin-left:7cm fix, dvh hero, honeypot hide, lead-form status, a11y skip link.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── a11y skip link (visually hidden until focused) ── */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 12px; right: 12px;
    z-index: 2000;
    width: auto; height: auto;
    clip: auto;
    padding: 10px 18px;
    background: var(--white);
    color: var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

/* ── honeypot: hidden from humans, present for bots ── */
.cta-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ── lead-form status message ── */
.cta-form-status {
    margin-top: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 0.98rem;
    min-height: 1.2em;
}
.cta-form-status.ok  { color: var(--accent-light); }
.cta-form-status.err { color: #ff9b8a; }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION
   ═══════════════════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop, shown ≤768px (where .nav-links is hidden) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
}
.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}
.nav.scrolled .nav-toggle-bar { background: var(--primary); }
body.nav-open .nav-toggle-bar { background: var(--primary); }

/* Hamburger → X when open */
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* RTL drawer — anchored to the right, slides in from the right edge */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 330px);
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 96px 24px 32px;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94), visibility 0.32s;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }

.mobile-nav-link {
    display: block;
    padding: 15px 14px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s ease, background 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus { color: var(--accent); }
.mobile-nav-cta {
    margin-top: 16px;
    text-align: center;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px;
    border-bottom: none;
    font-weight: 700;
}
.mobile-nav-cta:hover,
.mobile-nav-cta:focus { background: var(--accent-light); color: var(--white); }

/* Dim overlay behind the drawer */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(13,21,32,0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

/* Lock body scroll while the drawer is open */
body.nav-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE LAYOUT FIXES (≤768px)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    /* Belt-and-suspenders against any horizontal overflow from reveal animations */
    html { overflow-x: hidden; }

    /* ── HERO ──────────────────────────────────────────────────────────
       Let the hero grow so its content never clips (original .hero has
       overflow:hidden + 100vh, which chops the stack on phones). */
    .hero {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    .hero-content { padding: 116px 24px 56px; }
    .hero-badge {
        font-size: 0.9rem;
        padding: 6px 16px;
        margin-bottom: 18px;
    }
    .hero h1 { font-size: 2.3rem; }
    .hero h1 .hero-en { font-size: 1.2rem; margin-top: 6px; }
    .hero-subtitle {
        font-size: 1.02rem;
        line-height: 1.6;
        padding: 14px 18px;
        margin-bottom: 28px;
    }
    .hero-scroll { display: none; }
    /* hero-stats sizing/layout now owned by stats.css */

    /* ── VISION ── auto height + smaller type so the h2 stops clipping ── */
    .vision {
        aspect-ratio: auto;
        height: auto;
        min-height: 0;
        padding: 60px 0;
    }
    .vision-content {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 24px;
    }
    .vision-content .hero-badge { font-size: 0.82rem; }
    .vision-content h2 { font-size: 1.6rem; line-height: 1.32; margin-bottom: 16px; }
    .vision-content p { font-size: 0.98rem; line-height: 1.8; }
    /* RTL: original "to left" overlay under-darkens the text side — go vertical */
    .vision-overlay {
        background: linear-gradient(to top, rgba(13,21,32,0.92) 0%, rgba(13,21,32,0.55) 100%);
    }

    /* data-strip layout/sizing now owned by stats.css */

    /* ── SECTION CHROME ── eyebrows/titles/descriptions sized for phones ── */
    .section .hero-badge { font-size: 0.82rem; padding: 6px 14px; margin-bottom: 14px; }
    .section-title { font-size: 1.9rem; }
    .section-desc { font-size: 0.98rem; }
    .section-label { font-size: 0.72rem; }

    /* ── MISC large display type ── */
    .holistic-number { font-size: 3rem; }
    .holistic-item { padding: 24px 16px; }
    .cta { padding: 70px 24px; }
    .cta h2 { font-size: 1.9rem; }
    .cta p { font-size: 1.02rem; }
    .cta-contact-group { min-width: 0; width: 100%; padding: 18px 22px; }
    .advantage-card { padding: 28px 22px; }
    .amenity-item { padding: 22px 14px; }
    .amenity-showcase-overlay { padding: 24px; }
    .amenity-showcase-overlay h3 { font-size: 1.4rem; }
}

/* Extra squeeze for the smallest phones */
@media (max-width: 380px) {
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 0.96rem; }
    .vision-content h2 { font-size: 1.45rem; }
}

/* Respect reduced-motion: kill the hero zoom + float for sensitive users */
@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .hero-scroll { animation: none !important; }
    html { scroll-behavior: auto; }
}
