/* ==========================================================================
   Final de Ano Premiado — GMB
   Paleta do banner de Natal (vermelho, ouro, verde) organizada por
   superfície, cada uma com sua cor de texto de alto contraste:
     marfim   → texto vinho-escuro, acentos em vermelho
     vinho    → texto marfim, acentos em ouro
     pinheiro → texto marfim, números em ouro
   ========================================================================== */

:root {
    --wine-900: #2b0408;
    --wine-800: #4a0710;
    --red: #c8102e;
    --red-700: #a30d25;
    --gold: #f2c14e;
    --gold-300: #ffd97a;
    --pine-900: #0b2e20;
    --pine-800: #134330;
    --green: #0f7a43;
    --green-700: #0b6236;

    --ivory: #fbf6ec;
    --ivory-200: #f3e9d6;
    --white: #ffffff;
    --ink: #26090c;
    --ink-soft: #5a3b3e;
    --on-dark: #fff8ec;
    --on-dark-soft: #f0dcd2;
    --on-pine-soft: #d6e7dc;
    --field-line: #e0cdb4;

    --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-script: 'Yellowtail', cursive;

    --header-h: 76px;
    --radius: 16px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--font);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--wine-900); }

.particles { display: none; }

/* --------------------------------------------------------------------------
   Tipografia comum
   -------------------------------------------------------------------------- */
.section { padding: 128px 0; }

.section-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 5.2vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    color: var(--wine-800);
}

.script {
    font-family: var(--font-script);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1;
    color: var(--red);
    margin-bottom: 6px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    max-width: 52ch;
    margin-top: 20px;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn i { font-size: 1.25em; }

.btn-gold  { background: var(--gold);  color: var(--wine-900); }
.btn-gold:hover  { background: var(--gold-300); }
.btn-red   { background: var(--red);   color: var(--white); }
.btn-red:hover   { background: var(--red-700); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-700); }

.btn-lg { padding: 16px 32px; font-size: 1.125rem; text-align: left; }
.btn-lg i { font-size: 1.75rem; }
.btn-lg span { display: grid; }
.btn-lg small { font-size: .875rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    background: var(--wine-800);
    color: var(--on-dark);
    transition: background-color .3s;
}
.header.scrolled { background: var(--wine-900); }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo { flex: none; }
.logo-img { width: 124px; height: auto; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }

.nav-link,
.nav-page {
    display: block;
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-dark);
    text-decoration: none;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    transition: color .2s;
}
.nav-link:hover,
.nav-page:hover { color: var(--gold); text-decoration-line: underline; }

.header-cta { flex: none; }

.mobile-menu-btn {
    display: none;
    width: 48px; height: 48px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 110;
}

.hamburger {
    display: block;
    width: 28px; height: 3px;
    background: var(--on-dark);
    border-radius: 3px;
    transition: transform .3s var(--ease), opacity .2s;
}
.mobile-menu-btn.active .hamburger:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-btn.active .hamburger:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active .hamburger:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Banner + faixa
   -------------------------------------------------------------------------- */
.hero-image { padding-top: var(--header-h); background: var(--wine-800); }
.hero-main-image { width: 100%; height: auto; }

.faixa {
    background: var(--wine-800);
    color: var(--on-dark);
    padding: 40px 0 48px;
}

.faixa-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    flex-wrap: wrap;
}

.faixa-periodo {
    font-weight: 800;
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--gold);
}

.faixa-sub {
    margin-top: 6px;
    font-size: 1.125rem;
    color: var(--on-dark-soft);
}

/* --------------------------------------------------------------------------
   Como participar
   -------------------------------------------------------------------------- */
.participar { background: var(--ivory); }

.participar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 64px 88px;
    align-items: center;
}

.passos {
    counter-reset: passo;
    margin-top: 44px;
    display: grid;
    gap: 22px;
}

.passos li {
    counter-increment: passo;
    position: relative;
    padding-left: 64px;
    min-height: 44px;
    padding-top: 7px;
}

.passos li::before {
    content: counter(passo);
    position: absolute;
    left: 0; top: 0;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    font-size: 1.125rem;
    border-radius: 50%;
}

.passos strong { color: var(--wine-800); font-weight: 800; }

.passos a { white-space: nowrap; }
.passos a,
.nota a {
    color: var(--red);
    font-weight: 700;
    text-underline-offset: 3px;
}
.passos a:hover,
.nota a:hover { color: var(--red-700); }

