:root {
  --bg: #FAF9F6;
  --bg-alt: #F1F0EA;
  --ink: #22312F;
  --muted: #5C6B68;
  --body-2: #45534F;
  --teal: #2E5E58;
  --teal-dark: #244B46;
  --teal-deep: #22423E;
  --teal-footer: #1B3532;
  --line: #E9E6DE;
  --line-alt: #E0DDD3;
  --card-line: #E5E2D9;
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

.container { max-width: 1248px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 246, .92);
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { color: var(--teal); flex-shrink: 0; transition: transform .3s ease; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: .2px; line-height: 1.1; white-space: nowrap; }
.brand-tag { font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.navlink { color: #4A5A57; position: relative; transition: color .15s ease; white-space: nowrap; }
.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width .2s ease;
}
.navlink:hover { color: var(--teal); }
.navlink:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 28px;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 94, 88, .28);
  background: var(--teal-dark);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(46, 94, 88, .2); }

.btn-nav { padding: 11px 20px; font-size: 15px; white-space: nowrap; }

@media (max-width: 1180px) {
  .nav-links { gap: 20px; }
}

.btn-ghost {
  border: 1.5px solid #D8D4C9;
  color: var(--ink);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--teal); transform: translateY(-2px); color: var(--ink); }

.btn-contact {
  background: #3E7A72;
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); background: #468A81; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 88px;
  padding-top: 96px;
  padding-bottom: 104px;
}

.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 640px; animation: rise .7s ease both; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-line { display: inline-block; width: 28px; height: 2px; background: var(--teal); }

.hero h1 { font-size: clamp(36px, 4.5vw, 62px); line-height: 1.08; letter-spacing: -.5px; }
.lead { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.hero-photo { position: relative; flex-shrink: 0; animation: rise .7s .15s ease both; }
.photo-frame {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--teal);
  border-radius: 6px;
  opacity: .35;
}
.hero-photo img {
  position: relative;
  width: 400px;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(34, 49, 47, .18);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.kicker-light { color: #9FC0BA; }

h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }

.section-head { max-width: 640px; margin-bottom: 48px; }

.split { display: flex; gap: 88px; }
.split-head { flex-shrink: 0; width: 320px; }
.split-head h2 { margin-top: 0; }
.split-body { display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.75; color: var(--body-2); max-width: 720px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.card {
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(34, 49, 47, .1); border-color: #C9D6D2; }
.card svg { color: var(--teal); }
.card h3 { font-size: 22px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { max-width: 880px; }
.timeline-row { display: flex; gap: 40px; padding: 24px 0; border-bottom: 1px solid var(--line-alt); }
.timeline-row:last-child { border-bottom: none; }
.timeline-year { flex-shrink: 0; width: 130px; font-size: 15px; font-weight: 600; color: var(--teal); padding-top: 3px; }
.timeline-row h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; }
.timeline-row p { font-size: 15px; color: var(--muted); }

/* ---------- Trajetória ---------- */
.track { list-style: none; gap: 28px; }
.track li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.track li strong { color: var(--ink); font-weight: 600; }
.track li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Contato ---------- */
.contact { background: var(--teal-deep); color: #F4F3ED; padding: 96px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.contact-copy { max-width: 620px; display: flex; flex-direction: column; gap: 4px; }
.contact h2 { font-size: clamp(32px, 3.5vw, 44px); line-height: 1.12; }
.contact-lead { font-size: 17px; line-height: 1.7; color: #C4D4D0; margin-top: 14px; }
.contact-actions { display: flex; flex-direction: column; gap: 18px; flex-shrink: 0; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #DDE7E4; transition: color .15s ease; }
.contact-line:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-footer); color: #7A867F; font-size: 14px; padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* stagger dentro de grades e listas */
.cards .reveal.visible:nth-child(2), .timeline .reveal.visible:nth-child(2), .track .reveal.visible:nth-child(2) { transition-delay: .08s; }
.cards .reveal.visible:nth-child(3), .timeline .reveal.visible:nth-child(3), .track .reveal.visible:nth-child(3) { transition-delay: .16s; }
.cards .reveal.visible:nth-child(4), .timeline .reveal.visible:nth-child(4), .track .reveal.visible:nth-child(4) { transition-delay: .24s; }
.cards .reveal.visible:nth-child(5), .timeline .reveal.visible:nth-child(5), .track .reveal.visible:nth-child(5) { transition-delay: .32s; }
.cards .reveal.visible:nth-child(6), .timeline .reveal.visible:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-photo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary, .btn-ghost, .btn-contact, .card, .brand-mark { transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .hero { gap: 48px; }
  .hero-photo img { width: 320px; height: 260px; }
  .split { flex-direction: column; gap: 32px; }
  .split-head { width: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .nav { padding: 0 20px; height: 64px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links .navlink { padding: 10px 0; font-size: 17px; }
  .nav-links .btn-nav { margin-top: 10px; }
  .nav-toggle { display: block; }

  .hero { flex-direction: column-reverse; align-items: flex-start; gap: 36px; padding-top: 40px; padding-bottom: 48px; }
  .hero-photo { width: 100%; }
  .hero-photo img { width: 100%; height: 260px; }
  .photo-frame { display: none; }
  .lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 48px 0; }
  .cards { grid-template-columns: 1fr; }
  .timeline-row { flex-direction: column; gap: 4px; padding: 16px 0; }
  .timeline-year { width: auto; }
  .contact { padding: 48px 0; }
  .contact-actions { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}
