/* ============================================
   FORPROCER - Responsive CSS
   "Liquid Glass" Mobile-first Media Queries
   ============================================ */

/* --- Base mobile (< 576px) --- */

/* Hero titles smaller on mobile */
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }

.hero__title { font-size: var(--text-3xl); }
.hero--compact { min-height: 280px; padding: var(--space-2xl) 0; }

/* Newsletter form stacks on mobile */
.newsletter-form__row {
    flex-direction: column;
}

/* Cookie banner stacks */
.cookie-banner__inner {
    flex-direction: column;
    text-align: center;
}

/* Stats smaller on mobile */
.stat__number { font-size: var(--text-5xl); }

/* Hero blobs smaller on mobile */
.hero__blob--1 { width: 250px; height: 250px; }
.hero__blob--2 { width: 180px; height: 180px; }
.hero__blob--3 { display: none; }

/* Section padding tighter */
.section { padding: var(--space-3xl) 0; }

/* Section header tighter */
.section-header { margin-bottom: var(--space-2xl); }

/* Footer wave smaller */
.footer__wave { height: 40px; }
.footer__wave::after { height: 40px; }

/* CTA section */
.cta-section { padding: var(--space-2xl) var(--space-lg); }

/* Error page */
.error-code { font-size: 5rem; }

/* Article header */
.article-header__title { font-size: var(--text-2xl); }


/* Course catalog grid on mobile */
.catalog-filters__pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-xs);
}
.catalog-filters__pills::-webkit-scrollbar { display: none; }


/* --- >= 576px (Small tablets) --- */
@media (min-width: 576px) {
    .newsletter-form__row {
        flex-direction: row;
    }

    .cookie-banner__inner {
        flex-direction: row;
        text-align: left;
    }

    .hero__blob--3 { display: block; }

    .catalog-filters__pills {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .error-code { font-size: 6rem; }
}


/* --- >= 768px (Tablets) --- */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }

    .hero { min-height: 560px; }
    .hero__title { font-size: var(--text-5xl); }
    .hero--compact { min-height: 340px; padding: var(--space-3xl) 0; }

    .hero__blob--1 { width: 400px; height: 400px; }
    .hero__blob--2 { width: 280px; height: 280px; }

    .section { padding: var(--space-4xl) 0; }

    .cta-section {
        padding: var(--space-4xl) var(--space-2xl);
    }

    .article-header__title {
        font-size: var(--text-4xl);
    }

    .footer__wave { height: 60px; }
    .footer__wave::after { height: 60px; }

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

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }

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

    .stat__number { font-size: var(--text-7xl); }

    .error-code { font-size: 8rem; }
}


/* --- >= 992px (Desktops) --- */
@media (min-width: 992px) {
    /* Navbar horizontal layout */
    .navbar__menu {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 0;
        box-shadow: none;
        align-items: center;
        gap: var(--space-xs);
    }

    .navbar__link {
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-sm);
        position: relative;
    }

    .navbar__link:hover,
    .navbar__link--active {
        background: rgba(var(--color-light-teal-rgb), 0.08);
    }

    /* Active link underline */
    .navbar__link--active::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        border-radius: var(--radius-full);
        background: linear-gradient(90deg, var(--color-dark-teal), var(--color-light-teal));
    }

    .navbar__toggle {
        display: none;
    }

    .navbar__actions {
        display: flex;
    }

    .navbar__actions .navbar__cta {
        display: inline-flex;
    }

    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .hero__content {
        max-width: 650px;
    }

    .legal-section .glass-card {
        padding: var(--space-3xl) var(--space-2xl);
    }
}


/* --- >= 1200px (Large desktops) --- */
@media (min-width: 1200px) {
    :root {
        --container-padding: 2.5rem;
    }

    .section {
        padding: var(--space-5xl) 0;
    }

    .hero {
        min-height: 620px;
    }

    .hero__title {
        font-size: var(--text-6xl);
    }
}
