/* ============================================================
   responsive.css — Mobile & responsive fixes for Way More Ibiza
   ============================================================ */

/* === HAMBURGER BUTTON === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 12px 10px;
    background: transparent;
    border: none;
    z-index: 2200;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.35s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === TABLET (max-width: 1024px) === */
@media (max-width: 1024px) {
    .navbar { padding: 0 30px !important; }
    .info-section { padding: 120px 6%; }
    .info-section h2 { font-size: 2.6rem; letter-spacing: 14px; }
    .bespoke-item { padding: 60px 30px; }
    .footer-content { gap: 60px !important; }
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {

    /* --- Hamburger visible --- */
    .hamburger { display: flex; }

    /* --- Mobile nav panel --- */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 72vw !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: rgba(5, 5, 5, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-left: 1px solid rgba(197, 160, 89, 0.15) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        z-index: 2100 !important;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease !important;
        padding: 80px 30px 40px !important;
        visibility: hidden !important;
    }
    .nav-links.open {
        right: 0 !important;
        visibility: visible !important;
    }
    .nav-links a {
        margin-left: 0 !important;
        font-size: 0.75rem !important;
        letter-spacing: 5px !important;
        padding: 18px 0 !important;
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        opacity: 1 !important;
    }
    .nav-links a:last-child { border-bottom: none !important; }

    /* --- Navbar base --- */
    .navbar { padding: 0 20px !important; height: 65px !important; }
    .brand-logo {
        left: 20px !important;
        top: 15px !important;
        width: 85px !important;
    }
    /* Cancel the scrolled-state sibling override on mobile */
    .navbar.scrolled ~ .brand-logo {
        left: 20px !important;
        top: 15px !important;
        width: 85px !important;
    }

    /* --- index.html: Hero --- */
    .hero-content h1 {
        font-size: 10vw !important;
        letter-spacing: 8px !important;
        margin-right: -8px !important;
    }
    .hero-content p.hero-ibiza {
        font-size: 7vw !important;
        letter-spacing: 6px !important;
        margin-right: -6px !important;
        margin-bottom: 30px !important;
    }
    .cta-button {
        padding: 14px 28px !important;
        letter-spacing: 3px !important;
        font-size: 0.65rem !important;
    }

    /* --- index.html: Cards grid --- */
    .grid { grid-template-columns: 1fr !important; gap: 3px !important; }
    .card { height: 65vh; }
    .card-content {
        transform: translateY(0) !important;
        padding: 28px 22px !important;
    }
    .card-content h3 {
        height: auto !important;
        font-size: 1.8rem !important;
        letter-spacing: 5px !important;
    }
    .card-content .description { opacity: 1 !important; font-size: 0.85rem !important; }
    .card-content .subtitle { font-size: 0.65rem !important; }

    /* --- index.html: Info section --- */
    .info-section { padding: 80px 6% !important; }
    .info-section span { letter-spacing: 6px !important; }
    .info-section h2 {
        font-size: 1.8rem !important;
        letter-spacing: 8px !important;
        margin-bottom: 35px !important;
    }
    .info-section p { font-size: 0.9rem !important; margin-bottom: 50px !important; }
    .bespoke-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .bespoke-item { padding: 45px 25px !important; }
    .bespoke-item h4 { letter-spacing: 4px !important; }

    /* --- index.html: Footer --- */
    footer { padding: 70px 6% 45px !important; }
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        margin-bottom: 60px !important;
    }
    .footer-logo h2 {
        font-size: 1.5rem !important;
        letter-spacing: 8px !important;
        margin-bottom: 20px !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
        letter-spacing: 2px !important;
        padding-top: 35px !important;
    }
    .footer-links ul li { margin-bottom: 14px; }

    /* --- contact.html: Navbar --- */
    .btn-back { padding: 7px 16px !important; font-size: 0.55rem !important; }

    /* --- contact.html: Content --- */
    .contact-container { padding: 100px 20px 60px !important; }
    .contact-container h1 {
        font-size: 1.8rem !important;
        letter-spacing: 8px !important;
        margin-right: -8px !important;
        margin-bottom: 40px !important;
    }
    form { max-width: 100% !important; gap: 28px !important; }
    button { letter-spacing: 3px !important; padding: 18px !important; }
    .direct-email { margin-top: 50px !important; }

    /* --- lifestyle.html: Sections --- */
    .section-content { padding: 20px !important; max-width: 100% !important; }
    .section-content h2 {
        font-size: clamp(1.8rem, 7vw, 3rem) !important;
        letter-spacing: 8px !important;
        line-height: 1.2 !important;
    }
    .section-content span { letter-spacing: 6px !important; font-size: 0.7rem !important; }
    .section-content p.desc { font-size: 0.9rem !important; line-height: 1.8 !important; }
    .sub-services-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 25px !important;
    }
    .sub-item { padding: 30px 22px !important; }
    .concierge-btn { padding: 13px 28px !important; letter-spacing: 3px !important; margin-top: 28px !important; }

    /* --- access.html: Fix body overflow lock --- */
    body.access-page {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }
    .access-container {
        height: auto !important;
        min-height: 100vh !important;
        padding: 100px 15px 60px !important;
    }
    .access-card {
        padding: 50px 25px !important;
        width: 95% !important;
    }
    .access-card h1 {
        letter-spacing: 8px !important;
        font-size: clamp(1.8rem, 6vw, 3.5rem) !important;
        margin-bottom: 25px !important;
    }
    .access-card span { letter-spacing: 8px !important; }
    .access-card p { font-size: 0.9rem !important; line-height: 2 !important; }

    /* --- lifestyle.html: Modals --- */
    .modal-content {
        padding: 45px 22px !important;
        width: 92% !important;
        margin: 8vh auto !important;
    }

    /* --- WhatsApp button --- */
    .whatsapp {
        width: 50px !important;
        height: 50px !important;
        bottom: 18px !important;
        right: 18px !important;
    }
    .whatsapp svg { width: 22px !important; height: 22px !important; }
}

/* === SMALL PHONES (max-width: 480px) === */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 12vw !important;
        letter-spacing: 5px !important;
        margin-right: -5px !important;
    }
    .hero-content p.hero-ibiza {
        font-size: 9vw !important;
        letter-spacing: 4px !important;
        margin-right: -4px !important;
    }

    .info-section h2 { font-size: 1.4rem !important; letter-spacing: 5px !important; }

    .contact-container h1 {
        font-size: 1.4rem !important;
        letter-spacing: 5px !important;
        margin-right: -5px !important;
    }

    .section-content h2 { letter-spacing: 5px !important; }

    .access-card h1 { letter-spacing: 5px !important; }
    .access-card { padding: 38px 18px !important; }

    .brand-logo { width: 75px !important; }

    .footer-bottom {
        font-size: 0.55rem !important;
        letter-spacing: 2px !important;
    }

    .card { height: 60vh; }
    .card-content h3 { font-size: 1.5rem !important; }
}
