/* ==========================================
   DONAS DA AGRO - ESPAÇO GAIA
   CSS COMPLETO + RESPONSIVO
========================================== */

/* ==========================================
   1. FONTES
========================================== */

@font-face {
  font-family: "TanBuste";
  src: url("fonts/TANBUSTER-fonts.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "AristotelicaPro";
  src: url("fonts/Zetafonts - Aristotelica Pro Text Extralight.otf")
    format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "TanParadiso";
  src: url("fonts/TAN-PARADISO.ttf") format("truetype");
  font-display: swap;
}

/* ==========================================
   2. VARIÁVEIS DE CORES
========================================== */

:root {
  --agro-orange: #b65a1e;
  --agro-orange-dark: #934518;
  --agro-dark: #263d2f;
  --agro-green: #455543;
  --agro-green-light: #e9eee5;
  --agro-cream: #ebddcc;
  --agro-cream-light: #f8f2eb;
  --agro-ink: #28352c;
  --agro-muted: #526055;
  --agro-white: #ffffff;
}

/* ==========================================
   3. CONFIGURAÇÕES GERAIS
========================================== */

.agro-page,
.agro-page *,
.agro-page *::before,
.agro-page *::after,
.agro-lightbox,
.agro-lightbox * {
  box-sizing: border-box;
}

.agro-page {
  width: 100%;
  overflow: clip;
  color: var(--agro-ink);
  font-family: "AristotelicaPro", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.agro-page img {
  max-width: 100%;
}

.agro-page a {
  text-decoration: none;
}

.agro-page button {
  font: inherit;
}

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

.agro-container {
  width: min(1140px, calc(100% - 40px));
  height: auto;
  margin-inline: auto;
  display: block;
}

.agro-section {
  padding: 92px 0;
}

.agro-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--agro-orange);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.agro-page h2 {
  margin-bottom: 24px;
  color: var(--agro-dark);
  font-family: "TanBuste", Georgia, serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.agro-page p {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.8;
}

.agro-section-heading {
  max-width: 800px;
  margin: 0 auto 42px;
  text-align: center;
}

.agro-section-heading p {
  color: var(--agro-muted);
}

/* ==========================================
   4. BOTÕES
========================================== */

.agro-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 15px 27px;

  background: var(--agro-orange);
  color: #ffffff !important;

  border: none;
  border-radius: 8px;

  font-family: "AristotelicaPro", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.agro-button:hover {
  background: var(--agro-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   5. HERO
========================================== */

.agro-hero {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: 660px;
  min-height: 85svh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 105px 20px;

  text-align: center;

  background:
    linear-gradient(90deg, rgba(17, 36, 25, 0.79), rgba(17, 36, 25, 0.6)),
    url("imagem/Galeria-Donas-agro/donas-agro01.jpg") center center / cover
      no-repeat;
}

.agro-hero-inner {
  position: relative;
  z-index: 1;

  width: min(900px, 100%);
  margin: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 18px;
}

.agro-eyebrow {
  color: #f1d9b7;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.agro-hero h1 {
  margin: 0;

  color: #edbf8d;
  font-family: "TanBuste", Georgia, serif;
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.2;

  overflow-wrap: break-word;
}

.agro-page .agro-hero-subtitle {
  margin: 0;

  color: white;
  font-family: "TanParadiso", Georgia, serif;
  font-size: clamp(24px, 3vw, 37px);
  line-height: 1.35;
}

.agro-page .agro-hero-description {
  max-width: 700px;
  margin: 0 0 10px;

  color: #f7f0e6;
  font-size: 19px;
  line-height: 1.7;
}

/* ==========================================
   6. SOBRE O PROJETO
========================================== */

.agro-about {
  background: #ffffff;
}

.agro-split {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  align-items: center;
  gap: 56px;
}

.agro-copy,
.agro-picture {
  min-width: 0;
}

.agro-copy p {
  color: var(--agro-ink);
}

.agro-copy strong {
  color: var(--agro-orange);
  font-weight: 700;
}

.agro-picture {
  width: 100%;
}

.agro-picture img {
  display: block;

  width: 100%;
  height: 490px;

  object-fit: cover;

  border-radius: 16px;

  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.13);
}

/* ==========================================
   7. FRASE DESTACADA
========================================== */

.agro-quote {
  margin: 26px 0;
  padding: 22px 25px;

  border-left: 5px solid var(--agro-orange);
  border-radius: 0 9px 9px 0;

  background: #f8f1e9;

  color: #8a441f;
  font-family: "TanParadiso", Georgia, serif;
  font-size: 22px;
  line-height: 1.5;
}

/* ==========================================
   8. ODS
========================================== */

.agro-ods {
  margin-top: 25px;
}

.agro-ods h3 {
  margin: 0 0 13px;

  color: var(--agro-dark);
  font-family: "AristotelicaPro", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.agro-ods-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.agro-ods-icons img {
  display: block;

  width: 65px !important;
  height: 65px !important;
  max-width: 65px;

  flex: 0 0 65px;

  object-fit: contain;
  border-radius: 4px;

  transition: transform 0.3s ease;
}

.agro-ods-icons img:hover {
  transform: translateY(-4px);
}

/* ==========================================
   9. QUATRO PILARES
========================================== */

.agro-pillars {
  background: var(--agro-green-light);
}

.agro-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.agro-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 27px 22px;

  background: white;

  border-radius: 14px;

  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.agro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11);
}

.agro-card-number {
  margin-bottom: 18px;

  color: var(--agro-orange);
  font-family: "TanBuste", Georgia, serif;
  font-size: 32px;
}

.agro-card h3 {
  margin: 0 0 14px;

  color: var(--agro-dark);
  font-family: "TanParadiso", Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
}

.agro-card p {
  color: var(--agro-muted);
  font-size: 16px;
  line-height: 1.7;
}

.agro-card-ods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: auto;
  padding-top: 12px;
}

.agro-card-ods img {
  width: 45px !important;
  height: 45px !important;
  max-width: 45px;

  object-fit: contain;
}

/* ==========================================
   10. COMO ACONTECEU
========================================== */

.agro-journey {
  background: #ffffff;
}

/* ==========================================
   11. LEGADO
========================================== */

.agro-results {
  background: var(--agro-cream-light);
}

.agro-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.agro-result {
  min-width: 0;
  padding: 27px 22px;

  background: white;

  border-top: 5px solid var(--agro-orange);
  border-radius: 10px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.agro-result:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.agro-result h3 {
  margin: 0 0 14px;

  color: var(--agro-dark);
  font-family: "TanParadiso", Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
}

.agro-result p {
  color: var(--agro-muted);
  font-size: 16px;
  line-height: 1.7;
}

.agro-ods-centered {
  margin-top: 38px;
  text-align: center;
}

.agro-ods-centered .agro-ods-icons {
  justify-content: center;
}

/* ==========================================
   12. GALERIA DE FOTOS
========================================== */

.agro-gallery-section {
  background: #ffffff;
}

.agro-gallery {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  grid-auto-rows: 235px;

  gap: 15px;
}

.agro-gallery-item {
  position: relative;

  display: block;

  width: 100%;
  height: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;

  border: none;
  border-radius: 12px;

  overflow: hidden;
  cursor: pointer;

  background: #dfe5db;
}

.agro-gallery-item img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}

.agro-gallery-item:hover img {
  transform: scale(1.07);
}

.agro-gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 20px;

  color: white;
  text-align: left;
  font-size: 16px;
  font-weight: 700;

  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));

  pointer-events: none;
}

