/* =====================================================================
   Responsive overrides — desktop → laptop → tablet → mobile
   ===================================================================== */

/* Laptop */
@media (max-width: 1199.98px) {
    .py-section { padding: 88px 0; }
    .pt-section { padding-top: 88px; }
    .pb-section { padding-bottom: 88px; }
    .hero { min-height: 84vh; }
    .cta-band { padding: 3rem; }
}

/* Tablet & below */
@media (max-width: 991.98px) {
    .py-section { padding: 66px 0; }
    .pt-section { padding-top: 66px; }
    .pb-section { padding-bottom: 66px; }
    .section-head { margin-bottom: 2.6rem; }

    /* ===== Mobile TOGGLE dropdown menu (drops down under header) ===== */
    .nav-toggle { display: flex; }
    .brand-mark { width: 42px; height: 42px; font-size: 1.35rem; }
    .navbar-brand .brand-word { font-size: 1.2rem; }
    .navbar-brand .brand-logo { max-height: 44px; max-width: 62vw; }

    /* Panel drops open under the sticky header — no horizontal slide */
    .nav-panel {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 1035;
        background: #fff;
        display: block;
        padding: 0;
        border-top: 1px solid var(--line);
        box-shadow: 0 24px 44px rgba(11,37,69,.18);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height .38s ease, opacity .28s ease, visibility .38s;
    }
    body.nav-open .nav-panel {
        max-height: calc(100vh - 66px);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        -webkit-overflow-scrolling: touch;
    }

    /* Drawer-style header + close button not used in dropdown mode */
    .nav-panel-head, .nav-close { display: none; }

    /* Menu items — clean list */
    .nav-menu { flex-direction: column; align-items: stretch; gap: .15rem; padding: .8rem .8rem .4rem; }
    .nav-menu li { border: none; }
    .nav-menu .nav-link {
        padding: .9rem 1rem; font-size: 1.02rem; font-weight: 600; color: var(--heading);
        display: flex; align-items: center; gap: .9rem; border-radius: 12px; position: relative;
        transition: all var(--transition);
    }
    .nav-menu .nav-link::after { display: none; }
    .nav-menu .nav-ico { display: grid; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--light); color: var(--primary); place-items: center; font-size: .95rem; transition: all var(--transition); }
    .nav-menu .nav-txt { flex: 1; }
    .nav-menu .nav-arrow { display: inline-block; color: #c2ccda; font-size: .8rem; transition: transform var(--transition); }
    .nav-menu .nav-link:hover, .nav-menu .nav-link:active, .nav-menu .nav-link.active { background: var(--light); color: var(--primary); }
    .nav-menu .nav-link.active { background: linear-gradient(90deg, rgba(201,162,39,.14), rgba(201,162,39,.02)); box-shadow: inset 3px 0 0 var(--secondary); }
    .nav-menu .nav-link.active .nav-ico, .nav-menu .nav-link:hover .nav-ico { background: var(--grad-gold); color: var(--primary); }
    .nav-menu .nav-link:hover .nav-arrow { transform: translateX(4px); color: var(--secondary); }

    .nav-actions { flex-direction: column; align-items: stretch; gap: .6rem; padding: .6rem 1rem 1rem; }
    .nav-actions .btn { width: 100%; text-align: center; justify-content: center; padding: .9rem; }
    .nav-actions .nav-wa { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: #25D366; color: #fff; border-color: #25D366; box-shadow: 0 8px 20px rgba(37,211,102,.28); }
    .nav-actions .nav-wa:hover { background: #1eb457; color: #fff; }

    .nav-panel-contact { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; padding: 1rem 1.1rem; border-top: 1px solid var(--line); background: var(--light); }
    .nav-panel-contact a, .nav-panel-contact .nav-addr { color: var(--heading); font-size: .88rem; font-weight: 500; display: flex; align-items: center; gap: .55rem; }
    .nav-panel-contact i { color: #fff; background: var(--grad-navy); width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; font-size: .75rem; flex: 0 0 auto; }
    .nav-panel-contact .nav-addr { flex-basis: 100%; }
    .nav-panel-contact .nav-addr i { background: var(--grad-gold); color: var(--primary); }

    .nav-panel-social { display: flex; gap: .55rem; padding: 0 1.1rem 1.1rem; background: var(--light); }
    .nav-panel-social a { width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--primary); display: grid; place-items: center; font-size: .95rem; transition: all var(--transition); }
    .nav-panel-social a:hover { background: var(--grad-gold); color: var(--primary); border-color: transparent; transform: translateY(-3px); }

    /* Backdrop dims the page below the dropdown (sits under the sticky header) */
    .nav-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1020; background: rgba(7,17,34,.45); opacity: 0; transition: opacity .3s ease; }
    body.nav-open .nav-backdrop { display: block !important; opacity: 1; }

    /* ===== Mobile sticky bottom app bar ===== */
    body { padding-bottom: 68px; }               /* room for the fixed bar */
    .float-whatsapp, .float-call, .back-to-top { display: none !important; }

    .mobile-bar {
        display: flex; align-items: flex-end; justify-content: space-around;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045;
        height: 66px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,.96);
        backdrop-filter: saturate(180%) blur(12px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 30px rgba(11,37,69,.12);
    }
    .mbar-item {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; padding: 8px 2px; color: #8896ac; font-size: .66rem; font-weight: 600;
        letter-spacing: .2px; transition: color var(--transition); min-width: 0;
    }
    .mbar-item i { font-size: 1.15rem; }
    .mbar-item span { white-space: nowrap; }
    .mbar-item.active { color: var(--primary); }
    .mbar-item.active i { color: var(--secondary); }
    .mbar-wa i { color: #25D366; }

    /* Raised center action button (FAB) */
    .mbar-fab {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
        color: var(--primary); font-size: .66rem; font-weight: 700; position: relative;
        transform: translateY(-16px);
    }
    .mbar-fab-btn {
        width: 58px; height: 58px; border-radius: 50%;
        background: var(--grad-gold); color: var(--primary);
        display: grid; place-items: center; font-size: 1.4rem;
        box-shadow: 0 10px 24px rgba(201,162,39,.5); border: 4px solid #fff;
        transition: transform var(--transition);
    }
    .mbar-fab:active .mbar-fab-btn { transform: scale(.94); }
    .mbar-fab-label { line-height: 1; }
    body.nav-open .mobile-bar { opacity: 0; pointer-events: none; }

    .hero { min-height: auto; }
    .hero-inner { padding: 96px 0; }
    .hero h1 { max-width: 100%; }
    .hero-scroll { display: none; }

    /* Slider on tablet */
    .hero-slider, .hero-track { min-height: 0; height: 78vh; }
    .hero-slide .hero-inner { padding: 90px 0 130px; }
    .hero-slide h1 { max-width: 100%; }
    .hero-arrow { width: 46px; height: 46px; font-size: 1rem; }
    .hero-prev { left: 12px; } .hero-next { right: 12px; }
    .hero-dots { bottom: 74px; }
    .hero-trust-bar { display: none; }

    .stats-section { margin-top: 40px; }
    .stat-item { padding: .8rem .4rem; }
    .stat-item .stat-number { font-size: 2.3rem; }

    .about-experience { position: static; display: inline-block; margin-top: 1.2rem; }
    .about-img-wrap { margin-bottom: 2.8rem; }
    .about-img-wrap::before { display: none; }

    .process-line { display: none; }
    .process-step { margin-bottom: 2rem; }

    .cta-band { padding: 2.6rem; text-align: center; }
    .cta-band .text-lg-end { text-align: center !important; margin-top: 1.6rem; }

    .form-card { padding: 2rem; }
    .page-banner { padding: 120px 0 80px; }

    /* Footer */
    .footer-strip { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; padding: 28px 0; margin-bottom: 34px; }
    .footer-bottom-grid { justify-content: center; text-align: center; }
    .dev-credit { margin-left: 0; }
}

/* Mobile */
@media (max-width: 767.98px) {
    .py-section { padding: 56px 0; }
    .pt-section { padding-top: 56px; }
    .pb-section { padding-bottom: 56px; }
    .section-head { margin-bottom: 2.2rem; }

    .hero-inner { padding: 76px 0; }
    .hero p.lead { font-size: 1.06rem; }
    .hero-buttons .btn { width: 100%; margin: .4rem 0; }
    .hero-trust { gap: .9rem 1.4rem; font-size: .88rem; }

    /* Slider on phones */
    .hero-slider, .hero-track { height: auto; min-height: 82vh; }
    .hero-slide .hero-inner { padding: 60px 0 110px; }
    .hero-slide h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: 1rem; }
    .hero-slide p.lead { font-size: 1rem; margin-bottom: 1.6rem; }
    .hero-slide .hero-buttons { display: flex; flex-direction: column; gap: .55rem; align-items: stretch; }
    .hero-slide .hero-buttons .btn { width: 100%; margin: 0; }
    .hero-arrow { display: none; }
    .hero-dots { bottom: 40px; }

    .stat-number { font-size: 2.5rem; }
    .stats-card { padding: 1.8rem .6rem; }

    /* Footer CTA — stacked & centered */
    .footer-cta { flex-direction: column; text-align: center; padding: 2rem 1.4rem; margin-bottom: 2.2rem; }
    .footer-cta-actions { width: 100%; flex-direction: column; }
    .footer-cta-actions .btn { width: 100%; }

    /* Trust strip: 2 per row, centered tiles */
    .footer-strip { grid-template-columns: repeat(2, 1fr); gap: 1rem .8rem; padding: 22px 0; margin-bottom: 24px; }
    .footer-strip-item { flex-direction: column; align-items: center; text-align: center; gap: .55rem; font-size: .82rem; }
    .footer-strip-item .ic { width: 46px; height: 46px; font-size: 1.1rem; }

    /* Footer columns: two-column grid on mobile (brand spans full width) */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.4rem; }
    .footer-grid > .footer-col-brand { grid-column: 1 / -1; }
    .footer-title { margin-bottom: 1rem; font-size: 1rem; }
    .footer-links a { font-size: .9rem; }

    .cta-band { padding: 2.1rem 1.5rem; }
    .cta-band::before { font-size: 8rem; }
    .cta-band .btn, .cta-full .btn { width: 100%; margin: .4rem 0; }

    .form-card, .job-card { padding: 1.7rem; }
    .testimonial-card { padding: 1.7rem; }

    /* Compact 2-up service cards on phones */
    .ag.m2 .service-card { padding: 1.2rem 1rem; text-align: center; }
    .ag.m2 .service-icon { width: 54px; height: 54px; font-size: 1.3rem; margin: 0 auto 1rem; border-radius: 14px; }
    .ag.m2 .service-card h4 { font-size: 1.02rem; margin-bottom: .5rem; }
    .ag.m2 .service-card p { font-size: .84rem; margin-bottom: .8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .ag.m2 .service-card .service-link { font-size: .82rem; }

    /* Industry tiles a touch shorter on phones */
    .ag.m2 .industry-card { height: 172px; }
    .ag.m2 .industry-body { padding: 1rem; }
    .ag.m2 .industry-body h5 { font-size: 1rem; }
    .ag.m2 .industry-body p, .ag.m2 .industry-body .go { display: none; }

    /* Process steps compact 2-up */
    .ag.m2 .process-num { width: 66px; height: 66px; font-size: 1.4rem; margin-bottom: .9rem; }
    .ag.m2 .process-step h5 { font-size: 1rem; }
    .ag.m2 .process-step p { font-size: .85rem; }

    .float-whatsapp { width: 54px; height: 54px; font-size: 1.35rem; right: 18px; bottom: 18px; }
    .float-call { right: 18px; bottom: 82px; width: 54px; height: 54px; font-size: 1.2rem; }
    .back-to-top { right: 18px; bottom: 18px; }

    .job-card .text-md-end { text-align: left !important; margin-top: 1rem; }
    .job-card .btn { width: 100%; }

    .logo-track { gap: 3rem; }
}

/* Small mobile */
@media (max-width: 480px) {
    .section-title { font-size: 1.65rem; }
    .stat-number { font-size: 2.2rem; }
    .navbar-brand .brand-text { font-size: 1.3rem; }
    .navbar-brand .brand-logo { max-height: 46px; }
    .hero-label { font-size: .7rem; letter-spacing: 2px; padding: .5rem 1rem; }
    .about-experience .num { font-size: 2rem; }
    .cta-band { padding: 1.8rem 1.2rem; }
}
