/* ===== RESPONSIVIDADE GERAL ===== */

/* Tablet (768px e abaixo) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .header {
        height: 70px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
        font-size: 1.2rem;
    }

    .logo {
        max-width: 120px;
        overflow: hidden;
    }

    .logo-img {
        height: 35px;
        max-width: 120px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

    .logo a {
        max-width: 100%;
        overflow: hidden;
    }

    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

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

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stat {
        flex: 1;
        min-width: 120px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Imagens responsivas */
    .hero-image img {
        max-width: 100%;
        height: auto;
        border-radius: 15px;
    }

    .about-image img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .benefits-image img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .director-photo img {
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
    }

    .testimonial-author img {
        width: 50px;
        height: 50px;
        max-width: 50px;
        max-height: 50px;
    }

    /* Services Section */
    .services {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .section-header p {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        height: auto;
        min-height: 200px;
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 350px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* About Section */
    .about {
        padding: 60px 0;
    }

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

    .about-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .about-icon {
        margin: 0 auto;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .director-info {
        padding: 1.5rem;
        text-align: center;
    }

    .director-photo img {
        width: 100px;
        height: 100px;
        margin: 0 auto 1rem;
        max-width: 100px;
        max-height: 100px;
    }

    .director-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .director-stat {
        flex: none;
        text-align: center;
    }

    /* Q&A Cards */
    .qa-card {
        margin-bottom: 1rem;
    }

    .qa-question {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .qa-question h3 {
        font-size: 1rem;
    }

    .qa-card:hover .qa-answer {
        padding: 1rem;
    }

    /* Benefits Section */
    .benefits {
        padding: 60px 0;
    }

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

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .benefit-icon {
        margin: 0 auto;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .testimonial-author img {
        width: 50px;
        height: 50px;
        max-width: 50px;
        max-height: 50px;
        margin: 0 auto;
    }

    /* Contact Section */
    .contact {
        padding: 60px 0;
    }

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

    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .contact-methods {
        gap: 1rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    .contact-method i {
        margin: 0 auto;
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile (480px e abaixo) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Header */
    .header {
        height: 60px;
    }

    .logo {
        max-width: 100px;
        overflow: hidden;
    }

    .logo-img {
        height: 30px;
        max-width: 100px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

    .logo a {
        max-width: 100%;
        overflow: hidden;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }

    .stat {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .cta-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Imagens responsivas para mobile */
    .hero-image img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        max-height: 300px;
        object-fit: cover;
    }

    .about-image img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        max-height: 250px;
        object-fit: cover;
    }

    .benefits-image img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        max-height: 250px;
        object-fit: cover;
    }

    .director-photo img {
        width: 80px;
        height: 80px;
        max-width: 80px;
        max-height: 80px;
        object-fit: cover;
    }

    .testimonial-author img {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
        object-fit: cover;
    }

    /* Services Section */
    .services {
        padding: 40px 0;
    }

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

    .section-header p {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.2rem 0.8rem;
        min-height: 180px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    /* About Section */
    .about {
        padding: 40px 0;
    }

    .about-item {
        padding: 1.2rem;
    }

    .about-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .director-info {
        padding: 1.2rem;
    }

    .director-photo img {
        width: 80px;
        height: 80px;
        max-width: 80px;
        max-height: 80px;
    }

    /* Q&A Cards */
    .qa-question {
        padding: 0.8rem;
    }

    .qa-question h3 {
        font-size: 0.9rem;
    }

    .qa-card:hover .qa-answer {
        padding: 0.8rem;
    }

    /* Benefits Section */
    .benefits {
        padding: 40px 0;
    }

    .benefit-item {
        padding: 1.2rem;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 40px 0;
    }

    .testimonial-card {
        padding: 1.2rem;
    }

    .testimonial-author img {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }

    /* Contact Section */
    .contact {
        padding: 40px 0;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-method {
        padding: 0.8rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }
}

/* Mobile muito pequeno (320px e abaixo) */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

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

    .contact-info h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }

    .service-card {
        padding: 1rem 0.6rem;
        min-height: 160px;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .service-card h3 {
        font-size: 0.9rem;
    }

    .service-card p {
        font-size: 0.75rem;
    }
}

/* ===== AJUSTES ESPECÍFICOS ===== */

/* Orientação landscape em mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 30px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

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

    .hero-stats {
        margin-bottom: 1rem;
    }

    .cta-buttons {
        margin-bottom: 1rem;
    }
}

/* Dispositivos com tela touch */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .social-links a:hover,
    .qa-card:hover {
        transform: none;
    }

    .nav-links a:hover {
        color: #2563eb;
    }

    /* Melhorar toque em mobile */
    .btn,
    .service-card,
    .testimonial-card,
    .qa-card {
        min-height: 44px;
    }

    .nav-links a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ===== BARRAS DECORATIVAS RESPONSIVAS ===== */
@media (max-width: 768px) {
    .section-header h2::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }

    .hero-text h1::after {
        width: 80px;
        height: 3px;
        bottom: -10px;
    }

    .contact-info h2::after {
        width: 70px;
        height: 3px;
        bottom: -8px;
    }

    .footer-section h3::after,
    .footer-section h4::after {
        width: 30px;
        height: 2px;
        bottom: -4px;
    }
}

@media (max-width: 480px) {
    .section-header h2::after {
        width: 50px;
        height: 2px;
        bottom: -6px;
    }

    .hero-text h1::after {
        width: 60px;
        height: 2px;
        bottom: -8px;
    }

    .contact-info h2::after {
        width: 50px;
        height: 2px;
        bottom: -6px;
    }
}

/* ===== MENU MOBILE ===== */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active a {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active a:last-child {
        border-bottom: none;
    }
}
