:root {
  color-scheme: light;
  --forest: #5a3424;
  --forest-dark: #2a1711;
  --forest-soft: #754b36;
  --cream: #f4f0e5;
  --paper: #fffdf8;
  --gold: #b98b42;
  --gold-light: #dfc286;
  --ink: #34251f;
  --muted: #74665f;
  --line: rgba(90, 52, 36, .15);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skipLink { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: white; color: var(--forest); font-weight: 700; }
.skipLink:focus { top: 16px; }

.siteHeader {
  width: min(1280px, calc(100% - 64px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(185, 139, 66, .55); }
.brand span { display: grid; gap: 2px; }
.brand strong { font: 700 20px/1.1 "Playfair Display", Georgia, serif; letter-spacing: -.01em; }
.brand small { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.siteHeader nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; }
.siteHeader nav a { text-decoration: none; }
.siteHeader nav > a:not(.navAccess) { padding: 9px 0; border-bottom: 1px solid transparent; }
.siteHeader nav > a:not(.navAccess):hover { border-color: var(--gold); }
.navAccess { display: flex; align-items: center; gap: 18px; background: var(--forest); color: white; padding: 13px 18px; border-radius: 4px; }
.navAccess span { color: var(--gold-light); font-size: 18px; }

.hero {
  width: min(1440px, calc(100% - 32px));
  min-height: 410px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) max(30px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(42px, 6vw, 76px);
  position: relative;
  overflow: hidden;
  color: white;
  border-radius: 4px;
  background-color: #3a2118;
  background-image:
    linear-gradient(90deg, rgba(42,23,17,.98) 0%, rgba(52,29,21,.94) 48%, rgba(63,35,25,.66) 72%, rgba(72,41,29,.48) 100%),
    url('/assets/fazendas-nsa-logo.jpeg');
  background-size: 100% 100%, 520px auto;
  background-position: center, right 5% center;
  background-repeat: no-repeat;
}
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; opacity: .07; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, black, transparent 55%); }
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(25,12,8,.24);
}
.heroCopy { position: relative; z-index: 2; max-width: 780px; }
.eyebrow { margin: 0 0 22px; color: var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 28px; height: 1px; margin: 0 10px 3px 0; background: currentColor; }
.eyebrow.dark { color: var(--gold); }
.eyebrow.light { color: var(--gold-light); }
.hero h1 { max-width: 700px; margin: 0; font: 600 clamp(44px, 5.3vw, 72px)/.98 "Playfair Display", Georgia, serif; letter-spacing: -.04em; }
.hero h1 em { color: var(--gold-light); font-weight: 600; }
.heroText { max-width: 620px; margin: 20px 0 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.7; }
.heroActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border-radius: 3px; text-decoration: none; font-size: 13px; font-weight: 700; }
.button.primary { background: var(--gold); color: #15261f; }
.button.secondary { border: 1px solid rgba(255,255,255,.28); color: white; }
.button:hover, .button:focus-visible, .navAccess:hover, .navAccess:focus-visible { transform: translateY(-2px); filter: brightness(1.05); outline: 2px solid var(--gold-light); outline-offset: 3px; }
.section { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.sectionHead h2, .contact h2 { margin: 0; font: 600 clamp(34px, 4vw, 50px)/1.08 "Playfair Display", Georgia, serif; letter-spacing: -.035em; }

.services { padding: 62px 0 68px; }
.sectionHead { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 38px; }
.sectionHead > p { width: min(390px, 100%); margin: 0 0 5px; color: var(--muted); line-height: 1.7; }
.serviceGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.serviceCard { min-height: 245px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(255,255,255,.45); position: relative; transition: transform .2s ease, background .2s ease; }
.serviceCard:hover { transform: translateY(-4px); background: var(--paper); }
.serviceCard.featured { background: var(--forest); color: white; border-color: var(--forest); }
.serviceNumber { position: absolute; top: 26px; right: 26px; color: var(--gold); font: 600 14px "Playfair Display", serif; }
.serviceIcon { width: 54px; height: 54px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 14px; }
.serviceIcon.grain { transform: rotate(45deg); border-radius: 4px; }
.serviceIcon.grain::first-letter { transform: rotate(-45deg); }
.serviceIcon.route { font-size: 25px; }
.serviceCard h3 { margin: auto 0 14px; font: 600 29px/1.15 "Playfair Display", serif; }
.serviceCard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.serviceCard.featured p { color: rgba(255,255,255,.64); }

.companies { padding: 4px 0 76px; }
.companiesHead { margin-bottom: 28px; }
.companyGrid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; list-style: none; background: var(--paper); box-shadow: 0 16px 45px rgba(58,33,24,.07); }
.companyCard { min-height: 196px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; border-right: 1px solid var(--line); background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(250,247,241,.9)); }
.companyCard:last-child { border-right: 0; }
.companyCard::after { content: ""; width: 34px; height: 2px; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--gold); }
.companyCard small { align-self: flex-start; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.companyLogo { width: 100%; height: 84px; padding: 8px 10px; display: grid; place-items: center; border: 1px solid rgba(90,52,36,.09); border-radius: 10px; background: #fff; }
.companyLogoDark { background: #2a1711; border-color: rgba(42,23,17,.5); }
.companyLogo img { width: auto; height: auto; max-width: 100%; max-height: 68px; object-fit: contain; }
.companyCard strong { padding-bottom: 13px; color: var(--forest); font: 700 15px/1.12 "Playfair Display",Georgia,serif; letter-spacing: .01em; text-align: center; overflow-wrap: anywhere; }

.marketStrip { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 36px; border-bottom: 1px solid var(--line); }
.marketHeading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 22px; }
.marketHeading .eyebrow { margin-bottom: 7px; }
.marketHeading h2 { margin: 0; font: 600 clamp(28px, 3vw, 40px)/1.1 "Playfair Display", Georgia, serif; }
.marketHeading > p { margin: 0 0 3px; color: var(--muted); font-size: 13px; }
.conabQuotes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.conabQuote { padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.conabQuoteLabel { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.conabQuote h3 { margin: 0; font: 600 29px "Playfair Display",serif; }
.conabQuoteValue { grid-row: 1/3; grid-column: 2; color: var(--forest); font: 700 clamp(28px,4vw,42px) "Playfair Display",serif; white-space: nowrap; }
.conabQuoteMeta { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.conabVariation.up { color: #18794e; }.conabVariation.down { color: #b42318; }.conabVariation.flat { color: var(--muted); }
.quoteLoading { grid-column: 1/-1; padding: 32px; text-align: center; border: 1px solid var(--line); background: var(--paper); color: var(--muted); }
.exchangeQuotes { margin-top: 28px; }
.marketSubheading { margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.marketSubheading strong { font: 600 22px "Playfair Display",serif; }
.marketSubheading span { color: var(--muted); font-size: 11px; }
.quotesFrame { min-height: 72px; padding: 8px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.quotesFrame .tradingview-widget-container { width: 100%; min-height: 54px; }
.marketNote { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.marketNote a { color: var(--forest); font-weight: 700; }

.weather { padding: 72px 0 10px; }
.weatherHead { margin-bottom: 30px; }
.weatherFrame { padding: 8px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgba(58,33,24,.08); }
.weatherFrame iframe { width: 100%; height: 520px; display: block; border: 0; border-radius: 14px; }
.weatherSource { margin: 12px 0 0; color: var(--muted); font-size: 11px; }.weatherSource a { color: var(--forest); font-weight: 700; }

.news { padding: 72px 0; }
.newsHead { margin-bottom: 30px; }
.newsFrame { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(58,33,24,.08); }
.newsGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.newsCard { min-height: 164px; padding: 20px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; background: linear-gradient(145deg,#fff,#faf7f1); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.newsCard:hover, .newsCard:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(58,33,24,.1); outline: none; }
.newsMeta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.newsCategory { padding: 5px 8px; border-radius: 999px; color: var(--forest); background: rgba(52,91,66,.09); }
.newsCard h3 { margin: 0; font: 600 20px/1.3 "Playfair Display", serif; }
.newsCardFooter { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; }
.newsCardFooter b { color: var(--forest); font-size: 12px; }
.newsLoading, .newsError { grid-column: 1/-1; margin: 0; padding: 42px 20px; text-align: center; color: var(--muted); }
.newsSource { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.newsSource a { color: var(--forest); font-weight: 700; }

.systems { width: min(1200px, calc(100% - 48px)); padding: 20px 0 34px; color: var(--ink); }
.systemsAccess { width: 100%; border-top: 1px solid var(--line); }
.systemsAccess summary { min-height: 46px; padding: 13px 2px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); cursor: pointer; list-style: none; font-size: 11px; }
.systemsAccess summary::-webkit-details-marker { display: none; }
.systemsAccess summary::after { content: "+"; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); font-size: 15px; }
.systemsAccess[open] summary::after { content: "−"; }
.systemsAccess summary span { font-weight: 700; }
.systemsAccess summary small { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.systemsPanel { width: 100%; padding: 30px; color: white; background: var(--forest-dark); box-shadow: 0 18px 45px rgba(42,23,17,.16); }
.systemIntro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 26px; }
.systemIntro .eyebrow { margin-bottom: 8px; }
.systemIntro h2 { margin: 0; font: 600 clamp(28px, 3.5vw, 42px)/1.08 "Playfair Display", serif; }
.systemIntro > p { max-width: 380px; margin: 0 0 3px; color: rgba(255,255,255,.5); font-size: 13px; }
.systemLinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.systemLinks a { min-height: 92px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-decoration: none; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.045); transition: background .2s ease; }
.systemLinks a:hover, .systemLinks a:focus-visible { background: rgba(255,255,255,.1); outline: 2px solid var(--gold-light); outline-offset: 2px; }
.systemLinks span { display: grid; gap: 4px; }
.systemLinks small { color: var(--gold-light); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.systemLinks strong { font: 600 21px "Playfair Display", serif; }
.systemLinks b { color: var(--gold-light); font-size: 12px; white-space: nowrap; }
.internalFooterLink { color: var(--muted); font-size: 10px; font-weight: 600; }
.security { margin: 16px 0 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: rgba(255,255,255,.45); font-size: 10px; }
.security i { width: 7px; height: 7px; border-radius: 50%; background: #3b9a69; box-shadow: 0 0 0 4px rgba(59,154,105,.13); }

.contact { width: min(1440px, calc(100% - 32px)); padding: 60px max(30px, calc((100vw - 1200px) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 72px; position: relative; overflow: hidden; isolation: isolate; color: white; background: linear-gradient(112deg, #2f1a14, #4b2c21); }
.patronessMark { width: min(30vw, 330px); height: auto; position: absolute; z-index: 0; right: 5%; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: .48; }
.contactCopy, .contactDetails { position: relative; z-index: 1; }
.contactCopy > p:not(.eyebrow) { max-width: 530px; margin: 22px 0 30px; color: rgba(255,255,255,.66); line-height: 1.75; }
.contactButton { color: var(--forest-dark); background: var(--gold-light); }
.contactDetails { font-style: normal; border-top: 1px solid rgba(255,255,255,.18); }
.contactDetails div { padding: 22px 0; display: grid; grid-template-columns: 120px 1fr; gap: 6px 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.contactDetails small { color: var(--gold-light); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.contactDetails a, .contactDetails strong { color: white; text-decoration: none; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.contactDetails span { grid-column: 2; color: rgba(255,255,255,.52); font-size: 12px; }

.siteFooter { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 24px; display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; }
.footerBrand img { width: 48px; height: 48px; }
.footerBrand small { letter-spacing: .03em; text-transform: none; }
.footerLinks { display: flex; gap: 26px; font-size: 12px; font-weight: 700; }
.footerLinks a { text-decoration: none; }
.siteFooter > p { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.whatsappFloat { position: fixed; z-index: 50; right: 22px; bottom: 22px; min-height: 56px; padding: 0 19px 0 15px; display: flex; align-items: center; gap: 10px; border-radius: 999px; color: #fff; text-decoration: none; background: #25d366; box-shadow: 0 12px 32px rgba(15,81,44,.3); font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.whatsappFloat svg { width: 28px; height: 28px; flex: 0 0 auto; }
.whatsappFloat:hover, .whatsappFloat:focus-visible { transform: translateY(-3px); background: #1fbd5a; box-shadow: 0 16px 38px rgba(15,81,44,.38); outline: 3px solid rgba(37,211,102,.25); outline-offset: 3px; }

@media (max-width: 980px) {
  .siteHeader { width: min(100% - 32px, 720px); }
  .siteHeader nav > a:not(.navAccess) { display: none; }
  .hero { grid-template-columns: 1fr; padding-inline: max(28px, 7vw); }
  .heroCopy { max-width: 760px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .sectionHead { align-items: start; flex-direction: column; gap: 25px; }
  .serviceGrid { grid-template-columns: 1fr; }
  .serviceCard { min-height: 250px; }
  .companyGrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .companyCard { border-bottom: 1px solid var(--line); }
  .companyCard:nth-child(3n) { border-right: 0; }
  .companyCard:nth-last-child(-n+2) { border-bottom: 0; }
  .systemIntro { align-items: start; flex-direction: column; gap: 12px; }
}

@media (max-width: 700px) {
  .siteHeader { height: 80px; width: calc(100% - 28px); }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 17px; }
  .navAccess { padding: 12px 14px; font-size: 11px; }
  .navAccess span { display: none; }
  .hero { width: calc(100% - 16px); min-height: auto; padding: 60px 24px; }
  .hero {
    background-image:
      linear-gradient(145deg, rgba(42,23,17,.96), rgba(75,43,31,.82)),
      url('/assets/fazendas-nsa-logo.jpeg');
    background-size: 100% 100%, 410px auto;
    background-position: center, right -150px center;
  }
  .hero h1 { font-size: clamp(44px, 14vw, 62px); }
  .heroText { font-size: 15px; }
  .heroActions { display: grid; }
  .button { width: 100%; }
  .section { width: calc(100% - 36px); }
  .services { padding: 54px 0; }
  .companies { padding: 0 0 54px; }
  .companyGrid { grid-template-columns: 1fr; border-radius: 14px; }
  .companyCard { min-height: 164px; padding: 16px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .companyCard:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .companyCard:last-child { border-bottom: 0; }
  .companyCard::after { bottom: 14px; }
  .companyLogo { height: 76px; }
  .companyLogo img { max-height: 60px; }
  .companyCard strong { padding-bottom: 10px; font-size: 17px; }
  .sectionHead h2, .contact h2 { font-size: 38px; }
  .contact { width: calc(100% - 16px); padding: 54px 24px; }
  .patronessMark { width: 245px; right: -56px; top: 60%; opacity: .32; }
  .marketStrip { width: calc(100% - 36px); padding: 42px 0 34px; }
  .news { padding: 54px 0; }
  .newsFrame { padding: 16px; border-radius: 16px; }
  .newsGrid { grid-template-columns: 1fr; }
  .newsCard { min-height: 150px; padding: 18px; }
  .marketHeading { align-items: start; flex-direction: column; gap: 8px; }
  .conabQuotes { grid-template-columns: 1fr; }
  .conabQuote { padding: 20px; }
  .marketSubheading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .weather { padding: 54px 0 8px; }
  .weatherFrame iframe { height: 430px; }
  .systems { width: calc(100% - 36px); padding: 18px 0 28px; }
  .systemsAccess { width: 100%; }
  .systemsAccess summary { justify-content: flex-end; }
  .systemsPanel { padding: 22px 18px; }
  .systemLinks { grid-template-columns: 1fr; }
  .systemLinks a { min-height: 82px; }
  .contactDetails div { grid-template-columns: 1fr; }
  .contactDetails span { grid-column: 1; }
  .siteFooter { grid-template-columns: 1fr; gap: 28px; }
  .footerLinks { flex-wrap: wrap; }
  .whatsappFloat { right: 14px; bottom: 14px; width: 56px; min-height: 56px; padding: 0; justify-content: center; }
  .whatsappFloat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
