/**
 * Caminho.DEV - Responsive Styles
 * Mobile-first responsive breakpoints
 */

/* ========================================
   Tablet (768px - 1199px)
======================================== */
@media (max-width: 1199px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 32px;
    }

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

    .services-grid .service-card:nth-child(5) {
        grid-column: span 2;
    }

    /* Why Us */
    .why-us-grid {
        gap: 40px;
    }

    .why-us-content {
        padding-right: 20px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }
}

/* ========================================
   Small Tablet (768px - 991px)
======================================== */
@media (max-width: 991px) {
    /* Navigation */
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid .service-card:nth-child(5) {
        grid-column: span 1;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Why Us */
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-content {
        padding-right: 0;
        text-align: center;
    }

    .why-us-content .section-label,
    .why-us-content .section-title {
        text-align: center;
    }

    .why-us-stats {
        justify-content: center;
    }

    .why-us-features {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonials {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-card {
        padding: 32px;
    }

    .about-footer {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    /* Contact */
    .contact-card {
        padding: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;
        gap: 20px;
    }

    .form-note {
        order: 2;
    }

    .form-actions {
        order: 1;
        width: 100%;
        flex-direction: column;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

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

    .footer-links {
        align-items: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ========================================
   Mobile (< 768px)
======================================== */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 20px;
    }

    /* Typography */
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Header */
    .header {
        padding: 12px 0;
    }

    .logo {
        font-size: 18px;
    }

    .lang-toggle {
        padding: 6px 10px;
    }

    .lang-code {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 80px 0 50px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-cta {
        margin-bottom: 40px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        padding-top: 32px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .stat-value {
        font-size: 28px;
    }

    /* Services */
    .service-card {
        padding: 24px;
    }

    /* Projects */
    .project-info {
        padding: 16px;
    }

    .project-title {
        font-size: 16px;
    }

    /* Why Us */
    .why-us-features {
        grid-template-columns: 1fr;
    }

    .why-stat-value {
        font-size: 28px;
    }

    .feature-card {
        padding: 24px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 14px;
    }

    /* Clients */
    .clients-logos {
        gap: 24px;
    }

    .client-name {
        font-size: 14px;
    }

    /* About */
    .about-card {
        padding: 24px;
    }

    .about-content p {
        font-size: 15px;
    }

    .about-badges {
        flex-direction: column;
        gap: 12px;
    }

    /* Contact */
    .contact-card {
        padding: 24px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 15px;
    }

    /* Modal */
    .modal-content {
        padding: 24px;
        width: 95%;
    }

    .booking-title {
        font-size: 20px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer {
        padding: 50px 0 24px;
    }

    .footer-content {
        gap: 32px;
    }

    .footer-heading {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   Small Mobile (< 480px)
======================================== */
@media (max-width: 479px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
    }

    .service-icon svg {
        width: 20px;
        height: 20px;
    }

    .service-title {
        font-size: 16px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .testimonial-quote-icon {
        display: none;
    }

    .clients-logos {
        gap: 20px;
    }

    .slots-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .header,
    .mobile-menu,
    .mobile-menu-overlay,
    .modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero-bg {
        display: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ========================================
   Accessibility - 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;
    }
}

/* ========================================
   High Contrast Mode
======================================== */
@media (prefers-contrast: high) {
    :root {
        --color-border: #4b5563;
        --color-text-secondary: #d1d5db;
        --color-text-muted: #9ca3af;
    }

    .btn-primary {
        border: 2px solid var(--color-primary);
    }

    .service-card,
    .feature-card,
    .testimonial-card,
    .about-card,
    .contact-card {
        border-width: 2px;
    }
}

/* ========================================
   Dark Mode Override (if needed)
======================================== */
@media (prefers-color-scheme: light) {
    /* Site is dark by default, so this is empty
       Add light mode styles here if needed */
}
