/*
Theme Name:  Agro Santa Clara
Theme URI:   https://agrosantaclara.com.br/
Author:      Agro Santa Clara
Description: Tema institucional da Agro Santa Clara, com landing pages para as verticais Confinamento, Fenos e Serviços. Conteúdo fixo nos templates.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agro-santa-clara
Tags:        one-column, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   Agro Santa Clara — Design System
   Estrutura pensada para migração futura a tema WordPress:
   - classes semânticas e reutilizáveis (nada de utilitários acoplados)
   - cada bloco `.section--*` corresponde a um futuro template part
   - cores por vertical via `data-brand` no <body>
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Marca */
  --c-black: #000000;
  --c-ink: #111311;
  --c-green: #115637;
  --c-green-deep: #0b5033;
  --c-green-dark: #08361f;
  --c-blue: #004790;
  --c-blue-dark: #00305f;

  /* Neutros */
  --c-white: #ffffff;
  --c-bg: #ffffff;
  --c-bg-alt: #f4f5f2;
  --c-bg-dark: #0e120f;
  --c-line: #e2e4de;
  --c-muted: #5c625a;

  /* Cor ativa da vertical (sobrescrita por data-brand) */
  --brand: var(--c-green);
  --brand-dark: var(--c-green-dark);
  --brand-contrast: #ffffff;

  /* Tipografia */
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 6vw, 4.25rem);
  --fs-h1: clamp(2rem, 4.6vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 3.2vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.4rem);
  --fs-body: clamp(1rem, 1.15vw, 1.125rem);
  --fs-small: 0.875rem;

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --gap: 1.5rem;
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 84px;

  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px rgba(0, 0, 0, .07);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body[data-brand="confinamento"] { --brand: var(--c-green-deep); --brand-dark: var(--c-green-dark); }
