:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(181, 127, 80, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(109, 140, 87, 0.14), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, #f5efe3 100%);
}

.reveal {
  opacity: 1;
  transform: none;
  will-change: transform, opacity;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.grain {
  position: relative;
  overflow: hidden;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 52, 43, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
}

.hero-card {
  transform-origin: center top;
}

.section-shell {
  position: relative;
}

.section-shell::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.5rem;
  width: 5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 77, 54, 0.45), transparent);
  opacity: 0.5;
}

.brand-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.brand-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
}

.brand-group {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.brand-pill {
  min-width: 220px;
  border: 1px solid rgba(31, 77, 54, 0.1);
  border-radius: 1.75rem;
  padding: 1.15rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 239, 227, 0.92));
  box-shadow: 0 18px 40px rgba(31, 77, 54, 0.08);
}

.brand-mark {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(60, 52, 43, 0.62);
}

.brand-upl .brand-mark {
  color: #1f4d36;
}

.brand-bayer .brand-mark {
  color: #3559a7;
}

.brand-syngenta .brand-mark {
  color: #17753d;
}

.brand-iffco .brand-mark {
  color: #c26c22;
}

.brand-rallis .brand-mark {
  color: #0f5d5f;
}

.brand-indofil .brand-mark {
  color: #4f7b34;
}

[data-card] {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

[data-card]:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 77, 54, 0.22);
  box-shadow: 0 24px 55px rgba(31, 77, 54, 0.12);
}

.testimonial-slider {
  position: relative;
}

.testimonial-slider::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 1.25rem auto;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(181, 127, 80, 0.16), transparent 68%);
  pointer-events: none;
}

.testimonial-track {
  display: flex;
  transition: transform 500ms ease;
}

.testimonial-slide {
  flex: 0 0 100%;
}

.testimonial-dots {
  display: flex;
  gap: 0.6rem;
}

.testimonial-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(31, 77, 54, 0.18);
  transition: transform 180ms ease, background-color 180ms ease;
}

.testimonial-dot.is-active {
  background: #1f4d36;
  transform: scale(1.1);
}

.faq-panel {
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gallery-card {
  overflow: hidden;
  border: 1px solid rgba(31, 77, 54, 0.1);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.75rem;
  box-shadow: 0 20px 60px rgba(31, 77, 54, 0.1);
}

.gallery-image {
  width: 100%;
  height: 16rem;
  border-radius: 1.25rem;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.03);
}

.gallery-card figcaption {
  padding: 0.9rem 0.35rem 0.2rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(60, 52, 43, 0.72);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card-featured {
    grid-column: span 2;
  }

  .gallery-card-featured .gallery-image {
    height: 24rem;
  }
}

@media (min-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-card-featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-card-featured .gallery-image {
    height: 100%;
    min-height: 32rem;
  }
}

@media (max-width: 640px) {
  .gallery-mobile-hidden {
    display: none;
  }

  .brand-marquee {
    overflow: visible;
    mask-image: none;
  }

  .brand-track {
    display: grid;
    width: 100%;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-group {
    display: contents;
    padding-right: 0;
  }

  .brand-group[aria-hidden="true"] {
    display: none;
  }

  .brand-pill {
    min-width: 0;
    padding: 1rem 1rem;
  }

  .brand-mark {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-ready .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .testimonial-track {
    transition: none;
  }
}
