/* =============================================================
   AIRE INDUSTRIES — RESPONSIVE.CSS
   Comprehensive mobile-first media query overrides.
   Breakpoints: xs(<576) | sm(≥576) | md(≥768) | lg(≥992) | xl(≥1200)
   ============================================================= */

/* ----------------------------------------------------------------
   LARGE DESKTOP+ (max-width: 1399px)
   ---------------------------------------------------------------- */
@media (max-width: 1399px) {
    .main-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .pt-130 {
        padding-top: 80px !important;
    }
}

/* ----------------------------------------------------------------
   TABLETS / SMALL LAPTOPS (max-width: 1199px)
   ---------------------------------------------------------------- */
@media (max-width: 1199px) {

    /* Hide right sidebar on xl- screens */
    .col-xl-3.d-none.d-xl-block {
        display: none !important;
    }

    /* Center feed takes full remaining width */
    .center-feed {
        padding: 24px 20px;
        padding-bottom: 80px;
    }

    .pt-130 {
        padding-top: 60px !important;
    }

    /* Footer 3-col collapses */
    .site-footer .row.g-0>div {
        border-right: none !important;
        border-left: none !important;
    }

    /* Solution card image */
    .card-img-bg {
        width: 55%;
    }

    .card-content {
        width: 90%;
    }
}

/* ----------------------------------------------------------------
   TABLETS (max-width: 991px)
   ---------------------------------------------------------------- */
