/* =====================
   AGRO Technological Card — Redesign 2026
   ===================== */

:root {
  --green: #2e7d32;
  --green-dk: #1b5e20;
  --green-lt: #e8f5e9;
  --green-md: #a5d6a7;
  --text: #1a2e1a;
  --muted: #6c7c6c;
  --bg: #f4f7f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Navbar ---------- */
.agro-navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #d9ead9;
  box-shadow: 0 2px 12px rgba(46, 125, 50, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}
.agro-navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agro-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agro-brand-icon {
  font-size: 1.6rem;
  background: var(--green-lt);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agro-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
}
.agro-brand-sub {
  font-size: 0.68rem;
  color: var(--muted);
}
.agro-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.agro-nav-youtube {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.agro-nav-youtube img {
  height: 36px;
  width: auto;
  display: block;
}
.agro-nav-ghost {
  background: transparent;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--green);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.agro-nav-ghost:hover {
  background: var(--green);
  color: #fff;
}
.agro-nav-cta {
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}
.agro-nav-cta:hover {
  background: var(--green-dk);
  color: #fff;
}

/* ---------- Hero ---------- */
.agro-hero {
  background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 60%, #f5fff5 100%);
  border-bottom: 1px solid #c8e6c9;
  padding: 60px 24px 48px;
}
.agro-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.agro-hero-badge {
  display: inline-block;
  background: #c8e6c9;
  color: var(--green-dk);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.agro-hero-text h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--green-dk);
  line-height: 1.18;
  margin-bottom: 16px;
}
.agro-hero-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}
.agro-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.agro-store-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.agro-store-badge img {
  display: block;
  width: auto !important;
  max-width: 155px;
  height: 40px !important;
  object-fit: contain;
}
/* Official Google badge art has extra padding; sizes tuned to match Forest Calc */
.agro-store-badge img[src*="badge-google-play"] {
  height: 60px !important;
  max-width: 155px;
}
.agro-btn-ghost {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 50px;
  border: 2px solid var(--green-md);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.agro-btn-ghost:hover {
  background: var(--green-lt);
  color: var(--green-dk);
}
.agro-hero-stats {
  display: flex;
  gap: 28px;
}
.agro-stat span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.agro-stat small {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

/* ---------- Preview frame ---------- */
.agro-hero-preview {
  display: flex;
  justify-content: center;
}
.agro-preview-frame {
  background: #1a2e1a;
  border-radius: 16px;
  padding: 10px;
  box-shadow:
    0 20px 60px rgba(46, 125, 50, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 500px;
}
.agro-preview-bar {
  display: flex;
  gap: 6px;
  padding: 0 0 8px 4px;
}
.agro-preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a4a4a;
}
.agro-preview-bar span:nth-child(1) {
  background: #ff5f57;
}
.agro-preview-bar span:nth-child(2) {
  background: #febc2e;
}
.agro-preview-bar span:nth-child(3) {
  background: #28c840;
}
.agro-preview-carousel {
  border-radius: 8px;
  overflow: hidden;
}
.agro-preview-slides {
  position: relative;
}
.agro-preview-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.7s ease;
  position: absolute;
  top: 0;
  left: 0;
}
.agro-preview-img:first-child {
  position: relative;
}
.agro-preview-img.active {
  opacity: 1;
  z-index: 1;
}
.agro-preview-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 0 2px;
}
.agro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4a3a;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.agro-dot.active {
  background: #4caf50;
}

/* ---------- Steps (How it works) ---------- */
.agro-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.agro-step {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ddeedd;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.05);
  transition: transform 0.18s;
}
.agro-step:hover {
  transform: translateY(-4px);
}
.agro-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.25);
}
.agro-step h6 {
  font-weight: 700;
  color: var(--green-dk);
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.agro-step p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Sections ---------- */
.agro-section {
  padding: 52px 20px;
}
.agro-section-alt {
  background: #fff;
  border-top: 1px solid #e2ede2;
  border-bottom: 1px solid #e2ede2;
}
.agro-container {
  max-width: 1050px;
  margin: 0 auto;
}
.agro-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  text-align: center;
}
.agro-divider {
  width: 48px;
  height: 3px;
  background: #4caf50;
  border-radius: 2px;
  margin: 10px auto 32px;
}

