/* Estilos Responsivos - MMiranda Estética Avançada */

/* Tablets e dispositivos médios */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    /* CSS Variables for responsive design */
    :root {
        --container-padding: 20px;
        --section-padding: 60px 0;
        --hero-padding: 120px 0 80px;
    }
    
    /* Navegação */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        background: var(--color-black);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        margin: 15px 0;
        font-size: 18px;
        padding: 10px 0;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1000;
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--color-gold);
        margin: 3px 0;
        transition: 0.3s;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    
    /* Grid layouts */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .specializations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    /* Form layouts */
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .appointment-content,
    .contact-content {
        flex-direction: column;
        gap: 50px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Smartphones e dispositivos pequenos */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 70vh;
        padding: 100px 0 60px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    /* Grid layouts for mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .specializations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Cards */
    .service-card,
    .value-card,
    .testimonial-card {
        padding: 25px;
    }
    
    /* Statistics */
    .stat-card {
        padding: 20px;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Process steps */
    .process-step {
        padding: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    /* Gallery */
    .before-after-container {
        height: 300px;
    }
    
    .before-image,
    .after-image {
        height: 300px;
    }
    
    /* Navigation */
    .nav-logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-logo span {
        font-size: 0.8rem;
    }
    
    /* Section spacing */
    .section {
        padding: 60px 0;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    /* Appointment process */
    .process-steps {
        gap: 20px;
    }
    
    .process-step {
        padding: 20px 15px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Contact info */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    /* FAQ */
    .faq-question {
        padding: 15px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 15px 15px;
        font-size: 14px;
    }
    
    /* Procedure tabs */
    .categories-tabs,
    .procedure-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Testimonials */
    .patient-avatar {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-content {
        font-size: 14px;
    }
    
    .treatment-info {
        font-size: 12px;
    }
    
    /* Rating */
    .rating {
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        font-size: 12px;
    }
}

/* Dispositivos muito pequenos */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .service-card,
    .value-card,
    .testimonial-card {
        padding: 20px;
    }
    
    .stat-card {
        padding: 15px;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
    }
    
    .before-after-container {
        height: 250px;
    }
    
    .before-image,
    .after-image {
        height: 250px;
    }
    
    .nav-menu {
        width: 90%;
        padding: 70px 20px 20px;
    }
    
    .nav-link {
        font-size: 16px;
        margin: 12px 0;
        padding: 8px 0;
    }
}

/* Orientação paisagem em smartphones */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .nav-menu {
        padding: 60px 20px 20px;
    }
    
    .nav-link {
        margin: 8px 0;
        padding: 6px 0;
        font-size: 16px;
    }
}

/* Tablets em modo paisagem */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specializations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para telas de alta densidade de pixels */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-title,
    .page-title {
        font-weight: 400;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .btn {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Impressão */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .nav-toggle,
    .cta-section {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .section,
    .page-header {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }
    
    .hero-title,
    .section-title,
    .page-title {
        color: black !important;
    }
    
    .btn {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    .service-card,
    .value-card,
    .testimonial-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .title-underline {
        background: black !important;
    }
    
    .nav-logo h1,
    .nav-logo span {
        color: black !important;
    }
    
    .nav-link {
        color: black !important;
    }
    
    .nav-link:hover {
        color: var(--color-gold) !important;
    }
}

/* Acessibilidade - preferência de movimento reduzido */
@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;
    }
    
    .hero-title,
    .section-title,
    .hero-subtitle {
        animation: none !important;
    }
}

/* Acessibilidade - alto contraste */
@media (prefers-contrast: high) {
    .hero,
    .section,
    .page-header {
        background: black !important;
        color: white !important;
    }
    
    .hero-title,
    .section-title,
    .page-title,
    .hero-subtitle {
        color: white !important;
    }
    
    .btn-primary {
        background: white !important;
        color: black !important;
        border: 2px solid white !important;
    }
    
    .btn-secondary {
        background: transparent !important;
        color: white !important;
        border: 2px solid white !important;
    }
    
    .title-underline {
        background: white !important;
    }
    
    .nav-logo h1,
    .nav-logo span {
        color: white !important;
    }
    
    .nav-link {
        color: white !important;
    }
    
    .nav-link:hover {
        color: var(--color-gold) !important;
    }
}