/* ==========================================================================
   Nova Marca Marcas e Patentes — style.css
   Stack: HTML + CSS + JS Vanilla. Mobile-first.
   ========================================================================== */

:root {
  /* Cores principais */
  --color-primary: #680811;         /* borgô — header, CTA final, footer */
  --color-primary-hover: #7a0f19;   /* hover do borgô */
  --color-accent: #8b1a25;          /* vermelho médio — ícones, tags, pequenos destaques */
  --color-accent-hover: #a0202c;    /* hover do vermelho médio */
  --color-gold: #c9973a;            /* dourado — badges, títulos em fundo escuro, botão CTA */
  --color-gold-hover: #b8862e;      /* hover do dourado */

  /* Neutros */
  --color-bg: #f8f9fa;              /* fundo geral da página */
  --color-bg-alt: #f5f0e8;          /* creme — fundo de seções alternadas, cards de alerta */
  --color-white: #ffffff;
  --color-text: #1a1a1a;            /* texto principal */
  --color-text-muted: #555555;      /* texto secundário */
  --color-border: #e0e0e0;          /* bordas de cards */

  /* Aliases semânticos */
  --color-heading: #1a1a1a;         /* títulos em fundo claro */
  --color-link: #680811;            /* links */
  --color-link-hover: #c9973a;      /* hover de links — dourado */
  --color-btn-primary-bg: #680811;
  --color-btn-primary-text: #ffffff;
  --color-btn-primary-hover: #7a0f19;
  --color-btn-secondary-bg: transparent;
  --color-btn-secondary-text: #680811;
  --color-btn-secondary-border: #680811;
  --color-alert-bg: #f5f0e8;
  --color-alert-border: #8b1a25;

  /* Aliases legados (preservam regras CSS escritas com os nomes antigos) */
  --primary: var(--color-primary);
  --primary-dark: var(--color-primary-hover);
  --accent: var(--color-accent);
  --gold: var(--color-gold);
  --gold-dark: var(--color-gold-hover);
  --bg: var(--color-bg);
  --text: var(--color-text);
  --text-soft: var(--color-text-muted);
  --muted: #6b7280;
  --line: var(--color-border);
  --danger: var(--color-accent);
  --danger-bg: var(--color-alert-bg);
  --success: #2e7d32;
  --white: var(--color-white);
  --color-text-on-primary: #ffffff;
  --color-card-bg: #ffffff;
  --color-primary-dark: var(--color-primary-hover); /* compat. com nome anterior */

  /* Tokens de layout */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.14);
  --container: 1180px;
  --transition: 0.25s ease;
}

/* Reset --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  max-width: 100%;
  display: block;
}

img.logo-img,
.nav-logo img {
  max-width: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

section {
  padding: 4rem 0;
}

/* Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* CTA branco no header (sobre fundo vermelho) */
.site-header .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.site-header .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-large {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

/* Header -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
  color: var(--white);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.97rem;
}

.nav a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  color: var(--white);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown > button:hover { color: rgba(255, 255, 255, 0.75); }

.nav-dropdown > button::after {
  content: "▾";
  font-size: 0.7rem;
  margin-top: 2px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  background: var(--white);
  min-width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  color: var(--primary);
}

.nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--gold);
}

.header-cta {
  display: inline-flex;
}

.nav > .btn { display: none; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--white);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle span::before { position: absolute; top: -7px; left: 0; }
.menu-toggle span::after { position: absolute; top: 7px; left: 0; }

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 2rem;
    border-top: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a, .nav-dropdown > button {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    text-align: left;
    color: var(--primary);
  }
  .nav a:hover, .nav-dropdown > button:hover {
    color: var(--primary-dark);
  }
  .nav-dropdown-menu a {
    color: var(--primary);
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    left: auto;
    right: auto;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding: 0 0 0.5rem 0.5rem;
    min-width: 0;
    max-width: 100%;
    background: transparent;
    box-sizing: border-box;
    display: none;
  }
  .nav-dropdown-menu a {
    padding: 0.6rem 0.5rem;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav > .btn { display: inline-flex; margin-top: 1rem; }
}

/* Hero ---------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, #fdfdfd 0%, var(--bg) 100%);
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 1.6rem;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-meta strong { color: var(--primary); }

/* Section helpers ----------------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.4rem;
}

.section-head p {
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* Alert cards (Por que registrar agora) ------------------------------------- */
.alert-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .alert-grid { grid-template-columns: repeat(3, 1fr); }
}

.alert-card {
  background: var(--danger-bg);
  border-left: 4px solid var(--danger);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: #5a1219;
}

