/* ===================================================================
   Alcapone — base.css
   Comum ao Delivery e ao Drop: tokens, reset, tipografia, botões,
   topo, foto em tela cheia, chamada final, rodapé e revelação na rolagem.
   Cada página carrega depois o seu próprio CSS (delivery.css / drop.css).
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
    --preto:  #0b0a0a;
    --cartao: #151313;   /* fundo dos cards: um degrau acima do preto */
    --branco: #FFFFFF;
    --gold:   #F1C40F;
    --verde:  #3ddc84;

    --texto:       rgba(255, 255, 255, 0.72);  /* texto corrido */
    --texto-fraco: rgba(255, 255, 255, 0.56);  /* rodapé, notas (AA no preto) */
    --fio:         rgba(255, 255, 255, 0.12);  /* divisórias neutras */

    --font-titulo: 'Federo', 'Montserrat', sans-serif;
    --font:        'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --maxw: 1200px;
    --gutter: clamp(20px, 5vw, 48px);
    --respiro: clamp(88px, 14vw, 200px);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
    font-family: var(--font);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--branco);
    background: var(--preto);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ol, ul, dl { list-style: none; }
figure { margin: 0; }
button, input { font: inherit; color: inherit; }
address { font-style: normal; }

::selection { background: var(--gold); color: var(--preto); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.bloco { padding-block: var(--respiro); }
.bloco--sem-topo { padding-top: 0; }

p { color: var(--texto); max-width: 40ch; }

/* ---------- Tipografia ---------- */
.titulo {
    font-family: var(--font-titulo);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.875rem, 5.5vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-wrap: balance;
}

/* Subtítulo de seção: pequeno, espaçado */
.rotulo {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--branco);
}

.texto-apoio {
    max-width: 58ch;
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.nota {
    font-size: 0.8125rem;
    color: var(--texto-fraco);
}

/* ---------- Fios gold ---------- */
.fio-vertical {
    display: block;
    width: 1px;
    height: clamp(28px, 6vh, 72px);
    margin: 0 auto;
    background: var(--gold);
}

.fio-curto {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--gold);
}

/* ---------- Botão ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 18px 36px;
    background: var(--gold);
    color: var(--preto);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    border-radius: 2px;
    transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -14px rgba(241, 196, 15, 0.55);
}

/* Secundário: só o contorno gold (WhatsApp / Drop), para não competir com o iFood */
.btn--contorno {
    background: transparent;
    color: var(--gold);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.btn--contorno:hover {
    box-shadow: inset 0 0 0 1px var(--gold), 0 14px 36px -18px rgba(241, 196, 15, 0.45);
}

.btn--bloco { width: 100%; padding-inline: 16px; }

.link-sec {
    display: inline-block;
    padding: 12px 4px;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: var(--texto);
    text-underline-offset: 6px;
    text-decoration-color: rgba(241, 196, 15, 0.6);
}

.link-sec:hover { color: var(--branco); }

/* ---------- Foto de fundo (topo e drop) ---------- */
.foto-fundo,
.foto-fundo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-video { object-position: 53% 50%; }

/* ===================================================================
   Topo (estrutura)
   =================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    overflow: hidden;
}

.hero-inner {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(32px, 6vh, 56px) var(--gutter) clamp(40px, 8vh, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
}

.hero-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes surgir {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

@keyframes descer {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

/* ===================================================================
   Foto em tela cheia
   =================================================================== */
.faixa img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

@media (min-width: 768px) {
    .faixa img { aspect-ratio: 16 / 9; max-height: 92vh; }
}

/* ===================================================================
   Chamada final (foto de fundo)
   =================================================================== */
.final {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 90vh;
    min-height: 90svh;
    display: flex;
    align-items: center;
    padding-block: var(--respiro);
    text-align: center;
}

.final::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, var(--preto) 0%, rgba(11, 10, 10, 0) 25%, rgba(11, 10, 10, 0) 75%, var(--preto) 100%),
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(11, 10, 10, 0.7) 0%, rgba(11, 10, 10, 0.9) 100%);
}

.final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===================================================================
   Rodapé
   =================================================================== */
.rodape {
    padding-block: 64px 48px;
    text-align: center;
    border-top: 1px solid var(--fio);
}

.rodape-logo {
    width: 140px;
    margin: 0 auto 28px;
    opacity: 0.6;
}

.rodape p {
    margin-inline: auto;
    max-width: 48ch;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--texto-fraco);
}

/* ===================================================================
   Revelação na rolagem (fade suave)
   =================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
