/* YASH AGRO FARM – Farm-inspired palette & typography */
:root {
  --color-bg: #f8f6f1;
  --color-bg-dark: #2c2a26;
  --color-cream: #f5f0e8;
  --color-wheat: #e8dfd0;
  --color-sage: #6b7f5c;
  --color-sage-light: #8a9d7a;
  --color-earth: #5c4d3d;
  --color-earth-light: #8b7355;
  --color-text: #2c2a26;
  --color-text-muted: #5a564e;
  --color-accent: #7d9b69;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --space: 1.5rem;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(44, 42, 38, 0.08);
  --shadow-strong: 0 8px 32px rgba(44, 42, 38, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-sage);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-earth);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-wheat);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-earth);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-earth);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.main-nav {
  display: flex;
  gap: 2rem;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.main-nav a:hover {
  color: var(--color-sage);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(145deg, var(--color-cream) 0%, var(--color-wheat) 50%, var(--color-sage-light) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 80%, rgba(107, 127, 92, 0.15) 0%, transparent 50%),
    repeating-linear-gradient(
      105deg,
      transparent,
      transparent 60px,
      rgba(92, 77, 61, 0.03) 60px,
      rgba(92, 77, 61, 0.03) 61px
    );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 720px;
}

.hero-carousel-dots {
  display: none;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2rem;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-pillars {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
}

.hero-pillar {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.hero-pillar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-pillar-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-sage);
  color: #fff !important;
  box-shadow: var(--shadow);
}
.btn-primary:hover,
.btn-primary:focus {
  background: #4a3f32;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-sage), transparent);
  border-radius: 1px;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section.page-hero {
  padding-top: 6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--color-earth);
  margin: 0 0 1.5rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.about {
  background: var(--color-cream);
  box-shadow: var(--shadow);
}
.about-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Team */
.team {
  background: var(--color-cream);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.team-card {
  background: #fdfcfa;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.team-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.team-image {
  height: 200px;
  background: var(--color-sage-light);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.team-image-2 {
  background: var(--color-earth-light);
}
.team-image-3 {
  background: var(--color-sage);
}

.team-body {
  padding: 1rem 1.25rem;
}
.team-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-earth);
  margin: 0 0 0.25rem;
}
.team-role {
  font-size: 0.85rem;
  color: var(--color-sage);
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.team-bio {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}
.btn-link {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-sage);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.btn-link:hover {
  color: var(--color-earth);
  transform: translateX(4px);
}

/* Products */
.products {
  background: var(--color-cream);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  padding: 2rem 1.5rem;
  background: #fdfcfa;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--color-wheat);
  box-shadow: 0 2px 12px rgba(44, 42, 38, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  border-color: var(--color-sage-light);
  box-shadow: 0 8px 28px rgba(44, 42, 38, 0.14);
  transform: translateY(-4px);
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-earth);
  margin: 0 0 0.5rem;
}
.product-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Gallery */
.gallery {
  background: var(--color-cream);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
  background: var(--color-earth-light);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 42, 38, 0.9);
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}
.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Legality */
.legality {
  background: var(--color-cream);
  border-top: 1px solid var(--color-wheat);
}
.legality-text {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.gst-certificate {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem;
  background: #fdfcfa;
  border: 1px solid var(--color-wheat);
  border-radius: var(--radius);
}

.gst-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-earth);
  margin: 0 0 0.5rem;
}

.gst-intro {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.gst-details {
  margin: 0;
  display: grid;
  gap: 0.6rem 1rem;
}

.gst-details dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-sage);
}

.gst-details dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-earth);
  line-height: 1.5;
}

.gst-details dd + dt {
  margin-top: 0.5rem;
}

/* Contact */
.contact {
  background: var(--color-earth);
  color: var(--color-cream);
}
.contact .section-title {
  color: var(--color-cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-cream);
}
.contact-card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}
.contact-card a {
  color: var(--color-wheat);
}
.contact-card a:hover {
  color: #fff;
}

.contact-address {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.contact-address h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-cream);
}
.contact-address p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-wheat);
  line-height: 1.6;
}
.contact-address .address-near {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Footer */
.site-footer {
  padding: 1.5rem;
  text-align: center;
  background: var(--color-bg-dark);
  color: var(--color-wheat);
  font-size: 0.9rem;
}
.site-footer p {
  margin: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 42, 38, 0.7);
  cursor: pointer;
}

.modal-content {
  position: relative;
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  background: var(--color-cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  max-height: 85vh;
  overflow-y: auto;
}
.modal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-earth);
  margin: 0 0 0.25rem;
}
.modal-role {
  font-size: 0.95rem;
  color: var(--color-sage);
  font-weight: 500;
  margin: 0 0 1rem;
}
.modal-content p:last-of-type {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover {
  background: var(--color-cream);
  color: var(--color-earth);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-cream);
    flex-direction: column;
    padding: 5rem 1.5rem 1.5rem;
    gap: 1rem;
    border-left: 1px solid var(--color-wheat);
    box-shadow: -4px 0 24px rgba(44, 42, 38, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .hero {
    padding-top: 5rem;
  }
  .hero-pillars {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-pillars::-webkit-scrollbar {
    display: none;
  }
  .hero-pillar {
    flex: 0 0 100%;
    min-height: 0;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .hero-pillar img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    z-index: 10;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
  }
  .hero-dot.active {
    background: #fff;
    transform: scale(1.2);
  }
  .section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
