/* ============================================================
   COMODORO BURGUER — design system do site
   Identidade: capa preta + miolo de papel do cardápio impresso
   Fontes: Bernier (manchete) / Great Sejagad (tempero) / Vision (corpo)
   ============================================================ */

@font-face {
    font-family: 'Bernier';
    src: url(../Fonts/BERNIERDistressedRegular.otf) format('opentype');
    font-display: swap;
}
@font-face {
    font-family: 'Sejagad';
    src: url('../Fonts/Great Sejagad.otf') format('opentype');
    font-display: swap;
}
@font-face {
    font-family: 'Vision';
    src: url(../Fonts/Vision.otf) format('opentype');
    font-display: swap;
}

:root {
    --preto: #0f0f0f;
    --preto2: #171412;
    --carvao: #241f1b;
    --papel: #f2ecdf;
    --papel2: #e8e0cf;
    --amarelo: #feed00;
    --laranja: #e8752a;
    --tinta: #191510;          /* texto sobre papel */
    --tinta-fraca: #6d6250;
    --branco: #ffffff;
    --creme-fraco: rgba(242, 236, 223, 0.62);
    --sombra-dura: 6px 6px 0 rgba(0, 0, 0, 0.9);
    --f-display: 'Bernier', Impact, 'Arial Black', sans-serif;
    --f-script: 'Sejagad', cursive;
    --f-corpo: 'Vision', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--f-corpo);
    background: var(--preto);
    color: var(--branco);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

::selection { background: var(--amarelo); color: var(--preto); }

/* ---------- texturas ---------- */
/* papel: ruído sutil por SVG embutido, como o miolo do cardápio */
.papel {
    background-color: var(--papel);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
    color: var(--tinta);
}
.preto-sec {
    background-color: var(--preto);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    color: var(--branco);
}

/* ---------- tipografia ---------- */
.eyebrow {
    font-family: var(--f-corpo);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: clamp(0.62rem, 1.4vw, 0.78rem);
    opacity: 0.75;
}
.display {
    font-family: var(--f-display);
    text-transform: lowercase;
    line-height: 0.92;
    letter-spacing: 0.01em;
    font-weight: 400;
}
.script { font-family: var(--f-script); font-weight: 400; }

/* ---------- botões (sem ícone: só tipo e forma) ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-corpo);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    text-decoration: none;
    padding: 1.05rem 2.1rem;
    border: 2px solid var(--preto);
    background: var(--amarelo);
    color: var(--preto);
    box-shadow: var(--sombra-dura);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    cursor: pointer;
    text-align: center;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0,0,0,0.9); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,0.9); }
.btn.fantasma {
    background: transparent;
    color: inherit;
    border-color: currentColor;
    box-shadow: none;
}
.btn.fantasma:hover { background: var(--amarelo); color: var(--preto); border-color: var(--preto); box-shadow: var(--sombra-dura); }
.btn.laranja { background: var(--laranja); color: var(--branco); border-color: var(--preto); }
.preto-sec .btn, .hero .btn { box-shadow: 6px 6px 0 rgba(254, 237, 0, 0.25); }
.preto-sec .btn:hover, .hero .btn:hover { box-shadow: 8px 8px 0 rgba(254, 237, 0, 0.32); }

/* ---------- header ---------- */
.topo {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem clamp(1rem, 4vw, 2.6rem);
    background: rgba(15, 15, 15, 0.0);
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.topo.rolou {
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(254, 237, 0, 0.25);
}
.topo .marca { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.topo .marca img { height: 52px; width: auto; transition: height .3s ease; }
.topo.rolou .marca img { height: 42px; }
.topo nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2rem); }
.topo nav a {
    font-family: var(--f-corpo);
    color: var(--branco);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    padding: 0.3rem 0;
    position: relative;
}
.topo nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--amarelo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.topo nav a:hover::after, .topo nav a.ativo::after { transform: scaleX(1); }
.topo .cta-topo {
    background: var(--amarelo);
    color: var(--preto);
    border: 2px solid var(--preto);
    padding: 0.55rem 1.2rem;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.85);
    transition: transform .15s ease;
    white-space: nowrap;
}
.topo .cta-topo:hover { transform: translate(-1px, -1px); }

/* menu mobile */
.hamb {
    display: none;
    background: none;
    border: 2px solid var(--amarelo);
    color: var(--amarelo);
    font-family: var(--f-corpo);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}
