/* William Joiner - https://williamjoiner.com.br/ */
/* Gás do Povo Conselheiro Lafaiete — réplica do layout "carteira do benefício" (Gás do Povo Caucaia)
   no padrão de cores NGC / Congás Lafaiete: vermelho #D4000F + azul #044AA6.
   Paleta de marca usada como traço fino/luz, nunca como bloco cheio de fundo (exceto rodapé e CTAs).
   Verde fica SÓ nos botões de WhatsApp. */

:root {
  --vermelho: #D4000F;
  --vermelho-escuro: #B3000C;
  --vermelho-profundo: #8F0009;
  --azul: #044AA6;
  --azul-escuro: #033C87;
  --azul-claro: #74A1E5;
  --azul-noite: #01152F;
  --zap: #25D366;
  --zap-escuro: #1DA851;
  --ink: #111827;
  --ink-soft: #555C6E;
  --paper: #F7F7F9;
  --paper-deep: #EFEFF3;
  --paper-line: #DEDFE6;
  --selo-ouro: #F2B705;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 68px; /* espaço para barra mobile */
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

.font-display { font-family: 'Barlow Condensed', 'Inter', sans-serif; }
.font-label   { font-family: 'Barlow', 'Inter', sans-serif; }

/* === TEXTURA DE PAPEL DE SEGURANÇA (linhas finas vermelhas, bem sutil) === */
.security-weave {
  background-image: repeating-linear-gradient(115deg, rgba(212,0,15,0.045) 0px, rgba(212,0,15,0.045) 1px, transparent 1px, transparent 14px);
}

/* === EYEBROW / RÓTULO DE PROTOCOLO === */
.eyebrow {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

@media (min-width: 768px) {
  .eyebrow { font-size: 0.78rem; }
}

/* === TOPBAR === */
#topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
#topbar::before {
  /* fio vermelho→azul NGC no topo da barra */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--vermelho), var(--azul));
}
#topbar.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(17, 24, 39, 0.25);
}

/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--vermelho), var(--vermelho-escuro));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(212, 0, 15, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(212, 0, 15, 0.65);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--zap), var(--zap-escuro));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(37, 211, 102, 0.6);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--paper-line);
}
.btn-ghost:hover { border-color: var(--vermelho); color: var(--vermelho); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 6px;
}

/* === CARTEIRA DO BENEFÍCIO (cartão-selo do hero) === */
.benefit-card {
  position: relative;
  background: #fff;
  border-radius: 1.75rem;
  border: 1px solid var(--paper-line);
  box-shadow: 0 40px 70px -30px rgba(17, 24, 39, 0.35);
  overflow: hidden;
}

.benefit-card::before {
  /* fio vermelho→azul NGC fininho no topo, a marca sem virar bloco cheio */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vermelho), var(--azul));
}

.benefit-card-seal {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  padding: 5px;
  background: conic-gradient(from 180deg, var(--selo-ouro), #FFE38A, var(--selo-ouro));
  box-shadow: 0 10px 22px -8px rgba(242, 183, 5, 0.55);
  animation: seal-shine 6s linear infinite;
}
.benefit-card-seal img {
  width: 100%; height: 100%;
  border-radius: 999px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

@keyframes seal-shine {
  to { filter: hue-rotate(8deg); }
}

/* costura tipo canhoto de ingresso separando a foto do rodapé do cartão */
.stub-seam {
  position: relative;
  border-top: 2px dashed var(--paper-line);
  margin-top: 0;
}
.stub-seam::before,
.stub-seam::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-radius: 999px;
}
.stub-seam::before { left: -11px; }
.stub-seam::after   { right: -11px; }

/* === FAIXA DE CREDENCIAIS === */
.trust-strip {
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  background: #fff;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trust-item .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--vermelho);
  box-shadow: 0 0 0 4px rgba(212,0,15,0.12);
  flex-shrink: 0;
}
.trust-item:nth-child(even) .dot {
  background: var(--azul);
  box-shadow: 0 0 0 4px rgba(4,74,166,0.14);
}

/* === PROTOCOLO NUMERADO === */
.protocol-step {
  position: relative;
}
.protocol-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--vermelho);
  letter-spacing: -0.02em;
}
.protocol-line {
  background: repeating-linear-gradient(90deg, var(--paper-line) 0 10px, transparent 10px 18px);
  height: 2px;
}

/* === TILES DE CANAL DE CONSULTA === */
.channel-tile {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 1.25rem;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.channel-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -22px rgba(17,24,39,0.28);
  border-color: transparent;
}
.channel-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* === AVISO OFICIAL === */
.notice {
  background: var(--paper-deep);
  border-left: 3px solid var(--vermelho);
  border-radius: 0 1rem 1rem 0;
}

/* === CARTÃO DA REVENDA (localização) — azul sólido da logo Congás, sem degradê === */
.dealer-card {
  background: var(--azul);
  color: #fff;
  border-radius: 1.75rem;
  position: relative;
  overflow: hidden;
}
.dealer-row {
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* === CARTÃO "QUEM TEM DIREITO" (substitui o infográfico, que mostrava botijão de outra marca) === */
.rights-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 1.75rem;
  overflow: hidden;
}
.rights-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vermelho), var(--azul));
}
.rights-check {
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,74,166,0.1);
  color: var(--azul);
  flex-shrink: 0;
}

/* === PAINEL CTA (foto real da família + logo oficial Gás do Povo) === */
.cta-panel {
  background-image:
    linear-gradient(100deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.94) 34%, rgba(255,255,255,0.55) 56%, rgba(255,255,255,0) 74%),
    url('../img/gasdopovo.webp');
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
  position: relative;
  overflow: hidden;
}
/* Mobile: foto vira faixa embaixo dos botões, sem a logo do programa passar por trás do texto */
@media (max-width: 767px) {
  .cta-panel {
    background-image:
      linear-gradient(180deg, #fff 0%, #fff calc(100% - 290px), rgba(255,255,255,0) calc(100% - 200px)),
      url('../img/gasdopovo.webp');
    background-size: 100% 100%, auto 280px;
    background-position: center, right bottom;
    padding-bottom: 300px !important; /* vence o py-24 do Tailwind CDN */
  }
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(212,0,15,0.06), transparent 65%);
  pointer-events: none;
}

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-item:last-child { border-bottom: none; }
.faq-btn .faq-icon { transition: transform 0.3s ease; }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}
.faq-answer > div { min-height: 0; overflow: hidden; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

/* === RODAPÉ VERMELHO NGC === */
.footer-ngc {
  background: linear-gradient(160deg, var(--vermelho-escuro) 0%, var(--vermelho-profundo) 100%);
}


/* === REVEAL ON SCROLL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* === ENTRADA "CARIMBADA" DO CARTÃO DO HERO === */
.stamp-in {
  animation: stamp-in 0.9s cubic-bezier(.2,.9,.25,1.2) 0.15s both;
}
@keyframes stamp-in {
  0%   { opacity: 0; transform: scale(1.12) rotate(-2deg); }
  60%  { opacity: 1; transform: scale(0.985) rotate(0.4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .stamp-in { animation: none; }
  .benefit-card-seal { animation: none; }
  html { scroll-behavior: auto; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--vermelho), var(--azul)); border-radius: 4px; }

img { max-width: 100%; height: auto; }

@media print {
  #float-whatsapp, #mobile-cta-bar { display: none !important; }
}
