/* 
 * Rivaldo Junior BJJ Academy - Responsive CSS File
 * 
 * This stylesheet contains all the responsive styles for the website
 * organized by breakpoints from largest to smallest.
 */

/* ======================================
 * Table of Contents:
 * 1. Large Devices (Desktops, less than 1200px)
 * 2. Medium Devices (Tablets, less than 992px)
 * 3. Small Devices (Landscape Phones, less than 768px)
 * 4. Extra Small Devices (Portrait Phones, less than 576px)
 * ====================================== */

/* ======================================
 * 1. Large Devices (Desktops, less than 1200px)
 * ====================================== */
 @media (max-width: 1199.98px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero section */
    .hero h1 {
        font-size: 3rem;
    }
    
    /* Programs grid */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ======================================
 * 2. Medium Devices (Tablets, less than 992px)
 * ====================================== */
@media (max-width: 991.98px) {
    /* Container adjustments */
    .container {
        max-width: 720px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Header & Navigation */
    .site-header {
        position: relative;
        z-index: 1000;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Features section */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-info {
        grid-column: span 2;
    }
}

/* ======================================
 * 3. Small Devices (Landscape Phones, less than 768px)
 * ====================================== */
@media (max-width: 767.98px) {
    /* Container adjustments */
    .container {
        max-width: 540px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Header & Navigation */
    .site-header .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .logo {
        order: 1;
        flex: 0 0 auto;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--dark-color);
        order: 2;
        flex: 0 0 auto;
        margin: 0 1rem;
    }

    .cta-button {
        order: 3;
        flex: 0 0 auto;
        margin: 0;
    }

    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%; /* Directly below the header */
        left: 0;
        width: 100vw;
        background: #fff; /* Or your header/nav background */
        z-index: 999;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 1rem 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--dark-color);
        position: relative;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--dark-color);
        left: 0;
    }
    
    .hamburger::before {
        top: -8px;
    }
    
    .hamburger::after {
        bottom: -8px;
    }
    
    /* Hero section */
    .hero {
        min-height: 450px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Features section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Programs section */
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-info {
        grid-column: 1;
    }
}

/* ======================================
 * 4. Extra Small Devices (Portrait Phones, less than 576px)
 * ====================================== */
@media (max-width: 575.98px) {
    /* Container adjustments */
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    /* Header & Navigation */
    .logo img {
        height: 40px;
    }
    
    .cta-button .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Features section */
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Programs section */
    .program-content {
        padding: 1.5rem;
    }
    
    /* CTA section */
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .site-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-bottom {
        margin-top: 2rem;
    }
}

/* ======================================
 * 5. Print Styles
 * ====================================== */
@media print {
    .site-header,
    .hero-buttons,
    .cta-section,
    .footer-nav,
    .social-links,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
    
    .hero-overlay {
        background: none;
    }
    
    .hero-content {
        color: #000;
    }
    
    .hero h1 {
        color: #000;
    }
    
    .features-grid,
    .programs-grid,
    .footer-grid {
        display: block;
    }
    
    .feature-card,
    .program-card {
        margin-bottom: 20pt;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .footer-info,
    .footer-contact,
    .footer-hours {
        margin-bottom: 15pt;
    }
    
    .footer-bottom {
        border-top: 1pt solid #ccc;
        padding-top: 10pt;
    }
}
