/* 
* Clínica Veterinária - Template
* Estilos responsivos
* Versão: 1.0
*/

/* ======= Dispositivos Grandes (Desktops, 1200px e acima) ======= */
@media (max-width: 1200px) {
    :root {
        --container-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ======= Dispositivos Médios (Tablets, 992px e acima) ======= */
@media (max-width: 992px) {
    :root {
        --container-width: 960px;
        --header-height: 80px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        height: auto;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .hero-slide {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        padding: var(--spacing-md);
        text-align: center;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        width: 100%;
        height: 300px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .about-image {
        margin-bottom: var(--spacing-lg);
    }
    
    .experience-badge {
        bottom: -20px;
        right: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md) var(--spacing-lg);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .newsletter-form {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======= Dispositivos Pequenos (Tablets Pequenos e Smartphones Grandes, 768px e acima) ======= */
@media (max-width: 768px) {
    :root {
        --container-width: 720px;
        --header-height: 70px;
    }
    
    .top-bar {
        display: none;
    }
    
    .header {
        position: relative;
    }
    
    .hero-section {
        padding-top: var(--header-height);
    }
    
    .main-header .container {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--spacing-md) var(--spacing-md);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-normal);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-list a {
        display: block;
        padding: var(--spacing-sm) 0;
    }
    
    .nav-list a::after {
        display: none;
    }
    
    .main-header .btn {
        display: none;
    }
    
    .hero-slider {
        height: auto;
    }
    
    .hero-slide {
        position: relative;
        height: auto;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-image {
        margin: 0 auto var(--spacing-sm);
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    #back-to-top {
        right: 20px;
        bottom: 90px;
    }
}

/* ======= Dispositivos Extra Pequenos (Smartphones, 576px e acima) ======= */
@media (max-width: 576px) {
    :root {
        --container-width: 100%;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-header {
        margin-bottom: var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: var(--spacing-xs);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filter {
        flex-direction: column;
        gap: 5px;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}

/* ======= Dispositivos Muito Pequenos (Smartphones Pequenos, 400px e abaixo) ======= */
@media (max-width: 400px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1.25rem;
        --spacing-lg: 1.75rem;
        --spacing-xl: 2.5rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ======= Altura Pequena (Dispositivos com altura limitada) ======= */
@media (max-height: 600px) {
    .hero-slider {
        height: 400px;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .nav-list {
        padding-top: 70px;
    }
}

/* ======= Modo de Impressão ======= */
@media print {
    .header,
    .footer,
    .whatsapp-button,
    #back-to-top,
    .cta-section,
    .newsletter-section,
    .map-section,
    .gallery-section,
    .contact-form-container,
    .social-media,
    .nav-list,
    .hero-buttons,
    .slider-controls,
    .testimonial-controls,
    .blog-more {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background-color: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }
    
    .section-header {
        margin-bottom: 15pt;
    }
    
    .about-content,
    .services-grid,
    .team-grid,
    .blog-grid {
        display: block;
    }
    
    .about-content > div,
    .service-card,
    .team-card,
    .blog-card {
        margin-bottom: 20pt;
        page-break-inside: avoid;
    }
    
    .experience-badge,
    .service-icon,
    .team-social,
    .blog-date {
        display: none;
    }
}