body[data-brand="fenos"]        { --brand: var(--c-green-deep); --brand-dark: var(--c-green-dark); }
body[data-brand="servicos"]     { --brand: var(--c-blue);       --brand-dark: var(--c-blue-dark); }

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* Logotipos: nunca distorcem, mesmo quando a largura é limitada pelo container */
.site-logo img, .hero__logo, .vertical-card__logo, .site-footer__logo, .brand-logo {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Link "ir para o conteúdo": só aparece ao navegar pelo teclado */
.sr-only-focusable {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  padding: .75rem 1.25rem;
  background: var(--brand); color: #fff;
  font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.sr-only-focusable:focus { left: 0; }

/* --- 3. Layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: #fff; }
.section--dark .lead, .section--dark .eyebrow { color: rgba(255, 255, 255, .72); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9rem;
}
.section--dark .eyebrow { color: #7fc9a2; }
body[data-brand="servicos"] .section--dark .eyebrow { color: #7db2e8; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--c-muted); line-height: 1.55; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* --- 4. Botões ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .btn__arrow { transition: transform .18s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn--dark { background: var(--c-black); color: #fff; border-color: var(--c-black); }
.btn--dark:hover { background: var(--brand); border-color: var(--brand); }

.btn--ghost { background: transparent; color: var(--c-ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }

.btn--light { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }

/* Secundário sobre fundo colorido: só contorno branco */
.btn--light-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--light-outline:hover { background: #fff; color: var(--c-ink); border-color: #fff; }

.btn--wa { background: #1faa53; color: #fff; border-color: #1faa53; }
.btn--wa:hover { background: #17853f; border-color: #17853f; }

/* Ação secundária discreta: só contorno cinza */
.btn--outline { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--outline:hover { background: transparent; color: var(--brand); border-color: var(--c-muted); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: var(--brand);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: .7rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }

/* --- 5. Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}
.site-logo img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  font-size: .95rem; font-weight: 600; color: var(--c-ink);
  padding: .35rem 0; border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); border-color: var(--brand); }

/* Par de botões do topo: espaçamento próprio, mais apertado que o do menu */
.nav__actions { display: flex; align-items: stretch; gap: .5rem; }
.nav__actions .btn { align-items: center; }

/* O CTA do topo é um botão, não um item de menu: precisa vencer a cor de `.nav a` */
.nav a.btn { padding: .62rem 1.15rem; font-size: .9rem; line-height: 1.2; border-bottom-width: 2px; }
.nav a.btn--primary { color: #fff; border-color: var(--brand); }
.nav a.btn--primary:hover { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.nav a.btn--outline { color: var(--c-ink); border-color: var(--c-line); }
.nav a.btn--outline:hover { color: var(--brand); border-color: var(--c-muted); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--c-ink);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 6. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: clamp(30rem, 76vh, 44rem);
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--c-bg-dark);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 8, .92) 0%, rgba(6, 12, 8, .66) 42%, rgba(6, 12, 8, .28) 100%);
}
body[data-brand="servicos"] .hero__media::after {
  background: linear-gradient(to top, rgba(3, 10, 20, .93) 0%, rgba(3, 10, 20, .68) 42%, rgba(3, 10, 20, .3) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__content { max-width: 52rem; }
.hero__logo { height: clamp(64px, 9vw, 96px); width: auto; margin-bottom: 1.75rem; }
.hero__title { font-size: var(--fs-hero); margin-bottom: .5em; }
.hero__subtitle { font-size: clamp(1.05rem, 1.9vw, 1.4rem); color: rgba(255, 255, 255, .85); max-width: 42rem; font-weight: 500; }
.hero__eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--brand);
  padding: .4rem .8rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.hero--compact { min-height: auto; padding-block: clamp(3.5rem, 8vw, 6rem); align-items: center; }
.hero .check-list { list-style: none; padding-left: 0; }
.hero .check-list li::before { border-color: #fff; }

/* --- 7. Cards de vertical ----------------------------------------------- */
.vertical-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.vertical-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.vertical-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-alt); }
.vertical-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vertical-card:hover .vertical-card__media img { transform: scale(1.05); }
.vertical-card__body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.vertical-card__logo { height: 44px; width: auto; margin-bottom: 1.1rem; }
.vertical-card__text { color: var(--c-muted); flex: 1; margin-bottom: 1.4rem; }
.vertical-card--confinamento { --brand: var(--c-green-deep); }
.vertical-card--fenos { --brand: var(--c-green-deep); }
.vertical-card--servicos { --brand: var(--c-blue); }
.brand-logo { height: 38px; margin-bottom: 1rem; }

/* --- 8. Estatísticas ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.section--dark .stats { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .14); }
.stat { background: #fff; padding: 1.75rem 1.5rem; text-align: center; }
.section--dark .stat { background: var(--c-bg-dark); }
.stat__value { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--brand); }
.section--dark .stat__value { color: #fff; }
.stat__label { display: block; margin-top: .55rem; font-size: .84rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--c-muted); }
.section--dark .stat__label { color: rgba(255, 255, 255, .6); }

/* --- 9. Feature / conteúdo ---------------------------------------------- */
.feature { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.feature__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature--reverse .feature__media { order: -1; }
@media (min-width: 60rem) { .feature--reverse .feature__media { order: 1; } .feature--reverse .feature__body { order: 0; } }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__meta { font-size: var(--fs-small); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); display: block; margin-bottom: .6rem; }

/* Card com foto sangrando até a borda */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media > :not(.card__media) { padding-inline: 1.75rem; }
.card--media > :not(.card__media):last-child { padding-bottom: 1.75rem; }
.card__media { aspect-ratio: 2 / 1; overflow: hidden; background: var(--c-bg-alt); margin-bottom: 1.5rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card--media:hover .card__media img { transform: scale(1.04); }
.section--alt .card { background: #fff; }

/* Lista numerada de benefícios */
.numbered { counter-reset: n; }
.numbered .card { position: relative; padding-top: 3.6rem; }
.numbered .card::before {
  counter-increment: n; content: counter(n, decimal-leading-zero);
  position: absolute; top: 1.5rem; left: 1.75rem;
  font-size: 1.5rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em;
}

/* Lista com check */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 6px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}

/* Produtos */
.product { display: flex; flex-direction: column; }
/* Fotos de produto são verticais: recorte mais alto que o dos cards editoriais */
.product .card__media { aspect-ratio: 4 / 3; }
/* Fotos de serviço são horizontais, mas não tão panorâmicas quanto as de conservação */
.service .card__media { aspect-ratio: 3 / 2; }
.product__formats { list-style: none; padding: 0; margin: auto 0 0; padding-top: 1.1rem; border-top: 1px solid var(--c-line); }
.product__formats li { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; padding: .4rem 0; margin: 0; }
.product__formats li + li { border-top: 1px dashed var(--c-line); }
.product__formats span:last-child { font-weight: 700; color: var(--brand); white-space: nowrap; }

/* --- 9b. Carrossel de galeria ------------------------------------------- */
/* Trilho com scroll-snap nativo: funciona no toque sem JS, o JS só move e conta. */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; }
.carousel-head > div:first-child { max-width: 42rem; }
.carousel-head h2 { margin-bottom: 0; }

.carousel__controls { display: flex; gap: .6rem; flex: 0 0 auto; }
.carousel__btn {
  width: 46px; height: 46px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--c-ink);
  border: 2px solid var(--c-line); border-radius: 50%;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
}
.carousel__btn:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: #fff; }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.carousel { --edge: max(clamp(1.25rem, 5vw, 2.5rem), calc((100% - var(--wrap)) / 2)); }
.carousel__track {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: var(--edge);
  scroll-padding-inline-start: var(--edge);
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* toque: arrasto horizontal fica com o trilho, vertical continua rolando a página */
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 clamp(255px, 44%, 520px);
  scroll-snap-align: start;
  margin: 0;
}
.carousel__zoom {
  display: block; width: 100%; padding: 0;
  background: none; border: 0; cursor: zoom-in;
  border-radius: var(--radius-lg); overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.carousel__zoom img {
  width: 100%; aspect-ratio: 35 / 27; object-fit: cover;
  background: var(--c-bg-alt);
  transition: transform .45s var(--ease);
}
.carousel__zoom:hover img { transform: scale(1.04); }
.carousel__status {
  margin: 1.25rem 0 0;
  padding-inline: var(--edge);
  font-size: var(--fs-small); font-weight: 700;
  letter-spacing: .1em; color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 48rem) {
  .carousel-head { flex-direction: column; align-items: flex-start; }
  .carousel__slide { flex-basis: 84%; }
}

/* --- 9c. Lightbox ------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(6, 10, 8, .94);
  padding: clamp(.75rem, 3vw, 2rem);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.lightbox.is-open { display: flex; }
.lightbox.is-visible { opacity: 1; }

.lightbox__figure {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  max-width: min(1180px, 100%); max-height: 100%;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.lightbox__caption {
  margin: 0; text-align: center;
  color: rgba(255, 255, 255, .78);
  font-size: var(--fs-small); line-height: 1.5;
  max-width: 60ch;
}
.lightbox__count {
  display: block; margin-top: .35rem;
  color: rgba(255, 255, 255, .5);
  font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums;
}

.lightbox__btn {
  position: absolute;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 0; border-radius: 50%;
  cursor: pointer;
  transition: background-color .18s var(--ease), opacity .18s var(--ease);
}
.lightbox__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.lightbox__btn:disabled { opacity: .25; cursor: default; }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn--prev { left: clamp(.5rem, 2vw, 1.75rem); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: clamp(.5rem, 2vw, 1.75rem); top: 50%; transform: translateY(-50%); }
.lightbox__btn--close { top: clamp(.5rem, 2vw, 1.5rem); right: clamp(.5rem, 2vw, 1.75rem); }

@media (max-width: 48rem) {
  .lightbox__btn--prev { left: .5rem; top: auto; bottom: .75rem; transform: none; }
  .lightbox__btn--next { right: .5rem; top: auto; bottom: .75rem; transform: none; }
  .lightbox__img { max-height: calc(100vh - 12rem); }
}

body.has-lightbox { overflow: hidden; }

/* --- 10. CTA ------------------------------------------------------------ */
.cta { background: var(--brand); color: #fff; }
.cta .lead { color: rgba(255, 255, 255, .82); }
.cta h2 { max-width: 32ch; }
/* Texto ocupa o espaço que sobrar; botões encostam na borda direita do container */
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta__text { flex: 1 1 28rem; min-width: 0; }
.cta .btn-row { flex: 0 0 auto; justify-content: flex-end; margin-top: 0; }
@media (max-width: 48rem) {
  .cta .btn-row { justify-content: flex-start; }
}

/* --- 11. Contato -------------------------------------------------------- */
.contact-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.75rem; }
.contact-card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .09em; color: var(--brand); margin-bottom: .9rem; }
.contact-card a { border-bottom: 1px solid transparent; transition: border-color .18s var(--ease); }
.contact-card a:hover { border-color: currentColor; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: .7rem; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list .name { display: block; font-size: var(--fs-small); color: var(--c-muted); }
.map-embed { border: 0; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); display: block; }

/* --- 12. Footer --------------------------------------------------------- */
.site-footer { background: var(--c-bg-dark); color: rgba(255, 255, 255, .72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { transition: color .18s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer__logo { height: 46px; width: auto; margin-bottom: 1.1rem; filter: brightness(0) invert(1); }
/* Nas verticais o rodapé usa o logo da própria operação, que já vem em branco */
body:not([data-brand="agro"]) .site-footer__logo { filter: none; }
.site-footer__brand p { max-width: 30ch; }

/* Ícones de rede social ao lado de cada vertical */
.footer-ops li { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: .45rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  color: rgba(255, 255, 255, .6);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.social a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.social svg { width: 16px; height: 16px; display: block; }
.site-footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .84rem; color: rgba(255, 255, 255, .5);
}

/* --- 13. Botão WhatsApp flutuante --------------------------------------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1faa53; color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); background: #17853f; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* --- 14. Animação de entrada -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- 15. Responsivo ----------------------------------------------------- */
@media (max-width: 60rem) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    padding: .5rem clamp(1.25rem, 5vw, 2.5rem) 1.5rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--c-line); }
  .nav a[aria-current="page"] { border-color: var(--c-line); }
  .nav__actions { flex-direction: column; gap: .6rem; margin-top: 1rem; }
  .nav .btn { justify-content: center; border-bottom-width: 2px; }
  .site-header__inner { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html, .carousel__track { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .wa-float, .btn-row { display: none; }
}
