/* =========================================================================
   AVCB MG — Januário Engenharia
   Design system. Paleta da identidade do perfil (verde escuro + creme +
   dourado; vermelho SÓ como acento de urgência).
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  /* marca */
  --green:      #35443A;   /* verde escuro base */
  --green-deep: #1E2921;   /* verde quase preto */
  --green-soft: #4A5C4F;
  --paper:      #EFE9DC;   /* creme */
  --paper-warm: #FAF6EC;
  --gold:       #C9A24B;   /* dourado */
  --gold-soft:  #E0C688;
  --red:        #A8281D;   /* acento de urgência — usar pouco */
  --red-deep:   #7E1E16;
  --ink:        #26302A;
  --ink-soft:   #5A6660;
  --line:       #D9D2C2;
  --white:      #FFFFFF;
  --zap:        #25D366;

  /* tipografia */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* escala */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.4vw, 4.2rem);

  /* layout */
  --wrap: 1140px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 4px rgba(30,41,34,.04), 0 12px 32px rgba(30,41,34,.10);
  --shadow-sm: 0 1px 2px rgba(30,41,34,.05), 0 4px 14px rgba(30,41,34,.07);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ---------- tipografia ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .005em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p + p { margin-top: .9em; }
strong { font-weight: 700; }

.kicker {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: .8rem;
  display: block;
}
.kicker.on-light { color: var(--green); }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.hl { background: var(--gold); color: var(--green-deep); padding: 0 .28em; font-weight: 700; }
.text-red { color: var(--red); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.2rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper-warm); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--green-deep); color: var(--paper); }
.section-dark .lead { color: rgba(239,233,220,.78); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: var(--gap); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* ---------- faixa de risco (assinatura da marca) ---------- */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 14px, var(--green-deep) 14px 28px);
}

/* ---------- topo ---------- */
.topbar {
  background: var(--green-deep);
  color: var(--paper);
  font-size: var(--step--1);
  padding: .5rem 0;
}
.topbar .wrap { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.topbar a { text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
/* lockup empilhado: abaixo de ~46px a linha "ENGENHARIA" some */
.brand img { height: clamp(48px, 5vw, 64px); width: auto; display: block; }
.footer-logo { height: 62px; width: auto; margin-bottom: 1rem; }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 600px) {
  .site-header .wrap { padding: .6rem 0; gap: .7rem; }
  .site-header .btn { padding: .6rem 1rem; font-size: .82rem; }
  .brand img { height: 46px; }
  .footer-logo { height: 52px; }
  .topbar .wrap { gap: .4rem 1rem; }
  /* espaço para o botão flutuante não cobrir o último CTA */
  .cta-final { padding-bottom: 6rem; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-0);
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-zap { background: var(--zap); color: #06301A; }
.btn-primary { background: var(--gold); color: var(--green-deep); }
.btn-dark { background: var(--green); color: var(--paper); }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-lg { font-size: var(--step-1); padding: 1.1rem 2rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(201,162,75,.22), transparent 52%),
    linear-gradient(160deg, var(--green-deep) 0%, var(--green) 100%);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { color: rgba(239,233,220,.85); margin-bottom: 1.8rem; max-width: 34rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.badge {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .04em;
  border: 1.5px solid rgba(239,233,220,.32); border-radius: 999px;
  padding: .35rem .9rem; color: rgba(239,233,220,.9);
}
.badge.gold { border-color: var(--gold); color: var(--gold); }

/* cartão de captura no hero */
.hero-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  border-top: 6px solid var(--gold);
}
.hero-card h3 { font-size: var(--step-2); margin-bottom: .5rem; color: var(--green-deep); }
.hero-card p { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1.1rem; }

/* ---------- barra de credenciais ---------- */
.credbar { background: var(--green-deep); color: var(--paper); padding: 1rem 0; }
.credbar ul { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: center; font-size: var(--step--1); font-weight: 600; letter-spacing: .04em; }
.credbar li { display: flex; align-items: center; gap: .5rem; }
.credbar li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.9rem); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .7rem;
}
.card-icon { font-size: 1.9rem; line-height: 1; }
.card h3 { color: var(--green-deep); }
.card p { font-size: var(--step--1); color: var(--ink-soft); }
.card-link { margin-top: auto; padding-top: .5rem; font-weight: 700; font-size: var(--step--1); color: var(--green); text-decoration: none; }
.card-link:hover { color: var(--gold); }
.card.is-featured { border: 2px solid var(--gold); background: var(--paper-warm); }

/* card de segmento (leva às páginas internas) */
.seg {
  display: flex; flex-direction: column; gap: .6rem; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--green);
  border-radius: var(--radius); padding: clamp(1.3rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.seg:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-left-color: var(--gold); }
.seg.urgent { border-left-color: var(--red); }
.seg .tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; background: var(--paper); color: var(--green);
  padding: .25rem .7rem; border-radius: 999px;
}
.seg.urgent .tag { background: #F6E3E1; color: var(--red); }

/* ---------- números ---------- */
.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); text-align: center; }
.stat .n { font-family: var(--font-display); font-size: var(--step-3); color: var(--gold); line-height: 1; }
.stat .t { font-size: var(--step--1); color: rgba(239,233,220,.78); margin-top: .4rem; }
.section:not(.section-dark) .stat .n { color: var(--green); }
.section:not(.section-dark) .stat .t { color: var(--ink-soft); }

