/* ==========================================================================
   ACAMPAMUSIC 2026 — main.css
   Base + componentes + blocos. Mobile-first.
   ========================================================================== */

/* ----------  RESET / BASE  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-brand);
}
.eyebrow--light { color: var(--dourado); }

/* ----------  BOTÕES  ---------- */
.btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cta);
  color: var(--cta-ink);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { background: var(--cta-hover); }

.btn--secondary {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--secondary:hover { background: var(--color-brand); color: #fff; }

/* contorno claro, para fundos escuros */
.btn--ghost-light {
  background: transparent;
  color: var(--creme);
  border-color: rgba(242, 236, 219, 0.45);
}
.btn--ghost-light:hover { border-color: var(--creme); background: rgba(242, 236, 219, 0.08); }

/* ===================================================================
   BARRA DE URGÊNCIA / CONTAGEM REGRESSIVA
   =================================================================== */
.countbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4em 0.6em;
  background: var(--cta);
  color: var(--cta-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.6em 1rem;
  box-shadow: 0 6px 18px rgba(8, 22, 14, 0.18);
}
.countbar strong { font-weight: 800; }
.countbar__time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.16);
  padding: 0.15em 0.6em;
  border-radius: var(--radius-pill);
}
.countbar.is-expired { background: var(--color-ink); color: var(--creme); }

/* ===================================================================
   BLOCO 1 — HERO
   =================================================================== */
.hero {
  position: relative;
  background: var(--color-brand-deep);
  color: var(--color-on-dark);
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) var(--section-y);
}
/* textura: fauna sutil + grão + vinheta quente no topo */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(232, 115, 43, 0.35), transparent 60%),
    radial-gradient(100% 70% at 80% 110%, rgba(27, 107, 58, 0.5), transparent 55%),
    url("../assets/img/padrao-fauna.jpeg");
  background-size: auto, auto, 380px;
  background-blend-mode: normal, normal, soft-light;
  opacity: 0.9;
  filter: saturate(0.9);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 28% 42%, rgba(8, 22, 14, 0.7), transparent 70%),
    linear-gradient(180deg, rgba(12, 61, 34, 0.45) 0%, rgba(12, 61, 34, 0.8) 70%, var(--color-brand-deep) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 1rem + 4vw, 3rem);
}

/* MEDIA */
.hero__media { display: flex; justify-content: center; }
.video {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow), 0 0 0 1px rgba(242, 236, 219, 0.12), 0 0 0 8px rgba(242, 236, 219, 0.04);
}
.video__el { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cta);
  color: var(--cta-ink);
  box-shadow: var(--shadow-cta);
  transition: transform var(--t), background var(--t), opacity var(--t);
}
.video__play svg { margin-left: 3px; }
.video__play:hover { transform: scale(1.06); background: var(--cta-hover); }
.video.is-playing .video__play { opacity: 0; pointer-events: none; }

/* COPY */
.hero__copy { text-align: center; max-width: 620px; margin-inline: auto; }
.hero__title {
  font-weight: 800;
  line-height: var(--lh-tight);
  margin-top: var(--sp-3);
  text-wrap: balance;
}
.hero__title-display {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.95;
  color: var(--dourado);
  letter-spacing: 0.01em;
}
.hero__title-rest {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--creme);
  margin-top: 0.25em;
}
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--color-on-dark);
  opacity: 0.92;
  margin-top: var(--sp-4);
  text-wrap: pretty;
}
.hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--dourado);
  margin-top: var(--sp-5);
  padding: 0.6em 1.1em;
  border: 1px solid rgba(244, 196, 48, 0.35);
  border-radius: var(--radius-pill);
}
.hero__meta .dot { opacity: 0.5; }
.hero .btns { justify-content: center; }

/* DESKTOP: texto à esquerda, vídeo à direita */
@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(2.5rem, 4vw, 4.5rem);
  }
  .hero__media { order: 2; }
  .hero__copy { order: 1; text-align: left; margin-inline: 0; }
  .hero .btns { justify-content: flex-start; }
  .video { max-width: 360px; }
}

/* ===================================================================
   BLOCO 2 — FORMULÁRIO / CUPOM
   =================================================================== */
.lead {
  position: relative;
  background: var(--color-brand-deep);
  color: var(--creme);
  overflow: hidden;
  padding-block: var(--section-y);
}
.lead__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 90% at 50% -10%, rgba(232, 115, 43, 0.35), transparent 60%),
    url("../assets/img/padrao-fauna.jpeg") center/360px;
  opacity: 0.16;
  mix-blend-mode: screen;
}
.lead__inner {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}
.lead__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--dourado);
  margin-top: var(--sp-3);
  text-wrap: balance;
}
.lead__sub {
  font-size: var(--fs-lead);
  color: var(--color-on-dark);
  opacity: 0.92;
  margin-top: var(--sp-3);
}
.lead__form {
  margin-top: var(--sp-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  box-shadow: var(--shadow);
  text-align: left;
  color: var(--color-ink);
}
.lead__submit { width: 100%; margin-top: var(--sp-2); }
.lead__legal { font-size: 0.78rem; color: var(--color-muted); margin-top: var(--sp-3); text-align: center; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--color-ink);
  color: var(--color-on-dark-mut);
  padding-block: var(--sp-7);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  text-align: center;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--creme);
  letter-spacing: 0.02em;
  line-height: 1;
}
.site-footer__tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-footer__nav a { transition: color var(--t-fast); }
.site-footer__nav a:hover { color: var(--dourado); }
.site-footer__seal {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  color: var(--color-on-dark-mut);
}
.site-footer__seal svg { color: var(--wa-verde); }

@media (min-width: 720px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .site-footer__brand { align-items: flex-start; }
}

/* ===================================================================
   MODAL — CUPOM LIBERADO
   =================================================================== */
.modal {
  border: none;
  background: transparent;
  padding: 0;
  inset: 0;
  margin: auto;
  max-width: 460px;
  width: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  color: var(--color-ink);
}
.modal::backdrop { background: rgba(8, 22, 14, 0.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn 220ms var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  box-shadow: var(--shadow);
}
.modal--success .modal__card { text-align: center; }
.modal__ico {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto var(--sp-3);
  border-radius: 50%;
  background: rgba(27, 107, 58, 0.12);
  color: var(--color-brand);
}
.modal__close {
  position: absolute;
  top: 0.75rem; right: 1rem;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-muted);
  transition: color var(--t-fast);
}
.modal__close:hover { color: var(--color-ink); }
.modal__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: var(--lh-snug);
  margin-top: var(--sp-2);
}
.modal__sub { color: var(--color-muted); margin-top: var(--sp-2); margin-bottom: var(--sp-4); }
.field { display: block; margin-bottom: var(--sp-4); }
.field > span {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--sp-2);
}
.field > span em { color: var(--color-muted); font-weight: 500; font-style: normal; }
.field input {
  width: 100%;
  font: inherit;
  padding: 0.8em 1em;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.15);
}
.modal__submit { width: 100%; margin-top: var(--sp-2); }
.modal__legal { font-size: 0.78rem; color: var(--color-muted); margin-top: var(--sp-3); text-align: center; }

/* ===================================================================
   WHATSAPP FLUTUANTE
   =================================================================== */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--wa-verde);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85em 1.15em;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(8, 22, 14, 0.3);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-float:hover { transform: translateY(-2px) scale(1.02); }
@media (max-width: 560px) {
  .wa-float__txt { display: none; }
  .wa-float { padding: 0.9em; }
}
