/* ============================================
   MDTEC - Responsive Design Premium
   Mobile First Approach
   ============================================ */

/* ============================================
   LARGE DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .hero-container {
        gap: 100px;
    }
    
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
    
    .content-section {
        padding: 60px;
    }
    
    .content-section h2 {
        font-size: 2.4rem;
    }
}

/* ============================================
   DESKTOP STANDARD (1200px - 1399px)
   ============================================ */
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-container {
        padding: 18px 30px;
    }
    
    .hero {
        padding: 100px 30px 80px;
    }
}

/* ============================================
   TABLET LANDSCAPE / SMALL DESKTOP (992px - 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-cta .cta-button {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .hero-placeholder {
        padding: 25px 40px;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   TABLET PORTRAIT (768px - 991px)
   ============================================ */
@media (max-width: 991px) {
    .header-container {
        padding: 15px 25px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .emoji-service {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 100px 25px 60px;
        min-height: auto;
    }
    
    .hero-container {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-cta .cta-button {
        padding: 14px 22px;
        font-size: 0.9rem;
    }
    
    .hero-visual {
        margin-top: 30px;
    }
    
    .hero-placeholder {
        padding: 25px 35px;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .service-text {
        font-size: 1rem;
    }
    
    .seo-content {
        padding: 80px 25px;
    }
    
    .content-section {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .content-section h2 {
        font-size: 1.7rem;
    }
    
    .content-section p {
        font-size: 1.05rem;
    }
    
    .maps-section h2 {
        font-size: 2rem;
    }
    
    .main-footer {
        padding: 70px 25px 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
}

/* ============================================
   MOBILE LARGE (576px - 767px)
   ============================================ */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        padding: 12px 20px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .emoji-service {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 90px 20px 50px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
        margin-bottom: 25px;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    /* Hero CTA - Stack em 2 colunas no mobile large */
    .hero-cta {
        justify-content: center;
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .hero-cta .cta-button {
        padding: 12px 18px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        min-width: 140px;
        max-width: 180px;
    }
    
    .hero-visual {
        margin-top: 25px;
    }
    
    .hero-placeholder {
        padding: 20px 25px;
        border-radius: 20px;
        flex-direction: row;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-text {
        font-size: 0.95rem;
    }
    
    .seo-content {
        padding: 60px 20px;
    }
    
    .seo-content::before {
        top: -60px;
        height: 60px;
    }
    
    .content-section {
        padding: 30px 25px;
        margin-bottom: 30px;
        border-radius: 18px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .content-section h2::after {
        width: 50px;
        height: 3px;
    }
    
    .content-section p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 15px;
    }
    
    .maps-section {
        margin: 50px 0 0;
    }
    
    .maps-section h2 {
        font-size: 1.7rem;
        margin-bottom: 25px;
    }
    
    .map-container {
        border-radius: 18px;
        border-width: 2px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        padding: 14px 22px;
        font-size: 0.9rem;
        border-radius: 50px;
    }
    
    .whatsapp-icon-float {
        font-size: 1.4rem;
    }
    
    .main-footer {
        padding: 60px 20px 25px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .hours-list li, .services-list li, .links-list li {
        padding: 10px 0;
    }
    
    .neighborhoods-preview {
        padding: 12px;
    }
    
    .footer-bottom {
        padding-top: 30px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 30px 20px;
        margin: 40px 0;
        border-radius: 18px;
    }
    
    .cta-button-secondary {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* ============================================
   MOBILE SMALL (480px and below)
   ============================================ */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header-container {
        padding: 10px 15px;
    }
    
    .logo a {
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.15rem;
    }
    
    .emoji-service {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 80px 15px 40px;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    
    /* Hero CTA - Stack vertical no mobile pequeno */
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .hero-cta .cta-button {
        padding: 12px 20px;
        font-size: 0.85rem;
        gap: 8px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .cta-icon {
        font-size: 1.1rem;
    }
    
    .hero-visual {
        margin-top: 20px;
    }
    
    .hero-placeholder {
        padding: 18px 22px;
        border-radius: 16px;
        flex-direction: row;
    }
    
    .service-icon {
        font-size: 2.2rem;
    }
    
    .service-text {
        font-size: 0.9rem;
    }
    
    .seo-content {
        padding: 50px 15px;
    }
    
    .seo-content::before {
        top: -50px;
        height: 50px;
    }
    
    .content-section {
        padding: 25px 20px;
        margin-bottom: 25px;
        border-radius: 16px;
    }
    
    .content-section::before {
        width: 4px;
    }
    
    .content-section h2 {
        font-size: 1.35rem;
        margin-bottom: 18px;
    }
    
    .content-section h2::after {
        width: 40px;
        height: 3px;
        bottom: -6px;
    }
    
    .content-section p {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 12px;
    }
    
    .maps-section {
        margin: 40px 0 0;
    }
    
    .maps-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .maps-section h2::after {
        width: 60px;
        height: 3px;
    }
    
    .map-container {
        border-radius: 14px;
    }
    
    .map-container iframe {
        height: 300px !important;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-link {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .whatsapp-icon-float {
        font-size: 1.3rem;
    }
    
    .main-footer {
        padding: 50px 15px 20px;
    }
    
    .footer-container {
        gap: 35px;
    }
    
    .footer-section h3 {
        font-size: 1.15rem;
        margin-bottom: 20px;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .hours-list li, .services-list li, .links-list li {
        font-size: 0.88rem;
        padding: 9px 0;
    }
    
    .neighborhoods-preview span {
        font-size: 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 25px 15px;
        margin: 30px 0;
        border-radius: 14px;
    }
    
    .cta-button-secondary {
        padding: 12px 22px;
        font-size: 0.9rem;
        gap: 10px;
    }
}

/* ============================================
   EXTRA SMALL (360px and below)
   ============================================ */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .emoji-service {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
        margin-bottom: 18px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        gap: 8px;
        margin-bottom: 18px;
    }
    
    .hero-cta .cta-button {
        padding: 10px 16px;
        font-size: 0.8rem;
        max-width: 250px;
    }
    
    .cta-icon {
        font-size: 1rem;
    }
    
    .hero-placeholder {
        padding: 15px 18px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-text {
        font-size: 0.85rem;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .content-section h2 {
        font-size: 1.2rem;
    }
    
    .whatsapp-link {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-link {
        border-radius: 50%;
        padding: 14px;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION (Mobile)
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 30px 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-visual {
        order: 0;
    }
    
    .hero-placeholder {
        padding: 30px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
}

/* ============================================
   TOUCH DEVICES
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects que podem causar issues */
    .hero-cta .cta-button:hover {
        transform: none;
    }
    
    .whatsapp-link:hover {
        transform: none;
    }
    
    .content-section:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }
    
    .logo a:hover {
        transform: none;
    }
    
    .cta-button-secondary:hover {
        transform: none;
    }
    
    .map-container:hover {
        border-color: var(--gray-100);
        box-shadow: var(--shadow-card);
    }
    
    /* Tap highlights */
    .cta-button, .cta-button-secondary, .whatsapp-link {
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
    }
}

/* ============================================
   HIGH DPI / RETINA DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before,
    .hero::after {
        transform: translateZ(0);
    }
}

/* ============================================
   REDUCED MOTION (Accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::after {
        animation: none;
    }
    
    .whatsapp-link {
        animation: none;
    }
}

/* ============================================
   DARK MODE PREFERENCE
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* O site já tem tema escuro no hero e footer */
    /* Mas podemos ajustar o conteúdo se necessário */
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .main-header,
    .whatsapp-float,
    .hero-cta,
    .cta-section,
    .cta-button-secondary {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content h1 {
        -webkit-text-fill-color: black;
        font-size: 2rem;
    }
    
    .seo-content {
        padding: 20px;
    }
    
    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .content-section::before,
    .content-section::after {
        display: none;
    }
    
    .main-footer {
        padding: 20px;
    }
    
    .footer-container {
        display: block;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
}