/* ---------- CTA section ---------- */
.agro-cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dk) 100%);
  color: #fff;
}
.agro-cta-section .agro-section-title {
  color: #fff;
}
.agro-cta-section .agro-divider {
  background: rgba(255, 255, 255, 0.4);
}
.agro-cta-section .agro-cta-text {
  color: rgba(255, 255, 255, 0.85);
}
.agro-btn-lg {
  font-size: 1.1rem;
  padding: 16px 48px;
}
.agro-cta-section h2 {
  color: #fff;
  font-weight: 800;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 10px;
}

/* ---------- Feature grid ---------- */
.agro-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.agro-feat-card {
  background: var(--green-lt);
  border-radius: 14px;
  border: 1px solid var(--green-md);
  padding: 28px 22px;
  text-align: center;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.agro-feat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(46, 125, 50, 0.13);
}
.agro-feat-icon {
  font-size: 2.2rem;
  background: #fff;
  border-radius: 50%;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}
.agro-feat-card h5 {
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.agro-feat-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- CTA ---------- */
.agro-cta {
  text-align: center;
}
.agro-cta-text {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.97rem;
}

/* ---------- Run button ---------- */
.agro-btn-run {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(46, 125, 50, 0.28);
  transition:
    background 0.2s,
    transform 0.15s;
}
.agro-btn-run:hover {
  background: var(--green-dk);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.agro-footer {
  background: #fff;
  border-top: 1px solid #d9ead9;
  padding: 24px;
  text-align: center;
  color: #aaa;
  font-size: 0.83rem;
}

/* ---------- Carousel (keep existing js-driven logic) ---------- */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.slides {
  position: relative;
  width: 100%;
  height: auto;
}
.slides img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slides img:first-child {
  position: relative;
}
.slides img:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
}
.slides img.active {
  opacity: 1 !important;
  z-index: 1;
}

@media (max-width: 900px) {
  .agro-hero-inner {
    grid-template-columns: 1fr;
  }
  .agro-hero-preview {
    order: -1;
  }
  .agro-preview-frame {
    max-width: 100%;
  }
  .agro-hero-text {
    text-align: center;
  }
  .agro-hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .agro-hero-actions {
    justify-content: center;
  }
  .agro-hero-stats {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .agro-hero {
    padding: 36px 16px 28px;
  }
  .agro-hero-text p {
    max-width: 100%;
  }
  .agro-hero-stats {
    gap: 18px;
  }
  .agro-section {
    padding: 36px 16px;
  }
  .agro-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.body-bg {
  position: relative;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #ffffff;
  /* fallback color */
  color: #072033;
  min-height: 100vh;
}

/* background image applied via a full-bleed pseudo element so content keeps readable color */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* image lives in `assets/images/`; stylesheet is `assets/css/styles.css` */
  background-image: url('../images/bg-img.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  /* show image clearly; reduce if too strong */
  z-index: -1;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}

.brand {
  text-align: center;
  text-shadow: 0 5px 20px rgba(16, 20, 80, 0.5);
}

.brand h1 {
  margin: 0;
  font-size: 32px;
  color: #ffffff;
}

.brand .tag {
  margin: 10px 0 10;
  color: #ffffff;
  font-size: 18px;
}

.header-image {
  width: 100%;
  /* max-width: 1000px; */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
  background-color: rgba(29, 34, 66, 0.851);
}

.header-image img {
  width: 100%;
  height: auto; /* responsive full height */
  display: block;
}

.container {
  padding: 10px;
  max-width: 1050px;
  margin: 0 auto;
  color: #072033;
}

section {
  margin-bottom: 28px;
}

section h2 {
  background: linear-gradient(180deg, #4fb0e4, #2b8ab8);
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
}

section h3 {
  margin-top: 12px;
}

ul {
  margin: 12px 0 0 18px;
  color: #073047;
}

.cards {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.card {
  flex: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.95));
  color: #063a4a;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.site-footer {
  padding: 18px;
  text-align: center;
  color: #012;
  opacity: 0.85;
}

@media (max-width: 800px) {
  .header-image img {
    height: 160px;
  }

  .cards {
    flex-direction: column;
  }
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: visible; /* allow full image height to show */
}
.slides {
  position: relative;
  width: 100%;
  height: auto; /* auto height to show full image proportionally */
}
.slides img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slides img:first-child {
  position: relative; /* so slides container gets its height */
}
.slides img:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
}
.slides img.active {
  opacity: 1 !important;
  z-index: 1;
}

.btn {
  display: inline-block;
  font-weight: 500;
  color: #fff;
  background-color: #00a41e;
  border: none;
  border-radius: 6px;
  padding: 30px 22px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.btn:hover,
.btn:focus {
  background-color: #13c433;
  color: #fff;
  text-decoration: none;
}
