/* =========================================================
   P&G Soluções Energéticas — Site Institucional v1.8
   Baseado no Design System v2.1 (tema claro).
   Cores nascem da logo oficial; fonte: Poppins; dourado só decorativo.
   ========================================================= */

:root {
  /* Superfícies e texto */
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-alt: #F1F0EB;
  --ink: #16181A;
  --ink-muted: #4B4F4C;
  --ink-subtle: #666A66;
  --line: #E3E1DA;
  --line-control: #85827B;

  /* Marca */
  --brand: #386911;
  --brand-hover: #417B14;
  --brand-press: #142A01;
  --on-brand: #FFFFFF;
  --brand-tint: #EAF3DF;
  --energy: #7AC242;
  --forest: #142A01;
  --graphite: #16181A;
  --on-dark: #F3F1EC;
  --on-dark-muted: #C8D0BC;

  /* Acentos */
  --gold: #C9962B;
  --gold-text: #7A5C16;
  --logo-gray: #898080;
  --on-logo-gray: #0F0E0D;
  --focus-ring: #386911;

  /* Feedback */
  --danger-fg: #7A1712;
  --danger-bg: #FBE8E7;
  --danger-mark: #B3261E;
  --warning-fg: #5C3A00;

  /* Vidro */
  --glass: rgba(255,255,255,0.72);
  --glass-line: rgba(255,255,255,0.55);
  --glass-dark: rgba(255,255,255,0.08);
  --glass-dark-line: rgba(255,255,255,0.22);

  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,18,14,0.08), 0 2px 8px rgba(11,18,14,0.05);
  --shadow-md: 0 8px 24px rgba(11,18,14,0.10);
  --shadow-lg: 0 24px 56px rgba(11,18,14,0.14);
  --shadow-glow: 0 10px 30px rgba(56,105,17,0.35);

  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font);
  color: var(--forest);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--ink-muted); }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

