@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");
:root {
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --green-700: #2e5e3a;
  --green-600: #7fb23d;
  --green-500: #97c05b;
  --earth-500: #8b6f47;
  --neutral-900: #0f1410;
  --neutral-800: #1a1f1b;
  --neutral-700: #2a2f2b;
  --neutral-600: #3a3f3b;
  --neutral-500: #575d58;
  --neutral-400: #7a807a;
  --neutral-300: #a5aaa5;
  --neutral-200: #d1d5d1;
  --neutral-100: #f1ead4;
  --white: #ffffff;
  --brand-beige: #e8d7ab;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--neutral-900);
  background: #ffffff;
  line-height: 1.6;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  z-index: 20;
}
.header-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
}
.brand-logo {
  height: 64px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.brand {
  color: var(--green-700);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.125rem;
  align-self: center;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.site-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--neutral-900);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--white);
  background: var(--green-700);
}

.hero {
  background: radial-gradient(1000px 400px at 10% 0%, #f7faf7 0, #ffffff 60%);
  border-bottom: 1px solid var(--neutral-200);
}
.hero-content {
  padding: 3rem 0 2rem;
}
.logo-hero {
  height: 160px;
  width: auto;
  display: block;
  margin: 0 auto 0.75rem;
}
.hero-media {
  display: grid;
  place-items: center;
  padding: 0 0 1rem;
}
.hero-media img {
  width: 100%;
  max-width: 1120px;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  background: #f7faf7;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--green-700);
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--neutral-300);
  color: var(--neutral-900);
  background: var(--white);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn.primary {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}
.btn.outline {
  border-color: var(--green-700);
  color: var(--green-700);
  background: transparent;
}
.btn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.highlights {
  padding: 2rem 0;
}
.grid.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
}
.card .icon {
  font-size: 1.5rem;
}
.card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--green-700);
}
.card p {
  margin: 0;
  color: var(--neutral-700);
}

.features {
  padding: 1rem 0 2.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature {
  background: #f7faf7;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 1rem;
}
.feature h4 {
  margin: 0 0 0.25rem;
  color: var(--green-700);
}
.feature p {
  margin: 0;
  color: var(--neutral-700);
}

.page-hero {
  background: #f4f8f4;
  border-bottom: 1px solid var(--neutral-200);
}
.page-hero .container {
  padding: 2rem 0;
}
.page-hero h1 {
  margin: 0 0 0.5rem;
  color: var(--green-700);
}

.about {
  padding: 2rem 0;
}
.about h2 {
  margin: 0 0 .5rem;
  color: var(--green-700);
}
.about p {
  color: var(--neutral-700);
}
.about ol {
  margin: .5rem 0 1rem;
  padding-left: 1.25rem;
}
.about ol li { color: var(--neutral-900); }

.timeline {
  padding: 2rem 0;
}
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.timeline-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 1rem;
}
.tl-year {
  font-weight: 700;
  color: var(--earth-500);
}
.tl-content strong {
  color: var(--green-700);
}