.agro-gallery-featured {
  grid-row: span 2;
}

/* ==========================================
   13. LIGHTBOX - IMAGENS AMPLIADAS
========================================== */

.agro-lightbox[hidden] {
  display: none !important;
}

.agro-lightbox {
  position: fixed !important;

  inset: 0 !important;

  z-index: 999999 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 65px 75px;

  background: rgba(0, 0, 0, 0.95);
}

.agro-lightbox-image {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 85vh;

  object-fit: contain;

  border-radius: 5px;
}

.agro-lightbox button {
  position: absolute;

  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.18);

  color: white;
  font-size: 29px;
  line-height: 1;

  cursor: pointer;

  transition: background 0.3s ease;
}

.agro-lightbox button:hover {
  background: var(--agro-orange);
}

/* FECHAR */

.agro-lightbox-close {
  top: 20px;
  right: 20px;
}

/* FOTO ANTERIOR */

.agro-lightbox-prev {
  left: 18px;
  top: 50%;

  transform: translateY(-50%);
}

/* PRÓXIMA FOTO */

.agro-lightbox-next {
  right: 18px;
  top: 50%;

  transform: translateY(-50%);
}

/* CONTADOR */

.agro-lightbox-counter {
  position: absolute;

  bottom: 13px;
  left: 50%;

  transform: translateX(-50%);

  margin: 0;

  color: white;
  font-family: "AristotelicaPro", Arial, sans-serif;
  font-size: 16px;
}

/* BLOQUEAR ROLAGEM AO ABRIR */

body.agro-lightbox-open {
  overflow: hidden;
}

/* ==========================================
   14. CHAMADA FINAL CTA
========================================== */

.agro-callout {
  padding: 85px 20px;

  background: var(--agro-dark);

  text-align: center;
}

