/* ============================================
   WHEATRON — HOME PAGE STYLES
   ============================================ */

/* ── INTRO OVERLAY ── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* Warm parchment-wheat background — natural, not a dark cave */
  background: #f7f0e2;
  display: none; /* shown by JS */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Fade-out transition */
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
}
#intro-overlay.intro-exit {
  opacity: 0;
}

/* Soft radial warm light at centre — like morning sun through haze */
.intro-bg-blur {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 54%, rgba(210,170,80,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── SVG WHEAT STALKS ── */
.intro-stalks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Left stalks rise from bottom */
.stalk-left {
  transform-origin: bottom left;
  animation: stalk-rise-left 1.6s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
@keyframes stalk-rise-left {
  from { opacity: 0; transform: translateY(60px) rotate(-4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* Right stalks rise from bottom */
.stalk-right {
  transform-origin: bottom right;
  animation: stalk-rise-right 1.6s cubic-bezier(0.22,1,0.36,1) 0.5s both;
}
@keyframes stalk-rise-right {
  from { opacity: 0; transform: translateY(60px) rotate(4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* Seed grains drift in gently */
.seed-drift {
  animation: seeds-in 2s ease 1.2s both;
}
@keyframes seeds-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Individual seeds have a gentle float */
.seed { animation: seed-float 4s ease-in-out infinite alternate; }
.s1 { animation-delay: 0s;    animation-duration: 4.2s; }
.s2 { animation-delay: 0.6s;  animation-duration: 3.8s; }
.s3 { animation-delay: 1.1s;  animation-duration: 4.6s; }
.s4 { animation-delay: 0.3s;  animation-duration: 5s;   }
.s5 { animation-delay: 0.9s;  animation-duration: 4.3s; }
@keyframes seed-float {
  from { transform: translateY(0) rotate(var(--r, -20deg)); }
  to   { transform: translateY(-12px) rotate(var(--r, -20deg)); }
}

/* ── LOGO CARD ── */
.intro-card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Card fades in after stalks are visible */
  animation: card-in 1s cubic-bezier(0.22,1,0.36,1) 0.9s both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-divider-top,
.intro-divider-bottom {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b8973c, transparent);
  animation: divider-expand 0.8s ease 1.5s forwards;
}
.intro-divider-top  { margin-bottom: 28px; }
.intro-divider-bottom { margin-top: 24px; }
@keyframes divider-expand {
  to { width: 180px; }
}

.intro-logo-img {
  height: 88px;
  width: auto;
  /* Keep logo natural colour — no invert */
  display: block;
  margin: 0 auto 14px;
  /* Subtle entrance */
  animation: logo-settle 1.2s cubic-bezier(0.22,1,0.36,1) 1s both;
}
@keyframes logo-settle {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.intro-wordmark {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--green-deep);
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: card-in 1s ease 1.3s both;
}

.intro-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: #a0892e;
  text-transform: uppercase;
  animation: card-in 1s ease 1.5s both;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10,35,4,0.78) 0%,
    rgba(20,60,10,0.55) 50%,
    rgba(10,35,4,0.3) 100%
  );
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(107,179,63,0.2);
  border: 1px solid rgba(107,179,63,0.4);
  color: var(--green-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-family: var(--font-accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-title {
  color: var(--white);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-title em {
  font-style: italic;
  color: var(--green-light);
}
.hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.hero-controls {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-prev, .hero-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all var(--dur-fast);
}
.hero-prev:hover, .hero-next:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: scale(1.08);
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all var(--dur-mid) var(--ease);
}
.hero-dot.active {
  background: var(--green-light);
  width: 28px;
  border-radius: 4px;
}

.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 48px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-family: var(--font-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(0.3); opacity: 0.3; }
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--green-mid);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── ABOUT INTRO ── */
.about-intro {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-images {
  position: relative;
  height: 520px;
}
.about-img-main {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(30,92,14,0.18);
}
.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.about-img-main:hover img { transform: scale(1.04); }
.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(30,92,14,0.25);
  border: 4px solid var(--white);
}
.about-img-secondary img { width: 100%; height: 150px; object-fit: cover; }
.about-badge {
  background: var(--white);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-badge-icon { font-size: 1.4rem; }
.about-badge strong { display: block; font-size: 0.85rem; color: var(--text-dark); }
.about-badge span { font-size: 0.75rem; color: var(--text-muted); }

.about-features { display: flex; flex-direction: column; gap: 20px; }
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-feature h4 { font-size: 0.95rem; margin-bottom: 3px; }
.about-feature p { font-size: 0.87rem; margin: 0; }

/* ── PRODUCTS SECTION ── */
.products-section {
  padding: var(--section-pad) 0;
  position: relative;
  background: var(--wheat-warm);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card { background: var(--white); }
.product-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green-light);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-accent);
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
}
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 1.3rem; margin: 6px 0 10px; }
.product-card-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 4px;
}
.spec { text-align: center; }
.spec span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.spec strong { font-size: 0.88rem; color: var(--green-dark); }

/* ── WHY SECTION ── */
.why-section {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(30,92,14,0.15);
}
.why-image img { width: 100%; height: 520px; object-fit: cover; }
.why-image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,35,4,0.85), transparent);
  padding: 30px 24px 20px;
  color: white;
}
.why-image-caption strong { display: block; font-size: 1.1rem; }
.why-image-caption span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--green-muted);
}
.why-text h4 { font-size: 1rem; margin-bottom: 4px; }
.why-text p { font-size: 0.88rem; margin: 0; color: var(--text-muted); }

/* ── NUTRITION SECTION ── */
.nutrition-section {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.nutrition-card {
  background: var(--green-pale);
  border: 1px solid var(--green-muted);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--dur-mid) var(--ease);
}
.nutrition-card:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(74,156,34,0.25);
}
.nutrition-card:hover h3,
.nutrition-card:hover p { color: white; }
.nutrition-icon { font-size: 2.5rem; margin-bottom: 16px; }
.nutrition-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.nutrition-card p { font-size: 0.88rem; margin: 0; }

/* ── GALLERY PREVIEW ── */
.gallery-preview {
  padding: var(--section-pad) 0;
  background: var(--wheat-warm);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  height: 480px;
}
.gallery-lg { grid-row: span 2; }
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  flex: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,50,5,0);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background var(--dur-mid);
}
.gallery-item:hover .gallery-overlay { background: rgba(15,50,5,0.5); }
.gallery-overlay span {
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--dur-mid);
}
.gallery-item:hover .gallery-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA SECTION ── */
.cta-section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-deep) 60%, var(--blue-mid) 100%);
}
.cta-content {
  text-align: center;
  color: white;
  max-width: 680px;
  margin: 0 auto;
}
.cta-content h2 { color: white; font-size: 2.4rem; margin-bottom: 16px; }
.cta-content h2 em { color: var(--green-light); }
.cta-content p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.btn-whatsapp {
  background: #25d366;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--dur-mid) var(--ease);
}
.btn-whatsapp:hover { background: #1ebe5e; transform: translateY(-2px); }
.cta-contact-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--dur-fast);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover { background: var(--green-mid); color: white; border-color: var(--green-mid); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-images { height: 360px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-scroll { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .nutrition-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery-lg { grid-row: 1; grid-column: 1 / -1; height: 220px; }
  .gallery-col { display: grid; grid-template-columns: 1fr; }
  .gallery-item { height: 160px; }
  .cta-contact-info { flex-direction: column; gap: 10px; }
  .about-img-secondary { display: none; }
}
