/* =====================================================
   SANEXA - Responsive Stylesheet
   Mobile-First Responsive Design
   ===================================================== */

/* -------------------- Large Tablets & Small Desktops -------------------- */
@media screen and (max-width: 1200px) {
    :root {
        --font-6xl: 3.5rem;
        --font-5xl: 3rem;
        --font-4xl: 2.25rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: none;
    }
}

/* -------------------- Tablets -------------------- */
@media screen and (max-width: 992px) {
    :root {
        --font-6xl: 3rem;
        --font-5xl: 2.5rem;
        --font-4xl: 2rem;
        --font-3xl: 1.75rem;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: none;
    }
    
    .hero-description {
        max-width: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-graphic {
        max-width: 350px;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* -------------------- Large Mobile -------------------- */
@media screen and (max-width: 768px) {
    :root {
        --font-6xl: 2.5rem;
        --font-5xl: 2.25rem;
        --font-4xl: 1.75rem;
        --font-3xl: 1.5rem;
        --font-2xl: 1.25rem;
        --spacing-2xl: 3rem;
        --spacing-xl: 2rem;
    }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 var(--spacing-xl);
    }
    
    .hero-badge {
        font-size: var(--font-xs);
    }
    
    .hero-center-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .hero-graphic{
        width: 100%;
    }
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: var(--font-3xl);
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Trust Badges */
    .trust-badges {
        gap: var(--spacing-lg);
    }
    
    .trust-badge {
        font-size: var(--font-lg);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
        max-width: none;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 var(--spacing-xl);
    }
    
    /* About Page */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .story-content {
        grid-template-columns: 1fr;
    }
    
    /* Services Page */
    .service-category-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form-wrapper {
        order: 2;
    }
}

/* -------------------- Mobile -------------------- */
@media screen and (max-width: 576px) {
    :root {
        --font-6xl: 2rem;
        --font-5xl: 1.875rem;
        --font-4xl: 1.5rem;
        --font-3xl: 1.25rem;
        --font-2xl: 1.125rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-sm);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Cards */
    .card {
        padding: var(--spacing-md);
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-xl);
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Scroll Top Button */
    .scroll-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Mobile Nav */
    .mobile-nav-link {
        font-size: var(--font-xl);
    }
    
    /* Services Category */
    .service-items-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Info Items */
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Form */
    .form-row {
        flex-direction: column;
    }
}

/* -------------------- Small Mobile -------------------- */
@media screen and (max-width: 380px) {
    :root {
        --font-6xl: 1.75rem;
        --font-5xl: 1.625rem;
        --font-4xl: 1.375rem;
        --font-3xl: 1.125rem;
    }
    
    .logo {
        font-size: var(--font-xl);
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
}

/* -------------------- Height Adjustments -------------------- */
@media screen and (max-height: 700px) {
    .hero {
        min-height: auto;
        padding: 100px 0 var(--spacing-xl);
    }
    
    .hero-graphic {
        max-width: 300px;
    }
}

/* -------------------- Landscape Mobile -------------------- */
@media screen and (max-width: 992px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 var(--spacing-xl);
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-visual {
        order: 0;
    }
    
    .hero-graphic {
        max-width: 250px;
    }
}

/* -------------------- Prefers 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 {
    .navbar,
    .mobile-nav,
    .scroll-top,
    .theme-toggle {
        display: none !important;
    }
    
    body {
        background: #ffffff;
        color: #000000;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
}
