/* Responsive Styles */

/* Tablets e dispositivos médios */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

/* Tablets em modo paisagem e dispositivos pequenos */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Smartphones em modo retrato */
@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .about-text h3 {
        font-size: 1.25rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .btn-submit {
        max-width: 100%;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Dispositivos muito pequenos */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
    }
}

/* Ajustes para dispositivos com altura reduzida */
@media (max-height: 600px) {
    .hero {
        height: 90vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

/* Ajustes para impressão */
@media print {
    .header,
    .hero,
    .appointment,
    .footer {
        display: none;
    }
    
    .about,
    .services,
    .contact {
        padding: 1rem 0;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Ajustes para dispositivos com hover não suportado */
@media (hover: none) {
    .service-card:hover,
    .btn-primary:hover,
    .btn-outline:hover {
        transform: none;
    }
    
    .nav-link.btn-appointment:hover {
        transform: none;
    }
}

/* Ajustes para modo escuro (se o navegador suportar) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e8dfd0;
        --text-secondary: #d4c5b9;
        --text-light: #a0956b;
        --background-light: #5d4e37;
        --background-white: #8b7355;
        --border-color: #8a9a5b;
        --primary-color: #9aaa6b;
        --primary-dark: #8a9a5b;
        --secondary-color: #c9976c;
        --accent-color: #a0956b;
        --terra-light: #8b7355;
        --terra-medium: #a0956b;
        --terra-dark: #5d4e37;
        --green-olive: #9aaa6b;
        --green-olive-dark: #8a9a5b;
        --caramel: #c9976c;
        --caramel-dark: #b8956a;
    }
    
    .header {
        background: rgba(93, 78, 55, 0.95);
        border-bottom-color: var(--green-olive);
    }
    
    .nav-menu {
        background: #8b7355;
    }
    
    .service-card {
        background: var(--terra-medium);
        border-color: var(--green-olive);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--terra-light);
        color: var(--text-primary);
        border-color: var(--green-olive);
    }
    
    .hero {
        background: linear-gradient(135deg, #8b7355 0%, #5d4e37 100%);
        color: var(--terra-light);
    }
}