/* =========================================================
   RESPONSIVE â€” Padhaion Header / Hero / Marquee / About
   Breakpoints: 1600 Â· 1280 Â· 1199 Â· 1024 Â· 991 Â· 900 Â· 820 Â· 767
                640 Â· 575 Â· 480 Â· 400 Â· 360 + landscape
   ========================================================= */

/* ---------- Ultra-wide (â‰¥ 1600px) ---------- */
@media (min-width: 1600px) {
    :root {
        --container-max: 1360px;
    }

    .hero-visual-card {
        max-width: 500px;
    }
}

/* ---------- Small desktop (â‰¤ 1280px) ---------- */
@media (max-width: 1280px) {
    :root {
        --header-h: 76px;
        --header-h-scrolled: 62px;
    }

    .header-inner {
        gap: 14px;
    }
}

/* ---------- Nav starts to crowd (â‰¤ 1199px) ---------- */
@media (max-width: 1199px) {
    .main-nav .nav-link {
        padding: 9px 8px;
        font-size: 13px;
    }

    .main-nav .nav-link::after {
        left: 8px;
        right: 8px;
    }

    .header-ctas .btn-orange {
        padding: 9px 14px;
        font-size: 13px;
    }

    .hero-visual-card {
        max-width: 400px;
    }

    .chip-1 {
        left: -4%;
    }

    .chip-2 {
        left: -5%;
    }

    .chip-3 {
        right: -5%;
    }
}

/* ---------- Tablet landscape (â‰¤ 1024px) ---------- */
@media (max-width: 1024px) {
    .main-nav>ul {
        gap: 0;
    }

    .main-nav .nav-link {
        padding: 9px 6px;
        font-size: 12.5px;
    }

    .hero-inner {
        gap: 28px;
    }

    .hero-visual-card {
        max-width: 360px;
    }

    /* Floating chips have no room left beside a narrow card */
    .chip-1,
    .chip-2,
    .chip-3,
    .chip-4 {
        display: none;
    }
}

