/*
* Clínica Primores - Responsive Stylesheet
* Responsive design for all screen sizes
*/

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .main-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .gallery-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid,
    .team-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        grid-column: span 2;
        text-align: center;
    }
    
    /* Navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background-color: var(--background-light);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 999;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .services-grid,
    .team-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-section {
        min-height: 400px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        grid-column: 1;
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Header */
    #header .container {
        padding: 10px 20px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Portrait (0px - 575px) */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .main-title {
        font-size: 26px;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .section-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .hero-section {
        min-height: 500px;
        height: auto;
        padding-bottom: 50px;
    }
    
    .hero-content {
        padding: 0 15px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-split {
        flex-direction: column-reverse;
        gap: 25px;
    }
    
    .hero-logo {
        max-width: 150px;
        margin: 0 auto;
    }
    
    .hero-logo img {
        width: 100%;
        height: auto;
        margin-left: 0;
    }
    
    .hero-text {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    
    .info-item {
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 25px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    /* Melhorias adicionais para texto em telas pequenas */
    p, li, address, .specialty, .crm, .doctor-crm {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .doctor-profile {
        grid-template-columns: 1fr;
    }
    
    .doctor-image {
        height: 250px;
    }
    
    .doctor-info h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .doctor-specialty {
        font-size: 16px;
    }
    
    .hero-tags {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-tags span {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 8px;
    }
    
    .team-info h3 {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Ajuste para não cortar textos em dispositivos muito pequenos */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Adicionar suporte para dispositivos muito pequenos */
@media (max-width: 375px) {
    .main-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 20px 15px;
    }
    
    /* Ajustes ainda mais específicos para telas muito pequenas */
    .doctor-info h2 {
        font-size: 22px;
    }
    
    .doctor-specialty {
        font-size: 15px;
    }
    
    .cta-button, .team-btn, .submit-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Suporte específico para dispositivos Samsung de dimensões específicas */
@media (min-width: 360px) and (max-width: 384px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-logo {
        max-width: 180px;
    }
    
    .main-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

/* Suporte específico para dispositivos Samsung Galaxy S8/S9/S10/S20 */
@media (min-width: 385px) and (max-width: 412px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-logo {
        max-width: 200px;
    }
}
/* Ajustes para botão flutuante de WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 70px;
        right: 15px;
    }
}
@media (max-width: 480px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 60px;
        right: 10px;
    }
}
