:root {
  --green-dark: #0d3b2c;
  --green: #1a5c45;
  --green-light: #2d8a6a;
  --accent: #c9a227;
  --cream: #f4f1ea;
  --text: #1a1a1a;
  --muted: #5c6560;
  --white: #ffffff;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

body.site-modal-open {
  overflow: hidden;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.site-modal[hidden] {
  display: none !important;
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 44, 0.5);
  cursor: pointer;
  animation: site-modal-fade-in 0.2s ease-out;
}

.site-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  padding: 1.75rem 1.5rem 1.5rem;
  animation: site-modal-rise 0.25s ease-out;
}

@keyframes site-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes site-modal-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: rgba(13, 59, 44, 0.08);
  color: var(--green-dark);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.site-modal__close:hover {
  background: rgba(13, 59, 44, 0.14);
}

.site-modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-modal__icon--success {
  background: rgba(45, 106, 69, 0.15);
  color: var(--green);
}

.site-modal__icon--error {
  background: rgba(139, 26, 26, 0.12);
  color: #8b1a1a;
}

.site-modal__panel--success .site-modal__title {
  color: var(--green-dark);
}

.site-modal__panel--error .site-modal__title {
  color: #6b1515;
}

.site-modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.site-modal__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  text-align: center;
}

.site-modal__body p {
  margin: 0 0 0.65rem;
}

.site-modal__body p:last-child {
  margin-bottom: 0;
}

.site-modal__lead {
  font-size: 1.02rem;
}

.site-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.35rem;
}

/* .btn-outline no site é para fundo escuro; na modal (fundo claro) usa cores da marca */
.site-modal .btn-outline {
  border: 2px solid var(--green);
  color: var(--green-dark) !important;
  background: rgba(26, 92, 69, 0.1);
}

.site-modal .btn-outline:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white) !important;
  filter: none;
  text-decoration: none;
}

.site-modal--form {
  z-index: 2000;
}

.site-modal--feedback {
  z-index: 2110;
}

.site-modal__panel--form {
  max-width: 36rem;
  max-height: min(90vh, 44rem);
  overflow-y: auto;
  padding: 2rem 1.65rem 1.65rem;
  border-top: 4px solid var(--green);
}

.site-modal__form-head {
  text-align: center;
  margin-bottom: 1.35rem;
  padding-right: 1.5rem;
}

.site-modal__form-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
}

.site-modal__form-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.site-modal__form-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-form--modal {
  gap: 1rem;
}

.contact-form--modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.site-modal__progress {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(13, 59, 44, 0.1);
}

.site-modal__progress-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(13, 59, 44, 0.12);
  overflow: hidden;
}

.site-modal__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--accent) 100%);
}

.site-modal__progress-bar.is-animating {
  width: 100%;
  transition: width 5s linear;
}

.site-modal__progress-text {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.contact-section-anchor {
  scroll-margin-top: 5.5rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-block .social-cta {
  margin-bottom: 0.75rem;
}

.contact-page-form-panel {
  max-width: none;
  margin-top: 0;
  padding: 2rem 1.65rem 1.65rem;
  background: var(--white);
  border-radius: 12px;
  border-top: 4px solid var(--green);
  box-shadow: 0 8px 32px rgba(13, 59, 44, 0.1);
}

.contact-page-form-panel .btn-outline {
  border: 2px solid var(--green);
  color: var(--green-dark) !important;
  background: rgba(26, 92, 69, 0.1);
}

.contact-page-form-panel .btn-outline:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white) !important;
  filter: none;
  text-decoration: none;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--green-dark);
  color: var(--white);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(13, 59, 44, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--green);
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
  align-items: flex-start;
}

.logo .logo-tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green-light);
  letter-spacing: 0.02em;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-main a:hover {
  color: var(--green);
  text-decoration: none;
}

.btn-header {
  background: var(--green-dark);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.btn-header:hover {
  background: var(--green);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
      135deg,
      rgba(13, 59, 44, 0.92) 0%,
      rgba(26, 92, 69, 0.85) 50%,
      rgba(45, 138, 106, 0.75) 100%
    ),
    url("../img/hero-pattern.svg") center / cover;
  color: var(--white);
  padding: 4rem 1.25rem;
}

.hero--photo {
  background-image: linear-gradient(
      120deg,
      rgba(13, 59, 44, 0.88) 0%,
      rgba(13, 59, 44, 0.55) 45%,
      rgba(26, 92, 69, 0.45) 100%
    ),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
}

/* Hero com foto “ocupada” (ex.: beneficiamento) — contraste extra para leitura */
.hero--industrial {
  background-image: linear-gradient(
      115deg,
      rgba(8, 28, 22, 0.92) 0%,
      rgba(13, 59, 44, 0.78) 38%,
      rgba(13, 59, 44, 0.62) 70%,
      rgba(26, 92, 69, 0.5) 100%
    ),
    var(--hero-bg);
}

