:root {
  --night: #101C2C;
  --deep: #0A1320;
  --ivory: #E9E4D8;
  --ivory-dim: #B9B6AE;
  --brass: #C8A96A;
  --brass-ink: #6E5427;
  --line: rgba(233, 228, 216, 0.14);
  --display: "Tenor Sans", "Optima", "Candara", sans-serif;
  --text: "Source Serif 4", "Georgia", serif;
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.wrap {
  width: min(72rem, 100% - 3rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--brass);
  color: var(--deep);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* Cabeçalho */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.brand img { width: 11.5rem; height: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav a { text-decoration: none; color: var(--ivory-dim); }
.nav a:hover { color: var(--ivory); }
.nav .lang {
  border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 2px;
  background: var(--brass);
  color: var(--deep);
  transition: background-color 0.2s ease;
}
.btn:hover { background: #D6BA80; }
.btn svg { width: 1.2rem; height: 1.2rem; }
.btn-quiet {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line);
}
.btn-quiet:hover { background: rgba(233, 228, 216, 0.06); }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 3rem;
  padding-block: 5rem 4.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  letter-spacing: -0.005em;
  max-width: 14ch;
}
.hero p {
  max-width: var(--measure);
  color: var(--ivory-dim);
  margin: 1.5rem 0 2.25rem;
  font-size: 1.2rem;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.chart { width: 100%; height: auto; overflow: visible; }
.chart .sea { fill: #0C1726; }
.chart .grid { stroke: var(--ivory); stroke-opacity: 0.1; fill: none; stroke-width: 1; }
.chart .land { fill: var(--ivory); fill-opacity: 0.1; stroke: var(--ivory); stroke-opacity: 0.45; stroke-width: 0.8; stroke-linejoin: round; }
.chart .rim { stroke: var(--ivory); stroke-opacity: 0.35; fill: none; stroke-width: 1.25; }
.chart .meridian { stroke: var(--brass); stroke-opacity: 0.35; fill: none; stroke-width: 1.25; }
.chart .route {
  stroke: var(--brass);
  stroke-width: 2.25;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}
.chart .pin { fill: var(--brass); }
.chart .pin-end { opacity: 0; animation: appear 0.5s ease 2.9s forwards; }
.chart text {
  fill: var(--ivory);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.chart .label-end { opacity: 0; animation: appear 0.5s ease 3s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .chart .route { animation: none; stroke-dashoffset: 0; }
  .chart .pin-end, .chart .label-end { animation: none; opacity: 1; }
}

/* Serviços */
.services {
  background: var(--ivory);
  color: var(--night);
  padding-block: 5.5rem;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.section-head p { margin: 0; max-width: var(--measure); }
.services .section-head p { color: #3C4656; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(16, 28, 44, 0.2); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  padding-block: 2rem;
  border-bottom: 1px solid rgba(16, 28, 44, 0.2);
}
.service h3 { font-size: 1.6rem; }
.service p { margin: 0 0 0.75rem; max-width: var(--measure); }
.service ul { margin: 0; padding-left: 1.1rem; color: #3C4656; }
.service li + li { margin-top: 0.25rem; }

.referral {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--brass-ink);
  background: rgba(16, 28, 44, 0.05);
  max-width: 46rem;
}
.referral p { margin: 0; }
.referral strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }

/* Como funciona */
.steps { padding-block: 5.5rem; }
.steps .section-head p { color: var(--ivory-dim); }
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step-list li {
  counter-increment: step;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.step-list li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 1rem;
}
.step-list h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step-list p { margin: 0; color: var(--ivory-dim); font-size: 1.05rem; }

/* Compromissos */
.promises {
  background: var(--deep);
  padding-block: 5rem;
}
.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.promise-list h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.promise-list p { margin: 0; color: var(--ivory-dim); }

/* Perguntas */
.faq { padding-block: 5.5rem; }
.faq .section-head p { color: var(--ivory-dim); }
.faq-list { max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-family: var(--display);
  font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--brass);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; color: var(--ivory-dim); max-width: var(--measure); }

/* Contato */
.contact {
  border-top: 1px solid var(--line);
  padding-block: 5rem;
  text-align: center;
}
.contact img { width: 4.5rem; margin: 0 auto 1.75rem; }
.contact h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.contact p { color: var(--ivory-dim); margin: 1rem auto 2rem; max-width: 30rem; }

/* Rodapé */
.site-footer {
  background: var(--deep);
  color: var(--ivory-dim);
  font-size: 0.95rem;
  padding-block: 2.5rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
}
.site-footer p { margin: 0; }
.site-footer .legal { max-width: 44rem; }

/* Responsivo */
@media (max-width: 60rem) {
  .hero .wrap,
  .section-head,
  .service,
  .site-footer .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero .wrap { padding-block: 3.5rem; }
  .chart { max-width: 30rem; margin-inline: auto; }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-list { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .nav a:not(.lang) { display: none; }
  .brand img { width: 9.5rem; }
  .step-list { grid-template-columns: 1fr; }
  .services, .steps, .faq { padding-block: 4rem; }
  .btn { width: 100%; justify-content: center; }
}