.nota {
    margin-top: 36px;
    font-size: .9375rem;
    color: var(--ink-soft);
}

.polaroid {
    position: relative;
    background: var(--white);
    padding: 16px 16px 72px;
    transform: rotate(3deg);
    box-shadow: 0 24px 48px -24px rgba(43, 4, 8, .55);
    max-width: 420px;
    justify-self: center;
}
.polaroid img { width: 100%; height: auto; }
.polaroid figcaption {
    position: absolute;
    inset: auto 0 18px 0;
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.85rem;
    color: var(--red);
}
.polaroid::after {
    content: '';
    position: absolute;
    top: -38px; right: -34px;
    width: 96px; height: 96px;
    background: var(--gold);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* --------------------------------------------------------------------------
   Prêmios
   -------------------------------------------------------------------------- */
.premiacao-section { background: var(--pine-900); color: var(--on-dark); }
.premiacao-section .section-title { color: var(--on-dark); }
.premiacao-section .lead { color: var(--on-pine-soft); }

.premios {
    display: grid;
    gap: 16px;
    margin-top: 56px;
}

.premio-card {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 6px 48px;
    align-items: center;
    background: var(--pine-800);
    border-radius: var(--radius);
    padding: 36px 48px;
}

.premio-valor {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-weight: 900;
    font-size: clamp(3.25rem, 7.4vw, 6.5rem);
    line-height: .95;
    letter-spacing: -.04em;
    color: var(--gold);
    white-space: nowrap;
}

.premio-qtd {
    grid-column: 2;
    align-self: end;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--on-dark);
}

.premio-desc {
    grid-column: 2;
    align-self: start;
    font-size: 1.0625rem;
    color: var(--on-pine-soft);
}

.sorteio-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
    margin-top: 48px;
}

.info-card {
    padding-left: 20px;
    border-left: 4px solid var(--gold);
    font-size: 1.0625rem;
    color: var(--on-pine-soft);
}
.info-card strong { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Lojas participantes
   -------------------------------------------------------------------------- */
.lojas-section { background: var(--ivory-200); }

.lojas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.loja-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.loja-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px -22px rgba(43, 4, 8, .45);
}

.loja-logo { padding: 20px 20px 4px; }
.loja-logo .logo-img1,
.loja-logo .logo-img2 {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.loja-info { padding: 16px 22px 24px; }

.loja-nome {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--wine-800);
    margin-bottom: 12px;
}

.loja-details {
    display: grid;
    gap: 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink);
}

.loja-details p { display: flex; gap: 10px; }
.loja-details i { color: var(--red); width: 16px; flex: none; margin-top: 4px; text-align: center; }

.loja-instagram {
    display: inline-flex;
    gap: 10px;
    align-items: baseline;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.loja-instagram:hover { text-decoration: underline; color: var(--red-700); }

.add-more-stores {
    margin-top: 40px;
    font-weight: 700;
    color: var(--wine-800);
}

/* --------------------------------------------------------------------------
   Contato
   -------------------------------------------------------------------------- */
.contato-section { background: var(--wine-800); color: var(--on-dark); }
.contato-section .section-title { color: var(--on-dark); }
.contato-section .lead { color: var(--on-dark-soft); }

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px 88px;
    align-items: start;
}

.info-items { display: grid; gap: 28px; margin-top: 44px; }

.info-item dt {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}
.info-item dt i { width: 20px; margin-right: 6px; }

.info-item dd {
    font-size: 1.125rem;
    color: var(--on-dark);
    overflow-wrap: anywhere;
}
.info-item dd a { text-decoration: none; }
.info-item dd a:hover { color: var(--gold); text-decoration: underline; }

.contato-form {
    background: var(--ivory);
    color: var(--ink);
    padding: 40px;
    border-radius: var(--radius);
}

.contato-form h3 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--wine-800);
    margin-bottom: 24px;
}

