/* ==========================================================================
   STAR PESQUISAS - Responsive Styles
   ========================================================================== */

/* ==========================================================================
   Mobile First Base (0 - 767px)
   ========================================================================== */

/* Already defined in sections.css as default */

/* ==========================================================================
   Small Devices (576px and up)
   ========================================================================== */

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: var(--text-2xl);
    }

    .timeline-step {
        gap: var(--spacing-xl);
    }
}

/* ==========================================================================
   Tablet (768px and up)
   ========================================================================== */

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    .section {
        padding: var(--spacing-4xl) 0;
    }

    /* Typography */
    .section-title {
        font-size: var(--text-4xl);
    }

    .section-subtitle {
        font-size: var(--text-lg);
    }

    /* Hero */
    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-subtitle {
        font-size: var(--text-xl);
    }

    /* Cards */
    .card {
        padding: var(--spacing-2xl);
    }

    /* Form */
    .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    /* Process */
    .processo-step {
        gap: var(--spacing-xl);
    }

    .processo-number {
        width: 70px;
        height: 70px;
        font-size: var(--text-2xl);
    }
}

/* ==========================================================================
   Desktop (1024px and up)
   ========================================================================== */

@media (min-width: 1024px) {
    :root {
        --container-padding: 2.5rem;
    }

    .section {
        padding: 6rem 0;
    }

    /* Typography */
    .section-title {
        font-size: var(--text-4xl);
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--header-height) + var(--spacing-3xl));
    }

    .hero-title {
        font-size: var(--text-6xl);
    }

    .hero-content {
        max-width: 900px;
    }

    /* Sobre */
    .sobre-content {
        gap: var(--spacing-4xl);
    }

    /* Services Grid */
    .servicos-grid {
        gap: var(--spacing-xl);
    }

    /* Metodologia */
    .metodologia-showcase {
        gap: var(--spacing-4xl);
    }

    .timeline-steps {
        gap: var(--spacing-2xl);
    }

    /* Numbers */
    .numero-item {
        padding: var(--spacing-xl);
    }

    /* Contact */
    .contato-form-wrapper {
        padding: var(--spacing-3xl);
    }

    /* Footer */
    .footer-top {
        padding-bottom: var(--spacing-4xl);
    }
}

/* ==========================================================================
   Large Desktop (1280px and up)
   ========================================================================== */

@media (min-width: 1280px) {
    :root {
        --container-max: 1200px;
    }

    .hero-stats {
        max-width: 800px;
        margin: 0 auto;
    }

    .valores-grid {
        gap: var(--spacing-2xl);
    }

    .processo-steps {
        gap: var(--spacing-lg);
    }
}

/* ==========================================================================
   Extra Large Desktop (1536px and up)
   ========================================================================== */

@media (min-width: 1536px) {
    :root {
        --container-max: 1400px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: var(--text-5xl);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .header,
    .back-to-top,
    .hero-decoration,
    .carousel-controls,
    .social-icons,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .hero {
        min-height: auto;
        background: #fff;
        color: #000;
    }

    .hero-title,
    .section-title {
        color: #000;
    }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
    :root {
        --dourado: #d4a500;
        --cinza-texto: #333;
    }

    .btn-primary {
        border-width: 3px;
    }

    .nav-link::after {
        height: 3px;
    }
}

/* ==========================================================================
   Dark Mode Support (Optional - for future implementation)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /*
    Can be enabled if dark mode is desired

    :root {
        --branco: #1A1A1A;
        --cinza-claro: #2d2d2d;
        --cinza-texto: #b0b0b0;
        --cinza-escuro: #e0e0e0;
    }
    */
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .btn:hover {
        transform: none;
    }

    .nav-link:hover::after {
        width: 0;
    }

    /* Increase tap targets */
    .nav-link,
    .mobile-nav-link {
        padding: var(--spacing-md) 0;
    }

    .carousel-btn {
        width: 60px;
        height: 60px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================================================
   Landscape Mobile
   ========================================================================== */

@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height-mobile) + var(--spacing-xl)) 0 var(--spacing-2xl);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-stats {
        padding-top: var(--spacing-lg);
    }
}

/* ==========================================================================
   Specific Mobile Fixes
   ========================================================================== */

@media (max-width: 374px) {
    /* Extra small devices */
    :root {
        --container-padding: 1rem;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-stat-number {
        font-size: var(--text-xl);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--text-xs);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .card {
        padding: var(--spacing-lg);
    }
}
