/* ===========================================================
   Escala Leads — Agência de Marketing em Teresina
   Design system: dark mode editorial, estúdio premium.
   bg-base #0A0A0A · bg-elev #141414 · bg-alt (creme) #F4F0E8
   accent dourado fosco #C9A961, usado com parcimônia.
   Header fixo com blur. Movimento = fade/translate curto.
   Fontes carregadas via <link> assíncrono em generate.py (page()),
   não por @import aqui — @import bloqueia e adiciona uma volta de
   rede extra em série antes do CSS terminar de carregar.
   =========================================================== */

:root{
  --bg-base:#0A0A0A;
  --bg-elev:#141414;
  --bg-elev-2:#1A1A1A;
  --bg-alt:#F4F0E8;
  --bg-alt-elev:#FFFFFF;
  --border:#262626;
  --border-soft:#1E1E1E;
  --border-alt:#DDD5C1;

  --text-primary:#FFFFFF;
  --text-muted:#8F8B83;
  --text-dim:#5C5954;
  --text-primary-alt:#171410;
  --text-muted-alt:#6B6659;

  --accent:#C9A961;
  --accent-soft:rgba(201,169,97,.14);
  --accent-line:rgba(201,169,97,.35);

  --brand-yellow:#FFD400;

  --font-display:'Inter Tight', Inter, -apple-system, "Segoe UI", sans-serif;
  --font-base:'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4.5rem;
  --space-6: 7.5rem;

  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body{
  margin: 0;
  font-family: var(--font-base);
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before{
  content:"";
  position: fixed; inset: 0; pointer-events: none; z-index: 300;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
img, svg{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text-primary);
}
h1{ font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); letter-spacing: -0.03em; }
h2{ font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
h3{ font-size: 17px; font-weight: 600; }

.muted{ color: var(--text-muted); display: block; }
.section--gray .muted{ color: var(--text-muted-alt); }

.lede{
  font-size: clamp(1rem, .93rem + .3vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 58ch;
}
.section--gray .lede, .section--gray p{ color: var(--text-muted-alt); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Skip link */
.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--bg-alt); color: var(--text-primary-alt);
  padding: .75rem 1.25rem; font-weight: 600; z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus{ left: 0; top: var(--header-h); }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-2);
}
@media (min-width: 640px){ .container{ padding-inline: 24px; } }

.section{ padding-block: var(--space-5); }
.section--tight{ padding-block: var(--space-4); }
@media (min-width: 900px){
  .section{ padding-block: var(--space-6); }
  .section--tight{ padding-block: var(--space-5); }
}

/* dark elevated band (used for panels that need to stand out inside the dark theme) */
.section--black{ background: var(--bg-elev); border-block: 1px solid var(--border); }

/* the one/two cream breaks per page */
.section--gray{ background: var(--bg-alt); color: var(--text-primary-alt); }
.section--gray h1, .section--gray h2, .section--gray h3{ color: var(--text-primary-alt); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.eyebrow::before{ content: "→"; font-size: 12px; }

.section-head{ max-width: 640px; margin-bottom: var(--space-4); }
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head h1, .section-head h2{ margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 10px 13px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--bg-alt);
  color: var(--text-primary-alt);
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn::after{
  content: "";
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--text-primary-alt);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M17 7H9M17 7V15'/></svg>") center/12px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M17 7H9M17 7V15'/></svg>") center/12px no-repeat;
  transition: transform .25s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:hover::after{ transform: rotate(45deg); }
.btn--yellow{ background: var(--bg-alt); color: var(--text-primary-alt); }
.btn--outline{
  background: transparent; color: var(--text-primary);
  border-color: #333; padding: 12px 22px;
}
.btn--outline::after{ display: none; }
.btn--outline:hover{ border-color: var(--accent); color: var(--accent); }
.section--gray .btn--outline{ color: var(--text-primary-alt); border-color: #C9C1A8; }
.section--gray .btn--outline:hover{ border-color: var(--text-primary-alt); }
.btn--block{ width: 100%; }
.btn-row{ display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header (não fixo) ---------- */
.site-header{
  position: static;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.header-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 16px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand img{ width: 26px; height: 26px; }
.brand-word{ font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: var(--text-primary); }
.brand-word b{ font-weight: 500; color: var(--text-muted); margin-left: 3px; }

.nav-desktop{ display: none; }
.nav-desktop > ul{ display: flex; align-items: center; gap: 32px; }
.nav-desktop a{ font-size: 14px; color: var(--text-muted); transition: color .2s ease; }
.nav-desktop a[aria-current="page"]{ color: var(--text-primary); }
.nav-desktop a:hover{ color: var(--text-primary); }

.has-submenu{ position: relative; }
.submenu{
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 260px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-top: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  z-index: 40;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu{ display: block; }
.submenu li a{
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.submenu li a:hover{ background: var(--bg-elev-2); color: var(--text-primary); }

.header-actions{ display: flex; align-items: center; gap: var(--space-2); }
.header-actions .btn{ display: none; }

.nav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text-primary);
  position: relative;
}
.nav-toggle span::before{ position: absolute; top: -5px; }
.nav-toggle span::after{ position: absolute; top: 5px; }

.nav-mobile{ display: none; border-top: 1px solid var(--border); background: rgba(10,10,10,.97); backdrop-filter: blur(14px); }
.nav-mobile.is-open{ display: block; }
.nav-mobile .container{ padding-block: var(--space-2); }
.nav-mobile ul{ display: flex; flex-direction: column; }
.nav-mobile a{
  display: block;
  padding: 14px 2px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-primary);
}
.nav-mobile .sub-list{ padding-left: 1rem; display: none; }
.nav-mobile .sub-list.is-open{ display: block; }
.nav-mobile .sub-list a{ font-weight: 400; font-size: 14px; color: var(--text-muted); border-bottom: none; padding: 10px .2rem; }
.mobile-toggle-item{ display: flex; align-items: center; justify-content: space-between; }
.mobile-sub-btn{ background: none; border: none; padding: .5rem; color: var(--text-muted); font-size: 18px; }
.nav-mobile .btn{ margin-top: var(--space-2); }

@media (min-width: 960px){
  .nav-desktop{ display: block; }
  .nav-toggle{ display: none; }
  .header-actions .btn{ display: inline-flex; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{ padding-block: 22px 0; font-size: 12.5px; color: var(--text-dim); }
.breadcrumbs ol{ display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a{ color: var(--text-muted); }
.breadcrumbs a:hover{ color: var(--text-primary); }
.breadcrumbs li:not(:last-child)::after{ content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumbs li[aria-current]{ color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero{ padding-block: var(--space-5) var(--space-5); }
@media (min-width: 900px){ .hero{ padding-block: var(--space-6) var(--space-5); } }
.hero-grid{ display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px){ .hero-grid{ grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.hero .eyebrow{ margin-bottom: 18px; }
.hero h1{ margin-bottom: 20px; max-width: 15ch; }
.hero .lede{ margin-bottom: 28px; }
.hero-badges{ display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: var(--space-3); }
.hero-badge{
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-muted);
  padding: 0;
  border: none;
}
.hero-badge svg{ width: 12px; height: 12px; flex-shrink: 0; color: var(--accent); }

.hero-graphic{
  aspect-ratio: 1/1;
  background:
    radial-gradient(120% 90% at 25% 15%, rgba(201,169,97,.16) 0%, transparent 55%),
    linear-gradient(155deg, var(--bg-elev-2) 0%, var(--bg-elev) 55%, var(--bg-base) 100%);
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-graphic::after{
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .1; mix-blend-mode: overlay;
}
.hero-graphic img{ width: 42%; height: 42%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }

/* ---------- Cards / grids ---------- */
.grid{ display: grid; gap: 16px; }
.grid-2{ grid-template-columns: 1fr; }
.grid-3{ grid-template-columns: 1fr; }
.grid-4{ grid-template-columns: 1fr; }
@media (min-width: 640px){
  .grid-2{ grid-template-columns: repeat(2, 1fr); }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
  .grid-4{ grid-template-columns: repeat(4, 1fr); }
}

.card{
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.card--flat{ background: transparent; border: 1px solid var(--border); }
.card-icon{
  width: 36px; height: 36px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg{ width: 17px; height: 17px; }
.card h3{ margin-bottom: 8px; letter-spacing: -.01em; }
.card p{ color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.section--black .card{ background: var(--bg-elev-2); }
.section--gray .card{ background: var(--bg-alt-elev); border-color: var(--border-alt); }
.section--gray .card p{ color: var(--text-muted-alt); }
.section--gray .card h3{ color: var(--text-primary-alt); }

/* Service pillar cards (link cards) */
.service-card{ display: block; height: 100%; }
.service-card:hover{ border-color: #3a3a3a; transform: translateY(-2px); }
.section--gray .service-card:hover{ border-color: #C9C1A8; }
.service-card .card-link{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600;
  color: var(--accent);
  margin-top: 16px; font-size: 13px;
}

/* Numbered process steps — vertical dividers, no cards */
.steps{ display: grid; gap: 40px 0; }
@media (min-width: 760px){ .steps{ grid-template-columns: repeat(4,1fr); gap: 0; } }
.step{ padding-left: 20px; border-left: 1px solid var(--border); position: relative; }
@media (min-width: 760px){ .step{ padding-left: 28px; padding-right: 24px; } }
.step::before{
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.steps{ counter-reset: step; }
.step h3{ margin-bottom: 10px; }
.step p{ color: var(--text-muted); font-size: 14px; }

/* Stats band (kept for future use) */
.stats{ display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-3); }
@media (min-width: 760px){ .stats{ grid-template-columns: repeat(4,1fr); } }
.stat b{ display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span{ font-size: .85rem; color: var(--text-muted); }

/* FAQ */
.faq-list{ border-top: 1px solid var(--border); }
.section--gray .faq-list{ border-color: var(--border-alt); }
.faq-item{ border-bottom: 1px solid var(--border); }
.section--gray .faq-item{ border-color: var(--border-alt); }
.faq-q{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  background: none; border: none;
  text-align: left;
  padding: 22px 2px;
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 500; font-size: 16px;
}
.section--gray .faq-q{ color: var(--text-primary-alt); }
.faq-q .icon-plus{ flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.faq-q .icon-plus::before, .faq-q .icon-plus::after{
  content:""; position: absolute; background: var(--accent);
  transition: transform .2s ease;
}
.faq-q .icon-plus::before{ left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; }
.faq-q .icon-plus::after{ top: 0; left: 50%; height: 100%; width: 1.5px; margin-left: -.75px; }
.faq-item.is-open .icon-plus::after{ transform: rotate(90deg); opacity: 0; }
.faq-a{ display: none; padding: 0 2px 24px; color: var(--text-muted); max-width: 68ch; font-size: 14.5px; }
.section--gray .faq-a{ color: var(--text-muted-alt); }
.faq-item.is-open .faq-a{ display: block; }

/* CTA band — centered card, accent border, radial glow */
.cta-band{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  background: var(--bg-elev);
  padding: 48px;
  display: grid;
  gap: var(--space-3);
  text-align: center;
  justify-items: center;
}
.cta-band::before{
  content: "";
  position: absolute; left: 50%; top: -60%; transform: translateX(-50%);
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band > div{ max-width: 50ch; }
.cta-band h2{ margin-bottom: 12px; }
.cta-band .lede{ margin-inline: auto; }
.cta-band .btn{ position: relative; }
@media (min-width: 760px){
  .cta-band{ text-align: center; }
}

/* Coverage / area list */
.area-list{ display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li{
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Forms */
.form-field{ margin-bottom: var(--space-2); }
.form-field label{ display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select{
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text-primary);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  border-color: var(--accent);
  outline: none;
}
.form-note{ font-size: 12px; color: var(--text-dim); margin-top: var(--space-2); }
.form-note a{ color: var(--text-muted); text-decoration: underline; }

/* Footer */
.site-footer{ background: var(--bg-base); border-top: 1px solid var(--border); }
.footer-top{ padding-block: var(--space-5); display: grid; gap: var(--space-4); }
.footer-brand{ display: flex; align-items: flex-start; gap: 14px; }
.footer-brand p{ color: var(--text-muted); font-size: 13.5px; max-width: 34ch; }
.footer-cols{ display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px){ .footer-cols{ grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px){ .footer-top{ grid-template-columns: 1.3fr 2fr; } }
.footer-col h4{ font-family: var(--font-display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 18px; }
.footer-col ul li{ margin-bottom: 12px; color: var(--text-muted); font-size: 13.5px; }
.footer-col a{ color: var(--text-muted); font-size: 13.5px; transition: color .2s ease; }
.footer-col a:hover{ color: var(--text-primary); }
.footer-bottom{
  border-top: 1px solid var(--border);
  padding-block: var(--space-2);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-dim);
}
.footer-bottom a{ color: var(--text-dim); }
.footer-bottom a:hover{ color: var(--accent); }

/* WhatsApp float button */
.wa-float{
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 400;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-alt);
  color: var(--text-primary-alt);
  border-radius: var(--radius-pill);
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.wa-float:hover{ transform: translateY(-2px); }
.wa-float svg{ width: 20px; height: 20px; }
.wa-float .wa-label{ display: none; }
@media (min-width: 640px){ .wa-float .wa-label{ display: inline; padding-right: 4px; } }

/* Utility */
.center{ text-align: center; }
.center .lede{ margin-inline: auto; }
.mt-0{ margin-top: 0; }
.text-yellow{ color: var(--accent); }
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider{ height: 1px; background: var(--border); border: none; margin-block: var(--space-4); }
.tag-list{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag{
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  background: var(--bg-elev-2); color: var(--text-muted);
  border: 1px solid var(--border-soft);
  padding: 7px 14px; border-radius: var(--radius-pill);
}

/* Blog / article prose */
main .container > h2{ margin-top: var(--space-4); margin-bottom: 12px; }
