/* Roka Digital - https://rokadigital.com.br/contato/ */
/* Gás do Povo Caucaia — redesign v2.0 */
/* Direção: "carteira do benefício" — linguagem de documento oficial (selo, protocolo,
   carimbo, papel de segurança) cruzada com cartão de crédito da revenda credenciada.
   Paleta de marca (azul/cian/verde) usada como traço fino/luz, nunca como bloco cheio de fundo. */

:root {
  --azul: #000FFF;
  --azul-escuro: #0008CC;
  --cian: #00FFFF;
  --verde: #00FF00;
  --verde-escuro: #00CC00;
  --ink: #0B0F1A;
  --ink-soft: #545B71;
  --paper: #F6F7FB;
  --paper-deep: #EAEDF7;
  --paper-line: #D9DDEC;
  --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 tipo guilhoché, bem sutil) === */
.security-weave {
  background-image: repeating-linear-gradient(115deg, rgba(0,15,255,0.05) 0px, rgba(0,15,255,0.05) 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(246, 247, 251, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
#topbar.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(11, 15, 26, 0.25);
}

/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  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(--azul), var(--azul-escuro));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(0, 15, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(0, 15, 255, 0.65);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22D96B, var(--verde-escuro));
  color: #04240E;
  box-shadow: 0 14px 30px -12px rgba(0, 204, 0, 0.5);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(0, 204, 0, 0.6);
}

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

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(11, 15, 26, 0.35);
  overflow: hidden;
}

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

.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(--verde);
  box-shadow: 0 0 0 4px rgba(0,255,0,0.15);
  flex-shrink: 0;
}

/* === 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(--azul);
  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(11,15,26,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(--azul);
  border-radius: 0 1rem 1rem 0;
}

/* === CARTÃO DA REVENDA (localização) === */
.dealer-card {
  background: var(--ink);
  color: #fff;
  border-radius: 1.75rem;
  position: relative;
  overflow: hidden;
}
.dealer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0,255,255,0.18), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(0,15,255,0.35), transparent 55%);
  pointer-events: none;
}
.dealer-row {
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* === 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;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0,15,255,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; }

/* === 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(--azul), var(--cian)); border-radius: 4px; }

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

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