/* ==========================================================================
   Fonte Coleta - Responsive Styles
   Media queries and responsiveness
   ========================================================================== */

/* Logo Image */
.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* ==========================================================================
   TABLET - Up to 968px
   ========================================================================== */
@media (max-width: 968px) {
    /* Logo */
    .logo-img {
        max-height: 50px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav-menu a::after {
        display: none;
    }

    .btn-contact {
        margin-top: 1rem;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    /* Grids */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero */
    .hero {
        padding: 4rem 1.5rem;
        background-attachment: scroll;
        background-position: center top;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    /* Sections */
    section {
        padding: 3rem 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        order: -1;
    }

    /* Home Exams & Featured Services */
    .home-exams,
    .featured-services {
        padding: 3rem 1.5rem;
    }

    .home-exams-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-exams-text {
        text-align: center;
    }

    .home-exams-text p {
        font-size: 1rem;
    }

    .featured-service-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   MOBILE - Up to 640px
   ========================================================================== */
@media (max-width: 640px) {
    /* Logo */
    .logo-img {
        max-height: 45px;
    }

    /* Typography */
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Grids */
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero {
        padding: 3rem 1rem;
        min-height: auto;
        background-attachment: scroll;
        background-position: center center;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Sections */
    section {
        padding: 2.5rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
    }

    .btn-primary-large,
    .btn-secondary-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Navigation Container */
    .nav-container {
        padding: 0.75rem 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        padding: 0;
    }

    /* CTA Section */
    .cta-section {
        padding: 2.5rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Lists */
    .list-check li,
    .list-bullet li {
        font-size: 0.9375rem;
    }

    /* Differential Numbers */
    .differential-number {
        font-size: 2rem;
    }

    /* Home Exams & Featured Services */
    .home-exams,
    .featured-services {
        padding: 2.5rem 1rem;
    }

    .featured-service-icon {
        width: 60px;
        height: 60px;
    }

    .featured-service-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   SMALL MOBILE - Up to 375px
   ========================================================================== */
@media (max-width: 375px) {
    /* Logo */
    .logo-img {
        max-height: 40px;
    }

    /* Hero */
    .hero h1 {
        font-size: 1.5rem;
    }

    /* Cards */
    .card {
        padding: 1.25rem;
    }

    /* Buttons */
    .btn-contact {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   LANDSCAPE MODE
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .nav-menu {
        padding-top: 4rem;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .header,
    .footer,
    .cta-section,
    .mobile-menu-btn {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   ACCESSIBILITY - Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }

    .btn-primary,
    .btn-contact {
        border: 2px solid currentColor;
    }
}
