/* ========================================
   CLÍNICA DENTÍLIA - RESPONSIVE STYLES
   Mobile-First Responsive Design
   ======================================== */

/* ========================================
   LARGE DESKTOP (> 1400px)
   ======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* ========================================
   DESKTOP (1024px - 1400px)
   ======================================== */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* ========================================
   TABLET (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    /* Header */
    .header-cta {
        display: none;
    }
    
    .nav-list {
        gap: var(--spacing-md);
    }
    
    /* Hero */
    .hero-logo img {
        max-width: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    /* Sobre */
    .sobre-content {
        gap: var(--spacing-lg);
    }
    
    .sobre-stats {
        gap: var(--spacing-md);
    }
    
    /* Serviços */
    .servico-card.featured {
        grid-column: span 1;
    }
    
    /* Agendamento */
    .agendamento-content {
        gap: var(--spacing-lg);
    }
    
    /* Contato */
    .contato-content {
        gap: var(--spacing-lg);
    }
}

/* ========================================
   MOBILE LARGE (768px and below)
   ======================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Header */
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition-normal);
    }
    
    .nav.active {
        max-height: 500px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--color-gray-light);
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm);
        text-align: center;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
    }
    
    .hero-logo img {
        max-width: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn-large {
        width: 100%;
    }
    
    /* Sobre */
    .sobre-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .image-decoration {
        display: none;
    }
    
    .sobre-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-item {
        padding: var(--spacing-md);
        background: var(--color-gray-light);
        border-radius: var(--radius-md);
    }
    
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }
    
    /* Serviços */
    .servicos-grid {
        grid-template-columns: 1fr;
    }
    
    .servico-card.featured {
        grid-column: span 1;
    }
    
    /* Depoimentos */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-btn.prev {
        left: -10px;
    }
    
    .carousel-btn.next {
        right: -10px;
    }
    
    .depoimento-header {
        flex-direction: column;
        text-align: center;
    }
    
    .depoimento-avatar {
        width: 100px;
        height: 100px;
    }
    
    /* Galeria */
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .galeria-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        justify-content: center;
    }
    
    /* Lightbox */
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
    
    .lightbox-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-btn.prev {
        left: 10px;
    }
    
    .lightbox-btn.next {
        right: 10px;
    }
    
    /* Agendamento */
    .agendamento-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto;
    }
    
    /* Contato */
    .contato-content {
        grid-template-columns: 1fr;
    }
    
    .contato-map {
        order: -1;
    }
    
    .contato-map iframe {
        height: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto var(--spacing-md);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: left;
    }
    
    /* Floating Buttons */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 85px;
        right: 20px;
        font-size: 1.3rem;
    }
}

/* ========================================
   MOBILE SMALL (< 480px)
   ======================================== */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Header */
    .logo-img {
        height: 50px;
    }
    
    /* Hero */
    .hero-logo img {
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 14px 32px;
    }
    
    /* Cards */
    .diferencial-card,
    .servico-card,
    .depoimento-card {
        padding: var(--spacing-md);
    }
    
    .card-icon,
    .servico-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Galeria */
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria-overlay i {
        font-size: 2rem;
    }
    
    .galeria-overlay p {
        font-size: 1rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Social Icons */
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* ========================================
   LANDSCAPE MODE
   ======================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .whatsapp-float,
    .back-to-top,
    .menu-toggle,
    .nav,
    .hero-ctas,
    .scroll-indicator,
    .carousel-btn,
    .carousel-indicators,
    .galeria-filters,
    .galeria-overlay,
    .agendamento-form,
    .footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20pt 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-azul-claro: #0080FF;
        --color-azul-medio: #0040FF;
        --color-gray-medium: #404040;
    }
    
    .btn {
        border-width: 3px;
    }
    
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional: Dark mode styles can be added here if needed */
}