/* ============================================================
   RESPONSIVE.CSS — Tablet & Mobile adjustments
   Rainey Autism Therapy Center
   ============================================================ */

/* ── Hamburger Nav Toggle (hidden on desktop) ───────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   TABLET  (<=1024px)
   ================================================================ */
@media (max-width: 1024px) {
    .ui-layer { padding: 0 24px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .bottom-layout { grid-template-columns: 1fr; }

    .book-section { grid-template-columns: 1fr; min-height: auto; }
    .book-left { padding: 50px 40px; }
    .book-right { padding: 50px 40px; }

    .info-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }

    .giant-text { font-size: 6.5vw; letter-spacing: 4px; }
}

/* ================================================================
   MOBILE / SMALL TABLET  (<=768px)
   ================================================================ */
@media (max-width: 768px) {
    .ui-layer { padding: 0 18px; backdrop-filter: blur(6px); }

    /* Quick contact strip */
    .quick-contact {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        font-size: 0.65rem;
        padding: 8px 0;
    }

    /* Nav */
    .top-nav {
        position: relative;
        flex-wrap: wrap;
        padding: 14px 0;
    }
    .logo-img { height: 48px; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        background: rgba(10,18,38,0.98);
        border: 1px solid var(--glass-border);
        border-top: none;
        border-radius: 0 0 12px 12px;
        padding: 24px 22px;
        z-index: 50;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }
    .nav-links.open { display: flex; }
    .nav-links .book-btn { align-self: flex-start; }

    /* Hero */
    .hero-section { min-height: 60vh; }
    .giant-text {
        font-size: 9.5vw;
        white-space: normal;
        letter-spacing: 2px;
        line-height: 1.1;
        margin-bottom: 24px;
    }
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding-bottom: 6vh;
    }
    .hero-left h2 { font-size: 2rem; }
    .hero-right { align-self: stretch; }
    .hero-right .quote { text-align: left; font-size: 1rem; }
    .hero-right .location { text-align: left; }

    /* About */
    .about-section { flex-direction: column; padding: 26px; margin-bottom: 50px; }
    .about-header { padding-right: 0; margin-bottom: 20px; }
    .about-header p { max-width: none; }
    .about-content { border-left: none; padding-left: 0; border-top: 1px solid var(--glass-border); padding-top: 20px; }
    .amenities-list { flex-wrap: wrap; gap: 18px; }

    /* Services grid */
    .services-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Booking */
    .book-section { border-radius: 12px; margin-bottom: 50px; }
    .book-left, .book-right { padding: 40px 26px; }
    .book-title { font-size: 2.1rem; }
    .book-stats { flex-wrap: wrap; gap: 20px; }
    .field-row { flex-direction: column; gap: 18px; }
    .form-group { flex-direction: column; gap: 18px; }

    /* Footer */
    .footer { flex-direction: column; gap: 34px; text-align: center; padding: 44px 0; }
    .footer-title { font-size: 2.1rem; }
    .footer-contact ul { max-width: none; }
    .footer-social p { text-align: center; }
    .social-links { justify-content: center; }
    .nl-input { justify-content: center; }

    /* Service detail pages */
    .service-hero h1 { font-size: 2.1rem; }
    .service-intro { flex-direction: column; padding: 26px; }
    .service-intro-img { min-height: 200px; }
    .info-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; gap: 14px; }
    .feature-grid { grid-template-columns: 1fr; }
    .therapist-card-luxury { flex-direction: column; text-align: center; padding: 30px 20px; }
    .therapist-info { align-items: center; }
    .therapist-credentials { justify-content: center; }
    .therapist-meta-row { justify-content: center; gap: 14px; }
    .faq-question-btn { padding: 16px 18px; font-size: 0.92rem; }
    .faq-answer { padding: 0 18px; }
    .faq-item.active .faq-answer { padding: 0 18px 18px 18px; }
    .service-booking-card { grid-template-columns: 1fr; }
    .service-booking-info { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 30px 20px; }
    .service-booking-form-wrap { padding: 30px 20px; }
    .service-booking-form .field-row { flex-direction: column; gap: 14px; }
    .cta-banner { flex-direction: column; gap: 22px; text-align: center; padding: 36px 24px; }
    .cta-banner h3 { font-size: 1.5rem; }
}

/* ================================================================
   SMALL MOBILE  (<=480px)
   ================================================================ */
@media (max-width: 480px) {
    .ui-layer { padding: 0 14px; }
    .logo-img { height: 42px; }
    .giant-text { font-size: 8.5vw; }
    .hero-left h2 { font-size: 1.6rem; }
    .hero-left p { max-width: none; }
    .signature-block .signature { font-size: 1.5rem; }

    .about-header h2 { font-size: 1.9rem; }
    .lead-text { font-size: 1rem; }

    .section-header h2 { font-size: 1.5rem; }
    .col-header h2 { font-size: 1.2rem; }

    .book-title { font-size: 1.7rem; }
    .book-stats { gap: 14px; }
    .stat-num { font-size: 1.8rem; }

    .service-hero h1 { font-size: 1.7rem; }
    .service-intro-text h2 { font-size: 1.4rem; }
    .process-steps { grid-template-columns: 1fr; }
    .therapist-avatar-wrap { width: 130px; height: 130px; }
    .therapist-info h3 { font-size: 1.4rem; }
    .service-booking-info h3 { font-size: 1.6rem; }
    .direct-whatsapp-cta { width: 100%; box-sizing: border-box; }
    .cta-banner h3 { font-size: 1.3rem; }

    .footer-title { font-size: 1.7rem; }

    /* Prevent stat/chip overflow on very narrow phones */
    .book-stats { justify-content: space-between; }
    .stat-item { flex: 1; min-width: 0; }
    .therapist-chips { gap: 10px; }
    .chip strong { font-size: 0.76rem; }
    .chip span { font-size: 0.66rem; }
    .amenities-list { gap: 12px; }
    .amenities-list .label { font-size: 0.72rem; }
}
