/*=================================================
  Quick Window Search Hub — responsive
==================================================*/

/* Wide tablet / small laptop */
@media (max-width: 1199px) {
    .container,
    .header-container,
    .contact-section__container { max-width: 960px; }

    .qws-hero__title { font-size: 5rem; }
    .qws-section-title,
    .qws-cta__title,
    .qws-inner__title { font-size: 4rem; }

    .qws-step { padding: 32px; gap: 32px; }
}

/* Tablet — collapse nav into hamburger, stack hero */
@media (max-width: 991px) {
    .container,
    .header-container,
    .contact-section__container { max-width: 720px; padding: 0 20px; }

    .toggle-menu { display: flex; }

    .site-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--qws-bg);
        border-left: 1px solid var(--qws-border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 80px 28px 28px;
        z-index: 9998;
        transition: right 0.35s ease;
        overflow-y: auto;
    }

    .sidebar-open .site-nav {
        right: 0;
    }

    .site-nav .close-menu {
        display: block;
        position: absolute;
        top: 22px;
        right: 24px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: var(--qws-text-muted);
        cursor: pointer;
        text-transform: uppercase;
    }

    .site-nav .close-menu:hover { color: var(--qws-cyan); }

    .site-main-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-main-menu li { border-bottom: 1px solid var(--qws-border-soft); }
    .site-main-menu li a {
        display: block;
        padding: 14px 0;
        font-size: 15px;
        color: var(--qws-text);
    }
    .site-main-menu li a::after { display: none; }

    .site-nav > .btn,
    .site-nav .menu-wrapper + .btn {
        margin: 24px 0 0;
        width: 100%;
        padding: 14px 24px;
    }

    .mask-overlay {
        position: fixed;
        inset: 0;
        background: rgba(13, 21, 37, 0.65);
        backdrop-filter: blur(4px);
        z-index: 9997;
    }

    .qws-hero { padding: 140px 0 80px; }
    .qws-hero__row { flex-direction: column; }
    .qws-hero__row > [class*="col-"] { width: 100%; max-width: 100%; flex: 0 0 100%; }
    .qws-hero__title { font-size: 4.4rem; }
    .qws-hero__art { margin: 40px auto 0; max-width: 560px; }

    .qws-section-title,
    .qws-cta__title,
    .qws-inner__title { font-size: 3.4rem; }

    .qws-section-head { margin-bottom: 48px; }

    .qws-step,
    .qws-step:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px;
    }

    .qws-step:nth-child(even) .qws-step__art { order: 0; }

    .qws-how,
    .qws-features { padding: 80px 0; }

    .qws-cta { padding: 40px 0 100px; }
    .qws-cta__panel { padding: 48px 28px; }

    .qws-inner { padding: 140px 0 80px; }
    .qws-inner--legal { padding: 140px 0 80px; }
    .terms-privacy { padding: 28px 22px; }
}

/* Mobile landscape — single-column features */
@media (max-width: 767px) {
    .container,
    .header-container,
    .contact-section__container { max-width: 100%; padding: 0 18px; }

    .qws-hero { padding: 130px 0 70px; }
    .qws-hero__title { font-size: 3.6rem; }
    .qws-hero__subtitle { font-size: 1.55rem; }

    .qws-hero__cta { gap: 12px; }
    .qws-hero__cta .qws-btn,
    .qws-hero__cta .btn,
    .qws-hero__cta .btn_main { width: 100%; }

    .qws-hero__meta { gap: 18px; }
    .qws-hero__meta-divider { display: none; }

    .qws-section-title,
    .qws-cta__title,
    .qws-inner__title { font-size: 3rem; }

    .qws-step { padding: 22px; }
    .qws-step__head { flex-wrap: wrap; gap: 12px; }
    .qws-step__num { font-size: 1.8rem; padding: 4px 10px; }
    .qws-step__title { font-size: 2rem; }
    .qws-step__text { font-size: 1.5rem; }

    .qws-feature-card { padding: 24px 22px; }

    .qws-cta__panel { padding: 40px 22px; }
    .qws-cta__row { flex-direction: column; gap: 14px; }
    .qws-cta__row .qws-btn,
    .qws-cta__row .btn,
    .qws-cta__row .btn_main { width: 100%; }
    .qws-cta__pill { width: 100%; justify-content: center; }

    .qws-cta__bracket { width: 18px; height: 18px; }

    .footer { padding: 48px 0 0; }
    .footer-wrapper { flex-direction: column; align-items: flex-start; gap: 28px; }
    .footer-menu { min-width: 0; width: 100%; }
    .footer-nav-wrapper { gap: 10px 22px; }

    .qws-inner__title { font-size: 2.8rem; }
    .qws-inner__text { font-size: 1.5rem; }

    .modal-dialog { margin: 24px 16px; }
    .modal-body { padding: 8px 22px 16px; }
    .modal-body p { font-size: 14px; }
}

/* Mobile portrait */
@media (max-width: 575px) {
    .qws-hero { padding: 120px 0 60px; }
    .qws-hero__title { font-size: 3.2rem; }

    .qws-section-title,
    .qws-cta__title,
    .qws-inner__title { font-size: 2.6rem; }

    .qws-section-head { margin-bottom: 36px; }

    .qws-eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 14px; }

    .qws-step { padding: 20px; border-radius: var(--qws-radius); }
    .qws-step__num { font-size: 1.6rem; }

    .qws-feature-card { padding: 22px 20px; }
    .qws-feature-card__icon { width: 56px; height: 56px; margin-bottom: 18px; }
    .qws-feature-card__title { font-size: 1.7rem; }

    .qws-cta__panel { padding: 36px 20px; border-radius: var(--qws-radius); }

    .qws-contact-card { padding: 26px 22px; }

    .terms-privacy { padding: 24px 18px; font-size: 1.45rem; }

    .return-to-top { width: 40px; height: 40px; right: 16px; bottom: 16px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .container,
    .header-container,
    .contact-section__container { padding: 0 16px; }

    .qws-hero__title { font-size: 2.8rem; }
    .qws-section-title,
    .qws-cta__title,
    .qws-inner__title { font-size: 2.4rem; }

    .qws-hero__meta { gap: 14px; flex-direction: column; align-items: flex-start; }

    .site-mobile-logo img,
    .site-logo img,
    .footer-logo img { height: 30px; }

    .btn,
    .btn_main,
    .qws-btn {
        padding: 12px 22px;
        font-size: 13px;
    }

    .qws-btn--lg { padding: 14px 26px; font-size: 14px; }
}
