/* ==========================================================================
   COMPRO OURO BELÉM — RESPONSIVE STYLESHEET
   Breakpoints otimizados: Ultra-wide (1441px+), Desktop (1025px-1440px),
   Tablets (769px-1024px), Mobile Médio (481px-768px), Mobile Pequeno (320px-480px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TELAS ULTRA-WIDE E 4K (> 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1441px) {
    :root {
        --container-width: 1920px;
    }

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

    .copy {
        max-width: 580px;
        font-size: 18px;
    }

    .features {
        margin-top: 4.5rem;
    }

    .feature {
        padding: 54px 42px;
        min-height: 250px;
    }
}

/* --------------------------------------------------------------------------
   2. LAPTOPS PEQUENOS E DESKTOP COMPACTO (1025px — 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .navlinks {
        gap: 22px;
    }

    .intro,
    .process,
    .contact {
        gap: 4vw;
    }
}

/* --------------------------------------------------------------------------
   3. TABLETS E TELAS MÉDIAS (<= 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    :root {
        --nav-height: 72px;
    }

    .nav {
        padding: 16px 0;
    }

    .nav.scrolled {
        padding: 10px 0;
    }

    /* Menu Hambúrguer visível */
    .menu-toggle {
        display: flex;
    }

    /* Gaveta de Navegação Mobile */
    .navlinks {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85vw, 380px);
        height: 100vh;
        height: 100dvh;
        background: rgba(11, 12, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 36px 40px;
        gap: 0;
        z-index: 101;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
        border-left: 1px solid rgba(147, 117, 57, 0.3);
        transition: right 0.4s var(--transition-smooth);
        overflow-y: auto;
    }

    .navlinks.active {
        right: 0;
    }

    /* Overlay escuro ao abrir o menu mobile */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .navlinks a {
        width: 100%;
        padding: 18px 0;
        font-size: 15px;
        letter-spacing: 0.18em;
        border-bottom: 1px solid rgba(147, 117, 57, 0.2);
        color: #f6f2e9;
    }

    .navlinks a::after {
        display: none;
    }

    .navlinks a:hover,
    .navlinks a:active {
        color: var(--gold2);
        padding-left: 8px;
    }

    .nav-cta-mobile {
        display: inline-flex !important;
        width: 100%;
        margin-top: 26px;
        padding: 16px 20px;
        background: var(--gold2);
        color: var(--black) !important;
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 0.16em;
        text-align: center;
        justify-content: center;
        border: none;
        border-radius: 0;
    }

    .nav-cta-desktop {
        display: none;
    }

    /* Layout de Seções em Coluna */
    .intro {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .feature {
        padding: 34px 28px;
        min-height: auto;
    }

    .process {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .contact-info {
        margin-top: 1.5rem;
    }

    .brand-text {
        transform: translateX(-64px);
    }

    .nav.scrolled .brand-text {
        transform: translateX(0);
    }
}

/* --------------------------------------------------------------------------
   4. SMARTPHONES EM GERAL (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
    }

    section {
        padding: 70px 0;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 24px);
        padding-bottom: 70px;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-logo {
        height: 120px;
        margin-bottom: 0;
    }

    h1 {
        font-size: clamp(2.3rem, 9vw, 3.4rem);
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }

    h2 {
        font-size: clamp(1.85rem, 6.5vw, 2.6rem);
        line-height: 1.15;
        margin-bottom: 1.2rem;
    }

    .quote {
        font-size: 21px;
        line-height: 1.4;
        padding-left: 20px;
        margin-top: 1.4rem;
    }

    .banner {
        min-height: 50vh;
        padding: 65px 0;
    }

    .banner h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .scroll-indicator {
        display: none; /* Evita poluição visual em telas mobile */
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* --------------------------------------------------------------------------
   5. SMARTPHONES COMPACTOS (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .brand {
        gap: 10px;
        font-size: 16px;
    }

    .nav-logo {
        height: 38px;
    }

    .brand-text {
        transform: translateX(-48px);
    }

    .brand-sub {
        font-size: 9px;
        letter-spacing: 0.28em;
    }

    .hero-logo {
        height: 120px;
        margin-bottom: 0;
    }

    .eyebrow,
    .kicker {
        font-size: 10px;
        letter-spacing: 0.25em;
        margin-bottom: 0.9rem;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.75;
        margin-bottom: 1.6rem;
    }

    /* Botão CTA expansível no mobile para fácil toque com o polegar */
    .cta {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    .step {
        grid-template-columns: 42px 1fr;
        gap: 14px;
        padding: 20px 0;
    }

    .step strong {
        font-size: 18px;
        line-height: 1.3;
    }

    input,
    textarea {
        padding: 14px 16px;
        font-size: 16px; /* Garante que o Safari iOS não aplique zoom */
    }

    button[type="submit"] {
        width: 100%;
        padding: 16px;
        font-size: 12px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* --------------------------------------------------------------------------
   6. TELAS ULTRA-PEQUENAS (<= 360px: ex. Galaxy Fold externo, iPhone SE 1ªG)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand {
        font-size: 14px;
    }

    .nav-logo {
        height: 34px;
    }

    .brand-text {
        transform: translateX(-44px);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hero-logo {
        height: 120px;
    }

    .step {
        grid-template-columns: 34px 1fr;
        gap: 10px;
    }

    .step span {
        font-size: 11px;
    }

    .step strong {
        font-size: 16px;
    }
}

/* --------------------------------------------------------------------------
   7. REGRAS PARA DISPOSITIVOS DE TOQUE (iOS / Android)
   Prevenção de falhas com background-attachment: fixed no Safari/Chrome móvel
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    .banner {
        background-attachment: scroll !important;
    }
    
    .cta:hover {
        background: transparent;
        color: #ffffff;
    }
    
    .cta-gold:hover {
        background: var(--gold2);
        color: var(--black);
    }
}

/* --------------------------------------------------------------------------
   8. ACESSIBILIDADE E PREFERÊNCIAS DO SISTEMA
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-indicator {
        animation: none;
    }
}
