:root {
  color-scheme: light;
  --moss: #34452d;
  --forest: #202d1d;
  --deep: #172417;
  --gold: #b4944c;
  --gold-light: #edcc80;
  --orange: #e05a13;
  --orange-hover: #f47836;
  --white: #fff;
  --cream: #f7f6ef;
  --sage: #edf0e6;
  --ink: #253122;
  --muted: #505b4d;
  --line: #d8ddcf;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-height, 4.9rem) + 1rem); }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: .21em; }
:focus-visible { outline: 3px solid #a74412; outline-offset: 4px; }
.hero :focus-visible, .focus-band :focus-visible, .contact :focus-visible { outline-color: var(--gold-light); }
.wrap { width: min(100% - var(--gutter) * 2, 74rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 20;
  inset: .6rem auto auto .6rem;
  padding: .65rem 1rem;
  transform: translateY(-180%);
  background: var(--white);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.9rem;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 12.5rem; height: auto; }
.primary-nav, .primary-nav a { display: flex; align-items: center; }
.primary-nav { gap: clamp(1rem, 2.3vw, 2.3rem); }
.primary-nav a {
  min-height: 2.75rem;
  color: var(--forest);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.primary-nav a:hover { text-decoration: underline; }
.primary-nav .nav-contact {
  gap: .6rem;
  padding: .35rem 1rem;
  border: 1px solid var(--moss);
  border-radius: .55rem;
}
.nav-contact:hover { background: var(--cream); }
.hero {
  color: var(--white);
  background-color: var(--deep);
  background-image: linear-gradient(95deg, #142018f2 2%, #172417cc 54%, #17241773 100%),
    url("../img/lavoura-goias.jpg");
  background-position: center;
  background-size: cover;
  padding-block: clamp(2.55rem, 5.8vw, 5.25rem);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--moss);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.45rem; height: 2px; background: var(--gold); flex-shrink: 0; }
.hero .eyebrow, .focus-band .eyebrow, .contact .eyebrow { color: var(--gold-light); }
h1, h2, h3 { font-weight: 760; line-height: 1.08; letter-spacing: -.038em; }
h1 { margin-top: .95rem; font-size: clamp(2.7rem, 5.35vw, 5.05rem); line-height: 1.01; letter-spacing: -.065em; }
h1 span { display: block; color: var(--gold-light); }
h2 { font-size: clamp(2.1rem, 3.65vw, 3.6rem); }
h3 { font-size: clamp(1.13rem, 1.7vw, 1.42rem); letter-spacing: -.025em; }
.hero-summary { max-width: 34rem; margin-top: 1.2rem; color: #f0f2eb; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.05rem;
  padding: .65rem .95rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-size: .92rem;
  font-family: inherit;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}
.button-primary { background: var(--orange); color: #211006; }
.button-primary:hover { background: var(--orange-hover); }
.button-outline { color: var(--white); background: #172417b0; border-color: #ffffffa6; }
.button-outline:hover { background: var(--forest); border-color: var(--white); }
.button span { font-size: 1.08rem; }

.photo { position: relative; overflow: hidden; border-radius: 1.1rem; }
.photo img { width: 100%; height: auto; object-fit: cover; }
.photo figcaption {
  position: absolute;
  inset: auto .7rem .7rem auto;
  padding: .23rem .55rem;
  border-radius: .25rem;
  background: var(--deep);
  color: var(--white);
  font-size: .72rem;
}
.hero-photo {
  width: min(100%, 25.5rem);
  justify-self: end;
  border: 1px solid #ffffff4d;
  box-shadow: 0 1rem 2.5rem #11190d66;
}
.hero-photo img { aspect-ratio: .9; object-position: 63% center; }

.focus-band { background: var(--deep); color: var(--white); border-top: 1px solid #ffffff29; }
.focus-layout { display: grid; grid-template-columns: .8fr repeat(3, 1fr); align-items: center; padding-block: 1.25rem; }
.focus-layout a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 3.15rem;
  padding-inline: clamp(.75rem, 2vw, 1.6rem);
  border-inline-start: 1px solid #ffffff38;
  font-size: clamp(.85rem, 1.4vw, 1.05rem);
  font-weight: 720;
  line-height: 1.3;
  text-decoration: none;
}
.focus-layout a:hover { text-decoration: underline; }
.focus-layout a span { color: var(--gold-light); }

.section { padding-block: clamp(3.4rem, 7vw, 6.4rem); }
.section .eyebrow { margin-bottom: .8rem; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); }
.section-summary { max-width: 34rem; color: var(--muted); font-size: 1.06rem; }
h2 + .section-summary { margin-top: 1rem; }

.services { background: var(--cream); }
.service { padding: 1rem 1.1rem 1.05rem 1.35rem; border-bottom: 1px solid var(--line); }
.service:first-child { border-top: 1px solid var(--line); }
.service h3 { position: relative; }
.service h3::before {
  content: "";
  position: absolute;
  inset: .18em auto .12em -1.35rem;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
}
.service p { margin-top: .38rem; color: var(--muted); }
.service:target { background: var(--sage); }
.text-link { display: inline-block; margin-top: .55rem; color: var(--forest); font-size: .9rem; font-weight: 750; }

.training { background: var(--sage); }
.training-photo { align-self: start; }
.training-photo img { aspect-ratio: 1.22; }
.grain-examples { margin-top: 1.35rem; }
.grain-examples h3 { margin-bottom: .65rem; font-size: 1rem; letter-spacing: 0; }
.grain-examples details { border-bottom: 1px solid #c9d1c2; }
.grain-examples details:first-of-type { border-top: 1px solid #c9d1c2; }
.grain-examples summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2.8rem;
  padding-inline: .5rem;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
}
.grain-examples summary::-webkit-details-marker { display: none; }
.grain-examples summary::after {
  content: "";
  width: .48rem;
  height: .48rem;
  margin-right: .2rem;
  border-right: 2px solid var(--moss);
  border-bottom: 2px solid var(--moss);
  transform: rotate(45deg);
}
.grain-examples details[open] summary::after { transform: rotate(225deg); }
.grain-examples summary:hover { background: #ffffff80; }
.grain-examples h4 { padding: .35rem .5rem 0; }
.grain-examples ul {
  margin: .5rem .5rem 1rem;
  padding-inline-start: 1.2rem;
  color: var(--muted);
  font-size: .95rem;
}
.grain-examples li + li { margin-top: .25rem; }
.about .split-layout { align-items: center; }

.contact { background: var(--moss); color: var(--white); }
.contact-details { border-inline-start: 1px solid var(--gold); padding-inline-start: clamp(1rem, 3.1vw, 2.8rem); }
.contact-details address { margin-top: .8rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.contact-actions button, .contact-form button, .dialog-close { cursor: pointer; }
.button-whatsapp { background: #e6eadf; color: var(--deep); }
.button-whatsapp:hover { background: var(--white); }
.button-map { border-color: var(--gold-light); }
.button-map:hover { background: var(--forest); border-color: var(--white); }
.contact-dialog {
  width: min(34rem, 100% - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1rem 3rem #11190d55;
  overflow: auto;
}
.contact-dialog::backdrop { background: #172417c4; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.dialog-header h2 { font-size: clamp(1.45rem, 5vw, 2.1rem); }
.dialog-close {
  width: 2.75rem;
  min-height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--cream);
  color: var(--ink);
  font: 1.5rem/1 system-ui, sans-serif;
}
.contact-form { display: grid; gap: .4rem; margin-top: 1rem; }
.contact-form label { font-size: .94rem; font-weight: 650; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 2.75rem;
  margin-bottom: .45rem;
  padding: .45rem .65rem;
  border: 1px solid #7b8676;
  border-radius: .4rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; min-width: 6rem; }
.contact-form .button:disabled { cursor: wait; opacity: .65; }
.form-status { font-size: .94rem; font-weight: 650; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #9c3016; }
.site-footer { padding-block: 2.35rem 1.2rem; background: var(--cream); }
.footer-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  font-size: .88rem;
}
.footer-layout nav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.footer-layout nav a { font-weight: 650; }
.footer-layout address { margin-top: .45rem; }
.credit { margin-top: 1.55rem; padding-top: .95rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.credit a { font-weight: 750; }

@media (max-width: 1000px) {
  .footer-layout { grid-template-columns: auto 1fr; }
  .footer-layout nav { grid-column: 2; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: calc(var(--header-height, 6rem) + 1rem); }
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header .brand { align-self: flex-start; }
  .brand img { width: min(10.25rem, 54vw); }
  .primary-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 .25rem;
    border-top: 1px solid var(--line);
  }
  .primary-nav a { font-size: .8rem; padding-inline: .15rem; }
  .primary-nav .nav-contact { border: 0; padding: 0 .15rem; }
  .primary-nav .nav-contact span { display: none; }
  .hero { background-image: linear-gradient(#142018ed, #172417aa), url("../img/lavoura-goias.jpg"); }
  h1 { font-size: clamp(2.125rem, 10vw, 3.3rem); }
  .hero-layout, .split-layout, .footer-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { width: 100%; }
  .hero-photo img { aspect-ratio: 1.5; }
  .focus-layout { grid-template-columns: 1fr; }
  .focus-layout .eyebrow { margin-bottom: .5rem; }
  .focus-layout a { border-inline-start: 0; border-top: 1px solid #ffffff38; padding-inline: 0; }
  .footer-layout nav { grid-column: auto; }
  .footer-layout nav a { padding-block: .35rem; }
}

@media (max-width: 360px) {
  .header-inner { width: calc(100% - 1.5rem); }
  .primary-nav a, .primary-nav .nav-contact { padding-inline: 0; }
}
