/* ===================================
   RESPONSIVE STYLES - MOBILE FIRST
   =================================== */

/* ===================================
   TABLET - 768px and up
   =================================== */
@media (min-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    /* Navigation */
    .logo-img {
        height: 60px;
    }
    
    /* Hero Section - Tablet */
    .hero {
        padding: 130px 0 70px;
    }
    
    .hero-content {
        gap: 45px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.15rem;
    }
    
    .hero-image img {
        height: 480px;
        max-width: 580px;
    }
    
    /* Sobre Section */
    .sobre-features {
        flex-direction: column;
    }
    
    /* Procedimentos Grid */
    .procedimentos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .card-image {
        height: 280px;
    }
    
    /* Galeria Grid */
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .galeria-item img {
        height: 350px;
    }
    
    /* Localização */
    .localizacao-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .localizacao-map iframe {
        height: 450px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-logo,
    .footer-info,
    .footer-social {
        flex: 1;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 65px;
        height: 65px;
        font-size: 2.2rem;
    }
}

/* ===================================
   DESKTOP - 1025px and up
   =================================== */
@media (min-width: 1025px) {
    /* Container */
    .container {
        padding: 0 40px;
    }
    
    /* Section Padding */
    section {
        padding: 80px 40px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    /* Navigation - Desktop */
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        height: auto;
        width: auto;
        padding: 0;
        box-shadow: none;
        background: transparent;
        left: 0;
    }
    
    .nav-item {
        margin: 0 5px;
    }
    
    .nav-link {
        padding: 10px 18px;
        font-size: 0.9rem;
        font-weight: 400;
        color: var(--white);
        letter-spacing: 0.5px;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: rgba(255, 255, 255, 0.15);
        color: var(--white);
    }
    
    /* Hero Section - Desktop */
    .hero {
        padding: 140px 0 100px;
    }
    
    .hero-content {
        flex-direction: row;
        gap: 80px;
        align-items: center;
    }
    
    .hero-text {
        text-align: left;
        flex: 1;
    }
    
    .hero-title {
        font-size: 4.5rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .hero-description {
        font-size: 1.2rem;
        max-width: 600px;
        margin-bottom: 40px;
    }
    
    .hero-image {
        flex: 1;
    }
    
    .hero-image img {
        height: 550px;
        max-width: 650px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    /* Sobre Section */
    .sobre-content {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }
    
    .sobre-text,
    .sobre-image {
        flex: 1;
    }
    
    .sobre-features {
        flex-direction: column;
    }
    
    /* Procedimentos - Desktop com menu lateral */
    .procedimentos-wrapper {
        flex-direction: row;
        gap: 50px;
    }
    
    .procedimentos-nav {
        flex-direction: column;
        min-width: 250px;
        max-width: 250px;
        overflow-x: visible;
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
    
    .nav-item-proc {
        text-align: left;
        padding: 15px 20px;
        border-radius: 12px;
    }
    
    .procedimentos-content {
        flex: 1;
    }
    
    .procedimentos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    .card-image {
        height: 300px;
    }
    
    /* Galeria Grid */
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    /* Localização */
    .localizacao-content {
        flex-direction: row;
        gap: 60px;
    }
    
    .localizacao-info,
    .localizacao-map {
        flex: 1;
    }
    
    .localizacao-buttons {
        flex-direction: column;
    }
    
    .localizacao-map iframe {
        height: 100%;
        min-height: 500px;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        bottom: 30px;
        right: 30px;
    }
}

/* ===================================
   LARGE DESKTOP - 1440px and up
   =================================== */
@media (min-width: 1440px) {
    /* Container */
    .container {
        max-width: 1400px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 3rem;
    }
    
    /* Procedimentos Grid */
    .procedimentos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Galeria Grid */
    .galeria-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   LANDSCAPE MOBILE - Height < 500px
   =================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 20px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .header,
    .whatsapp-float,
    .hero-scroll,
    .lightbox {
        display: none !important;
    }
    
    .hero {
        background: var(--primary-pink);
        min-height: auto;
        padding: 40px 20px;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===================================
   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;
        scroll-behavior: auto !important;
    }
    
    .whatsapp-float {
        animation: none;
    }
    
    .hero-scroll {
        animation: none;
    }
}

/* ===================================
   HIGH CONTRAST MODE
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        --hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ===================================
   DARK MODE SUPPORT
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if desired */
    /* Currently keeping the light theme for brand consistency */
}

/* ===================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .procedimento-card:hover,
    .galeria-item:hover {
        transform: none;
    }
    
    /* Make touch targets larger */
    .nav-link {
        padding: 15px 20px;
    }
    
    .btn {
        min-height: 50px;
        padding: 16px 32px;
    }
    
    /* Remove tooltip on touch devices */
    .whatsapp-tooltip {
        display: none;
    }
}

/* ===================================
   SMALL MOBILE - 375px and down
   =================================== */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        min-width: 180px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ===================================
   VERY SMALL MOBILE - 320px and down
   =================================== */
@media (max-width: 320px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .btn {
        min-width: 160px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===================================
   TABLET LANDSCAPE - 1024px and down
   =================================== */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .nav-menu {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* ===================================
   IPAD PRO SPECIFIC
   =================================== */
@media only screen 
    and (min-width: 1024px) 
    and (max-width: 1366px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    .procedimentos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   SAFE AREA INSETS (iPhone X+)
   =================================== */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .whatsapp-float {
        right: max(25px, env(safe-area-inset-right));
        bottom: max(25px, env(safe-area-inset-bottom));
    }
    
    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
