/**
 * ============================================================================
 * WebsiteIndexer.io - Responsive & Media Query Breakpoints
 * High-End Mobile & Tablet Adaptation
 * ============================================================================
 */

/* Laptops & Tablets Landscape (max-width: 1080px) */
@media (max-width: 1080px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .pricing-card.is-popular {
        transform: none;
    }
    
    .pricing-card.is-popular:hover {
        transform: translateY(-4px);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .roi-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .trademark-text {
        white-space: normal;
    }
}

/* Tablets Portrait (max-width: 768px) */
@media (max-width: 768px) {
    .desktop-nav, .header-actions .btn-nav-ghost, .header-actions .btn-glow-primary {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }


    .hero-section {
        padding: 50px 0 40px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn-glow-primary,
    .hero-cta-group .btn-ghost {
        width: 100%;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .proof-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-newsletter {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-conversion-bar {
        display: none; /* Keep mobile clean from fixed obstruction */
    }


    .roi-card {
        padding: 28px 20px;
    }

    .simulator-body {
        padding: 16px;
    }

    .telemetry-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .result-metric-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .result-metric:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(5, 150, 105, 0.2);
        padding-bottom: 6px;
    }

    .bottom-inner {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom-spacer {
        display: none;
    }

    .footer-bottom-right {
        justify-content: center;
    }
}

/* Mobile Drawer Overlay */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.active {
    visibility: visible;
    opacity: 1;
}

.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

.drawer-content {
    position: relative;
    width: 82%;
    max-width: 340px;
    height: 100%;
    background: #ffffff;
    border-left: 1px solid var(--border-subtle);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

.mobile-drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: #0f172a;
}

.drawer-close {
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.drawer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.drawer-link {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    padding: 6px 0;
}

.drawer-link:hover, .drawer-link.active {
    color: var(--accent-primary);
}

.drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.btn-drawer-secondary {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9375rem;
}