.hero--industrial h1,
.hero--industrial .hero-sub {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 24px rgba(8, 28, 22, 0.45);
}

.hero--photo .hero p,
.hero--photo .hero-sub {
  max-width: 48ch;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p,
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--green-dark) !important;
}

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--white) !important;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.section {
  padding: 4rem 1.25rem;
}

.section-alt {
  background: var(--cream);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--green-dark);
  margin: 0 0 0.35rem;
}

.section-title strong {
  color: var(--green-light);
  font-weight: 700;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 2.5rem;
  max-width: 50ch;
}

.text-body {
  margin: 0 0 1rem;
  color: var(--text);
  max-width: 52ch;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
  align-items: center;
}

.split--reverse .split-media {
  order: -1;
}

.split-text .section-lead {
  margin-bottom: 1rem;
}

.split-media {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13, 59, 44, 0.15);
}

.split-media img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.stats-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(13, 59, 44, 0.08);
}

.fazendas-grid .card-image--photo {
  height: auto;
  min-height: 200px;
  max-height: 260px;
}

.card-image--photo {
  padding: 0;
  background: var(--green-dark);
}

.card-image--photo img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.card-image--sm img {
  max-height: 180px;
  min-height: 160px;
}

.card--farm .card-image--photo img {
  max-height: 260px;
  min-height: 200px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: 0;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13, 59, 44, 0.08);
  border: 1px solid rgba(13, 59, 44, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 59, 44, 0.12);
}

.card-image {
  height: 140px;
  background: linear-gradient(145deg, var(--green) 0%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body {
  padding: 1.35rem 1.25rem 1.5rem;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--green-dark);
}

.card-body p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link-sep {
  color: var(--muted);
  margin: 0 0.2rem;
  font-weight: 400;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 1.25rem 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-col--brand .footer-logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 0 1rem;
  opacity: 0.95;
}

.footer-col--brand .footer-logo:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.footer-social {
  margin: 0 0 1rem;
}

.footer-instagram {
  display: inline-block;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 0.95rem;
}

.footer-instagram:hover {
  color: var(--accent) !important;
  text-decoration: none;
}

.form-error {
  color: #8b1a1a;
  font-weight: 600;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(139, 26, 26, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(139, 26, 26, 0.2);
}

.contact-form-stack {
  max-width: 72rem;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 2rem 2.75rem;
  align-items: start;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form-panel-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.contact-aside {
  padding: 0.35rem 0 1rem;
}

.contact-aside__block + .contact-aside__block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(13, 59, 44, 0.12);
}

.contact-aside__heading {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}

.contact-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-aside__list li {
  margin: 0 0 0.9rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text);
}

.contact-aside__list li strong {
  color: var(--green-dark);
}

.contact-aside__list--links a {
  font-weight: 600;
}

.contact-aside__para {
  margin: 0 0 0.65rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text);
}

.contact-aside__para strong {
  color: var(--green-dark);
}

.contact-aside__tel {
  font-weight: 600;
  color: var(--green-dark);
}

.contact-form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230d3b2c' d='M1 1.5L6 6l5-4.5' stroke='%230d3b2c' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.contact-form__actions--page {
  justify-content: center;
}

.contact-form.is-loading .contact-form__select {
  opacity: 0.72;
  pointer-events: none;
}

.contact-feedback {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 8px;
  border: 1px solid rgba(45, 106, 69, 0.25);
  background: linear-gradient(135deg, rgba(26, 77, 46, 0.06) 0%, rgba(45, 106, 69, 0.08) 100%);
}

.contact-feedback--success .contact-feedback__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}

.contact-feedback--success .contact-feedback__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
}

.contact-feedback__action {
  margin-top: 1rem;
}

.contact-form.is-loading .contact-form__input,
.contact-form.is-loading .contact-form__textarea {
  opacity: 0.72;
  pointer-events: none;
}

.contact-form.is-loading .contact-form__submit {
  cursor: wait;
  opacity: 0.88;
}

.contact-form {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-page-form-panel .contact-form {
  max-width: none;
}

.contact-form__legend {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.contact-form__req {
  color: #9a2b2b;
  font-weight: 700;
  text-decoration: none;
  cursor: help;
}

.contact-form__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-dark);
}

.contact-form__input {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(13, 59, 44, 0.2);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}

.contact-form__input:focus {
  outline: 2px solid var(--green-light);
  outline-offset: 1px;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.social-cta {
  margin: 0 0 1.5rem;
  max-width: 52ch;
}

.social-cta a {
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
  }

  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid rgba(13, 59, 44, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .menu-toggle {
    display: block;
    background: var(--green-dark);
    color: var(--white);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
