:root {
  --ink: #15201a;
  --muted: #596760;
  --green: #24543a;
  --green-dark: #163425;
  --blue: #1c5d79;
  --aqua: #38b6a6;
  --leaf: #77a85d;
  --gold: #d8a847;
  --sky: #e8f0e8;
  --paper: #f4f6ef;
  --line: #dfe7df;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(28, 45, 36, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow: clip;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border-radius: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: env(safe-area-inset-top, 0);
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--white);
  background: rgba(7, 22, 26, 0.92);
  box-shadow: 0 12px 42px rgba(7, 22, 26, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 185px;
  flex-shrink: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 0;
}

.site-nav a {
  position: relative;
  padding: 8px 2px;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-end {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.login-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.login-drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40;
}

.login-drawer.is-open {
  display: block;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.login-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100vh;
  height: 100dvh;
  padding: 0;
  background: linear-gradient(180deg, #0a1410 0%, #0f1a16 100%);
  color: var(--white);
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
}

.login-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(56, 182, 166, 0.18);
  flex-shrink: 0;
}

.login-panel-header > div {
  min-width: 0;
}

.login-panel-header .eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--gold);
}

.login-panel-header h2 {
  margin: 4px 0 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(56, 182, 166, 0.12);
  flex-shrink: 0;
}

.tab-button {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.tab-button.active {
  background: rgba(56, 182, 166, 0.18);
  border-color: var(--aqua);
  color: var(--white);
}

.tab-panels {
  flex: 1;
  overflow-y: auto;
}

.tab-panel {
  display: none;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.drawer-form {
  display: grid;
  gap: 18px;
}

.drawer-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-section {
  display: grid;
  gap: 14px;
}

.form-section label {
  display: grid;
  gap: 8px;
}

.required {
  color: var(--gold);
  font-weight: 800;
}

.drawer-form input,
.drawer-form select,
.drawer-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.drawer-form input:focus,
.drawer-form select:focus,
.drawer-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 182, 166, 0.4);
  box-shadow: 0 0 0 2px rgba(56, 182, 166, 0.1);
}