/* Services grid ------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .services-grid { gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(104, 8, 17, 0.4);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
}

.service-card h3 {
  margin: 0;
}

.service-card p {
  flex: 1;
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.service-link {
  align-self: flex-start;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.service-link::after { content: "→"; transition: transform var(--transition); }
.service-link:hover { color: var(--gold); }
.service-link:hover::after { transform: translateX(3px); }

/* Steps --------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; font-size: 0.95rem; }

/* Differentials ------------------------------------------------------------- */
.section-alt { background: var(--white); }

.diffs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 980px) {
  .diffs { grid-template-columns: repeat(4, 1fr); }
}

.diff {
  text-align: center;
  padding: 1.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.diff strong {
  display: block;
  color: var(--primary);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}

/* FAQ ----------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.open { box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 400;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after { content: "−"; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding: 0 1.3rem;
}

.faq-answer p {
  margin: 0 0 1rem;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 1.3rem 1.1rem;
}

/* Testimonial --------------------------------------------------------------- */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Final CTA ----------------------------------------------------------------- */
.cta-final {
  background: var(--primary);
  text-align: center;
  color: var(--white);
}

.cta-final h2 { color: var(--white); }

.cta-final p,
.cta-final .subtitle,
.section-cta p,
.section-cta .subtitle {
  color: #f5f0e8; /* creme — legível sobre o borgô */
  max-width: 620px;
  margin: 0 auto 1.6rem;
  font-size: 1.05rem;
}

/* Botão dourado da seção CTA final — alta visibilidade sobre o fundo borgô */
.cta-final .btn,
.cta-final button,
.section-cta .btn,
.section-cta button {
  background: #c9973a;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.cta-final .btn:hover,
.cta-final button:hover,
.section-cta .btn:hover,
.section-cta button:hover {
  background: #b8862e;
  color: #ffffff;
}

/* Footer -------------------------------------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer h4 {
  color: var(--white);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: rgba(255, 255, 255, 0.95); text-decoration: underline; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { padding: 0.25rem 0; }

.footer-brand p { color: rgba(255, 255, 255, 0.7); margin-bottom: 0.7rem; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Inner page hero ----------------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-hero h1 { color: var(--white); }
.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 1.4rem;
  font-size: 1.05rem;
}
.page-hero .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
}
.page-hero .breadcrumbs a { color: var(--white); text-decoration: underline; }

/* Service / content pages --------------------------------------------------- */
.content-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 980px) {
  .content-grid { grid-template-columns: 1.6fr 1fr; }
}

.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; color: var(--text-soft); }

.side-cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.side-cta h3 { color: var(--primary); margin-bottom: 0.6rem; }
.side-cta p { font-size: 0.95rem; }
.side-cta .btn { width: 100%; }

.info-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.info-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-soft);
}

.info-list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
}

/* Comparison table (assistente.html) ---------------------------------------- */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare th,
.compare td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}

.compare thead th {
  background: var(--primary);
  color: var(--white);
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
}

.compare thead th.highlight {
  background: var(--primary-dark);
  color: var(--white);
  border-bottom: 3px solid var(--white);
}

.compare tbody tr:nth-child(even) td { background: var(--bg); }

.compare tbody td:nth-child(2) {
  color: var(--primary);
  font-weight: 600;
  background: rgba(104, 8, 17, 0.06);
}

.compare tbody td:first-child {
  font-weight: 500;
  color: var(--primary);
}

/* Diff cards (assistente highlights) ---------------------------------------- */
.diff-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .diff-cards { grid-template-columns: repeat(3, 1fr); }
}

.diff-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.diff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.diff-card .icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

/* Portfolio grid ------------------------------------------------------------ */
.portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .portfolio-grid { grid-template-columns: repeat(4, 1fr); } }

.portfolio-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.portfolio-item svg { width: 70%; height: auto; color: var(--primary); }

/* Highlights / stats -------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat strong {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}

.stat span { color: var(--text-soft); font-size: 0.92rem; }

/* About page values --------------------------------------------------------- */
.values {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .values { grid-template-columns: repeat(3, 1fr); }
}

.value {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.value h3 { margin-bottom: 0.4rem; }

/* Skip link & accessibility ------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: var(--white);
}

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

/* Utilities ----------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   PASSO 4 — Hardening responsivo (defensivo, alinhado ao brief)
   Aliases para classes alternativas que podem ser usadas no futuro
   (.servicos-grid, .submenu, .dropdown-menu) — replicam o comportamento
   responsivo das classes oficiais (.services-grid, .nav-dropdown-menu).
   ========================================================================== */

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .servicos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .submenu,
  .dropdown-menu {
    position: static;
    width: 100%;
    left: auto;
    right: auto;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    box-sizing: border-box;
  }
}


