/* ==========================================================================
   Rotary Tennis & Padel — Responsive Stylesheet
   Mobile first approach — based on mockup
   ========================================================================== */

/* ---------- Tablet & below (< 1024px) ---------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero::after {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .impact-inner {
        grid-template-columns: 1fr;
    }

    .impact-image {
        height: 300px;
    }

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

/* ---------- Mobile (< 768px) ---------- */
@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(25, 70, 150, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a,
    .nav-menu li a {
        font-size: 1.25rem;
        color: white;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-cta {
        font-size: 1.1rem !important;
        padding: 0.8rem 2rem;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: 6rem 1.5rem 3rem;
    }

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

    .hero-badge {
        font-size: 0.7rem;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    /* Tickets */
    .tickets-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Countdown */
    .countdown-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .countdown-units {
        gap: 0.75rem;
    }

    .countdown-number {
        font-size: 1.5rem;
        min-width: 55px;
        padding: 0.4rem 0.75rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 50px;
    }

    .timeline-item {
        padding: 1.25rem 1.5rem;
    }

    .timeline-item::before {
        left: -38px;
    }

    /* Impact */
    .impact-stats {
        grid-template-columns: 1fr;
    }

    .impact-text h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Sections */
    .info-section,
    .program-section,
    .tickets-section,
    .impact-section,
    .sponsors-section,
    .cta-banner {
        padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Page header */
    .page-header {
        padding: 6rem 1.5rem 2rem;
    }

    /* Page info */
    .page-info-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-cta {
        position: static;
    }

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

    .error-404-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ---------- Small mobile (< 480px) ---------- */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .countdown-units {
        gap: 0.5rem;
    }

    .countdown-number {
        font-size: 1.25rem;
        min-width: 48px;
    }

    .sponsors-grid {
        gap: 1.5rem;
    }

    .sponsor-logo {
        width: 120px;
        height: 60px;
    }
}

/* ---------- Desktop (1024px+) ---------- */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
    }
}

/* ---------- Wide desktop (1280px+) ---------- */
@media (min-width: 1280px) {
    .hero-text h1 {
        font-size: 4rem;
    }
}

/* ---------- Print ---------- */
@media print {
    .nav,
    .menu-toggle,
    .hero-buttons,
    .countdown-strip,
    .cta-banner,
    .sponsors-section,
    .footer-social,
    .nav-cta {
        display: none;
    }

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

    .hero {
        min-height: auto;
        background: none;
        padding: 2rem 0;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .info-section,
    .program-section,
    .tickets-section,
    .impact-section {
        padding: 2rem 0;
    }

    .impact-section {
        background: #f5f5f5;
    }

    .impact-text h2,
    .impact-text p {
        color: #000;
    }
}
