/* NorteSense — Geo & Território
   Base visual herdada das páginas de Agricultura.
   Ajustes exclusivos das páginas Geo.
*/

@import url('/assets/css/culturas.css?v=20260923-05');

/* Títulos técnicos longos */
.cultura-page h2 {
  text-wrap: balance;
}

@media (min-width: 900px) {
  .cultura-page .agricultura-copy h2 {
    font-size: clamp(2rem, 3vw, 3.15rem);
    line-height: 1.05;
  }
}

/* Imagens Geo */
.cultura-page .cultura-image,
.cultura-page .cultura-hero-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ==================================================
   GEO & TERRITÓRIO — MOBILE
   ================================================== */

@media (max-width: 650px) {

  /* Hero */
  .cultura-page h1 {
    font-size: clamp(2rem, 8.2vw, 2.45rem);
    line-height: 1.06;
  }

  /* Títulos das secções Geo */
  .vinha-variabilidade h2,
  .vinha-zonagem h2,
  .vinha-terreno h2,
  .vinha-campanha h2,
  .vinha-entregaveis h2,
  .vinha-cta h2 {
    font-size: 2rem;
    line-height: 1.08;
  }

  /* Texto principal */
  .cultura-page .lead,
  .vinha-variabilidade .lead,
  .vinha-campanha .lead,
  .vinha-entregaveis .lead {
    font-size: 1.05rem;
    line-height: 1.62;
  }

  /* Texto corrente */
  .cultura-page p,
  .vinha-zonagem p,
  .vinha-terreno p {
    line-height: 1.62;
  }

  /* Imagens: evitar altura artificial herdada */
  .cultura-visual {
    min-height: 0;
  }

  .cultura-page .cultura-image,
  .cultura-page .cultura-hero-image {
    height: auto;
  }
}

/* GEO — afinação final de leitura em mobile */
@media (max-width: 650px) {
  .cultura-page .lead,
  .vinha-variabilidade .lead,
  .vinha-campanha .lead,
  .vinha-entregaveis .lead {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .cultura-page p,
  .vinha-zonagem p,
  .vinha-terreno p {
    line-height: 1.58;
  }
}

/* ==================================================
   GNSS / RTK — fluxo do levantamento
   ================================================== */

.gnss-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  align-items: start;
}

.gnss-flow article {
  position: relative;
  padding: 34px 28px 0 0;
  min-width: 0;
}

/* Linha que liga as etapas */
.gnss-flow article::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 10px;
  right: -10px;
  height: 2px;
  background: #dce6dc;
}

/* Ponto de cada etapa */
.gnss-flow article::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7da52e;
  box-shadow: 0 0 0 5px #f4f7f2;
}

/* A última etapa termina a linha */
.gnss-flow article:last-child::before {
  right: calc(100% - 10px);
}

.gnss-flow h3 {
  margin: 0 0 10px;
  color: #132a24;
}

.gnss-flow p {
  margin: 0;
  max-width: 240px;
  color: #56656a;
  line-height: 1.6;
}


/* Tablet */
@media (max-width: 900px) {
  .gnss-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 0;
  }

  .gnss-flow article:nth-child(2)::before,
  .gnss-flow article:last-child::before {
    right: calc(100% - 10px);
  }
}


/* Mobile — fluxo vertical */
@media (max-width: 650px) {
  .gnss-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 34px;
  }

  .gnss-flow article {
    padding: 0 0 30px 36px;
  }

  .gnss-flow article::before {
    top: 10px;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .gnss-flow article::after {
    top: 4px;
    left: 0;
  }

  .gnss-flow article:last-child {
    padding-bottom: 0;
  }

  .gnss-flow article:last-child::before {
    display: none;
  }

  .gnss-flow p {
    max-width: none;
  }
}

/* ==================================================
   GNSS / RTK — entregáveis
   ================================================== */

.gnss-entregaveis-list {
  display: block;
  margin-top: 30px;
}

.gnss-entregaveis-list article {
  position: relative;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid #dce6dc;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gnss-entregaveis-list article:last-child {
  border-bottom: 1px solid #dce6dc;
}

.gnss-entregaveis-list h3 {
  margin: 0 0 7px;
  color: #132a24;
  font-size: 1.08rem;
}

.gnss-entregaveis-list p {
  margin: 0;
  max-width: 620px;
  color: #56656a;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 650px) {
  .gnss-entregaveis-list {
    margin-top: 24px;
  }

  .gnss-entregaveis-list article {
    padding: 18px 0;
  }
}

/* ==================================================
   GNSS / RTK — Propriedade & BUPi
   ================================================== */

.gnss-bupi .agricultura-head {
  align-items: center;
}

.gnss-bupi-panel {
  position: relative;
  padding: 34px 36px;
  border: 1px solid #dce6dc;
  border-radius: 24px;
  background: #f7f9f5;
}

.gnss-bupi-step {
  position: relative;
  padding: 0 0 28px 34px;
}

