/* =====================================
   Safe-T-Con Responsive Styles
   Mobile-First Responsive Design
   ===================================== */

/* Tablet (768px and below) */
@media screen and (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --section-padding: 4rem 0;
    }
    
    /* Hero Section */
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .hero__image {
        order: -1;
    }
    
    /* Statistics */
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Value Props */
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Featured Programme */
    .featured-programme__grid {
        grid-template-columns: 1fr;
    }
    
    /* Course Grid */
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials */
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (767px and below) */
@media screen and (max-width: 767px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --section-padding: 3rem 0;
        --header-height: 70px;
    }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: var(--shadow-xl);
        padding: var(--spacing-3xl) var(--spacing-lg);
        transition: right var(--transition-base);
        z-index: 1001;
    }
    
    .nav__menu.show {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: flex-start;
    }
    
    .nav__cta {
        margin-left: 0;
        width: 100%;
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: var(--spacing-lg);
        right: var(--spacing-lg);
    }
    
    /* Hero */
    .hero {
        padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-3xl);
    }
    
    .hero__title {
        font-size: var(--font-size-4xl);
    }
    
    .hero__cta {
        flex-direction: column;
    }
    
    .hero__cta .btn {
        width: 100%;
    }
    
    .hero__trust {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Statistics */
    .stats__grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    /* Value Props */
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    /* Course Grid */
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    /* Featured Programme */
    .featured-programme__cta {
        flex-direction: column;
    }
    
    .featured-programme__cta .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    /* Section Headers */
    .section__title {
        font-size: var(--font-size-3xl);
    }
    
    /* Buttons */
    .btn-lg {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
}

/* Small Mobile (480px and below) */
@media screen and (max-width: 480px) {
    :root {
        --font-size-5xl: 1.75rem;
        --font-size-4xl: 1.5rem;
        --spacing-3xl: 2rem;
        --spacing-4xl: 2.5rem;
    }
    
    .hero__title {
        font-size: var(--font-size-3xl);
    }
    
    .section__title {
        font-size: var(--font-size-2xl);
    }
}
