/* ===== Variables & Reset ===== */
:root {
  --green-900: #143824;
  --green-700: #1f6b41;
  --green-600: #2f8f5b;
  --green-100: #e7f3ec;
  --cream: #faf3e3;
  --accent: #e2762c;
  --accent-dark: #c75f1c;
  --ink: #1f2a24;
  --muted: #5f6f67;
  --border: #e3e8e4;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(20, 56, 36, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 56, 36, 0.16);
  --radius: 16px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.25;
  color: var(--green-900);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: 84px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(226, 118, 44, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-link {
  background: none;
  border: none;
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-link:hover {
  color: var(--accent);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

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

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.2;
}

.brand-name strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--green-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-600) 100%);
  color: var(--white);
  padding: 90px 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hero-art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-art img:hover {
  transform: translateY(-6px);
}

.hero-art .tile-2 {
  margin-top: 36px;
}

.hero-art .tile-4 {
  margin-top: -36px;
}

/* ===== Features strip ===== */
.features {
  background: var(--green-100);
  padding: 36px 0;
}

.features .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.feature h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.feature p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== About ===== */
.about {
  padding: 90px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 18px;
}

.about-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink);
}

.about-points li::before {
  content: "\2713";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 700;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ===== Products ===== */
.products {
  padding: 90px 0;
  background: var(--cream);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--green-600);
  color: var(--green-700);
}

.filter-btn.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.badge-fungicide {
  background: var(--green-100);
  color: var(--green-700);
}

.badge-insecticide {
  background: #fdece3;
  color: var(--accent-dark);
}

.badge-fertilizer {
  background: #e6f0fa;
  color: #2f6fa3;
}

.product-body h3 {
  font-size: 1.15rem;
}

.product-ingredient {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--green-600);
  font-weight: 600;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.product-spec {
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.pack-size {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--green-100);
  padding: 4px 12px;
  border-radius: 8px;
}

/* ===== Contact ===== */
.contact {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  padding: 90px 0;
}

.contact .section-tag {
  color: var(--cream);
}

.contact .section-title,
.contact .section-sub {
  color: var(--white);
}

.contact .section-sub {
  color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-card p, .contact-card a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.contact-card a:hover {
  color: var(--cream);
}

.contact-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.contact-note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.footer-brand span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.82rem;
  text-align: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 22, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: -56px;
}

.lightbox-next {
  right: -56px;
}

.lightbox-counter {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.lightbox-name {
  margin-top: 14px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.lightbox[data-count="1"] .lightbox-nav {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .features .container {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 60px 0;
  }

  .hero-art {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-art .tile-2,
  .hero-art .tile-4 {
    margin-top: 0;
  }

  .about, .products, .contact {
    padding: 60px 0;
  }
}