.menu-mobile {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--preto);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}
.menu-mobile.aberto { display: flex; }
.menu-mobile a {
    font-family: var(--f-display);
    font-size: clamp(2rem, 9vw, 3.2rem);
    color: var(--branco);
    text-decoration: none;
    text-transform: lowercase;
    line-height: 1;
}
.menu-mobile a:hover { color: var(--amarelo); }
.menu-mobile .fechar {
    position: absolute;
    top: 1.2rem; right: 1.4rem;
    background: none;
    border: 2px solid var(--amarelo);
    color: var(--amarelo);
    font-family: var(--f-corpo);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

@media (max-width: 880px) {
    .topo nav { display: none; }
    .hamb { display: block; }
}

/* ---------- marquee ---------- */
.marquee {
    background: var(--amarelo);
    color: var(--preto);
    overflow: hidden;
    border-top: 3px solid var(--preto);
    border-bottom: 3px solid var(--preto);
    padding: 0.55rem 0;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}
.marquee .trilho {
    display: inline-block;
    animation: correr 28s linear infinite;
}
.marquee span {
    font-family: var(--f-display);
    text-transform: lowercase;
    font-size: clamp(1.05rem, 2.6vw, 1.6rem);
    letter-spacing: 0.06em;
    margin-right: 3.2rem;
}
.marquee span i { font-style: normal; font-family: var(--f-script); font-size: 0.9em; margin-right: 3.2rem; color: var(--laranja); }
.marquee.escuro { background: var(--preto); color: var(--amarelo); border-color: var(--amarelo); }
@keyframes correr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- selo / carimbo ---------- */
.selo {
    position: absolute;
    font-family: var(--f-corpo);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    padding: 0.85rem 1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: rotate(-8deg);
    user-select: none;
    pointer-events: none;
}
.selo.girando { animation: girar 26s linear infinite; border-radius: 0; border: none; padding: 0; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- seções genéricas ---------- */
section { position: relative; }
.miolo {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 7.5rem) clamp(1.1rem, 4.5vw, 3rem);
}
.titulo-sec {
    font-family: var(--f-display);
    text-transform: lowercase;
    font-size: clamp(2.4rem, 6.5vw, 4.6rem);
    line-height: 0.92;
    margin: 0.35rem 0 1rem;
}
.tempero {
    font-family: var(--f-script);
    color: var(--laranja);
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    line-height: 1.1;
}
.preto-sec .tempero { color: var(--amarelo); }

/* ---------- reveals ---------- */
.rev { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.rev.viu { opacity: 1; transform: none; }
.rev-d1 { transition-delay: .12s; }
.rev-d2 { transition-delay: .24s; }
.rev-d3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    .rev { opacity: 1; transform: none; transition: none; }
    .marquee .trilho { animation: none; }
    .selo.girando { animation: none; }
}

/* ---------- rodapé ---------- */
.rodape {
    background: var(--preto);
    border-top: 3px solid var(--amarelo);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.1rem, 4.5vw, 3rem) 1.6rem;
}
.rodape .grade {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 2.4rem;
}
.rodape img.logo-pe { height: 84px; width: auto; margin-bottom: 0.9rem; }
.rodape h4 {
    font-family: var(--f-corpo);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.68rem;
    color: var(--amarelo);
    margin-bottom: 1rem;
}
.rodape a { color: var(--creme-fraco); text-decoration: none; display: block; margin: 0.45rem 0; font-size: 0.9rem; }
.rodape a:hover { color: var(--amarelo); }
.rodape .frase-pe { font-family: var(--f-corpo); color: var(--creme-fraco); font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.rodape .fim {
    max-width: 1240px;
    margin: 2.6rem auto 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(242, 236, 223, 0.15);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.74rem;
    color: rgba(242, 236, 223, 0.45);
}
.rodape .fim a { display: inline; margin: 0 0 0 1rem; font-size: inherit; }
@media (max-width: 880px) { .rodape .grade { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rodape .grade { grid-template-columns: 1fr; } }

/* ---------- cookies ---------- */
.cookies {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(20px);
    width: min(520px, calc(100vw - 28px));
    background: var(--papel);
    color: var(--tinta);
    border: 2px solid var(--preto);
    box-shadow: var(--sombra-dura);
    padding: 1.15rem 1.3rem;
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease, transform .4s ease;
    font-size: 0.86rem;
}
.cookies.ativo { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
/* enquanto o aviso de cookies esta na tela ele cobre o rodape e engole o clique dos links.
   o espaco extra embaixo garante que da pra clicar em tudo mesmo sem aceitar. */
body.com-cookies { padding-bottom: 230px; }
@media (max-width: 560px) { body.com-cookies { padding-bottom: 300px; } }
.cookies b { font-family: var(--f-corpo); text-transform: uppercase; letter-spacing: 0.12em; display: block; margin-bottom: 0.4rem; }
.cookies a { color: var(--laranja); }
.cookies .botoes { display: flex; gap: 0.7rem; margin-top: 0.9rem; }
.cookies button {
    font-family: var(--f-corpo);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    padding: 0.55rem 1.3rem;
    cursor: pointer;
    border: 2px solid var(--preto);
}
.cookies .sim { background: var(--preto); color: var(--amarelo); }
.cookies .nao { background: transparent; color: var(--tinta); }

/* ---------- utilidades ---------- */
.centro { text-align: center; }
.sem-scroll { overflow: hidden; }