@media (max-width: 991px) {

    /* Layout */
    .main-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .center-feed {
        box-shadow: none;
        padding: 20px 16px;
        padding-bottom: 60px;
        border-radius: 0;
    }

    /* Left sidebar hidden on tablet — shown in offcanvas only */
    .border-right1px {
        border-right: none !important;
        padding-bottom: 0;
    }

    .border-left1px {
        border-left: none !important;
        padding-bottom: 0;
    }

    /* Disable sticky sidebar */
    .sticky-sidebar {
        position: static !important;
        max-height: none !important;
        overflow-y: visible !important;
        margin-bottom: 20px;
    }

    /* Section headings */
    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.9375rem !important;
    }

    /* Feature icon grid */
    .feature-icon-item {
        padding: 12px;
    }

    /* Footer */
    .pt-130 {
        padding-top: 48px !important;
    }

    .site-footer .col-lg-3,
    .site-footer .col-lg-6,
    .site-footer .bg-footer-darker {
        width: 100%;
        border: none !important;
        background-color: #0f0f0f !important;
    }

    /* Footer left column: left-align on mobile */
    .site-footer .col-lg-3:first-child,
    .site-footer .footer-contact-block {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .site-footer .col-lg-3:first-child p,
    .site-footer .col-lg-3:first-child h6,
    .site-footer .col-lg-3:first-child div,
    .site-footer .col-lg-3:first-child span {
        text-align: left !important;
    }

    .site-footer .brand-logo {
        justify-content: flex-start !important;
        margin-left: 0 !important;
    }

    .site-footer .footer-contact-block .d-flex {
        justify-content: flex-start !important;
    }

    /* Solution card */
    .solution-card {
        min-height: 280px;
    }

    .card-img-bg {
        width: 50%;
    }

    /* Header col-3 actions hidden below xl */
    .col-6.col-lg-3.d-none.d-xl-block {
        display: none !important;
    }
}

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

    /* ── Header ──────────────────────────────────────── */
    .site-header {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* ── Layout ──────────────────────────────────────── */
    .main-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .center-feed {
        padding: 16px 12px;
        padding-bottom: 48px;
    }

    /* ── Typography ─────────────────────────────────── */
    h1,
    .h1 {
        font-size: clamp(1.6rem, 5vw, 2.5rem) !important;
    }

    h2,
    .h2 {
        font-size: clamp(1.3rem, 4.5vw, 2rem) !important;
    }

    h3,
    .h3 {
        font-size: clamp(1.15rem, 4vw, 1.5rem) !important;
    }

    h4,
    .h4 {
        font-size: clamp(1rem, 3.5vw, 1.25rem) !important;
    }

    .section-title,
    .title-2 {
        font-size: 1.35rem !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
    }

    /* ── Solution Card — Stacked Mobile Layout ────── */
    .solution-card {
        flex-direction: column;
        min-height: auto;
    }

    .card-img-bg {
        position: relative;
        width: 100%;
        height: 220px;
        right: auto;
        left: 0;
        top: 0;
        object-fit: cover;
    }

    .card-gradient-overlay {
        background: linear-gradient(0deg,
                rgba(255, 255, 255, 1) 10%,
                rgba(255, 255, 255, 0.95) 30%,
                rgba(255, 255, 255, 0) 100%);
    }

    .card-content {
        width: 100%;
        padding: 24px 20px;
        margin-top: -100px;
    }

    .card-title {
        font-size: 1.1rem !important;
    }

    /* ── Feature Icon Grid ──────────────────────────── */
    .feature-icon-item {
        text-align: center;
    }

    .feature-icon-wrapper {
        font-size: 28px;
    }

    /* ── Featured Card ──────────────────────────────── */
    .featured-card {
        margin-bottom: 1.5rem;
    }

    .featured-img img {
        max-height: 200px;
    }

    /* ── Footer ─────────────────────────────────────── */
    .pt-130 {
        padding-top: 40px !important;
    }

    .site-footer .row.g-0 {
        flex-direction: column;
    }

    .site-footer .row.g-0>div,
    .site-footer .bg-footer-darker,
    .site-footer .bg-footer-black {
        width: 100% !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        background-color: #0f0f0f !important;
    }

    .site-footer .row.g-0>div:last-child {
        border-bottom: none !important;
    }

    .payment-badges-wrap img {
        max-width: 100%;
        height: auto;
    }

    /* ── Footer Newsletter ──────────────────────────── */
    .footer-newsletter-wrap {
        padding: 24px 20px;
    }

    /* ── Offcanvas / Mobile Menu ────────────────────── */
    .offcanvas {
        width: min(85vw, 340px) !important;
    }

    /* ── Utility spacing ────────────────────────────── */
    .py-2-5 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* ── Row gutters tighten ────────────────────────── */
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    /* ── Btn-action full width on mobile ────────────── */
    .btn-action {
        padding: 12px 16px;
        font-size: 11px;
    }

    /* ── About / Content sections spacing ────────────── */
    .content-section {
        padding-top: 0;
        margin-bottom: 2rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* ── Newsletter input field ─────────────────────── */
    .newsletter-input-field {
        font-size: 14px;
        padding-right: 3rem;
    }

    /* ── Social pill buttons ─────────────────────────── */
    .footer-social-pill {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* ── App store badge images ──────────────────────── */
    .d-flex.align-items-center a img {
        max-width: 110px;
        height: auto;
    }
}

/* ----------------------------------------------------------------
   SMALL PHONES (max-width: 575px)
   ---------------------------------------------------------------- */
@media (max-width: 575px) {

    /* ── Layout ──────────────────────────────────────── */
    .main-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .center-feed {
        padding: 12px 8px;
        padding-bottom: 48px;
    }

    /* ── Typography extreme small ───────────────────── */
    .section-title,
    .title-2 {
        font-size: 1.2rem !important;
        letter-spacing: -0.2px;
    }

    /* ── Card ───────────────────────────────────────── */
    .card-content {
        padding: 20px 16px;
        margin-top: -80px;
    }

    .card-img-bg {
        height: 190px;
    }

    /* ── Feature icon grid — full width on xs ────────── */
    .feature-icon-item h6 {
        font-size: 13px;
    }

    .feature-icon-item p {
        font-size: 12px;
    }

    /* ── Solution card grid forces single column ─────── */
    .row.g-4>.col-md-6 {
        width: 100% !important;
    }

    /* ── Footer cols ─────────────────────────────────── */
    .site-footer .col-6.col-md-3 {
        width: 50% !important;
    }

    /* ── Menu item text truncation on very small screens  */
    .menu-item .text-box small {
        display: none;
    }

    /* ── Button group in offcanvas ───────────────────── */
    .offcanvas .d-flex.gap-2 a {
        font-size: 13px;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    /* ── Swiper featured card image ──────────────────── */
    .featured-img img,
    .featured-card img {
        max-height: 180px;
    }
}

/* =============================================================
   MOBILE FLOATING BOTTOM DOCK / ACTION BAR
   ============================================================= */
.mobile-bottom-dock {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 380px;
    z-index: 1040;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-dock-inner {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    min-width: 58px;
    position: relative;
}

.mobile-dock-item:hover,
.mobile-dock-item:focus {
    color: var(--color-primary, #0066cc);
}

.mobile-dock-item.active {
    color: var(--color-primary, #0066cc);
    background: rgba(0, 102, 204, 0.08);
}

.mobile-dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: inherit;
}

.mobile-dock-icon svg {
    transition: transform 0.2s ease;
}

.mobile-dock-item:active .mobile-dock-icon svg {
    transform: scale(0.88);
}

.mobile-dock-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.2px;
    color: inherit;
}

.mobile-dock-icon .header-count-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    background-color: var(--color-primary, #0066cc);
    color: #fff;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 102, 204, 0.35);
}

@media (max-width: 1199.98px) {
    body {
        padding-bottom: 72px;
    }
}

/* ----------------------------------------------------------------
   PRINT SAFETY — hide decorative/nav elements
   ---------------------------------------------------------------- */
@media print {

    .site-header,
    .site-footer,
    .offcanvas,
    .sidebar-menu,
    .sticky-sidebar,
    .featured-card,
    .mobile-bottom-dock {
        display: none !important;
    }

    .center-feed {
        width: 100% !important;
        box-shadow: none !important;
        padding: 0 !important;
        padding-bottom: 48px !important;
    }
}