/* ==========================================================================
   Pure Safety Hub - responsive.css
   ========================================================================== */

/* ---------- Tablet (<= 991px) ---------- */
@media (max-width: 991px) {

    .container { padding: 0 20px; }

    .site-header {
        padding: 14px 0;
    }

    /* Mobile menu */
    .toggle-menu { display: inline-block; order: -1; }

    .site-mobile-logo {
        display: inline-flex;
        margin-left: auto;
        margin-right: auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: auto;
    }
    .site-mobile-logo img { height: 34px; }

    .header-inner { position: relative; justify-content: flex-start; min-height: 44px; }

    .site-nav {
        position: fixed;
        top: 0; left: -100%;
        width: 300px; max-width: 85%;
        height: 100vh;
        background: var(--surface);
        padding: 80px 24px 24px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        box-shadow: 14px 0 40px rgba(11, 46, 63, 0.18);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 9999;
    }
    .sidebar-open .site-nav { left: 0; }

    .site-nav .site-logo {
        display: block;
        margin: 0 0 24px;
        order: -1;
    }
    .site-nav .site-logo img { height: 40px; }

    .close-menu {
        display: block;
        position: absolute;
        top: 18px; right: 18px;
        padding: 6px 12px;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 13px;
        color: var(--text-muted);
        cursor: pointer;
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        background: var(--surface);
    }
    .close-menu:hover { color: var(--accent-600); border-color: var(--accent-200); }

    .menu-wrapper { flex-direction: column; align-items: stretch; width: 100%; }

    .site-main-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        margin-bottom: 20px;
    }
    .site-main-menu li > a {
        display: block;
        padding: 12px 14px;
        font-size: 15px;
    }

    .site-header .site-nav > .btn,
    .site-header .site-nav > .ps-btn { width: 100%; margin-left: 0; }

    .mask-overlay {
        position: fixed; inset: 0;
        background: rgba(11, 46, 63, 0.4);
        z-index: 9998;
    }

    /* Hero */
    .hero-section { padding: 120px 0 60px; }
    .hero-title { font-size: 46px; }
    .hero-subtitle { font-size: 16.5px; }
    .hero-visual { margin-top: 44px; }

    /* Sections */
    .section-head { margin-bottom: 40px; }
    .section-title { font-size: 32px; }
    .section-lead { font-size: 15.5px; }

    .hiw-section { padding: 70px 0; }
    .features-section { padding: 70px 0; }
    .cta-section { padding: 60px 0 90px; }

    .step-card,
    .step-card--flip {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "number body"
            "visual visual";
        gap: 22px;
    }
    .step-card-number { flex-direction: column; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        margin-bottom: 48px;
    }
    .levels-panel { padding: 32px 26px; }
    .levels-panel-grid { grid-template-columns: 1fr; gap: 14px; }

    .cta-card { padding: 56px 32px; }
    .cta-card-title { font-size: 32px; }
    .cta-card-text { font-size: 15.5px; }

    /* Footer */
    .footer { padding: 48px 0 0; }
    .footer-wrapper { gap: 28px; }

    /* Inner pages */
    .inner-page { padding: 110px 0 60px; }
    .inner-page .title, .remove-page-content .title { font-size: 34px; }
    .terms-section { padding: 110px 0 60px; }
}

/* ---------- Mobile landscape (<= 767px) ---------- */
@media (max-width: 767px) {

    .hero-section { padding: 108px 0 48px; }
    .hero-title { font-size: 38px; line-height: 1.1; }
    .hero-subtitle { font-size: 15.5px; }
    .hero-eyebrow { font-size: 12px; padding: 6px 12px; }
    .hero-trust { gap: 12px 20px; padding-top: 18px; }

    .step-card,
    .step-card--flip {
        padding: 24px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "number"
            "body"
            "visual";
        gap: 16px;
    }
    .step-card-number { flex-direction: row; align-items: center; gap: 12px; }
    .step-card-number-inner { min-width: 54px; font-size: 20px; padding: 8px 12px; border-radius: 14px; }
    .step-card-title { font-size: 20px; }
    .step-card-text { font-size: 15px; }

    .feature-card { padding: 24px 22px; }
    .feature-card-title { font-size: 17px; }

    .levels-panel { padding: 28px 22px; }
    .levels-panel-title { font-size: 22px; }

    .cta-card { padding: 48px 26px; }
    .cta-card-title { font-size: 28px; }

    .contact-card { padding: 26px; }

    /* Footer */
    .footer-wrapper { flex-direction: column; align-items: flex-start; }
    .footer-nav-wrapper { gap: 16px 24px; }
}

/* ---------- Mobile portrait (<= 575px) ---------- */
@media (max-width: 575px) {

    .container { padding: 0 16px; }

    .hero-section { padding: 96px 0 40px; }
    .hero-title { font-size: 32px; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-cta .ps-btn,
    .hero-cta .btn,
    .hero-cta .btn_main { width: 100%; }
    .hero-trust { flex-direction: column; align-items: flex-start; gap: 10px; }

    .section-title { font-size: 26px; }
    .section-head { margin-bottom: 32px; }

    .hiw-section { padding: 52px 0; }
    .features-section { padding: 52px 0; }
    .cta-section { padding: 44px 0 72px; }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 36px;
    }

    .step-card { padding: 20px; }
    .step-card-number-chip { font-size: 10px; }

    .cta-card { padding: 40px 20px; border-radius: var(--radius-md); }
    .cta-card-title { font-size: 24px; }
    .cta-card-text { font-size: 14.5px; }
    .cta-card-actions .btn, .cta-card-actions .ps-btn, .cta-card-actions .btn_main { width: 100%; }

    /* Inner pages */
    .inner-page { padding: 96px 0 48px; }
    .inner-page .title, .remove-page-content .title { font-size: 28px; }
    .terms-privacy h2 { font-size: 22px; }
    .terms-privacy h3 { font-size: 16.5px; }
}

/* ---------- Small mobile (<= 480px) ---------- */
@media (max-width: 480px) {

    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }

    .section-title { font-size: 23px; }

    .levels-panel { padding: 22px 18px; }
    .levels-panel-title { font-size: 20px; }

    .contact-card { padding: 22px; }
    .contact-card__subtitle { font-size: 19px; }

    .step-card-title { font-size: 18.5px; }
}
