/* ===== Fontes (hospedadas no próprio site) ===== */
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ===== Identidade ===== */
:root {
  --ink: #0F2A21;        /* verde profundo da marca */
  --ink-deep: #0A1F18;
  --green: #1D5A45;
  --gold: #C9A24B;       /* dourado da juba */
  --gold-hover: #D8B563;
  --paper: #F4F5F0;
  --surface: #FFFFFF;
  --text: #16211C;
  --muted: #56645D;
  --line: #D9DED6;
  --on-ink: #E9EDE6;
  --on-ink-muted: #A9B8AF;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; }

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }

.btn-outline-light { border-color: rgba(233, 237, 230, .35); color: var(--on-ink); }
.btn-outline-light:hover { border-color: var(--on-ink); }

/* ===== Navbar ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 240, .94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { height: 44px; width: auto; }

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: .96rem;
  font-weight: 500;
  color: var(--muted);
}

.menu a:not(.menu-cta) { position: relative; padding: 6px 0; }
.menu a:not(.menu-cta):hover { color: var(--ink); }
.menu a:not(.menu-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.menu a:not(.menu-cta):hover::after { transform: scaleX(1); }

.menu-cta {
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.menu-cta:hover { background: var(--green); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.menu-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 48px;
  padding: 104px 0 88px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: #FFFFFF;
  max-width: 14ch;
  font-variation-settings: "opsz" 72;
}

.hero-lead {
  max-width: 54ch;
  margin: 28px 0 0;
  font-size: 1.15rem;
  color: var(--on-ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-mark {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 1;
}
.hero-mark::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, .22);
}
.hero-mark::after {
  content: "";
  position: absolute;
  inset: -32%;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, .1);
}
.hero-mark img { width: 100%; height: 100%; position: relative; z-index: 1; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(233, 237, 230, .14);
  position: relative;
  z-index: 2;
}
.hero-facts div { padding-right: 24px; }
.hero-facts dt { font-size: .85rem; color: var(--on-ink-muted); }
.hero-facts dd { margin: 4px 0 0; font-weight: 600; color: #FFFFFF; font-variant-numeric: tabular-nums; }

/* ===== Seções ===== */
.section { padding: 112px 0; }

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 56px;
}
.section-head p { margin: 0 0 6px; color: var(--muted); max-width: 44ch; }

/* Sobre */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.about-text p { margin: 0 0 18px; color: var(--muted); max-width: 60ch; }
.about-text strong { color: var(--text); font-weight: 600; }

.company-data {
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}
.company-data div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.company-data dt { color: var(--muted); }
.company-data dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Serviços */
.services { background: var(--surface); border-block: 1px solid var(--line); }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 56px minmax(0, .9fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  padding-top: 4px;
}
.service p { margin: 0; color: var(--muted); max-width: 58ch; padding-top: 4px; }

/* Como trabalhamos */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  font-variation-settings: "opsz" 72;
}
.steps h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Contato */
.contact {
  padding: 112px 0;
  background: var(--ink);
  color: var(--on-ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 80px;
  align-items: start;
}
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: #FFFFFF;
  max-width: 16ch;
  font-variation-settings: "opsz" 72;
}
.contact-intro p { margin: 22px 0 34px; color: var(--on-ink-muted); max-width: 46ch; }

.contact-list { margin: 0; border-top: 1px solid rgba(233, 237, 230, .16); }
.contact-list div { padding: 20px 0; border-bottom: 1px solid rgba(233, 237, 230, .16); }
.contact-list dt { font-size: .85rem; color: var(--on-ink-muted); }
.contact-list dd { margin: 4px 0 0; font-size: 1.08rem; font-weight: 600; color: #FFFFFF; overflow-wrap: anywhere; }
.contact-list a { border-bottom: 1px solid rgba(201, 162, 75, .5); transition: border-color .2s ease, color .2s ease; }
.contact-list a:hover { color: var(--gold); border-color: var(--gold); }

/* Rodapé */
.footer { background: var(--ink-deep); color: var(--on-ink-muted); font-size: .92rem; }

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
  padding: 56px 0 40px;
}
.footer-grid img { height: 44px; width: auto; }
.footer-legal { margin: 0; line-height: 1.7; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a:hover,
.footer-bottom a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(233, 237, 230, .1);
  font-size: .85rem;
}

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .menu {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(15, 42, 33, .35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .menu-open .menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .menu a:not(.menu-cta) { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.05rem; }
  .menu a:not(.menu-cta)::after { display: none; }
  .menu-cta { margin-top: 16px; text-align: center; padding: 14px 18px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr) 200px; padding: 72px 0 64px; gap: 32px; }
  .hero-mark { align-self: start; }

  .about-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .section-head p { justify-self: start; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 36px)); }

  .brand img { height: 38px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); padding: 56px 0 48px; }
  .hero-mark { display: none; }
  .hero h1 { font-size: 2.55rem; }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }

  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .section,
  .contact { padding: 80px 0; }

  .company-data div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .service { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 18px; }
  .service-icon { width: 30px; height: 30px; }
  .service p { grid-column: 2; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }

  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
