/* ============================================================
   VARIÁVEIS GLOBAIS — troque aqui para ajustar cores/tipografia
   ============================================================ */
:root {
  --color-navy: #0b1f33;
  --color-navy-dark: #071526;
  --color-graphite: #2b303a;
  --color-accent: #0d5c53;
  --color-accent-dark: #083f39;
  --color-accent-light: #14877a;

  --color-bg: #faf9f6;
  --color-bg-alt: #f0ede4;
  --color-text: #1c2430;
  --color-text-muted: #5a6270;
  --color-border: #e1ddd0;
  --color-white: #ffffff;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1160px;
  --radius: 10px;
  --shadow-soft: 0 8px 30px rgba(11, 31, 51, 0.08);
}

/* ============================================================
   RESET BÁSICO
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Garante que o atributo hidden sempre vença qualquer display: definido
   por regras de maior especificidade (ex.: .hero-form-card .form-success
   usa display: flex, que sobrescreveria o [hidden] do user-agent). */
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.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;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 760px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  border-bottom: 1px solid var(--color-border);
}
/* O blur fica num pseudo-elemento próprio: um backdrop-filter aplicado
   diretamente no .site-header criaria um containing block para os
   descendentes fixed (como o .nav mobile), espremendo o menu dentro
   dos 68px de altura do header e impedindo-o de abrir na tela. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  text-decoration: none;
}
.logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 860px) {
  .logo img { height: 44px; }
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}
.nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.nav.is-open { transform: translateX(0); }
.nav ul {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 4px;
}
.nav a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.nav a.btn { border-bottom: none; margin-top: 12px; text-align: center; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    inset: auto;
    transform: none;
    background: none;
    overflow: visible;
  }
  .nav ul { flex-direction: row; align-items: center; padding: 0; gap: 28px; }
  .nav a { padding: 0; border-bottom: none; font-size: 0.95rem; }
  .nav a.btn { margin-top: 0; }
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }
.btn-large { padding: 16px 30px; font-size: 1rem; }
.btn-small { padding: 9px 16px; font-size: 0.85rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding: 40px 0 48px;
}
.hero-inner {
  display: grid;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  color: var(--color-white);
  margin-bottom: 0.6em;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}
.hero .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--color-white); }
.hero .btn-outline:hover { background: var(--color-white); color: var(--color-navy); }

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trust-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.trust-badges .icon { color: var(--color-accent-light); flex-shrink: 0; }

.hero-visual { display: flex; justify-content: center; }

/* ---- Card do formulário curto do hero ---- */
.hero-form-card {
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 16px;
  padding: 24px 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}
.hero-form-title { font-size: 1.15rem; margin-bottom: 6px; }
.hero-form-sub { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 14px; }
.hero-form-card form { display: flex; flex-direction: column; flex: 1; }
.hero-form-card .form-row { margin-bottom: 10px; }
.hero-form-card .form-row label { font-size: 0.85rem; margin-bottom: 4px; }
.hero-form-card .form-row input[type="text"],
.hero-form-card .form-row input[type="email"],
.hero-form-card .form-row input[type="tel"],
.hero-form-card .form-row select {
  padding: 10px 12px;
  font-size: 0.9rem;
}
.hero-form-card .form-consent-note { font-size: 0.75rem; padding-top: 12px; margin-bottom: 14px; }
.hero-form-card .form-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 20px 4px;
  text-align: left;
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

/* ============================================================
   SEÇÕES GERAIS
   ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: var(--color-navy);
  color: rgba(255,255,255,0.92);
}
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-title {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  text-align: center;
  max-width: 46ch;
  margin: 0 auto 0.5em;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto 2.5em;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  gap: 24px;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}
.card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 1.1rem; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card-dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
.card-dark p { color: rgba(255,255,255,0.72); }

.icon { width: 24px; height: 24px; color: var(--color-accent); }
.icon-lg { width: 32px; height: 32px; margin-bottom: 14px; color: var(--color-accent); }
.section-dark .icon-lg { color: var(--color-accent-light); }

/* ============================================================
   TIMELINE (COMO FUNCIONA)
   ============================================================ */
.timeline {
  display: grid;
  gap: 32px;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
}
.timeline-step {
  position: relative;
  padding-top: 8px;
  border-top: 3px solid var(--color-accent);
}
.step-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.timeline-step h3 { font-size: 1.05rem; }
.timeline-step p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ============================================================
   MÓDULOS
   ============================================================ */
.module-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.module-card h3 { font-size: 1.3rem; margin-bottom: 16px; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/70% no-repeat;
}
.module-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  margin-top: 14px;
}
.module-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.module-price-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-top: 2px;
}
.module-price-value span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================================
   TIERS (NÍVEIS)
   ============================================================ */
.tiers {
  display: grid;
  gap: 24px;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, 1fr); align-items: start; }
}
.tier {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.tier-highlight {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.tier h3 { font-size: 1.15rem; }
.tier-badge {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.tier .check-list li { font-size: 0.92rem; }
.tier-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

/* ============================================================
   TABELA DE PREÇOS
   ============================================================ */
.table-wrap { overflow-x: auto; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  min-width: 640px;
}
.price-table th, .price-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  vertical-align: top;
}
.price-table thead th {
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.85rem;
}
.price-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}
.price-cell {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-accent);
  white-space: nowrap;
}
.price-cell span { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--color-text-muted); }

/* ============================================================
   FORMULÁRIO
   ============================================================ */
.section-cta { background: var(--color-bg-alt); }
.form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 32px 24px;
  margin-top: 2rem;
}
@media (min-width: 600px) {
  .form-wrap { padding: 40px; }
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-row label, .form-row legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  padding: 0;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-bg);
  color: var(--color-text);
}
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.92rem;
  cursor: pointer;
}
.checkbox-label input { margin-top: 3px; flex-shrink: 0; }

.field-error {
  color: #b23a24;
  font-size: 0.82rem;
  margin-top: 6px;
}
.field-error:empty { display: none; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-consent-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-bottom: 20px;
}
.form-consent-note a { color: var(--color-accent); text-decoration: underline; }

.btn-submit { width: 100%; position: relative; margin-top: 8px; }
.btn-submit[disabled] { opacity: 0.75; cursor: not-allowed; }
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.is-loading .btn-spinner { display: inline-block; }
.btn-submit.is-loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  color: #b23a24;
}
.form-success {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 40px 32px;
  margin-top: 2rem;
  text-align: center;
}
.form-success h3 { color: var(--color-accent); }
.form-success p { color: var(--color-text-muted); }

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.accordion { margin-top: 2rem; }
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}
.accordion-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-accent); transition: transform 0.2s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p {
  padding: 0 4px 20px;
  color: var(--color-text-muted);
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--color-white); }
.footer-brand .logo img { height: 48px; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 8px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--color-white); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { text-decoration: underline; }

@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1.2fr; }
}

.footer-bottom {
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-aviso { max-width: 70ch; }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