.form-group { position: relative; margin-bottom: 16px; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 24px 16px 10px;
    font: inherit;
    font-size: 1.0625rem;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--field-line);
    border-radius: 12px;
    outline: 0;
    transition: border-color .2s;
}
.form-group textarea { resize: vertical; min-height: 128px; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group label {
    position: absolute;
    left: 18px; top: 17px;
    font-size: 1.0625rem;
    color: var(--ink-soft);
    pointer-events: none;
    transform-origin: left top;
    transition: transform .2s var(--ease), color .2s;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    transform: translateY(-10px) scale(.78);
    font-weight: 700;
    color: var(--red);
}

.submit-btn, .whatsapp-btn { width: 100%; min-height: 56px; }
.whatsapp-btn { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.footer {
    background: var(--wine-900);
    color: var(--on-dark);
    padding: 96px 0 40px;
}

.footer-marca {
    font-family: var(--font-script);
    font-size: clamp(3.25rem, 10vw, 8rem);
    line-height: 1;
    color: var(--gold);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    margin-top: 48px;
}

.footer-logo-img { width: 140px; height: auto; }

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-links a {
    padding: 8px 0;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 6px;
}
.footer-links a:hover { color: var(--gold); text-decoration: underline; }

.footer-bottom {
    margin-top: 32px;
    font-size: .9375rem;
    color: var(--on-dark-soft);
}

/* --------------------------------------------------------------------------
   Voltar ao topo
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 90;
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--wine-900);
    border: 0;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    translate: 0 16px;
    transition: opacity .3s, translate .3s var(--ease), visibility .3s, background-color .2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; translate: 0 0; }
.back-to-top:hover { background: var(--gold-300); }

/* --------------------------------------------------------------------------
   Entrada ao rolar (classe adicionada por script.js)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity .7s var(--ease), translate .7s var(--ease),
                transform .3s var(--ease), box-shadow .3s var(--ease);
}
.reveal.active { opacity: 1; translate: 0 0; }

.premios .premio-card:nth-child(2),
.lojas-grid .loja-card:nth-child(4n+2) { transition-delay: .08s, .08s, 0s, 0s; }
.premios .premio-card:nth-child(3),
.lojas-grid .loja-card:nth-child(4n+3) { transition-delay: .16s, .16s, 0s, 0s; }
.lojas-grid .loja-card:nth-child(4n+4) { transition-delay: .24s, .24s, 0s, 0s; }

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .nav-link, .nav-page { padding: 10px 10px; font-size: .9375rem; }
    .header-inner { gap: 20px; }
}

@media (max-width: 960px) {
    .participar-grid,
    .contato-content { grid-template-columns: 1fr; }
    .polaroid { max-width: 380px; }
    .premio-card { padding: 32px 36px; gap: 6px 32px; }
}

/* --------------------------------------------------------------------------
   Celular
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    :root { --header-h: 64px; }

    .mobile-menu-btn { display: flex; }
    .header-inner { gap: 12px; }
    .logo-img { width: 104px; }
    .header-cta { margin-left: auto; min-height: 44px; padding: 10px 16px; font-size: .9375rem; }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 105;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--wine-900);
        visibility: hidden;
        opacity: 0;
        transition: opacity .3s var(--ease), visibility .3s;
    }
    .nav.active { visibility: visible; opacity: 1; }
    .nav-list { flex-direction: column; align-items: center; gap: 8px; }
    .nav-link, .nav-page { font-size: 1.75rem; font-weight: 800; padding: 12px 24px; }
}

@media (max-width: 640px) {
    body { font-size: 1.0625rem; }
    .container { padding: 0 20px; }
    .section { padding: 88px 0; }
    .lead { font-size: 1.125rem; }

    .faixa { padding: 32px 0 40px; }
    .faixa-inner .btn-lg { width: 100%; justify-content: flex-start; }

    .premio-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px 32px; }
    .premio-valor { order: 2; margin: 4px 0 10px; font-size: clamp(3rem, 15vw, 4rem); }
    .premio-qtd { order: 1; font-size: 1.25rem; align-self: auto; }
    .premio-desc { order: 3; align-self: auto; }

    .sorteio-info { grid-template-columns: 1fr; }
    .lojas-grid { grid-template-columns: 1fr; }
    .contato-form { padding: 28px 20px; }
    .polaroid { transform: rotate(2deg); max-width: 320px; }
    .polaroid::after { width: 72px; height: 72px; top: -28px; right: -18px; }
}

@media (max-width: 380px) {
    .header-cta i { display: none; }
}

/* --------------------------------------------------------------------------
   Movimento reduzido / impressão
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal { opacity: 1; translate: 0 0; }
}

@media print {
    .header, .back-to-top, .faixa .btn { display: none !important; }
    .hero-image { padding-top: 0; }
}