/* ---------- Nav collapses to hamburger (â‰¤ 991px) ---------- */
@media (max-width: 991px) {
    :root {
        --header-h: 72px;
        --header-h-scrolled: 62px;
    }

    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: unset;
    }

    /* Stack: copy first, illustration below */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 44px 0 52px;
        gap: 34px;
    }

    .hero-para {
        max-width: 640px;
    }

    .hero-brandline {
        max-width: 640px;
    }

    .hero-visual {
        margin-top: 4px;
    }

    .hero-visual-card {
        max-width: 420px;
        margin-inline: auto;
    }

    /* About section stacks: image first, content below */
    .about5-container {
        grid-template-columns: 1fr;
    }

    .about5-visual {
        order: -1;
    }

    .about5-text,
    .about5-list {
        margin-left: auto;
        margin-right: auto;
    }

    .about5-float-card {
        left: 16px;
        bottom: -20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Mid tablet (â‰¤ 900px) ---------- */
@media (max-width: 900px) {
    .topbar-right .item.social span {
        display: none;
    }
}

/* ---------- Top bar tightens (â‰¤ 820px) ---------- */
@media (max-width: 820px) {
    .topbar-left span.full-label {
        display: none;
    }

    .topbar-left span.short-label {
        display: inline;
    }

    .topbar-right .item.email {
        display: none;
    }

    .topbar-sep.sep-email {
        display: none;
    }
}

/* ---------- Small tablet / large phone (â‰¤ 767px) ---------- */
@media (max-width: 767px) {

    /* Mobile header = logo + hamburger only.
       Both CTAs live inside the off-canvas drawer. */
    .header-ctas .btn-padhaion {
        display: none;
    }

    .hero-eyebrow {
        letter-spacing: 0.06em;
    }

    .hero-ctas {
        gap: 10px;
    }

    .hero-ctas .btn-padhaion {
        flex: 1 1 200px;
        justify-content: center;
    }

    .hero-visual-card {
        max-width: 400px;
    }
}

/* ---------- Phone (â‰¤ 640px) ---------- */
@media (max-width: 640px) {
    .topbar-right .item.social {
        display: none;
    }

    .topbar-sep.sep-social {
        display: none;
    }

    .hero-visual-card {
        max-width: 360px;
    }

    .mq {
        padding: 14px 0;
    }

    .mq-track {
        animation-duration: 20s;
    }

    .mq-track-reverse {
        animation-duration: 24s;
    }

    /* Narrow screens: pull the fade in so items aren't half-hidden */
    .mq-row {
        mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    }
}

/* ---------- Mobile (â‰¤ 575px) ---------- */
@media (max-width: 575px) {
    :root {
        --header-h: 64px;
        --header-h-scrolled: 58px;
    }

    .topbar {
        padding: 5px 0;
    }

    .topbar .container-xl {
        gap: 8px;
    }

    .topbar-left {
        font-size: 11.5px;
    }

    .topbar-right {
        font-size: 12px;
        gap: 6px;
    }

    .hero-inner {
        padding: 32px 0 42px;
        gap: 28px;
    }

    .hero-heading br {
        display: none;
    }

    .hero-trust {
        gap: 10px 16px;
    }

    .hero-visual-card {
        max-width: 340px;
        border-radius: 14px;
    }
}

/* ---------- Small mobile (â‰¤ 480px) ---------- */
@media (max-width: 480px) {
    .topbar .container-xl {
        justify-content: center;
    }

    .topbar-left {
        display: none;
    }

    .topbar-right {
        width: 100%;
        justify-content: center;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-ctas .btn-padhaion {
        width: 100%;
        flex: 0 0 auto;
    }

    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-visual-card {
        max-width: 100%;
    }

    .mobile-drawer {
        width: min(92%, 320px);
    }

    .mq-item {
        font-size: 13px;
        gap: 8px;
    }

    .mq-item-chip {
        padding: 7px 13px;
    }

    /* About section: floating card drops below the image on tiny screens */
    .about5-float-card {
        position: static;
        margin-top: 16px;
        max-width: 100%;
    }

    .about5-img img {
        height: 300px;
    }
}

/* ---------- Very small mobile (â‰¤ 400px) ---------- */
@media (max-width: 400px) {
    .hero-heading {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-eyebrow {
        font-size: 10.5px;
        padding: 6px 11px;
        gap: 6px;
    }

    .hero-para {
        font-size: 14px;
    }

    .mobile-nav-link {
        font-size: 15px;
        padding: 13px 6px;
    }
}

/* ---------- Tiny (â‰¤ 360px) â€” Galaxy Fold / small Androids ---------- */
@media (max-width: 360px) {
    :root {
        --gutter: 14px;
    }

    .hero-heading {
        font-size: 24px;
    }

    .brand-mark {
        height: 28px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .topbar-right {
        font-size: 11.5px;
    }
}

/* ---------- Phone landscape (short viewports) ---------- */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-inner {
        padding: 28px 0 34px;
    }

    .mobile-drawer-head {
        padding: 10px 16px;
    }

    .mobile-nav-link {
        padding: 10px 8px;
        min-height: 40px;
    }

    .mobile-sub li a {
        padding: 8px 12px;
        min-height: 38px;
    }

    .mobile-drawer-foot {
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
        gap: 8px;
    }

    .mobile-call {
        min-height: 40px;
        padding: 8px 12px;
    }

    .mobile-drawer-foot .btn-padhaion {
        min-height: 40px;
        padding: 8px 16px;
    }
}

/* ---------- Tablet landscape: keep hero two-up between 992â€“1024 ---------- */
@media (min-width: 992px) and (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* ---------- Coarse pointers: no hover-dependent dropdowns ---------- */
@media (hover: none) {
    .btn-orange:hover {
        transform: none;
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
    }
}

/* ---------- Marquee: tablet timing ---------- */
@media (max-width: 991px) {
    .mq-track {
        animation-duration: 26s;
    }

    .mq-track-reverse {
        animation-duration: 30s;
    }
}

/* ---------- Reduced motion: stop scrolling, allow manual swipe ---------- */
@media (prefers-reduced-motion: reduce) {
    .mq-track {
        animation: none;
    }

    .mq-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mq-row::-webkit-scrollbar {
        display: none;
    }
}

/* ---------- Print ---------- */
@media print {

    .topbar,
    .site-header,
    .mobile-panel,
    .hero-pattern,
    .floating-chip {
        display: none !important;
    }

    .hero {
        min-height: auto;
        background: #fff;
    }
}