/* ---------- passos ---------- */
.steps { counter-reset: s; display: grid; gap: 1rem; }
.step {
  counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem;
}
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.7rem; color: var(--gold);
  background: var(--green-deep); width: 3rem; height: 3rem; border-radius: 10px;
  display: grid; place-items: center;
}
.step h3 { font-size: var(--step-1); color: var(--green-deep); margin-bottom: .2rem; }
.step p { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- alerta de urgência ---------- */
.alert {
  background: #FBF1EF; border: 2px solid var(--red); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: .8rem;
}
.alert h3 { color: var(--red); }
.alert p { font-size: var(--step-0); }
.alert-dark { background: rgba(168,40,29,.16); border-color: var(--red); }
.alert-dark h3 { color: #F0A79E; }

/* linha do tempo do prazo */
.timeline { display: grid; gap: 0; margin-top: 1rem; }
.tl {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: start;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.tl:first-child { border-top: 0; }
.tl .when { font-family: var(--font-display); font-size: 1.25rem; color: var(--green-deep); line-height: 1.1; }
.tl.danger .when { color: var(--red); }
.tl .what { font-size: var(--step--1); }
.tl .what b { display: block; font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; margin-bottom: .15rem; }

/* ---------- tabela ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); background: var(--white); min-width: 34rem; }
caption { text-align: left; padding: .9rem 1rem; font-weight: 700; background: var(--paper); color: var(--green-deep); }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--green-deep); color: var(--paper); font-weight: 700; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--paper-warm); }

/* ---------- lista de checagem ---------- */
/* marcador posicionado em absoluto, não como item de grid: assim texto solto
   ao lado de <strong> continua fluindo na mesma linha */
.checks { display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2.1rem; font-size: var(--step-0); line-height: 1.6; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.section-dark .checks li::before { color: var(--gold); }
.checks.x li::before { content: "✕"; color: var(--red); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; font-size: var(--step-0);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: var(--green-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 1.1rem 1.3rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- depoimentos ---------- */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.quote p { font-size: var(--step-0); font-style: italic; margin-bottom: 1rem; }
.quote footer { font-size: var(--step--1); font-weight: 700; color: var(--green); font-style: normal; }
.quote footer span { display: block; font-weight: 400; color: var(--ink-soft); }

/* ---------- formulário ---------- */
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--step--1); font-weight: 700; color: var(--green-deep); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: var(--step-0); padding: .85rem 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(53,68,58,.12); }
.form-note { font-size: .78rem; color: var(--ink-soft); text-align: center; }

/* ---------- CTA final ---------- */
.cta-final {
  background:
    radial-gradient(circle at 15% 85%, rgba(201,162,75,.2), transparent 55%),
    linear-gradient(140deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--paper); text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-final h2 { margin-bottom: .9rem; }
.cta-final p { color: rgba(239,233,220,.85); max-width: 40rem; margin: 0 auto 1.8rem; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--green-deep); color: rgba(239,233,220,.72); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; font-size: var(--step--1); }
.site-footer h4 { font-family: var(--font-display); color: var(--paper); font-size: 1rem; letter-spacing: .06em; margin-bottom: .9rem; text-transform: uppercase; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { display: grid; gap: .45rem; }
.footer-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(239,233,220,.16); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .78rem; }
.cities { display: flex; flex-wrap: wrap; gap: .35rem .8rem; }
.cities a { font-size: .78rem; }

/* ---------- WhatsApp flutuante ---------- */
.zap-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  background: var(--zap); color: #06301A; border-radius: 999px;
  padding: .85rem 1.3rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.26); display: inline-flex; gap: .5rem; align-items: center;
}
.zap-float:hover { transform: translateY(-2px); }
@media (max-width: 600px) { .zap-float span { display: none; } .zap-float { padding: 1rem; font-size: 1.3rem; } }

/* ---------- utilitários ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.breadcrumb { font-size: .8rem; color: var(--ink-soft); padding: .9rem 0; }
.breadcrumb a { text-decoration: none; color: var(--green); }
.section-dark .breadcrumb, .hero .breadcrumb { color: rgba(239,233,220,.6); }
.hero .breadcrumb a { color: var(--gold); }
