/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablets (768px e abaixo) */
@media (max-width: 768px) {
    .navbar .container {
        padding: 1rem 15px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem 0;
        gap: 0;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-cta {
        margin: 1rem 20px;
        width: calc(100% - 40px);
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 2rem;
    }

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

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

    .about-content h2 {
        text-align: center;
    }

    .about-content p {
        text-align: center;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 1rem;
    }

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

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

    .navbar .container {
        padding: 0.75rem 15px;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        padding: 40px 15px;
    }

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

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

    section {
        padding: 40px 15px;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section > p {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.75rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    input, textarea, select {
        padding: 0.6rem;
        font-size: 16px; /* Previne zoom em iOS */
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .footer-section h3, .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.95rem;
    }
}

/* Impressão */
@media print {
    .navbar, .footer, .btn {
        display: none;
    }

    body {
        background-color: white;
    }

    section {
        page-break-inside: avoid;
    }
}
