/*
 * Ypsi CAN Website - Responsive Styles
 * Mobile-First Responsive Design
 */

/* ====================================
   TABLET (768px and below)
   ==================================== */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Header */
    .header-top {
        display: none; /* Hide top bar on mobile for cleaner look */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed);
    }

    .main-nav.active {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        padding: var(--spacing-sm) 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-gray);
    }

    .nav-item a {
        padding: var(--spacing-sm);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background-color: var(--light-purple);
    }

    /* Hero */
    .hero-section {
        min-height: 500px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Grids */
    .pillars-grid,
    .events-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    /* Newsletter */
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Section Padding */
    section {
        padding: var(--spacing-md) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ====================================
   MOBILE (480px and below)
   ==================================== */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Logo */
    .logo img {
        max-height: 48px;
    }

    /* Hero */
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    /* Mission Text */
    .mission-text {
        font-size: 1.125rem;
    }

    /* Section Padding */
    section {
        padding: var(--spacing-md) 0;
    }

    /* Spacing */
    :root {
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }
}

/* ====================================
   TABLET LANDSCAPE (1024px and below)
   ==================================== */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ====================================
   DESKTOP (1280px and above)
   ==================================== */
@media (min-width: 1280px) {
    .container {
        max-width: 1240px;
    }
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu-toggle,
    .btn,
    .newsletter-section,
    .cta-section {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