.stats {
  padding: 1rem 0 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  background: #f7faf7;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}
.stat-number {
  font-weight: 800;
  color: var(--green-700);
}
.stat-label {
  color: var(--neutral-700);
}

.results {
  padding: 1rem 0 2rem;
}
.results h2 {
  margin: 0 0 1rem;
  color: var(--green-700);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.result {
  background: #f7faf7;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}
.result-number {
  font-weight: 800;
  color: var(--green-700);
}
.result-label {
  color: var(--neutral-700);
}

.data-section {
  padding: 2rem 0;
}
.data-section h2 {
  margin: 0 0 1rem;
  color: var(--green-700);
}
.dados-raw {
  white-space: pre-wrap;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 1rem;
  margin: 0;
  color: var(--neutral-900);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
}
.copy-btn {
  margin-left: .5rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-700);
  font-weight: 600;
  padding: .35rem .6rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.copy-btn:hover {
  background: #f4f8f4;
  transform: translateY(-1px);
}
.badge {
  display: inline-block;
  margin-left: .5rem;
  padding: .25rem .5rem;
  border-radius: 8px;
  background: #f4f8f4;
  color: var(--green-700);
  border: 1px solid var(--neutral-200);
}
.badge.warn {
  background: #fff7e6;
  color: #8b6f47;
  border-color: #e6d9c4;
}

.contact {
  padding: 2rem 0;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.form-card .full { width: 100%; }
.form-header h2 {
  margin: 0;
  color: var(--green-700);
}
.form-header p {
  margin: .25rem 0 1rem;
  color: var(--neutral-700);
}
.contact-form.modern {
  display: grid;
  gap: 1rem;
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.field {
  position: relative;
  display: grid;
}
.field input,
.field textarea {
  appearance: none;
  width: 100%;
  border: 1px solid var(--neutral-300);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.field select {
  width: 100%;
  border: 1px solid var(--neutral-300);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  background: var(--white);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.field select:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.floating label {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--neutral-500);
  background: var(--white);
  padding: 0 6px;
  border-radius: 8px;
  transition: all .15s ease;
  pointer-events: none;
}
.floating input::placeholder,
.floating textarea::placeholder { color: transparent; }
.floating input:focus + label,
.floating textarea:focus + label,
.floating input:not(:placeholder-shown) + label,
.floating textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: .8rem;
  color: var(--green-700);
  border: 1px solid var(--neutral-200);
}
.floating select:focus + label,
.floating select:not(:placeholder-shown) + label {
  top: -8px;
  font-size: .8rem;
  color: var(--green-700);
  border: 1px solid var(--neutral-200);
}
.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: #c84c3a;
}
.field.valid input,
.field.valid textarea,
.field.valid select {
  border-color: var(--green-600);
}
.icon-user input,
.icon-mail input,
.icon-phone input,
.icon-topic select,
.icon-message textarea {
  padding-left: 2.2rem;
}
.icon-user::before,
.icon-mail::before,
.icon-phone::before,
.icon-topic::before,
.icon-message::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-size: 22px 22px;
}
.icon-user::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%232e5e3a' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5 21a7 7 0 0114 0'/%3E%3C/svg%3E");
}
.icon-mail::before {
  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%232e5e3a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E\");
}
.icon-phone::before {
  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%232e5e3a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2A19.86 19.86 0 013 5.18 2 2 0 015 3h3a2 2 0 012 1.72l.54 3.26a2 2 0 01-.57 1.86l-1.27 1.27a16 16 0 007.27 7.27l1.27-1.27a2 2 0 011.86-.57l3.26.54A2 2 0 0122 16.92z'/%3E%3C/svg%3E\");
}
.icon-topic::before {
  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%232e5e3a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v4H4zM4 10h16v4H4zM4 16h16v4H4z'/%3E%3C/svg%3E\");
}
.icon-message::before {
  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%232e5e3a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 15a4 4 0 01-4 4H7l-4 4V5a4 4 0 014-4h10a4 4 0 014 4z'/%3E%3C/svg%3E\");
}
.meta {
  display: flex;
  justify-content: flex-end;
  color: var(--neutral-500);
  font-size: .85rem;
  margin-top: .25rem;
}
.error {
  color: #8b6f47;
  font-size: .85rem;
  min-height: 1em;
}
.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.form-status {
  color: var(--green-700);
  font-weight: 600;
}
.btn.primary.loading {
  opacity: .85;
  pointer-events: none;
  position: relative;
}
.btn.primary.loading::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.7);
  border-top-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-success {
  display: grid;
  gap: .5rem;
  place-items: start;
  margin-top: 1rem;
}
.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.contact-extra {
  margin-top: 1rem;
}
.social {
  display: flex;
  gap: 0.75rem;
}
.social a {
  text-decoration: none;
  color: var(--green-700);
}

.site-footer {
  border-top: 1px solid var(--neutral-200);
  background: var(--white);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.contact-modern {
  background: linear-gradient(180deg, #ffffff 0, #f7faf7 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--neutral-200);
}
.contact-wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}
.contact-head h1 {
  margin: 0;
  color: var(--green-700);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}
.contact-head p {
  margin: .25rem 0 1rem;
  color: var(--neutral-700);
}
.form-card.sleek {
  border-radius: 18px;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
  padding: 2rem;
}
.contact-only h2 {
  margin: 0 0 .5rem;
  color: var(--green-700);
}
.contact-only p {
  margin: 0;
  color: var(--neutral-700);
  font-size: 1.1rem;
}
.email-link {
  font-weight: 700;
  color: var(--green-700);
  text-decoration: none;
}
.email-link:hover { text-decoration: underline; }
.qr-code { margin-top: 0.75rem; }
.qr-code img {
  width: 120px;
  height: 120px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  background: var(--white);
}
.contact-direct {
  text-align: center;
  color: var(--neutral-700);
}
.contact-direct a {
  color: var(--green-700);
  text-decoration: none;
}

.contact-modern .grid-two {
  grid-template-columns: repeat(2, minmax(340px, 1fr));
}
.contact-modern .field input,
.contact-modern .field select {
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
}
.contact-modern .field textarea {
  min-height: clamp(160px, 24vh, 300px);
  font-size: 1rem;
}
.contact-hero {
  background: radial-gradient(800px 300px at 0% 0%, #f5efd9 0, var(--brand-beige) 60%), linear-gradient(180deg, var(--brand-beige) 0, #ffffff 60%);
  border-bottom: 1px solid var(--neutral-200);
  padding: 2rem 0 2rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}
.contact-aside {
  display: grid;
  gap: 1rem;
}
.aside-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-list li { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

@media (max-width: 520px) {
  .grid.cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 2rem 0 1.5rem; }
  .grid-two { grid-template-columns: 1fr; }
  .logo-hero { height: 120px; }
}