.agro-callout h2 {
  max-width: 850px;
  margin: 0 auto 18px;

  color: #edbf8d;
}

.agro-callout p {
  max-width: 680px;
  margin: 0 auto 25px;

  color: #f2e8db;
}

/* ==========================================
   15. ACESSIBILIDADE
========================================== */

.agro-page a:focus-visible,
.agro-page button:focus-visible,
.agro-lightbox button:focus-visible {
  outline: 3px solid #edbf8d;
  outline-offset: 3px;
}

/* ==========================================
   RESPONSIVO - NOTEBOOK E TABLET
   MAX-WIDTH: 1024PX
========================================== */

@media (max-width: 1024px) {
  .agro-section {
    padding: 75px 0;
  }

  .agro-split {
    gap: 35px;
  }

  .agro-card-grid,
  .agro-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agro-picture img {
    height: 420px;
  }

  .agro-gallery {
    grid-auto-rows: 210px;
  }

  .agro-hero h1 {
    font-size: clamp(36px, 5vw, 58px);
  }
}

/* ==========================================
   RESPONSIVO - TABLET
   MAX-WIDTH: 768PX
========================================== */

@media (max-width: 768px) {
  .agro-container {
    width: calc(100% - 32px);
  }

  .agro-section {
    padding: 60px 0;
  }

  /* HERO */

  .agro-hero {
    min-height: 75svh;
    padding: 90px 18px;
  }

  .agro-hero-inner {
    gap: 15px;
  }

  .agro-hero h1 {
    font-size: clamp(34px, 7vw, 52px);
  }

  .agro-page .agro-hero-subtitle {
    font-size: clamp(24px, 5vw, 31px);
  }

  .agro-page .agro-hero-description {
    font-size: 17px;
  }

  /* SOBRE E JORNADA */

  .agro-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .agro-picture img {
    height: auto;
    max-height: 480px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .agro-copy {
    width: 100%;
  }

  .agro-page h2 {
    font-size: clamp(26px, 5vw, 34px);
  }

  .agro-page p {
    font-size: 17px;
  }

  /* ODS */

  .agro-ods-icons {
    gap: 9px;
  }

  .agro-ods-icons img {
    width: 55px !important;
    height: 55px !important;
    max-width: 55px;
    flex-basis: 55px;
  }

  /* GALERIA */

  .agro-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    grid-auto-rows: 190px;

    gap: 12px;
  }

  .agro-gallery-featured {
    grid-row: span 2;
  }

  /* LIGHTBOX */

  .agro-lightbox {
    padding: 65px 45px;
  }

  .agro-lightbox-image {
    max-height: 78vh;
  }

  /* CTA */

  .agro-callout {
    padding: 65px 18px;
  }
}

/* ==========================================
   RESPONSIVO - CELULAR
   MAX-WIDTH: 600PX
========================================== */

@media (max-width: 600px) {
  .agro-container {
    width: calc(100% - 30px);
  }

  .agro-section {
    padding: 55px 0;
  }

  .agro-hero {
    min-height: 75svh;
    padding: 85px 16px;
  }

  .agro-hero h1 {
    font-size: 40px;
    line-height: 1.25;
  }

  .agro-page .agro-hero-subtitle {
    font-size: 26px;
  }

  .agro-page .agro-hero-description {
    font-size: 16px;
  }

  .agro-card-grid,
  .agro-results-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .agro-card,
  .agro-result {
    padding: 25px 22px;
  }

  .agro-picture img {
    max-height: 420px;
  }

  .agro-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    grid-auto-rows: 170px;

    gap: 10px;
  }

  .agro-gallery-item span {
    padding: 12px;
    font-size: 13px;
  }

  .agro-lightbox {
    padding: 65px 12px;
  }

  .agro-lightbox-image {
    max-height: 75vh;
  }

  .agro-lightbox button {
    width: 36px;
    height: 36px;
    font-size: 25px;
  }

  .agro-lightbox-prev {
    left: 5px;
  }

  .agro-lightbox-next {
    right: 5px;
  }

  .agro-lightbox-close {
    top: 15px;
    right: 12px;
  }
}

/* ==========================================
   RESPONSIVO - CELULAR PEQUENO
   MAX-WIDTH: 480PX
========================================== */

