:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #141b4d;
  --ink-2: #4a5170;
  --rule: #d6cfc1;
  --accent: #c8102e;
  --accent-light: #f2475e; /* vermelho para fundo escuro */
  --dark-text: #bfc4dc;
  --dark-rule: #323a6a;
  --max: 1120px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-stretch: 85%;
  line-height: 1.1;
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 72px;
}

/* ---------- Rótulos em caixa alta ---------- */
.label {
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-dark .label {
  color: var(--accent-light);
}

/* Títulos de tópicos em caixa alta */
.service h3,
.modes h3,
.steps h3,
.checklist h3,
.modes th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-stretch: 85%;
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
}

.logo img {
  display: block;
  width: auto;
  height: 44px;
}

.menu {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.95rem;
  white-space: nowrap;
}

.menu a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.menu a:hover {
  color: var(--ink);
}

.menu a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--rule);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-weight: 600;
}

/* ---------- Topo ---------- */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  max-width: 20ch;
}

.lead {
  margin-top: 24px;
  max-width: 54ch;
  font-size: 1.1rem;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}

.link-arrow {
  font-weight: 600;
  text-underline-offset: 4px;
}

.link-arrow::after {
  content: " →";
}

.fact-sheet {
  border-top: 2px solid var(--ink);
  font-size: 0.95rem;
}

.fact-sheet div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.fact-sheet dt {
  color: var(--ink-2);
}

.fact-sheet dd {
  font-weight: 600;
}

.fact-sheet dd a {
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* ---------- Seções ---------- */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}

.section-intro h2,
.contact h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-intro > p {
  color: var(--ink-2);
  font-size: 1.08rem;
  max-width: 52ch;
  padding-top: 30px;
}

/* ---------- Serviços ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.service {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.service h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.service > p {
  margin-top: 14px;
  color: var(--ink-2);
}

.item-list {
  list-style: none;
  margin-top: 24px;
  counter-reset: item;
}

.item-list li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 32px 1fr;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.97rem;
}

.item-list li::before {
  content: counter(item, decimal-leading-zero);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.modes {
  margin-top: 80px;
}

.modes h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.modes table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
}

.modes th,
.modes td {
  text-align: left;
  vertical-align: top;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.modes th {
  width: 200px;
  font-size: 1rem;
  font-weight: 700;
}

.modes td {
  color: var(--ink-2);
}

/* ---------- Como atuamos ---------- */
.section-dark {
  background: var(--ink);
  color: var(--paper);
  border-bottom: none;
}

.section-dark .section-intro > p {
  color: var(--dark-text);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
  border-top: 1px solid var(--dark-rule);
}

.steps li {
  counter-increment: step;
  padding: 24px 24px 8px 0;
}

.steps li + li {
  padding-left: 24px;
  border-left: 1px solid var(--dark-rule);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 20px;
  font-size: 2.6rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  color: var(--accent-light);
}

.steps h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.steps p {
  margin-top: 8px;
  color: var(--dark-text);
  font-size: 0.97rem;
}

/* ---------- Dúvidas ---------- */
.faq {
  border-top: 2px solid var(--ink);
  max-width: 860px;
  margin-left: auto;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 40px 24px 0;
  color: var(--ink-2);
  max-width: 70ch;
}

/* ---------- Contato ---------- */
.contact {
  background: var(--paper-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text {
  margin-top: 16px;
  color: var(--ink-2);
  max-width: 46ch;
}

.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  font-weight: 700;
  font-stretch: 85%;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--accent);
}

.contact-phone {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}

.contact-phone span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.contact-phone a {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  font-stretch: 85%;
  text-decoration: none;
  white-space: nowrap;
}

.contact-phone a:hover {
  color: var(--accent);
}

/* rótulos com a mesma largura, para telefone e endereço ficarem alinhados */
.contact-phone span {
  flex: none;
  min-width: 84px;
}

.contact-address {
  margin-top: 14px;
}

.contact-address a {
  font-size: 1.05rem;
  font-weight: 600;
  font-stretch: 100%;
  line-height: 1.45;
  white-space: normal;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}

.checklist {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.checklist h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.checklist ul {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--ink-2);
}

.checklist li {
  padding: 3px 0;
}

/* ---------- Rodapé ---------- */
.footer {
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .section-intro,
  .services,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-intro {
    gap: 12px;
  }

  .section-intro > p {
    padding-top: 0;
  }

  .nav {
    gap: 24px;
  }

  .menu {
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps li:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }

  .steps li:nth-child(n + 3) {
    border-top: 1px solid var(--dark-rule);
  }

  .faq {
    margin-left: 0;
  }
}

/* Em telas médias, o botão sai do cabeçalho para o menu não apertar.
   "Contato" continua no menu. */
@media (max-width: 900px) {
  .desktop-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 64px 0;
  }

  .section-intro {
    margin-bottom: 36px;
  }

  .modes {
    margin-top: 56px;
  }

  .modes tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }

  .modes th,
  .modes td {
    display: block;
    width: auto;
    padding: 0;
    border: none;
  }

  .modes td {
    margin-top: 4px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li + li {
    padding: 20px 0;
    border-left: none;
  }

  .steps li + li {
    border-top: 1px solid var(--dark-rule);
  }

  .steps li::before {
    margin-bottom: 10px;
  }

  .faq details p {
    padding-right: 0;
  }

  .footer-row {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
