:root {
  --forest: #0b3d2e;
  --forest-90: rgba(11, 61, 46, 0.9);
  --forest-light: #146b47;
  --gold: #cfb53b;
  --gold-80: rgba(207, 181, 59, 0.8);
  --light-bg: #f8faf9;
  --text: #222;
  --muted: #555;
  --card: #fff;
  --shadow-1: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 6px 20px rgba(11, 61, 46, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

/* HEADER / HERO */
.site-header {
  position: relative;
  min-height: 86vh;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 20px 160px;
  background: linear-gradient(var(--forest-90), var(--forest-90)),
    url('../assets/hero-farm.jpg') center / cover no-repeat;
  isolation: isolate;
}

/* Sticky Nav */
.topnav {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
  background: transparent;
  backdrop-filter: none;
  padding: 0 16px;
}

.topnav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(140%) blur(6px);
}

.topnav-inner {
  width: min(1140px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 70px;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.brand img:hover {
  transform: scale(1.05);
}

.brand .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

.topnav.scrolled .brand .name {
  color: var(--forest);
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav.primary a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
  transition: color 0.25s ease;
}

.topnav.scrolled nav.primary a {
  color: var(--forest);
}

nav.primary a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn:focus-visible {
  outline: 3px solid var(--gold-80);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.topnav.scrolled .btn-ghost {
  color: var(--forest);
  border-color: rgba(11, 61, 46, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.topnav.scrolled .btn-ghost:hover {
  background: rgba(11, 61, 46, 0.06);
}

/* hero content */
.hero-logo {
  width: 94px;
  height: auto;
  margin: 18px auto 16px;
  display: block;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #fff;
  max-width: 780px;
  margin: 0 auto 26px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/*  SECTIONS */
section {
  padding: 90px 20px;
  position: relative;
}

.section-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--forest);
  margin-bottom: 10px;
}

.sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 55px;
  font-size: 1rem;
}

/*  FEATURES  */
.features {
  background: var(--light-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.feature-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(11, 61, 46, 0.08);
}

.feature-card .icon {
  font-size: 1.8rem;
}

.feature-card h3 {
  color: var(--forest);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* CAPABILITIES */
.capabilities {
  background: #fff;
}

.caps-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cap-card {
  background: var(--card);
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: var(--shadow-1);
}

.cap-card h4 {
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 6px;
}

.cap-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cap-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(207, 181, 59, 0.18);
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 8px;
}

/*  ABOUT  */
#about {
  background: #fff;
}

#about .about-wrap {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

#about p {
  color: #444;
  font-size: 1rem;
  line-height: 1.75;
  margin: 8px auto 0;
}

/*  CTA  */
#cta {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 72%);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

#cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

#cta p {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 26px;
}

/* FOOTER  */
footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 42px 20px;
  font-size: 0.95rem;
}

footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .topnav {
    justify-content: flex-start;
  }

  nav.primary {
    display: none;
  }

  .site-header {
    padding: 120px 18px 140px;
  }
}

/* Logo Visibility */
.logo-light {
  display: block !important;
}

.logo-dark {
  display: none !important;
}

.topnav.scrolled .logo-light {
  display: none !important;
}

.topnav.scrolled .logo-dark {
  display: inline-block !important;
}

/* =========================================================
   AGRILINE – TEAM PAGE PROFESSIONAL REFINEMENT
   ========================================================= */

.team-section {
  background: var(--light-bg, #f8faf9);
  padding: 100px 20px;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.member-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 40px 28px 46px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.member-card .avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
}

.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.member-card:hover img {
  transform: scale(1.06);
}

.member-card .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--forest);
  font-size: 1.15rem;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.member-card .role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.member-card .desc {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 90%;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(
    rgba(11, 61, 46, 0.9),
    rgba(20, 107, 71, 0.9)
  ),
  url('../assets/hero-farm.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px 100px;
}

.hero h1,
.hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero p {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f3f3f3;
}

@media (max-width: 900px) {
  .hero {
    padding: 90px 20px;
  }
  .hero h1,
  .hero h2 {
    font-size: 1.8rem;
  }
  .team-grid {
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .member-card {
    padding: 30px 20px 36px;
  }
  .member-card .avatar {
    width: 110px;
    height: 110px;
  }
  .member-card .name {
    font-size: 1.05rem;
  }
  .member-card .desc {
    font-size: 0.9rem;
  }
}

/* =========================================================
   AGRILINE CONTACT PAGE — GOOGLE-LEVEL PROFESSIONAL DESIGN
   ========================================================= */

.contact-section {
  background: var(--light-bg, #f8faf9);
  padding: 110px 20px;
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 70px;
  max-width: 1180px;
  margin: 0 auto;
}

/* ===== LEFT: FORM ===== */
.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-left h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 26px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-weight: 600;
  color: var(--forest);
  font-size: 0.96rem;
  letter-spacing: 0.1px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.97rem;
  padding: 14px 16px;
  border: none;
  border-bottom: 2px solid #dcdcdc;
  background: transparent;
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
  transition: color 0.25s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
  color: transparent;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.contact-form .btn {
  align-self: flex-start;
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* Remove old container outlines or borders */
.contact-left form,
fieldset {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== RIGHT: INFO + MAP ===== */
.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-right h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 18px;
}

.contact-right address {
  font-style: normal;
  color: #333;
  line-height: 1.7;
  margin-bottom: 22px;
  font-size: 1rem;
}

.contact-right a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
}

.contact-right a:hover {
  text-decoration: underline;
}

.map-wrap {
  flex-grow: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.map-wrap:hover {
  transform: scale(1.01);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-right {
    order: -1;
  }

  .contact-left h3,
  .contact-right h3 {
    text-align: center;
  }

  .contact-form {
    align-items: center;
  }

  .contact-form .btn {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 80px 16px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.92rem;
  }
}


/* ================================
   PRIVACY & POLICY PAGE STYLING
   ================================ */

.hero {
  background: linear-gradient(var(--forest), var(--forest-light));
  color: #fff;
  text-align: center;
  padding: 80px 20px 100px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero .hero-sub {
  font-size: 1.1rem;
  color: #fff;
  margin-top: 0.5rem;
}


.policy-section {
  background: var(--light-bg);
  padding: 60px 20px 100px;
}

.policy-section .container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  box-shadow: var(--shadow-1);
  border-radius: 10px;
  padding: 40px 50px;
  line-height: 1.7;
}

.policy-section h2 {
  color: var(--forest);
  font-family: 'Montserrat', sans-serif;
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.policy-section p,
.policy-section li {
  font-size: 1rem;
  color: var(--text);
  margin-top: 1rem;
}

.policy-section ul {
  margin-left: 1.5rem;
  list-style-type: disc;
}

.policy-section a {
  color: var(--forest-light);
  text-decoration: underline;
}

.policy-section a:hover {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .policy-section .container {
    padding: 30px 25px;
  }
}


/* ================================
   CONTENT PAGES (About, Solutions)
   ================================ */

.content-section {
  background: var(--light-bg);
  padding: 60px 20px 100px;
}

.content-section .container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  box-shadow: var(--shadow-1);
  border-radius: 10px;
  padding: 40px 50px;
  line-height: 1.7;
}

.content-section h2 {
  color: var(--forest);
  font-family: 'Montserrat', sans-serif;
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.content-section p,
.content-section li {
  font-size: 1rem;
  color: var(--text);
  margin-top: 1rem;
}

.content-section ul {
  margin-left: 1.5rem;
  list-style-type: disc;
}

@media (max-width: 768px) {
  .content-section .container {
    padding: 30px 25px;
  }
}