/* ---------- Brasão oficial recortado por CSS (o arquivo não é alterado) ---------- */
.brasao {
  --s: .25;
  display: block;
  width: calc(300px * var(--s));
  height: calc(280px * var(--s));
  overflow: hidden;
  border-radius: calc(56px * var(--s));
  flex: none;
}
.brasao img {
  width: calc(500px * var(--s));
  max-width: none;
  height: auto;
  margin: calc(-120px * var(--s)) 0 0 calc(-100px * var(--s));
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .005em;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s, background-color .18s, border-color .18s, color .18s;
  line-height: 20px;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-hover), var(--brand));
  color: var(--on-brand);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-hover); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-control);
}
.btn-secondary:hover { background: var(--brand-tint); border-color: var(--brand); }
.btn-whatsapp { background: var(--forest); color: var(--on-dark); }
.btn-whatsapp:hover { transform: translateY(-2px); background: var(--brand-press); }
.btn-light { background: var(--on-dark); color: var(--forest); }
.btn-light:hover { transform: translateY(-2px); background: #fff; }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: var(--glass-dark-line); }
.btn-outline-light:hover { background: var(--glass-dark); border-color: var(--on-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .85; }
.spinner {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navbar (pílula de vidro flutuante) ---------- */
.navbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 16px;
  margin-bottom: -104px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 92px;
  padding: 0 14px 0 31px;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  max-width: calc(var(--container) - 24px);
  transition: box-shadow .2s var(--ease), background-color .2s;
}
.navbar.is-scrolled .container { box-shadow: var(--shadow-lg); background: rgba(255,255,255,.94); }
.nav-logo { display: flex; align-items: center; justify-content: center; width: 100px; flex: none; }
.nav-links { margin-right: auto; }
.nav-mark { height: 76px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--brand); border-bottom-color: var(--energy); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; border-radius: 50%; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .navbar .container { padding-left: 14px; }
  .nav-logo { width: 72px; }
  .nav-toggle { display: block; }
  .nav-cta .btn-secondary { display: none; }
  .navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 104px; left: 16px; right: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 12px 20px 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .navbar.menu-open .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .navbar.menu-open .nav-links li:last-child a { border-bottom: 0; }
}
.nav-cta .btn { white-space: nowrap; }
@media (max-width: 480px) { .nav-cta .btn-primary { padding: 10px 14px; font-size: 13px; } .navbar .container { gap: 8px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 184px 0 104px;
  color: var(--on-dark);
  background:
    radial-gradient(900px 520px at 88% 105%, rgba(122,194,66,.30), transparent 60%),
    linear-gradient(145deg, rgba(20,42,1,.90), rgba(22,24,26,.78)),
    url('assets/instalacoes/hero-rio.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  /* raios de sol sutis */
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: 70%; height: 140%;
  background: repeating-conic-gradient(from 200deg at 100% 0%, rgba(122,194,66,.07) 0 6deg, transparent 6deg 16deg);
  pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 80%);
}
.hero .container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 152px 0 72px; } }
.hero h1 { font-size: clamp(38px, 6vw, 64px); color: var(--on-dark); line-height: 1.04; margin-bottom: 20px; }
.hero p { color: var(--on-dark-muted); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero-badge svg { color: var(--energy); }
.hero-lede { font-size: 18px; line-height: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-visual {
  position: relative;
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.hero-visual::before {
  content: ""; position: absolute; left: 36px; top: 0; width: 56px; height: 3px; background: var(--gold);
}
.hero-visual .brasao { margin: 0 auto 18px; --s: .34; }
.hero-visual .divider { width: 40px; height: 2px; background: var(--energy); margin: 0 auto 18px; border-radius: 2px; opacity: .8; }
.hero-visual .kpi-value {
  font-size: clamp(52px, 7vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--energy);
  font-variant-numeric: tabular-nums;
}
.hero-visual .kpi-label { font-size: 15px; color: var(--on-dark); margin-top: 8px; }
.hero-visual .kpi-note { font-size: 12px; color: var(--on-dark-muted); margin-top: 14px; }

/* ---------- Como funciona ---------- */
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 18px; line-height: 30px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: opacity .5s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.step.reveal { opacity: 0; transform: translateY(14px); }
.step.reveal.in-view { opacity: 1; transform: translateY(0); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-hover), var(--brand));
  color: var(--on-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
  box-shadow: var(--shadow-glow);
}
.step p { margin: 0; font-size: 15px; line-height: 26px; }
@media (min-width: 901px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 54px; right: -24px; width: 24px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-control) 0 4px, transparent 4px 8px);
  }
}

