/* ========================================
   AsterFund - Responsive Breakpoints
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 2.75rem;
        --text-5xl: 2.25rem;
        --text-4xl: 1.875rem;
    }

    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }

    .hero__stats { grid-template-columns: repeat(2, 1fr); }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    .footer__brand {
        grid-column: span 2;
        padding-right: 0;
    }

    .process { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

    .layout-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }

    .article-list { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .partner-logos { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --text-6xl: 2.25rem;
        --text-5xl: 1.875rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.375rem;
        --header-height: 64px;
    }

    .container { padding: 0 var(--space-4); }

    /* Mobile navigation */
    .mobile-toggle { display: flex; }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-body);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: var(--z-overlay);
    }

    .nav.is-open {
        transform: translateX(0);
    }

    .nav__link {
        padding: 12px 16px;
        font-size: var(--text-base);
    }

    .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-surface);
        border-radius: var(--radius-md);
        margin-top: var(--space-1);
        display: none;
    }

    .nav__item.is-open .nav__dropdown {
        display: block;
    }

    .header__actions .btn {
        display: none;
    }

    /* Hero */
    .hero {
        padding: calc(var(--space-16) + var(--header-height)) 0 var(--space-16);
    }

    .hero__title { font-size: var(--text-4xl); }
    .hero__desc  { font-size: var(--text-base); }
    .hero__stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

    /* Grids */
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .article-list { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .partner-logos { grid-template-columns: repeat(2, 1fr); }

    .fund-card__metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Section */
    .section {
        padding: var(--space-12) 0;
    }

    .section__header {
        margin-bottom: var(--space-8);
    }

    .section__title {
        font-size: var(--text-3xl);
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .footer__brand {
        grid-column: span 1;
    }
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Page header */
    .page-header {
        padding: var(--space-8) 0;
    }
    .page-header__title {
        font-size: var(--text-3xl);
    }

    /* CTA */
    .cta-section { padding: var(--space-12) 0; }
    .cta-section__title { font-size: var(--text-3xl); }
    .cta-section__actions { flex-direction: column; align-items: center; }

    /* Hero actions */
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }

    /* Subscribe */
    .subscribe-form { flex-direction: column; }

    /* Cookie banner */
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    /* Table */
    .table-wrap { font-size: var(--text-xs); }

    /* Filter */
    .filter-bar { overflow-x: auto; flex-wrap: nowrap; }
    .filter-btn { flex-shrink: 0; }
}

/* Small phones */
@media (max-width: 380px) {
    :root {
        --text-4xl: 1.375rem;
        --text-3xl: 1.25rem;
    }

    .hero__stats { grid-template-columns: 1fr 1fr; }
    .fund-card__metrics { grid-template-columns: 1fr; }
}

/* Print */
@media print {
    .header, .footer, .cookie-banner, .toast, .mobile-toggle { display: none !important; }
    .main { padding-top: 0; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}
