:root {
  --ink: #12262b;
  --ink-soft: #3d555c;
  --teal: #0d6e6e;
  --teal-deep: #0a4f52;
  --teal-soft: #d8eceb;
  --sand: #f3eee6;
  --sand-deep: #e7dfd2;
  --amber: #c9892e;
  --white: #ffffff;
  --line: rgba(18, 38, 43, 0.12);
  --max: 1120px;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Sora", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(13, 110, 110, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(201, 137, 46, 0.07), transparent 50%),
    linear-gradient(180deg, #f7f5f0 0%, var(--sand) 45%, #efe9df 100%);
  background-color: var(--sand);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.4rem 0;
}

.nav-solid {
  position: sticky;
  top: 0;
  background: rgba(10, 79, 82, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.nav-brand span {
  font-weight: 400;
  opacity: 0.75;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.nav-links a { transition: color 0.25s ease; }
.nav-links a:hover { color: var(--white); }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 52, 55, 0.88) 0%, rgba(10, 52, 55, 0.62) 48%, rgba(18, 38, 43, 0.35) 100%),
    linear-gradient(to top, rgba(10, 42, 45, 0.75) 0%, transparent 42%);
}

.hero-content {
  padding: 0 0 5.5rem;
  max-width: 38rem;
  animation: riseIn 1s ease-out both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-top: 0.45rem;
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  max-width: 30rem;
  margin: 1.35rem 0 2rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.55rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover { background: #d99a3a; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal);
}

.btn-outline:hover { background: var(--teal-soft); }

.btn-solid {
  background: var(--teal-deep);
  color: var(--white);
}

.btn-solid:hover { background: var(--teal); }

/* —— Sections —— */
section { padding: 5.5rem 0; }

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 22ch;
}

.section-text {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 40rem;
  font-weight: 300;
}

.section-intro {
  margin-bottom: 3rem;
  max-width: 40rem;
}

/* —— Sobre —— */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.sobre-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 2px;
}

.sobre-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.sobre-visual::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(10, 79, 82, 0.55), transparent);
  pointer-events: none;
}

.sobre-copy p + p { margin-top: 1rem; }

.highlight-line {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.highlight-line strong { color: var(--teal-deep); font-weight: 600; }

.metricas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.metrica strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--teal-deep);
  margin-bottom: 0.25rem;
}

.metrica span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* —— Atuação —— */
.atuacao {
  background: rgba(255, 255, 255, 0.4);
  border-block: 1px solid var(--line);
}

.atuacao-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.atuacao-item {
  padding: 2rem 1.75rem 2rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.atuacao-item:nth-child(2n) {
  border-right: none;
  padding-right: 0;
  padding-left: 1.75rem;
}

.atuacao-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.atuacao-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 34rem;
}

.atuacao-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 0.55rem;
}

/* —— Como trabalhamos —— */
.passos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
  counter-reset: passo;
}

.passo {
  padding-top: 1.5rem;
  border-top: 2px solid var(--teal);
}

.passo h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0.75rem 0 0.55rem;
}

.passo p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.passo-num {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

/* —— Compromissos —— */
.compromissos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.compromisso-lista {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.compromisso-lista li {
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal);
}

.compromisso-lista h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.compromisso-lista p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 300;
}

/* —— Institucional —— */
.institucional {
  background: linear-gradient(135deg, var(--teal-deep) 0%, #0c5c5f 55%, #0a4548 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.institucional::before,
.institucional::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.institucional::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
}

.institucional::after {
  width: 280px;
  height: 280px;
  bottom: -90px;
  left: 8%;
  border-color: rgba(255, 255, 255, 0.06);
}

.institucional .section-label { color: rgba(255, 255, 255, 0.55); }
.institucional .section-title { max-width: none; color: var(--white); }
.institucional .section-text { color: rgba(255, 255, 255, 0.78); }

.inst-header {
  margin-bottom: 3rem;
  max-width: 36rem;
}

.dados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.dado {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.dado:nth-child(3n) { border-right: none; padding-right: 0; }

.dado-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.55rem;
  font-weight: 500;
}

.dado-value {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
}

.dado-value a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease;
}

.dado-value a:hover { border-color: var(--white); }

/* —— FAQ —— */
.faq-list {
  max-width: 720px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.faq-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 300;
}

/* —— Contato —— */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.contato-item dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.contato-item dd {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 400;
}

.contato-item a {
  color: var(--teal-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contato-item a:hover { border-color: var(--teal); }

.contato-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.25rem 2rem;
  border-radius: 2px;
}

.contato-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.contato-panel p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 1.75rem;
}

.contato-panel .btn {
  width: 100%;
  margin-bottom: 0.75rem;
}

.contato-panel .btn:last-child { margin-bottom: 0; }

/* —— Legal pages —— */
.page-hero {
  background: linear-gradient(135deg, var(--teal-deep) 0%, #0c5c5f 100%);
  color: var(--white);
  padding: 7.5rem 0 3.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 40rem;
}

.legal-content {
  padding: 4rem 0 5rem;
}

.legal-content article {
  max-width: 760px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.5rem 0 0.85rem;
  color: var(--ink);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.55rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 300;
  margin-bottom: 0.85rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}

.legal-content ol { list-style: decimal; }

.legal-content a {
  color: var(--teal-deep);
  border-bottom: 1px solid rgba(13, 110, 110, 0.35);
}

.legal-content a:hover { border-color: var(--teal); }

.legal-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: rgba(13, 110, 110, 0.08);
  border-left: 3px solid var(--teal);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 3rem;
  background: rgba(255, 255, 255, 0.35);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 28rem;
  line-height: 1.55;
}

.footer-meta a { color: var(--teal-deep); }

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--teal-deep); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* —— Animations —— */
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .nav-links { gap: 1rem; font-size: 0.8rem; }

  .sobre-grid,
  .contato-grid,
  .compromissos-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sobre-visual,
  .sobre-visual img { min-height: 280px; }

  .dados-grid,
  .atuacao-list,
  .passos,
  .metricas {
    grid-template-columns: 1fr 1fr;
  }

  .dado:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 1.5rem;
  }

  .dado:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .passo:nth-child(n+3) { margin-top: 0.5rem; }

  .atuacao-item:nth-child(2n) { padding-left: 1.75rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 1.5rem, var(--max)); }
  .hero-content { padding-bottom: 4rem; }

  .dados-grid,
  .atuacao-list,
  .passos,
  .metricas {
    grid-template-columns: 1fr;
  }

  .dado {
    border-right: none !important;
    padding-right: 0;
    padding-left: 0;
  }

  .atuacao-item,
  .atuacao-item:nth-child(2n) {
    padding-left: 0;
    padding-right: 0;
    border-right: none;
  }

  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
