/* ===========================================================================
   Moldura do site: tokens, botões, cabeçalho, rodapé, títulos de seção e o
   botão do WhatsApp. É o que toda página de venda carrega (as três homes, as
   páginas de segmento e o blog), para o visitante não trocar de site ao
   clicar num link. O que é de uma página só fica no CSS dela (home.css).

   As cores por loja entram pelas mesmas classes que offer_sections.css já usa
   (.offer-scope--pdvopen, .offer-scope--programa): a página é uma só e os
   tokens de lá e daqui apontam para o mesmo valor.
   =========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

.fc {
  --fc-ink: #0f172a;
  --fc-muted: #475569;
  --fc-faint: #94a3b8;
  --fc-surface: #ffffff;
  --fc-bg: #f8fafc;
  --fc-line: #e2e8f0;
  --fc-accent: #0ea5e9;
  --fc-accent-ink: #0369a1;
  --fc-accent-soft: rgba(14, 165, 233, 0.12);
  --fc-cta: #f97316;
  --fc-cta-dark: #ea580c;
  --fc-dark: #0b1220;
  --fc-radius: 18px;
  --fc-shell: min(1180px, calc(100% - 40px));

  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fc-ink);
  background: var(--fc-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.fc.offer-scope--pdvopen {
  --fc-accent: #1d6cff;
  --fc-accent-ink: #0a43cf;
  --fc-accent-soft: rgba(29, 108, 255, 0.12);
}

.fc.offer-scope--programa {
  --fc-accent: #0f766e;
  --fc-accent-ink: #0b5f58;
  --fc-accent-soft: rgba(15, 118, 110, 0.12);
}

.fc img {
  max-width: 100%;
  height: auto;
  display: block;
}

.fc a {
  color: inherit;
}

.fc h1,
.fc h2,
.fc h3,
.fc h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fc-ink);
}

.fc p {
  margin: 0;
}

.fc-shell {
  width: var(--fc-shell);
  margin: 0 auto;
}

/* --- Botões --------------------------------------------------------------
   `.btn-primary` é o nome que o teste da oferta procura no botão de compra
   (HomeOfferTest): em toda página o botão cheio é o da venda. */

.fc .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.fc .btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.fc .btn-lg {
  padding: 17px 32px;
  font-size: 1.06rem;
}

.fc .btn-primary {
  background: linear-gradient(180deg, var(--fc-cta), var(--fc-cta-dark));
  border-color: var(--fc-cta-dark);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(234, 88, 12, 0.7);
}

.fc .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -12px rgba(234, 88, 12, 0.8);
}

.fc .btn-ghost {
  background: transparent;
  border-color: var(--fc-line);
  color: var(--fc-ink);
}

.fc .btn-ghost:hover {
  border-color: var(--fc-accent);
  color: var(--fc-accent-ink);
}

.fc .btn-ghost--light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.fc .btn-ghost--light:hover {
  border-color: #fff;
  color: #fff;
}

.fc .btn-outline {
  background: var(--fc-surface);
  border-color: var(--fc-accent);
  color: var(--fc-accent-ink);
}

.fc .btn-outline:hover {
  background: var(--fc-accent-soft);
}

/* --- Cabeçalho ----------------------------------------------------------- */

.fc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--fc-line);
}

.fc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.fc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.fc-logo__image {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.fc-logo__text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.fc-nav {
  display: flex;
  gap: 26px;
}

.fc-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fc-muted);
  text-decoration: none;
}

.fc-nav a:hover {
  color: var(--fc-ink);
}

.fc-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* O botão do menu só existe no celular; no desktop os links cabem na linha. */
.fc-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: var(--fc-surface);
  color: var(--fc-ink);
  cursor: pointer;
}

.fc-menu-toggle svg {
  width: 22px;
  height: 22px;
}

.fc-menu-toggle .fc-menu-toggle__close,
.fc-header.is-open .fc-menu-toggle__open {
  display: none;
}

.fc-header.is-open .fc-menu-toggle__close {
  display: block;
}

/* --- Selo, título e moldura de janela ------------------------------------ */

.fc-eyebrow,
.fc .section-badge {
  display: inline-block;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--fc-accent-soft);
  color: var(--fc-accent-ink);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fc-section {
  padding: 84px 0;
}

.fc-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.fc-heading--left {
  margin: 0;
  text-align: left;
}

.fc-heading h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.8rem, 3.6vw, 2.45rem);
}

.fc-heading p {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--fc-muted);
}

.fc-heading a {
  color: var(--fc-accent-ink);
  font-weight: 700;
}

/* Moldura de janela em volta de toda tela do sistema: é ela que faz uma
   imagem parecer o produto, e não um print colado. */
.fc-window {
  border-radius: 16px;
  background: var(--fc-dark);
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -30px rgba(15, 23, 42, 0.55),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}

.fc-window__bar {
  display: flex;
  gap: 6px;
  padding: 4px 6px 10px;
}

.fc-window__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.fc-window img {
  width: 100%;
  border-radius: 8px;
}

/* --- Chamada final ------------------------------------------------------- */

.fc-final {
  padding: 40px 0 96px;
  background: var(--fc-surface);
}

.fc-final__box {
  padding: 64px 40px;
  border-radius: 28px;
  background:
    radial-gradient(70% 80% at 80% 0%, rgba(14, 165, 233, 0.35), transparent 60%),
    var(--fc-dark);
  color: #fff;
  text-align: center;
}

.fc-final__box h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.fc-final__box p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.fc-final__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* --- Rodapé -------------------------------------------------------------- */

.fc-footer {
  padding: 56px 0 28px;
  background: var(--fc-bg);
  border-top: 1px solid var(--fc-line);
  font-size: 0.93rem;
}

.fc-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.fc-footer__brand p {
  margin-top: 14px;
  max-width: 300px;
  color: var(--fc-muted);
}

.fc-footer__col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.fc-footer__col h4 {
  margin-bottom: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-faint);
}

.fc-footer__col a {
  color: var(--fc-muted);
  text-decoration: none;
}

.fc-footer__col a:hover {
  color: var(--fc-ink);
}

.fc-footer__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--fc-line);
  color: var(--fc-faint);
  font-size: 0.86rem;
}

/* --- WhatsApp flutuante -------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: scale(1.06);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--fc-ink);
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* --- Responsivo ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .fc-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .fc-nav {
    display: none;
  }

  .fc-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Aberto, o menu vira uma lista embaixo do cabeçalho, ocupando a largura
     inteira; o botão de compra continua na linha de cima. */
  .fc-header.is-open .fc-nav {
    display: grid;
    gap: 4px;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 12px 20px 18px;
    background: var(--fc-surface);
    border-bottom: 1px solid var(--fc-line);
    box-shadow: 0 24px 40px -30px rgba(15, 23, 42, 0.5);
  }

  .fc-header.is-open .fc-nav a {
    padding: 12px 8px;
    border-radius: 10px;
    font-size: 1.05rem;
    color: var(--fc-ink);
  }
}

@media (max-width: 640px) {
  .fc {
    --fc-shell: min(1180px, calc(100% - 32px));
  }

  .fc-header .btn-sm {
    padding: 9px 14px;
    font-size: 0.85rem;
  }

  .fc-logo__text {
    display: none;
  }

  .fc-section {
    padding: 64px 0;
  }

  .fc-final__box {
    padding: 44px 22px;
  }

  .fc-final__actions .btn {
    width: 100%;
  }

  .fc-footer__grid {
    grid-template-columns: 1fr;
  }

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

  .whatsapp-tooltip {
    display: none;
  }
}
