/* =========================================================
   MOBILE — phones & small tablets (premium.css ke baad load)
   ========================================================= */

/* Never allow sideways scrolling */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, iframe, video { max-width: 100%; }

@media (max-width: 991.98px) {
    /* Side-slide animations push content off-screen on phones -> slide up instead */
    html [data-aos="fade-left"], html [data-aos="fade-right"] { transform: translate3d(0, 30px, 0); }

    /* Big gutters overflow the container on narrow screens */
    .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.5rem; }

    .section { padding: 4.5rem 0; }
    .section-heading { margin-bottom: 2.2rem; }
}

@media (max-width: 767.98px) {
    body { font-size: 1rem; padding-bottom: 72px; }   /* room for the bottom bar */
    .container { padding-left: 18px; padding-right: 18px; }
    .section { padding: 3.5rem 0; }
    .lead-muted { font-size: 1rem; line-height: 1.7; }
    .display-title { font-size: clamp(1.8rem, 7.4vw, 2.3rem); }
    .hero-title { font-size: clamp(2.1rem, 9.5vw, 2.7rem); }

    /* Readable minimum text size (12px+) */
    .brand-line { font-size: .62rem; letter-spacing: .14em; }
    .spec-topics li, .area-chip, .small-label, .float-card small, .stat-sub, .gallery-placeholder small { font-size: .78rem; }
    .eyebrow { font-size: .74rem; letter-spacing: .18em; }
    small, .small { font-size: .85rem; }

    /* Navbar */
    .site-nav { padding: .6rem 0; }
    .brand-mark { width: 40px; height: 40px; font-size: 1.3rem; }
    .brand-name { font-size: 1.3rem; }
    .navbar-toggler { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; }
    .mobile-links li a { padding: .95rem 0; font-size: 1.05rem; }

    /* Hero: cleaner stack, nothing covering the photo */
    .hero { padding: 2.2rem 0 3.5rem; }
    .hero .btn-lg { width: 100%; justify-content: center; display: flex; align-items: center; }
    .hero-meta { gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem !important; }
    .meta-value { font-size: 1.3rem; }
    .hero-visual { padding: .5rem 0 0; max-width: 340px; }
    .hero-mini-img, .hero-sparkle, .fc-side, .orb-3 { display: none; }
    .fc-top { top: auto; bottom: -18px; right: 8px; padding: .6rem .8rem; }
    .fc-top .fc-icon { width: 32px; height: 32px; }
    .fc-bottom { left: 8px; bottom: -18px; padding: .6rem .9rem; display: none; }
    .float-card { animation: none; }
    .hero-arch { border-radius: 170px 170px 24px 24px; }
    .hero-arch::after { border-radius: 160px 160px 18px 18px; }

    .marquee-track span { font-size: 1.1rem; }

    /* Page hero (inner pages) */
    .page-hero { padding: 2.2rem 0 2.8rem; }
    .page-hero .btn { flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; }

    /* Cards */
    .spec-media { height: 170px; }
    .feature-card { padding: 1.4rem; gap: 1rem; }
    .concern-card, .principle-card, .process-step, .step-dark, .tip-card { padding: 1.5rem 1.3rem; }
    .about-collage { padding: 0 1.2rem 1.2rem 0; }
    .collage-badge { left: .5rem; top: 1rem; padding: .7rem 1rem; }
    .collage-badge strong { font-size: 1.8rem; }
    .glass-stats strong, .glass-stats i { font-size: 2.1rem; }
    .glass-stats > div { padding: 1.2rem 1rem; }
    .experience-band .btn-lg { width: 100%; }
    .visual-photo { aspect-ratio: 4 / 3; border-radius: 22px; }
    .visual-icon { width: 52px; height: 52px; font-size: 1.3rem; }
    .phi-badge { display: none; }
    .areas-card, .google-card, .review-steps { padding: 1.5rem; border-radius: 20px; }
    .location-card .map-wrap { min-height: 220px; }

    /* CTA band */
    .cta-band { padding: 2rem 1.4rem; border-radius: 22px; text-align: center; }
    .cta-band .d-flex { justify-content: center !important; }
    .cta-band .btn-lg { width: 100%; }
    .cta-band .eyebrow { justify-content: center; }

    /* Gallery */
    .gallery-item.gallery-tall { height: 230px; }
    .filter-group { justify-content: center; }
    .filter-btn { padding: .55rem 1.1rem; }
    .gallery-zoom { opacity: 1; transform: none; width: 36px; height: 36px; }

    /* FAQ */
    .faq-accordion .accordion-button { padding: 1.05rem 1.1rem; font-size: .95rem; gap: .6rem; }
    .faq-accordion .accordion-body { padding: 0 1.1rem 1.1rem; }

    /* Forms: 16px inputs stop iPhone auto-zoom; taller fields for thumbs */
    .appointment-form .form-control, .appointment-form .form-select { font-size: 16px; min-height: 50px; }
    .appointment-form .btn { width: 100%; min-height: 52px; }
    .form-card { padding: 1.5rem 1.2rem; border-radius: 22px; }

    /* Footer: bigger tap targets */
    .site-footer { padding: 3.5rem 0 1.5rem; text-align: left; }
    .footer-links li { margin-bottom: 0; }
    .footer-links a { display: inline-block; padding: .45rem 0; font-size: .95rem; }
    .footer-contact li { font-size: .95rem; }
    .footer-contact a { display: inline-block; padding: .2rem 0; }
    .social-btn { width: 44px; height: 44px; }
    .footer-hr { margin: 2rem 0 1rem; }

    /* Phone links inside text: comfortable thumb targets */
    a.meta-value, .areas-card address a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
    .footer-contact li { align-items: center; margin-bottom: .2rem; }

    /* Small uppercase labels: at least ~12.5px */
    .eyebrow, .meta-label, .spec-tag, .small-label, .contact-card small { font-size: .78rem; }
    .brand-line { font-size: .66rem; letter-spacing: .12em; }

    /* Breadcrumb + general links tap size */
    .breadcrumb-item a { display: inline-block; padding: .3rem 0; }
    .spec-link, .related-card, .local-link { min-height: 48px; }

    /* Floating round buttons replaced by the bottom bar */
    .float-actions { display: none; }
    .back-to-top { bottom: 86px; left: auto; right: 14px; width: 44px; height: 44px; }

    .mobile-cta-bar {
        display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(60, 40, 20, .1);
    }
    .mcb-item { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px; border-radius: 14px; font-weight: 600; font-size: .9rem; color: var(--ink); background: var(--cream-2); border: 1px solid var(--line); }
    .mcb-item i { font-size: 1.1rem; color: var(--gold-dark); }
    .mcb-wa { background: #e9f9ef; border-color: #bfe8cc; color: #128c4a; }
    .mcb-wa i { color: #1ebe5a; }
    .mcb-book { background: linear-gradient(135deg, #b98a4b, var(--gold-dark)); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(168, 121, 61, .35); }
    .mcb-book i { color: #fff; }
    .mcb-item:active { transform: scale(.97); }
}

@media (max-width: 380px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .mcb-item { font-size: .82rem; gap: .3rem; }
    .hero-meta > div { min-width: 45%; }
    .glass-stats { gap: .6rem; }
}

/* Landscape phones: keep the bar compact */
@media (max-width: 767.98px) and (orientation: landscape) and (max-height: 500px) {
    .mcb-item { min-height: 42px; }
    body { padding-bottom: 62px; }
}