.gnss-bupi-step:not(:last-of-type)::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: -2px;
  left: 6px;
  width: 2px;
  background: #dce6dc;
}

.gnss-bupi-step::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7da52e;
  box-shadow: 0 0 0 5px #edf3e4;
}

.gnss-bupi-step span {
  display: block;
  margin-bottom: 5px;
  color: #6f922d;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gnss-bupi-step strong {
  display: block;
  color: #132a24;
  font-size: 1rem;
  line-height: 1.45;
}

.gnss-bupi-note {
  margin: 4px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #edf3e4;
  color: #56656a;
  font-size: .78rem;
  line-height: 1.55;
}

@media (max-width: 650px) {
  .gnss-bupi-panel {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .gnss-bupi-step {
    padding-left: 32px;
  }
}

/* ==================================================
   DOCUMENTAÇÃO & TERRITÓRIO — imagens 2:1 sem corte
   ================================================== */

.documentacao-page .cultura-visual {
  min-height: 0;
}

.documentacao-page .cultura-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  display: block;
}

/* Documentação & Território — proporção natural da imagem */
.documentacao-page .cultura-visual {
  min-height: 0;
  height: auto;
}

.documentacao-page .cultura-image {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
}

/* =========================================================
   GESTÃO DO TERRITÓRIO — ajustes específicos
   ========================================================= */

/* Processo: 5 etapas na mesma linha e sem numeração */
.gestao-page .gnss-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gestao-page .gnss-flow article > span {
  display: none;
}

/* Levantamento inicial: cartões horizontais */
.gestao-page .agricultura-copy > .vinha-pontos:not(.gnss-entregaveis-list) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gestao-page .agricultura-copy > .vinha-pontos:not(.gnss-entregaveis-list) article {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 20px;
  width: 100%;
}

.gestao-page .agricultura-copy > .vinha-pontos:not(.gnss-entregaveis-list) article h3,
.gestao-page .agricultura-copy > .vinha-pontos:not(.gnss-entregaveis-list) article p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Tablet */
@media (max-width: 1100px) {
  .gestao-page .gnss-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .gestao-page .gnss-flow {
    grid-template-columns: 1fr;
  }

  .gestao-page .agricultura-copy > .vinha-pontos:not(.gnss-entregaveis-list) article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* GESTÃO DO TERRITÓRIO — Serviços relacionados em 4 caixas */
.gestao-page .vinha-variabilidade {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gestao-page .vinha-variabilidade article {
  border: 1px solid rgba(24, 47, 37, 0.14);
  border-radius: 18px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gestao-page .vinha-variabilidade article h3 {
  margin-top: 0;
}

.gestao-page .vinha-variabilidade article a {
  margin-top: auto;
}

/* Mobile */
@media (max-width: 700px) {
  .gestao-page .vinha-variabilidade {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   PEDIDO TÉCNICO — GEO & TERRITÓRIO
   ========================================================= */

.geo-request-section {
  border-top: 1px solid rgba(24, 47, 37, .10);
}

.geo-request-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.geo-request-form {
  max-width: 980px;
}

.geo-request-group {
  padding: 28px 0;
  border-top: 1px solid rgba(24, 47, 37, .12);
}

.geo-request-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.geo-request-group h3 {
  margin: 0 0 8px;
}

.geo-request-group > p {
  margin: 0 0 18px;
}

.geo-request-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.geo-request-services button {
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid rgba(24, 47, 37, .18);
  border-radius: 14px;
  background: #fff;
  color: #182f25;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition:
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.geo-request-services button:hover {
  border-color: rgba(15, 104, 70, .55);
  background: rgba(15, 104, 70, .04);
  transform: translateY(-1px);
}

.geo-request-services button.is-selected {
  border-color: #0f6846;
  background: rgba(15, 104, 70, .08);
}

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

.geo-request-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geo-request-form label > span {
  font-size: 14px;
  font-weight: 600;
  color: #263b32;
}

.geo-request-form input,
.geo-request-form select,
.geo-request-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 47, 37, .18);
  border-radius: 12px;
  background: #fff;
  color: #17231e;
  font: inherit;
  outline: none;
}

.geo-request-form input,
.geo-request-form select {
  min-height: 50px;
  padding: 0 14px;
}

.geo-request-form textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

.geo-request-form input:focus,
.geo-request-form select:focus,
.geo-request-form textarea:focus {
  border-color: #0f6846;
  box-shadow: 0 0 0 3px rgba(15, 104, 70, .08);
}

.geo-request-submit {
  margin-top: 4px;
}

.geo-request-note {
  max-width: 700px;
  margin: 14px 0 0;
  font-size: 13px;
  opacity: .72;
}

@media (max-width: 980px) {
  .geo-request-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .geo-request-head {
    margin-bottom: 26px;
  }

  .geo-request-group {
    padding: 24px 0;
  }

  .geo-request-services,
  .geo-request-grid {
    grid-template-columns: 1fr;
  }

  .geo-request-services button {
    min-height: 56px;
  }

  .geo-request-submit {
    width: 100%;
  }
}