/* ---------- Simulador ---------- */
.simulador {
  position: relative;
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(122,194,66,.28), transparent 60%),
    linear-gradient(145deg, var(--forest), var(--graphite));
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 56px;
  overflow: hidden;
}
.simulador::before { content: ""; position: absolute; left: 56px; top: 0; width: 72px; height: 3px; background: var(--gold); }
@media (max-width: 700px) { .simulador { padding: 36px 22px; } .simulador::before { left: 22px; } }
.simulador h2 { color: var(--on-dark); }
.simulador p { color: var(--on-dark-muted); }
.simulador .eyebrow { color: var(--energy); }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .sim-grid { grid-template-columns: 1fr; gap: 32px; } }
.sim-field label { display: block; font-weight: 600; margin-bottom: 12px; color: var(--on-dark); }
.sim-input-row { display: flex; align-items: center; gap: 16px; }
.sim-input-row input[type="range"] { flex: 1; accent-color: var(--energy); height: 28px; }
.sim-input-row input[type="number"] {
  width: 128px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  background: var(--surface);
  color: var(--ink);
}
.sim-input-row input[type="number"]:focus { outline: none; border-color: var(--energy); box-shadow: 0 0 0 3px rgba(122,194,66,.35); }
.sim-error { color: #F5AFA9; font-size: 14px; margin-top: 10px; display: none; }
.sim-error.is-visible { display: block; }
.sim-result {
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
}
.sim-result.is-empty .sim-value-block { display: none; }
.sim-result .placeholder { color: var(--on-dark-muted); margin: 0; }
.sim-result:not(.is-empty) .placeholder { display: none; }
.sim-value-block { display: none; }
.sim-result:not(.is-empty) .sim-value-block { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.kpi-label { font-size: 14px; color: var(--on-dark-muted); }
.sim-value { font-size: clamp(44px, 7vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--energy); margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.sim-value-annual { color: var(--on-dark); font-size: 16px; margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.sim-disclaimer { font-size: 12px; line-height: 18px; color: var(--on-dark-muted); margin-top: 24px; }

/* ---------- Diferenciais ---------- */
.diferenciais-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 72px; }
@media (max-width: 900px) { .diferenciais-grid { grid-template-columns: 1fr; } }
.dif-card, .servico-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.dif-card:hover, .servico-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.dif-card p, .servico-card p { margin: 0; font-size: 15px; line-height: 26px; }
.dif-card .icon, .servico-card .icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.dif-card .icon svg, .servico-card .icon svg, .hero-badge svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.hero-badge svg { width: 18px; height: 18px; }

.subhead { text-align: center; margin-bottom: 32px; }
.subhead h3 { font-size: 28px; margin-bottom: 8px; }
.depoimentos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 800px) { .depoimentos { grid-template-columns: 1fr; } }
.depoimento {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.depoimento:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.depoimento::before {
  content: '\201C';
  font-family: var(--font);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  color: var(--energy);
  display: block;
  height: 34px;
  margin-bottom: -4px;
}
.depoimento blockquote { margin: 0; font-style: italic; font-size: 16px; line-height: 26px; color: var(--ink); }
.depoimento .autor-row { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--logo-gray);
  color: var(--on-logo-gray);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.depoimento .autor { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.3; }
.depoimento .cargo { display: block; font-weight: 400; font-size: 13px; color: var(--ink-subtle); }

/* ---------- Galeria ---------- */
#instalacoes { background: var(--surface-alt); }
.galeria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .galeria-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .galeria-grid { grid-template-columns: 1fr; } }
.galeria-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.galeria-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.galeria-item:hover img { transform: scale(1.06); }
.galeria-item .legenda {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 18px 14px;
  background: linear-gradient(0deg, rgba(20,42,1,.88) 0%, rgba(20,42,1,0) 100%);
  color: var(--on-dark);
  font-size: 13px; font-weight: 600;
}

/* ---------- Serviços ---------- */
.servicos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .servicos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .servicos-grid { grid-template-columns: 1fr; } }
.link-strong { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.link-strong:hover { color: var(--brand-hover); }

/* ---------- Contato / formulário ---------- */
#contato { background: var(--brand-tint); }
.contato-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: flex-start; }
@media (max-width: 900px) { .contato-wrap { grid-template-columns: 1fr; gap: 40px; } }
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 560px) { .form-card { padding: 28px 20px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; line-height: 20px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-control);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--ink-subtle); }
.field input:hover, .field select:hover { border-color: var(--ink-muted); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint), 0 0 0 5px var(--focus-ring);
}
.field.has-error input, .field.has-error select { border-color: var(--danger-mark); animation: shake .3s var(--ease); }
.field-error { display: none; color: var(--danger-fg); font-size: 13px; line-height: 18px; margin-top: 6px; font-weight: 500; }
.field-error::before { content: "⚠ "; color: var(--danger-mark); }
.field.has-error .field-error { display: block; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.form-trust { font-size: 13px; color: var(--ink-subtle); margin: 14px 0 0; text-align: center; }
.form-general-error {
  display: none;
  background: var(--danger-bg);
  color: var(--danger-fg);
  border: 1px solid var(--danger-mark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-general-error.is-visible { display: block; }
.hp-field { position: absolute; left: -9999px; }
.confirmacao { display: none; text-align: center; padding: 20px 0; }
.confirmacao.is-visible { display: block; animation: fadeUp .4s var(--ease); }
.confirmacao .check {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 20px;
}
.contato-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contato-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; color: var(--ink-muted); }
.contato-list .bullet { width: 10px; height: 10px; border-radius: 50%; background: var(--energy); margin-top: 9px; flex: none; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); transition: background-color .2s; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer;
}
.faq-question:hover { color: var(--brand); }
.faq-question .plus { font-size: 24px; line-height: 1; color: var(--brand); transition: transform .2s var(--ease); flex: none; }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
.faq-item.is-open .faq-answer { max-height: 320px; }
.faq-answer p { padding-bottom: 22px; margin: 0; }
.faq-group-title { margin-top: 40px; margin-bottom: 4px; color: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.faq-group-title:first-child { margin-top: 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--forest); color: var(--on-dark-muted); padding: 72px 0 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: max(24px, calc(50% - 590px + 24px)); top: 0; width: 72px; height: 3px; background: var(--gold); }
.footer-top { display: grid; grid-template-columns: 1.1fr .9fr .8fr 1.1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--glass-dark-line); margin-bottom: 24px; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-col .brasao { --s: .5; margin-bottom: 16px; }
.footer-col p { color: var(--on-dark-muted); font-size: 14px; line-height: 24px; max-width: 280px; }
.footer-col h4 { color: var(--on-dark); font-family: var(--font); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; display: block; margin-bottom: 10px; font-size: 14px; line-height: 22px; transition: color .15s; }
.footer-col a:hover { color: var(--energy); }
.footer-col address { font-style: normal; font-size: 14px; line-height: 24px; color: var(--on-dark-muted); margin-bottom: 14px; }
.footer-photo { display: block; width: 100%; max-width: 280px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--glass-dark-line); margin-bottom: 14px; }
.footer-photo img { width: 100%; height: 150px; object-fit: cover; object-position: center 40%; transition: transform .6s var(--ease); }
.footer-photo:hover img { transform: scale(1.05); }
.footer-col a.map-link { color: var(--energy); font-weight: 600; }
.footer-col a.map-link:hover { color: var(--on-dark); }
.footer-bottom { font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  background: #fff;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform .18s var(--ease);
}
.wa-float img { width: 48px; height: 48px; display: block; }
.wa-ico { width: 20px; height: 20px; flex: none; display: block; }
.btn-whatsapp, .btn-outline-light { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- Faixa "Já é cliente" (home) ---------- */
.cliente-band { padding: 0 0 96px; }
@media (max-width: 700px) { .cliente-band { padding-bottom: 64px; } }
.cliente-band-card {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cliente-band-card::before { content: ""; position: absolute; left: 44px; top: 0; width: 56px; height: 3px; background: var(--gold); }
.cliente-band-card h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cliente-band-card p { margin: 0; max-width: 56ch; }
@media (max-width: 560px) { .cliente-band-card { padding: 32px 22px; } .cliente-band-card::before { left: 22px; } }

/* ---------- Área do cliente ---------- */
.portal-hero {
  position: relative;
  padding: 176px 0 72px;
  color: var(--on-dark);
  background:
    radial-gradient(800px 420px at 90% 110%, rgba(122,194,66,.30), transparent 60%),
    linear-gradient(145deg, var(--forest), var(--graphite));
  overflow: hidden;
}
.portal-hero .container { position: relative; z-index: 1; }
.portal-hero h1 { color: var(--on-dark); font-size: clamp(32px, 5vw, 52px); line-height: 1.08; max-width: 18ch; }
.portal-hero p { color: var(--on-dark-muted); font-size: 18px; line-height: 30px; max-width: 56ch; }
.portal-hero .eyebrow { color: var(--energy); }
@media (max-width: 700px) { .portal-hero { padding: 144px 0 56px; } }

.portal-main { padding: 56px 0 96px; }
@media (max-width: 700px) { .portal-main { padding: 40px 0 64px; } }
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius-md); border: 1px solid;
  font-size: 14px; line-height: 22px;
}
.alert b { display: block; font-weight: 700; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.alert.danger { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-mark); }
.alert.danger svg { color: var(--danger-mark); }
.alert.info { background: #E3F0F5; color: #123C4C; border-color: #1B5E7A; }
.alert.info svg { color: #1B5E7A; }
.portal-alerts { display: grid; gap: 12px; margin-bottom: 40px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font: 600 15px/22px var(--font); color: var(--ink-muted); cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s;
}
.tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--ink); background: var(--brand-tint); }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tabpanel { padding-top: 32px; }
.tabpanel[hidden] { display: none; }
.panel-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: flex-start; }
@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; gap: 28px; } }
.panel-side h2 { font-size: clamp(24px, 3vw, 32px); }
.panel-side ul { list-style: none; padding: 0; margin: 20px 0 0; }
.panel-side li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--ink-muted); font-size: 15px; line-height: 26px; }
.panel-side li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--energy); margin-top: 9px; flex: none; }
.form-card textarea {
  width: 100%; min-height: 120px; resize: vertical;
  padding: 12px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--line-control);
  font-family: var(--font); font-size: 16px; line-height: 24px; background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-card textarea::placeholder { color: var(--ink-subtle); }
