/**
 * ESTILOS RESPONSIVOS
 * Media queries para mobile, tablet e desktop
 */

/* ============================================================
   TABLET (768px - 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .header-cta {
        margin-left: 1rem;
    }
    
    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* ============================================================
   MOBILE (até 768px)
   ============================================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Header */
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav.active {
        max-height: 500px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--border);
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: none;
    }
    
    .nav-link:hover {
        background-color: var(--light);
    }
    
    /* Dropdown Mobile */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background-color: var(--light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 2rem;
    }
    
    .dropdown-menu a:hover {
        padding-left: 2.5rem;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Seções */
    section {
        padding: 2rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .card {
        padding: 1.5rem;
    }
    
    /* Botões */
    .btn {
        display: block;
        width: 100%;
        padding: 0.85rem 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Utilitários */
    .mb-1 { margin-bottom: 0.25rem; }
    .mb-2 { margin-bottom: 0.75rem; }
    .mb-3 { margin-bottom: 1rem; }
    .mb-4 { margin-bottom: 1.5rem; }
    
    .mt-1 { margin-top: 0.25rem; }
    .mt-2 { margin-top: 0.75rem; }
    .mt-3 { margin-top: 1rem; }
    .mt-4 { margin-top: 1.5rem; }
}

/* ============================================================
   MOBILE PEQUENO (até 480px)
   ============================================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
    
    .scroll-to-top {
        bottom: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================================
   ORIENTAÇÃO LANDSCAPE
   ============================================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* ============================================================
   IMPRESSÃO
   ============================================================ */
@media print {
    .header,
    .footer,
    .scroll-to-top,
    .menu-toggle,
    .header-cta {
        display: none;
    }
    
    body {
        background-color: #FFFFFF;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        color: var(--primary);
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p {
        page-break-inside: avoid;
    }
}

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --light: #2A2A2A;
        --border: #444444;
    }
    
    body {
        background-color: #1A1A1A;
        color: #E0E0E0;
    }
    
    .card {
        background-color: #2A2A2A;
        border-color: #444444;
    }
    
    input,
    textarea,
    select {
        background-color: #2A2A2A;
        color: #E0E0E0;
        border-color: #444444;
    }
}