@media (max-width: 480px) {
  .agro-container {
    width: calc(100% - 28px);
  }

  .agro-section {
    padding: 50px 0;
  }

  /* HERO */

  .agro-hero {
    min-height: 70svh;
    padding: 75px 16px;
  }

  .agro-eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .agro-hero h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .agro-page .agro-hero-subtitle {
    font-size: 24px;
  }

  .agro-page .agro-hero-description {
    font-size: 16px;
  }

  .agro-button {
    padding: 13px 19px;
    font-size: 15px;
  }

  /* TÍTULOS */

  .agro-page h2 {
    font-size: 27px;
    line-height: 1.3;
  }

  .agro-page p {
    font-size: 16px;
    line-height: 1.7;
  }

  /* IMAGENS */

  .agro-picture img {
    aspect-ratio: 1 / 1;
    max-height: 400px;
  }

  /* FRASE */

  .agro-quote {
    padding: 18px;
    font-size: 19px;
  }

  /* CARDS */

  .agro-card-grid,
  .agro-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .agro-card,
  .agro-result {
    padding: 23px 20px;
  }

  .agro-card h3,
  .agro-result h3 {
    font-size: 21px;
  }

  /* ODS */

  .agro-ods-icons {
    gap: 8px;
  }

  .agro-ods-icons img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px;
    flex-basis: 52px;
  }

  /* GALERIA */

  .agro-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    grid-auto-rows: 155px;
    gap: 10px;
  }

  .agro-gallery-featured {
    grid-row: span 2;
  }

  .agro-gallery-item {
    border-radius: 9px;
  }

  .agro-gallery-item span {
    padding: 10px;
    font-size: 12px;
  }

  /* LIGHTBOX */

  .agro-lightbox {
    padding: 65px 12px;
  }

  .agro-lightbox-image {
    max-width: 100%;
    max-height: 75vh;
  }

  .agro-lightbox-counter {
    bottom: 12px;
    font-size: 14px;
  }

  /* CTA */

  .agro-callout {
    padding: 55px 16px;
  }

  .agro-callout h2 {
    font-size: 26px;
  }
}

/* ==========================================
   RESPONSIVO - ATÉ 400PX
========================================== */

@media (max-width: 400px) {
  .agro-hero {
    padding: 65px 14px;
  }

  .agro-hero h1 {
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .agro-page .agro-hero-subtitle {
    font-size: 21px;
    line-height: 1.4;
  }

  .agro-page .agro-hero-description {
    font-size: 15px;
  }

  .agro-page h2 {
    font-size: 24px;
  }

  .agro-quote {
    font-size: 17px;
  }

  .agro-gallery {
    grid-auto-rows: 140px;
  }

  .agro-ods-icons img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px;
    flex-basis: 48px;
  }
}

/* ==========================================
   RESPONSIVO - ATÉ 350PX
========================================== */

@media (max-width: 350px) {
  .agro-container {
    width: calc(100% - 24px);
  }

  .agro-hero h1 {
    font-size: 25px;
  }

  .agro-page .agro-hero-subtitle {
    font-size: 20px;
  }

  .agro-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .agro-gallery-featured {
    grid-row: span 1;
  }

  .agro-lightbox {
    padding: 60px 8px;
  }

  .agro-lightbox button {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================
   REDUÇÃO DE MOVIMENTO
========================================== */

@media (prefers-reduced-motion: reduce) {
  .agro-page *,
  .agro-page *::before,
  .agro-page *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================
   DONAS DA AGRO - LARGURA TOTAL
========================================== */

/* Remove limitações de largura da página */
html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Página Donas da Agro */
main.agro-page {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Todas as seções ocupam 100% */
.agro-page > section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Remove a largura máxima de 1140px */
.agro-page .agro-container {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Hero de ponta a ponta */
.agro-page .agro-hero {
  width: 100%;
  max-width: none;
  min-height: 90vh;
  margin: 0;
}

/* Texto e imagem aproveitam o espaço */
.agro-page .agro-split {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
}

/* Cards em toda a largura disponível */
.agro-page .agro-card-grid,
.agro-page .agro-results-grid {
  width: 100%;
}

/* Galeria em toda a largura */
.agro-page .agro-gallery {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* CTA em largura total */
.agro-page .agro-callout {
  width: 100%;
  max-width: none;
}

/* ==========================================
   RESPONSIVO
========================================== */

@media (max-width: 1024px) {

  .agro-page .agro-container {
    padding-left: 30px;
    padding-right: 30px;
  }

}

@media (max-width: 768px) {

  .agro-page .agro-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .agro-page .agro-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .agro-page .agro-card-grid,
  .agro-page .agro-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agro-page .agro-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 600px) {

  .agro-page .agro-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .agro-page .agro-card-grid,
  .agro-page .agro-results-grid {
    grid-template-columns: 1fr;
  }

  .agro-page .agro-hero {
    min-height: 75vh;
  }

}

@media (max-width: 400px) {

  .agro-page .agro-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .agro-page .agro-gallery {
    grid-template-columns: 1fr;
  }

  .agro-page .agro-gallery-featured {
    grid-row: span 1;
  }

}
