/* =============================================
   Data Center High School - Responsive Styles
   Mobile-First Breakpoints
   ============================================= */

/* ===========================================
   TABLET (768px and up)
   =========================================== */

@media (max-width: 1024px) {

    /* Header */
    .header-top-links {
        display: none;
    }

    .nav-list {
        gap: 0;
    }

    .nav-link {
        padding: var(--space-3) var(--space-3);
        font-size: var(--text-sm);
    }

    /* Hero */
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-description {
        font-size: var(--text-lg);
    }

    .hero-stats {
        gap: var(--space-8);
    }

    .hero-stat-number {
        font-size: var(--text-3xl);
    }

    /* Grid */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

/* ===========================================
   TABLET PORTRAIT (768px and down)
   =========================================== */

@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }

    /* Header */
    .header-top {
        display: none;
    }

    .header-main {
        padding: var(--space-3) 0;
    }

    .nav {
        display: none;
    }

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

    .header-cta {
        display: none;
    }

    /* Mobile Navigation */
    .nav.active {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        padding: var(--space-8);
        z-index: var(--z-modal);
        animation: slideIn 0.3s ease;
    }

    .nav.active .nav-list {
        flex-direction: column;
        gap: var(--space-2);
        width: 100%;
    }

    .nav.active .nav-link {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-lg);
        border-radius: var(--radius-lg);
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(100%);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Mobile Menu Toggle Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Main */
    .main {
        padding-top: 80px;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding: var(--space-8) var(--space-4);
    }

    .hero-content {
        padding: var(--space-4);
    }

    .hero-title {
        font-size: var(--text-3xl);
        line-height: 1.2;
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }

    /* Sections */
    .section {
        padding: var(--space-12) 0;
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
        flex-direction: row;
        gap: var(--space-2);
        padding: var(--space-3);
    }

    /* Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-contact-item {
        justify-content: center;
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

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

/* ===========================================
   MOBILE (480px and down)
   =========================================== */

@media (max-width: 480px) {

    /* Container */
    .container {
        padding: 0 var(--space-4);
    }

    /* Typography */
    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    /* Hero */
    .hero-badge {
        font-size: var(--text-xs);
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-stat-number {
        font-size: var(--text-2xl);
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: var(--space-3) var(--space-6);
    }

    /* Cards */
    .feature-card {
        padding: var(--space-6);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}

/* ===========================================
   LANDSCAPE PHONES
   =========================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-16) var(--space-4);
    }

    .hero-stats {
        display: none;
    }
}

/* ===========================================
   HIGH RESOLUTION SCREENS
   =========================================== */

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 1600px;
    }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {

    .header,
    .footer,
    .hero-scroll,
    .btn {
        display: none !important;
    }

    .main {
        padding-top: 0;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    .card,
    .feature-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}