.form-card textarea:hover { border-color: var(--ink-muted); }
.form-card textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint), 0 0 0 5px var(--focus-ring); }
.field.has-error textarea { border-color: var(--danger-mark); animation: shake .3s var(--ease); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ----- Área do cliente: cartões de assunto ----- */
.portal-q { font-size: clamp(22px, 3vw, 28px); margin-bottom: 20px; }
.tab-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .tab-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .tab-cards { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 420px) { .tab-cards { grid-template-columns: 1fr; } }
.tab-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left;
  padding: 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); cursor: pointer; font-family: var(--font); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s, background-color .2s;
}
.tab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.tab-card[aria-selected="true"] { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px var(--brand-tint), var(--shadow-md); }
.tab-ico { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.tab-card[aria-selected="true"] .tab-ico { background: var(--brand); color: var(--on-brand); }
.tab-card.is-urgent .tab-ico { background: var(--danger-bg); color: var(--danger-mark); }
.tab-card.is-urgent[aria-selected="true"] { border-color: var(--danger-mark); background: var(--danger-bg); box-shadow: 0 0 0 3px var(--danger-bg), var(--shadow-md); }
.tab-card.is-urgent[aria-selected="true"] .tab-ico { background: var(--danger-mark); color: #fff; }
.tab-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tab-txt b { display: block; font-size: 15px; line-height: 22px; font-weight: 700; }
.tab-txt small { display: block; font-size: 13px; line-height: 20px; color: var(--ink-muted); margin-top: 2px; }
.portal-main .tabpanel { padding-top: 40px; }
.panel-side .alert { margin-top: 24px; }

/* ----- Formulários: grupos, chips, datas, arquivo ----- */
.form-group-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 28px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-general-error + .form-group-title { margin-top: 0; padding-top: 0; border-top: 0; }
fieldset.field { border: 0; padding: 0; min-width: 0; margin: 0 0 20px; }
fieldset.field legend { font-weight: 600; font-size: 14px; line-height: 20px; margin-bottom: 6px; padding: 0; color: var(--ink); }
.field .help { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.field .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-control); background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 20px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--brand); background: var(--brand-tint); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.field.has-error .chip span { border-color: var(--danger-mark); }
.field input[type="date"] { min-height: 52px; }
.field input[type="file"] { padding: 10px 12px; background: var(--surface-alt); }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 16px; border: 0; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--on-brand); font: 600 14px var(--font); cursor: pointer;
}

.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .step.reveal { opacity: 1; transform: none; }
}

/* ----- Política de privacidade ----- */
.policy-hero { padding: 176px 0 56px; background: var(--forest); color: var(--on-dark); }
.policy-hero h1 { color: var(--on-dark); margin: 12px 0 8px; font-size: clamp(32px, 5vw, 48px); }
.policy-hero p { color: var(--on-dark-muted); margin: 0; }
@media (max-width: 900px) { .policy-hero { padding: 144px 0 40px; } }
.policy { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.policy h2 { font-size: 22px; margin: 40px 0 12px; }
.policy p, .policy li { font-size: 16px; line-height: 28px; color: var(--ink); }
.policy ul { padding-left: 22px; margin: 8px 0 16px; }
.policy li { margin-bottom: 6px; }
.policy a { color: var(--brand); font-weight: 600; }
.policy .updated { font-size: 14px; color: var(--ink-muted); }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-trust a { color: var(--brand); font-weight: 600; }
.footer-tag { color: var(--on-dark); font-weight: 600; }

.footer-col a.footer-wa { display: flex; align-items: center; gap: 8px; }
