/* =========================================================
   O AGRICULTOR INTELIGENTE
   Folha de estilos principal
   ========================================================= */

:root {
  --green-950: #06351f;
  --green-900: #08462a;
  --green-800: #0c5a34;
  --green-700: #1f713b;
  --green-500: #69a83b;
  --lime: #b9d85a;
  --cream: #f6f0e4;
  --paper: #fffdf8;
  --earth: #8b4c27;
  --ink: #193126;
  --muted: #66756c;
  --line: #dfe7df;
  --white: #ffffff;
  --shadow: 0 12px 35px rgba(6, 53, 31, 0.09);
  --radius: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--max), 92%);
  margin-inline: auto;
}

/* -------------------------
   Header
   ------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 53, 31, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-weight: 800;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.brand-name {
  font-size: 16px;
  line-height: 1.05;
}

.brand-tagline {
  display: block;
  margin-top: 4px;
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > a,
.products-menu > button {
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 10px 13px;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.main-nav > a:hover,
.products-menu > button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.products-menu {
  position: relative;
}

.products-menu > button::after {
  content: "⌄";
  margin-left: 7px;
  color: var(--lime);
}

.submenu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 285px;
  padding: 8px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: none;
}

.products-menu.is-open .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 12px 13px;
  border-radius: 8px;
  color: var(--green-900);
  font-size: 14px;
  font-weight: 700;
}

.submenu a:hover {
  background: var(--cream);
}

/* -------------------------
   Hero
   ------------------------- */

.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(185, 216, 90, 0.17), transparent 28%),
    linear-gradient(135deg, var(--green-950), var(--green-800));
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 50px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--lime);
}

.hero h1 {
  max-width: 780px;
  margin: 15px 0 17px;
  font-size: clamp(38px, 6vw, 67px);
  line-height: 0.98;
  letter-spacing: -2.3px;
}

.hero h1 span {
  color: var(--lime);
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: #dce9e1;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-mark {
  justify-self: end;
  width: min(310px, 100%);
  padding: 14px;
  border-radius: 28px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-mark img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 19px;
}

/* -------------------------
   Seções
   ------------------------- */

.section {
  padding: 72px 0;
}

.section--cream {
  background: var(--cream);
  border-block: 1px solid #eee5d6;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 8px 0 12px;
  color: var(--green-950);
  font-size: clamp(29px, 4vw, 43px);
  line-height: 1.08;
  letter-spacing: -1px;
}

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

/* -------------------------
   Carrossel de dicas
   ------------------------- */

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.tip-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tip-visual {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 35px;
  background:
    radial-gradient(circle at 70% 30%, rgba(185, 216, 90, 0.5), transparent 25%),
    linear-gradient(145deg, var(--green-900), var(--green-700));
  color: var(--white);
  text-align: center;
}

.tip-visual .number {
  display: block;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: var(--lime);
}

.tip-visual strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
}

.tip-content {
  padding: 38px;
}

.tip-content h3 {
  margin: 0 0 12px;
  color: var(--green-950);
  font-size: 28px;
  line-height: 1.1;
}

.tip-content p {
  margin: 0 0 15px;
  color: var(--muted);
}

.source-note {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.carousel-buttons {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green-900);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.carousel-btn:hover {
  background: var(--green-900);
  color: var(--white);
}

.dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: #b9c5bc;
  cursor: pointer;
}

.dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--green-700);
}

/* -------------------------
   Posts
   ------------------------- */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(6, 53, 31, 0.05);
}

.post-cover {
  min-height: 160px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: linear-gradient(145deg, var(--green-900), var(--green-700));
}

.post-cover.earth {
  background: linear-gradient(145deg, #70401f, #a66835);
}

.post-cover.blue {
  background: linear-gradient(145deg, #164f66, #287b91);
}

.post-cover span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-body h3 {
  margin: 0 0 9px;
  color: var(--green-950);
  font-size: 21px;
  line-height: 1.15;
}

.post-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.read-more {
  margin-top: auto;
  color: var(--green-700);
  font-weight: 900;
  font-size: 14px;
}

/* -------------------------
   Fontes oficiais
   ------------------------- */

.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.source-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.source-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green-900);
}

.source-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.source-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

/* -------------------------
   Footer
   ------------------------- */

.site-footer {
  padding: 42px 0;
  background: var(--green-950);
  color: #d8e5dc;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}

.footer-note {
  max-width: 520px;
  margin: 0;
  font-size: 13px;
  color: #aebfb5;
}

/* -------------------------
   Página de post
   ------------------------- */

.article {
  padding: 70px 0;
}

.article-wrap {
  width: min(850px, 92%);
  margin: auto;
}

.article-meta {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article h1 {
  margin: 10px 0 15px;
  color: var(--green-950);
  font-size: clamp(34px, 5vw, 55px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.article-lead {
  color: var(--muted);
  font-size: 19px;
}

.article h2 {
  margin-top: 38px;
  color: var(--green-900);
  font-size: 27px;
}

.article p,
.article li {
  color: #34453c;
  font-size: 17px;
}

.article ul {
  padding-left: 22px;
}

.article-source {
  padding: 18px;
  margin-top: 28px;
  border-left: 4px solid var(--green-500);
  background: var(--cream);
  color: var(--muted);
  font-size: 14px;
}

.article-source a {
  color: var(--green-700);
  font-weight: 800;
}

/* -------------------------
   Responsividade
   ------------------------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 58px 0 70px;
  }

  .hero-mark {
    justify-self: start;
    width: 230px;
  }

  .tip-card {
    grid-template-columns: 1fr;
  }

  .tip-visual {
    min-height: 210px;
  }

  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sources-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-tagline {
    font-size: 8px;
  }

  .main-nav > a {
    display: none;
  }

  .main-nav > .products-menu {
    display: block;
  }

  .products-menu > button {
    padding-inline: 7px;
    font-size: 13px;
  }

  .hero-inner {
    padding: 48px 0 60px;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  .tip-content {
    padding: 27px;
  }

  .posts-grid,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
