:root {
  --primary: #0B3D5C;
  --secondary: #007F68;
  --accent: #2CBFD0;
  --white: #FFFFFF;
  --ice: #F5F9FA;
  --gray: #D7E2E8;
  --graphite: #263238;
  --text: #34454d;
  --border: #d9e5ea;
  --success: #25D366;
  --shadow-sm: 0 8px 24px rgba(11, 61, 92, .08);
  --shadow-md: 0 18px 40px rgba(11, 61, 92, .12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --header-h: 140px; /* Aumentado para comportar as duas linhas do cabeçalho de forma elegante */
  --font-title: "Montserrat", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 0 0 10px 10px;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-alt {
  background: var(--ice);
}

.section-head {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-head h2,
.page-hero h1,
.hero-content h1,
.article-content h1,
.article-content h2,
.article-content h3,
.footer h3 {
  font-family: var(--font-title);
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--graphite); /* Correção de contraste em parágrafos de introdução */
  font-size: 1.05rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .84rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--graphite);
  font-weight: 500;
}

.note {
  font-size: .95rem;
  color: var(--graphite); /* Melhoria de contraste */
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #0f5079;
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: #006453;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.badges, .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 61, 92, 0.08); /* Contraste aprimorado substituindo o azul claro translúcido */
  color: var(--primary);
  font-weight: 700;
  font-size: .92rem;
}

/* ESTRUTURA DO NOVO CABEÇALHO REORGANIZADO */

/* Primeira Linha (Topo) */
.header-top-row {
  background: var(--primary);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
}

.header-top-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.header-logo-container {
  display: flex;
  align-items: center;
}

.header-logo-container img {
  width: 76px; /* Tamanho ampliado para destaque */
  height: 76px;
  object-fit: contain;
}

.header-info-text {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.header-whatsapp-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--success);
  border-radius: 50%;
  transition: var(--transition);
}

.header-whatsapp-icon-link:hover {
  transform: scale(1.08);
}

.header-whatsapp-icon-link svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

/* Segunda Linha (Navegação) */
.header-nav-row {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border);
}

.header-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}

.nav-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--primary);
}

.nav-list a:hover,
.nav-list a.is-active {
  background: var(--ice);
  color: var(--secondary);
}

/* HERO SECTION - Correção de Layout e Alinhamento */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background: linear-gradient(180deg, #f9fcfd 0%, #fff 100%);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.hero-content p + p {
  margin-top: 14px;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  height: auto;
}

.hero-points {
  display: grid;
  gap: 20px;
}

.hero-point, .list-check li, .feature-list li {
  list-style: none;
  position: relative;
  padding-left: 32px;
  color: var(--graphite); /* Correção de contraste */
}

.hero-point::before, .list-check li::before, .feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.2;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2, .grid-3, .grid-4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card p {
  color: var(--text); /* Garantindo contraste legível */
}

.card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 1.25rem;
  line-height: 1.3;
}

.card-accent {
  border-top: 4px solid var(--accent);
}

.card-cta {
  margin-top: 20px;
}

.metric {
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%);
  border: 1px solid var(--border);
}

.metric strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.metric span {
  color: var(--graphite); /* Correção de contraste */
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 24px 0 0;
}

.steps li {
  list-style: none;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px 20px 72px;
  box-shadow: var(--shadow-sm);
  color: var(--graphite);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
}

.page-hero {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, #f7fbfc 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  margin: 0 0 12px;
  font-size: .94rem;
  color: var(--graphite);
}

.breadcrumb a {
  color: var(--primary);
}

.content-columns {
  display: grid;
  gap: 32px;
}

.sidebar-box {
  background: var(--ice);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.sidebar-box h3 {
  margin-top: 0;
  font-family: var(--font-title);
  color: var(--primary);
}

.info-list, .list-check, .feature-list {
  padding: 0;
  margin: 0;
}

.info-list li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--graphite);
}

.info-list li:last-child {
  border-bottom: 0;
}

.notice, .catalog-note {
  background: #eef8fa;
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  border-radius: 8px;
  color: var(--graphite);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
  color: var(--primary);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border: 1px solid #bfd0d8;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--graphite);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-hint {
  font-size: .9rem;
  color: var(--graphite);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--graphite);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-list .card h3 a {
  color: var(--primary);
}

.article-content {
  max-width: 860px;
}

.article-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.article-content h2 {
  margin-top: 36px;
  font-size: 1.6rem;
}

.article-content h3 {
  margin-top: 24px;
  font-size: 1.2rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0f547f 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.cta-banner h2, .cta-banner h3, .cta-banner p, .cta-banner a {
  color: var(--white);
}

.faq {
  display: grid;
  gap: 16px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-title);
}

.faq p {
  color: var(--graphite);
  margin-top: 10px;
}

/* RODAPÉ E SUB-ELEMENTOS (Correções e Contraste) */
.footer {
  background: var(--ice); /* Alterado de primary para ice para clarear e adequar ao estilo original do print */
  color: var(--text);
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--primary);
}

.footer a:hover {
  color: var(--secondary);
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.footer h3 {
  color: var(--primary);
  font-size: 1.15rem;
  font-family: var(--font-title);
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li + li {
  margin-top: 12px;
}

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  font-size: .95rem;
  color: var(--graphite);
}

.whatsapp-float, .back-to-top {
  position: fixed;
  right: 20px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.whatsapp-float {
  bottom: 20px;
  background: var(--success);
  color: var(--white);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.back-to-top {
  bottom: 92px;
  border: 0;
  background: var(--primary);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* MEDIA QUERIES RESPONSIVAS */
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .span-2 {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }
  .nav-list a {
    padding: 10px 14px;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 0.95fr; /* Distribuição de grid ajustada para corrigir layout direito */
    gap: 48px;
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .content-columns {
    grid-template-columns: 1.4fr .8fr;
    gap: 48px;
    align-items: start;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
