/* Mobile Responsiveness Overrides */

@media (max-width: 768px) {
    /* Global Adjustments */
    :root {
        --header-h: auto;
    }

    body {
        padding-bottom: 60px;
    }

    main {
        padding: 1.5rem 1rem;
    }

    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.5rem !important; }

    /* Header & Navigation */
    header {
        height: auto;
        position: relative; /* Unstick on mobile if content is tall */
    }

    .header-inner {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        align-items: flex-start;
    }

    .logo {
        width: 100%;
        justify-content: space-between; /* If we add a menu toggle later */
    }

    nav {
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 5px; /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        background: rgba(255,255,255,0.03); /* Slight bg for touch targets */
        border-radius: 8px;
    }

    /* Hero Section */
    .hero-advanced {
        min-height: auto;
        padding: 2rem 1rem;
        aspect-ratio: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-h1 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }

    .trust-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        width: 100%; /* Full width buttons on mobile */
        justify-content: center;
    }

    div[style*="display:flex; gap:1rem"] {
        flex-direction: column;
        width: 100%;
    }

    /* Filters */
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .filter-group {
        min-width: 100%;
    }

    /* Grid & Cards */
    .grid {
        grid-template-columns: 1fr !important; /* Force single column */
        gap: 1rem;
    }

    .card-img {
        height: 180px;
    }

    /* Comparison Tables */
    .comp-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .comp-table th, .comp-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }

    .comp-img {
        width: 80px;
        height: 60px;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    .bento-item {
        min-height: 200px;
        padding: 1.5rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer-note {
        font-size: 0.75rem;
    }
}