.drawer-form textarea {
  resize: vertical;
  min-height: 100px;
}

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

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.checkbox-field:hover {
  background: rgba(255, 255, 255, 0.08);
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.drawer-form .button.primary {
  width: 100%;
  margin-top: 6px;
  background: var(--gold);
  color: var(--green-dark);
  border: none;
  min-height: 48px;
}

.drawer-form .button.primary:hover {
  background: #e4ba5d;
}

.form-status {
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(56, 182, 166, 0.12);
  color: var(--aqua);
}

.list-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.list-section h3 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.item-list {
  display: grid;
  gap: 10px;
}

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.item-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.item-card.inactive {
  opacity: 0.6;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-name {
  display: block;
  font-weight: 600;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-detail {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.item-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2px;
}

.item-status.active {
  background: rgba(56, 182, 166, 0.2);
  color: var(--aqua);
}

.item-status.inactive {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.item-btn {
  min-width: 72px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.item-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.item-btn.edit {
  color: var(--aqua);
}

.item-btn.delete {
  color: #ff6b6b;
}


@media (max-width: 768px) {
  .login-panel {
    width: 100%;
    top: auto;
    bottom: 0;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.32);
  }

  .login-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .login-panel-header {
    padding: 20px 20px 16px;
  }

  .login-tabs {
    padding: 12px 16px;
    gap: 6px;
  }

  .tab-panel {
    padding: 20px 16px;
  }

  .drawer-form {
    gap: 14px;
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding: 116px clamp(20px, 5vw, 72px) 70px;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 22%, rgba(56, 182, 166, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(5, 16, 18, 0.94), rgba(14, 39, 31, 0.78) 48%, rgba(8, 20, 17, 0.34)),
    url("../images/hero-gestao-agricola.png") center/cover;
  transform: scale(1.01);
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.62fr);
  gap: clamp(30px, 4vw, 58px);
  align-items: end;
  width: 100%;
}

.hero-content {
  position: relative;
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 880px;
  font-size: clamp(2.2rem, 4.15vw, 4.05rem);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.55vw, 2.65rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-content p:not(.eyebrow) {
  max-width: 710px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.hero-actions,
.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%);
  transition: transform 0.42s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  color: var(--green-dark);
  background: var(--gold);
}

.button.primary:hover {
  background: #e4ba5d;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
}

.button.secondary:hover {
  border-color: var(--gold);
  background: rgba(216, 168, 71, 0.12);
}

.data-cockpit {
  max-width: 440px;
  justify-self: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 18, 22, 0.68);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.cockpit-top,
.cockpit-main {
  display: grid;
  gap: 12px;
}

.cockpit-top {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.cockpit-top strong {
  color: var(--gold);
}

.cockpit-main {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
}

.cockpit-main div {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}

.cockpit-main div:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.13);
}

.cockpit-main small,
.cockpit-main strong,
.status {
  display: block;
}

.cockpit-main small {
  font-size: 0.75rem;
  opacity: 0.9;
}

.cockpit-main strong {
  margin: 6px 0;
  font-size: 1.55rem;
  line-height: 1;
}

.status {
  font-size: 0.82rem;
  font-weight: 800;
}

.status.up {
  color: var(--aqua);
}

.status.warn {
  color: var(--gold);
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 104px;
  padding: 14px;
  margin-bottom: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px) 0 0/100% 33.33%,
    rgba(255, 255, 255, 0.05);
}

.bar-chart span {
  flex: 1;
  min-width: 18px;
  background: linear-gradient(180deg, var(--aqua), var(--gold));
  transform-origin: bottom;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.bar-chart span:hover {
  filter: brightness(1.18);
  transform: scaleY(1.08);
}

.cockpit-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.cockpit-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cockpit-list li:hover {
  color: var(--white);
  transform: translateX(4px);
}

.cockpit-list span {
  width: 9px;
  height: 9px;
  background: var(--aqua);
}

.insight-strip {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 15, 18, 0.62);
  backdrop-filter: blur(12px);
}

.insight-strip span {
  position: relative;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.insight-strip span:hover,
.insight-strip span:focus-visible {
  color: var(--white);
  background: rgba(216, 168, 71, 0.18);
  transform: translateY(-3px);
}

.insight-strip span::after {
  content: attr(data-summary);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 5;
  width: min(300px, 88vw);
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(5, 18, 22, 0.95);
  border: 1px solid rgba(216, 168, 71, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.insight-strip span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  z-index: 6;
  width: 14px;
  height: 14px;
  background: rgba(5, 18, 22, 0.95);
  border-right: 1px solid rgba(216, 168, 71, 0.42);
  border-bottom: 1px solid rgba(216, 168, 71, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) rotate(45deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.insight-strip span:hover::after,
.insight-strip span:hover::before,
.insight-strip span:focus-visible::after,
.insight-strip span:focus-visible::before {
  opacity: 1;
}

.insight-strip span:hover::after,
.insight-strip span:focus-visible::after {
  transform: translate(-50%, 0);
}

.insight-strip span:hover::before,
.insight-strip span:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.insight-strip span:first-child::after {
  left: 16px;
  transform: translateY(8px);
}

.insight-strip span:first-child:hover::after,
.insight-strip span:first-child:focus-visible::after {
  transform: translateY(0);
}

.insight-strip span:last-child::after {
  right: 16px;
  left: auto;
  transform: translateY(8px);
}

.insight-strip span:last-child:hover::after,
.insight-strip span:last-child:focus-visible::after {
  transform: translateY(0);
}

.section {
  padding: clamp(56px, 7vw, 86px) clamp(20px, 5vw, 72px);
  overflow: clip;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 30px;
}

.home-principles {
  background:
    linear-gradient(135deg, rgba(56, 182, 166, 0.08), transparent 34%),
    var(--paper);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle-card {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background-position: center;
  background-size: cover;
  isolation: isolate;
  box-shadow: 0 18px 52px rgba(28, 45, 36, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.principle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 18, 22, 0.12), rgba(5, 18, 22, 0.9));
}

.principle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 182, 166, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(5, 18, 22, 0.84), rgba(5, 18, 22, 0.28));
}

.principle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(28, 45, 36, 0.18);
}

.principle-card.mission {
  background-image: url("../images/home-missao.png");
}

.principle-card.vision {
  background-image: url("../images/home-visao.png");
}

.principle-card.values {
  background-image: url("../images/home-valores.png");
}

.principle-card > div {
  width: 100%;
  padding: clamp(24px, 3vw, 34px);
}

.principle-card .eyebrow {
  margin-bottom: 12px;
}

.principle-card h3 {
  max-width: 420px;
  margin-bottom: 16px;
  font-size: clamp(1.18rem, 1.7vw, 1.58rem);
}

.principle-card p:not(.eyebrow) {
  max-width: 430px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.55;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
  background:
    linear-gradient(135deg, rgba(56, 182, 166, 0.08), transparent 34%),
    var(--paper);
}

.intro .section-heading {
  max-width: 650px;
  margin-bottom: 0;
}

.intro-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.intro-grid,
.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 74px);
}

.intro p,
.impact-list {
  color: var(--muted);
  font-size: 1rem;
}

.section-copy {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
}

.solutions {
  background:
    linear-gradient(135deg, rgba(56, 182, 166, 0.08), transparent 32%),
    var(--sky);
}

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

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(36, 84, 58, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card,
.metric,
.contact-form,
.data-cockpit {
  min-width: 0;
}

.service-card:hover {
  border-color: rgba(56, 182, 166, 0.42);
  box-shadow: 0 22px 58px rgba(28, 45, 36, 0.13);
  transform: translateY(-8px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  margin: 0;
  margin-right: 12px;
  color: var(--blue);
  font-weight: 900;
  transition: color 0.25s ease, transform 0.25s ease;
}

.service-card h3 {
  display: inline-block;
  margin: 0;
  line-height: 1.2;
  font-size: 1.12rem;
}

.service-card:hover .card-icon {
  color: var(--gold);
  transform: translateX(6px);
}

.service-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card ul {
  color: var(--muted);
}

.card-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.card-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.card-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 800;
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 590px;
  background: #07161a;
  color: var(--white);
}

.method-image {
  min-height: 380px;
  background:
    linear-gradient(rgba(7, 22, 26, 0.06), rgba(7, 22, 26, 0.52)),
    url("../images/hero-gestao-agricola.png") center/cover;
}

.method-content {
  align-self: center;
  padding: clamp(42px, 6vw, 72px);
}

.timeline {
  display: grid;
  gap: 24px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.timeline li:hover {
  border-color: var(--aqua);
  transform: translateX(8px);
}

.timeline span {
  color: rgba(255, 255, 255, 0.72);
}

.impact {
  background: var(--white);
}

.metric {
  display: grid;
  align-content: center;
  min-height: 250px;
  padding: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: var(--shadow);
}

.metric strong {
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.9;
}

.metric span {
  max-width: 270px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.impact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  padding: 15px 18px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.impact-list li:hover {
  border-color: var(--aqua);
  background: var(--sky);
  transform: translateX(6px);
}

.cta {
  justify-content: space-between;
  padding: 70px clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(22, 52, 37, 0.94), rgba(36, 84, 58, 0.86)),
    url("../images/hero-gestao-agricola.png") center/cover;
}

.cta h2 {
  max-width: 780px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  background:
    linear-gradient(120deg, rgba(7, 22, 26, 0.05), transparent 40%),
    var(--paper);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-points {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.contact-points li {
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(216, 168, 71, 0.45);
  border-color: var(--gold);
  background: var(--white);
  transform: translateY(-1px);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer p {
  max-width: none;
  margin: 6px 0 0;
  color: var(--muted);
}

.footer a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
    gap: 34px;
  }

  .cards-grid,
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-card.values {
    grid-column: 1 / -1;
    min-height: 330px;
  }

  .data-cockpit {
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 108px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
    color: var(--white);
    background: rgba(7, 22, 26, 0.96);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
    padding-bottom: 112px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .data-cockpit {
    max-width: 620px;
    width: 100%;
    justify-self: start;
  }

  .cockpit-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .insight-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .insight-strip span:nth-child(3n + 1)::after {
    left: 16px;
    transform: translateY(8px);
  }

  .insight-strip span:nth-child(3n + 1):hover::after,
  .insight-strip span:nth-child(3n + 1):focus-visible::after {
    transform: translateY(0);
  }

  .insight-strip span:nth-child(3n)::after {
    right: 16px;
    left: auto;
    transform: translateY(8px);
  }

  .insight-strip span:nth-child(3n):hover::after,
  .insight-strip span:nth-child(3n):focus-visible::after {
    transform: translateY(0);
  }

  .cards-grid,
  .principles-grid,
  .intro,
  .intro-grid,
  .impact-grid,
  .method,
  .contact {
    grid-template-columns: 1fr;
  }

  .principle-card,
  .principle-card.values {
    grid-column: auto;
    min-height: 310px;
  }

  .method {
    min-height: 0;
  }

  .cta,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    width: auto;
    gap: 12px;
    padding: 10px 14px;
    color: var(--white);
    background: rgba(7, 22, 26, 0.92);
    box-shadow: 0 12px 32px rgba(8, 16, 14, 0.16);
    backdrop-filter: blur(14px);
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 96px);
  }

  .brand strong {
    font-size: 0.98rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 9px;
    flex-shrink: 0;
  }

  .site-nav {
    top: 66px;
    left: 0;
    right: 0;
    gap: 6px;
    padding: 14px;
  }

  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 112px max(16px, env(safe-area-inset-left)) 34px max(16px, env(safe-area-inset-right));
    color: var(--white);
    background: #0f211d;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(12, 24, 18, 0.74), rgba(12, 24, 18, 0.9)),
      url("../images/hero-gestao-agricola.png") center/cover;
    transform: none;
  }

  .hero-shell {
    gap: 26px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(2rem, 10vw, 2.72rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.3rem);
  }

  .hero-content p:not(.eyebrow) {
    margin-bottom: 22px;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .button {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .cockpit-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .data-cockpit {
    max-width: none;
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(246, 249, 242, 0.94);
    color: var(--ink);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
  }

  .cockpit-top {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.92rem;
  }

  .cockpit-main div {
    padding: 12px;
    background: var(--white);
  }

  .cockpit-main small {
    font-size: 0.72rem;
  }

  .cockpit-main strong {
    margin: 6px 0;
    font-size: 1.65rem;
  }

  .bar-chart {
    height: 105px;
    padding: 14px;
    margin-bottom: 16px;
    background:
      linear-gradient(rgba(21, 32, 26, 0.08) 1px, transparent 1px) 0 0/100% 33.33%,
      var(--sky);
  }

  .bar-chart span {
    min-width: 14px;
  }

  .cockpit-list {
    color: var(--muted);
    font-size: 0.82rem;
    gap: 8px;
  }

  .cockpit-list li:hover {
    color: var(--green);
  }

  .insight-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 24px -16px -34px;
    background: rgba(4, 15, 18, 0.78);
  }

  .insight-strip span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 10px;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .insight-strip span::after {
    position: static;
    display: block;
    right: 12px;
    left: 12px;
    width: auto;
    margin-top: 8px;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 0.7rem;
    line-height: 1.35;
    text-align: center;
    opacity: 1;
    transform: none;
  }

  .insight-strip span:first-child::after,
  .insight-strip span:last-child::after,
  .insight-strip span:nth-child(3n + 1)::after,
  .insight-strip span:nth-child(3n)::after {
    right: 12px;
    left: 12px;
    width: auto;
    transform: none;
  }

  .insight-strip span::before {
    display: none;
  }

  .insight-strip span:hover::after,
  .insight-strip span:focus-visible::after,
  .insight-strip span:first-child:hover::after,
  .insight-strip span:first-child:focus-visible::after,
  .insight-strip span:last-child:hover::after,
  .insight-strip span:last-child:focus-visible::after,
  .insight-strip span:nth-child(3n + 1):hover::after,
  .insight-strip span:nth-child(3n + 1):focus-visible::after,
  .insight-strip span:nth-child(3n):hover::after,
  .insight-strip span:nth-child(3n):focus-visible::after {
    transform: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
  }

  .button.secondary {
    background: rgba(255, 255, 255, 0.08);
  }

  .section,
  .contact {
    padding-inline: max(18px, env(safe-area-inset-left));
  }

  .service-card {
    min-height: auto;
  }

  .principle-card {
    min-height: 320px;
  }

  .principle-card > div {
    padding: 24px;
  }

  .principle-card h3 {
    font-size: 1.16rem;
  }

  .principle-card p:not(.eyebrow) {
    font-size: 0.92rem;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .cards-grid {
    gap: 14px;
  }

  .service-card {
    padding: 22px;
  }

  .service-card h3 {
    display: block;
  }

  .card-icon {
    margin-bottom: 10px;
  }

  .method-image {
    min-height: 260px;
  }

  .method-content {
    padding: 42px 18px;
  }

  .metric {
    min-height: auto;
    padding: 26px;
  }

  .contact-form {
    padding: 20px;
  }

  .login-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .login-tabs {
    grid-template-columns: 1fr;
  }

  .item-card {
    align-items: flex-start;
  }

  .item-actions {
    width: 100%;
  }

  .item-btn {
    flex: 1;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 10px;
    padding-inline: 10px;
  }

  .header-end {
    gap: 8px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .section {
    padding-inline: 16px;
  }

  .login-link {
    padding-inline: 10px;
  }

  .data-cockpit {
    padding: 12px;
  }

  .cockpit-main strong {
    font-size: 1.45rem;
  }

  .insight-strip {
    grid-template-columns: 1fr;
  }

  .insight-strip span::before {
    display: none;
  }

  .principle-card {
    min-height: 280px;
  }

  .principle-card > div {
    padding: 20px;
  }

  .service-card,
  .contact-form,
  .metric {
    padding: 18px;
  }
}

/* Login area temporarily hidden. Remove this block when reactivating it. */
.login-link,
.login-drawer {
  display: none !important;
}
