/* ============================================================
   GO2RUN — CORRIDA DETALHE — RESPONSIVE
   Desktop ≥992px: layout padrão (definido no CSS principal)
   Tablet  ≤991px: sidebar estática, hero menor
   Mobile  ≤768px: hero EMPILHADO (imagem + conteúdo separados)
   Small   ≤480px: ajustes adicionais
   XS      ≤360px: ajustes finos
   ============================================================ */

/* ================================================================
   TABLET — ≤991px
   ================================================================ */
@media (max-width: 991px) {
    body { padding-bottom: 76px; }

    .hero-banner     { min-height: 480px; }
    .hero-banner-img { height: 480px; object-fit: cover; object-position: center top; }
    .hero-content    { padding-bottom: 2rem; }
    .hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

    .sidebar-card  { position: static; top: auto; margin-top: 2rem; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   MOBILE — ≤768px
   Layout EMPILHADO: imagem visível no topo + conteúdo numa faixa
   escura abaixo. Remove position:absolute do hero-content.
   ================================================================ */
@media (max-width: 768px) {

    /* ── HERO: modo empilhado ── */
    .hero-banner {
        display: flex;
        flex-direction: column;
        min-height: auto;
        overflow: visible;  /* permite conteúdo fluir */
    }

    /* Imagem: proporção original preservada — sem corte */
    .hero-banner-img {
        width: 100%;
        height: auto;
        display: block;
        flex-shrink: 0;
    }

    /* Overlay e stripe não fazem sentido no layout empilhado */
    .hero-overlay { display: none; }
    .hero-stripe  { display: none; }

    /* Conteúdo sai do absolute e vira bloco normal */
    .hero-content {
        position: relative;
        bottom: auto;
        left:   auto;
        right:  auto;
        background: var(--bg-base);
        border-top: 2px solid var(--fire);
        padding: 1.5rem 1.25rem 2rem;
        z-index: 2;
    }

    .hero-content h1 {
        font-size: clamp(1.7rem, 6.5vw, 2.6rem);
        margin-bottom: 0.6rem;
    }
    .hero-content .lead {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    .btn-filled,
    .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    /* ── CONTEÚDO ── */
    .content-section { padding: 2.5rem 0; }
    .section-title   { font-size: clamp(1.6rem, 5vw, 2.2rem); }

    /* ── SIDEBAR ── */
    .sidebar-card { position: static; top: auto; margin-top: 1.5rem; }

    /* ── FEATURES ── */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
    .feature-card { padding: 1.25rem; }

    /* ── BENEFÍCIOS ── */
    .benefits-section { padding: 2.5rem 0; margin: 1.5rem 0; }
    .benefit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    /* ── CTA ── */
    .cta-section  { padding: 2.5rem 0; margin: 1.5rem 0; }
    .cta-title    { font-size: clamp(1.8rem, 6vw, 2.8rem); }
    .cta-button   { width: 100%; justify-content: center; }

    /* ── CONTINUE NAVEGANDO ── */
    .continue-section { padding: 2rem 0 3rem; }
    .nav-card img     { height: 100px; }

    /* ── KIT ── */
    .kit-item-img         { height: 110px; }
    .kit-item-placeholder { height: 110px; }
}

/* ================================================================
   SMALL MOBILE — ≤480px
   ================================================================ */
@media (max-width: 480px) {

    .hero-content { padding: 1.25rem 1rem 1.75rem; }
    .hero-content h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .hero-content .lead { display: none; }

    .btn-filled,
    .btn-outline { font-size: 0.88rem; padding: 0.75rem 1rem; }

    .content-section  { padding: 2rem 0; }
    .section-title    { font-size: clamp(1.4rem, 5vw, 1.9rem); }
    .features-grid    { grid-template-columns: 1fr; gap: 0.65rem; }

    .cta-section      { padding: 2rem 0; }
    .cta-title        { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .cta-description  { font-size: 0.88rem; }

    .nav-card img     { height: 85px; }
    .nav-card-name    { font-size: 0.78rem; }

    .breadcrumb-item:nth-child(-n+2) { display: none; }
}

/* ================================================================
   EXTRA SMALL — ≤360px
   ================================================================ */
@media (max-width: 360px) {
    .hero-content { padding: 1rem 0.875rem 1.5rem; }
    .hero-content h1 { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }

    .features-grid  { gap: 0.5rem; }
    .feature-card   { padding: 1rem; }
    .btn-filled,
    .btn-outline    { font-size: 0.84rem; }
}