/* ==========================================================================
   Refatoração de hierarquia visual — paleta borgô / dourado / creme
   Bloco aplicado por último para garantir precedência sobre regras anteriores.
   ========================================================================== */

/* Header — borgô escuro */
header,
.site-header,
nav {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Títulos de seção — quase preto, NÃO vermelho */
h1, h2, h3 {
  color: var(--color-heading);
}

/* Tags/labels pequenas acima dos títulos (eyebrow) */
.eyebrow,
.section-tag,
.section-label,
[class*="section-tag"],
[class*="section-label"] {
  color: var(--color-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Ícones dos cards de serviço */
.service-icon,
.servico-icon,
.card-icon,
.diff-card .icon {
  color: var(--color-accent);
  fill: currentColor;
}

/* Links "Saiba mais" nos cards */
.service-link,
.card-link,
.saiba-mais {
  color: var(--color-accent);
  font-weight: 500;
}
.service-link:hover,
.card-link:hover,
.saiba-mais:hover {
  color: var(--color-primary);
}

/* Números das etapas (1, 2, 3, 4) */
.step-number,
[class*="step"] .step-number,
[class*="etapa"] span {
  color: var(--color-primary);
  font-weight: 700;
}

/* Cards de alerta (seção "Por que registrar agora?") */
.alert-card,
.risco-card,
[class*="risco"] {
  background: var(--color-alert-bg);
  border-left: 4px solid var(--color-alert-border);
  color: var(--color-text);
}

/* Botão CTA primário */
.btn-primary,
button.btn-primary,
a.btn-primary,
.cta-btn,
.btn-cta {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  border: none;
}
.btn-primary:hover {
  background: var(--color-btn-primary-hover);
  color: var(--color-btn-primary-text);
}

/* Botão secundário (outline) */
.btn-secondary,
button.btn-secondary,
a.btn-secondary {
  background: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-text);
  border: 1.5px solid var(--color-btn-secondary-border);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Botão "Consultar agora" no header — branco, hover dourado */
.site-header .btn-primary,
.header-cta,
header .btn,
nav .btn-cta,
.nav-cta {
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  font-weight: 600;
}
.site-header .btn-primary:hover,
.header-cta:hover,
header .btn:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

/* Seção CTA final — fundo borgô */
.cta-final,
.section-cta,
section.cta,
[class*="cta-section"],
[class*="section-cta"] {
  background: var(--color-primary);
}
.cta-final h2,
.section-cta h2,
.cta-final h3,
.section-cta h3 {
  color: var(--color-white);
}
.cta-final p,
.section-cta p {
  color: var(--color-bg-alt);
}
.cta-final .btn,
.cta-final button,
.section-cta .btn,
.section-cta button {
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
}
.cta-final .btn:hover,
.cta-final button:hover,
.section-cta .btn:hover,
.section-cta button:hover {
  background: var(--color-gold-hover);
  color: var(--color-white);
}

/* Footer — fundo borgô, textos creme */
footer,
.site-footer {
  background: var(--color-primary);
  color: var(--color-bg-alt);
}
footer p,
footer li,
footer span,
footer a,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer a {
  color: var(--color-bg-alt);
}
footer h3,
footer h4,
footer strong,
.site-footer h3,
.site-footer h4,
.site-footer strong {
  color: var(--color-white);
}
footer a:hover,
.site-footer a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Depoimento / blockquote */
blockquote,
.testimonial blockquote,
.depoimento,
[class*="testimonial"] blockquote {
  border-left: 3px solid var(--color-gold);
  font-style: italic;
  color: var(--color-text-muted);
}

/* FAQ — separação e ícone "+" */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  color: var(--color-text);
  font-weight: 500;
}
.faq-question::after,
.faq-icon {
  color: var(--color-accent);
}

/* Seções alternadas com fundo creme */
.section-alt,
[class*="section-alt"] {
  background: var(--color-bg-alt);
}

/* Links de corpo de texto */
a {
  color: var(--color-link);
}
a:hover {
  color: var(--color-link-hover);
}
.site-header a,
.site-footer a,
.cta-final a,
nav a {
  /* contextos com fundo escuro mantêm o estilo herdado das regras acima */
  color: inherit;
}

/* Fix dropdown visibilidade — sobrescreve "nav a { color: inherit }" */
.nav-dropdown-menu a {
  color: #1a1a1a !important;
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
  background: #f5f0e8 !important;
  color: #680811 !important;
}

@media (min-width: 768px) {
  .nav-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  }
}

/* Logo oficial — regra única */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
  max-width: none;
  min-width: unset;
}

@media (max-width: 767px) {
  .nav-logo img {
    height: 36px;
  }
}
