/**
 * YKC Agro India Private Limited
 * Colors: Deep Emerald #064e3b, Gold (bright) #e8b923, Off-White #fdfbf7
 */

:root {
  --emerald: #064e3b;
  --gold: #e8b923;
  --offwhite: #fdfbf7;
}

/* ----- Hero: full-height, zoom animation on background ----- */
.hero-full {
  min-height: 100vh;
}

.hero-zoom-bg {
  background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80');
  background-size: cover;
  background-position: center;
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.9s ease-out 0.4s forwards;
}

.hero-desc {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease-out 0.6s forwards;
}

.hero-desc + .flex {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease-out 0.8s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- About: reveal heading (fade-in-up) ----- */
.about-reveal-heading {
  opacity: 0;
  transform: translateY(30px);
  animation: aboutReveal 1s ease-out 0.3s forwards;
}

@keyframes aboutReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- About ref style: image left, content right, stat circles, wheat decorative ----- */
.about-ref {
  position: relative;
}

.about-ref-grid {
  align-items: stretch;
}

.about-ref-image-wrap {
  position: relative;
}

.about-ref-stat {
  position: absolute;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 0.75rem;
}

.about-ref-stat-1 {
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(6, 78, 59, 0.12);
}

.about-ref-stat-2 {
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  background: rgba(6, 78, 59, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.6rem;
  min-width: 120px;
  min-height: 120px;
  box-sizing: border-box;
}

.about-ref-stat-2 span {
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
  line-height: 1.2;
}

@media (max-width: 1023px) {
  .about-ref-stat-2 {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin-top: 1rem;
    align-self: flex-start;
  }
}

.about-ref-tag {
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.15);
}

.about-ref-btn-more {
  border: 2px solid transparent;
}

.about-ref-play:hover {
  border-color: var(--emerald);
}

/* ----- About page: hero media frame + effects ----- */
.about-hero {
  min-height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-bg {
  animation: aboutHeroZoom 24s ease-out forwards;
}

@keyframes aboutHeroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.about-hero-overlay {
  background: linear-gradient(to bottom, rgba(6, 78, 59, 0.6) 0%, rgba(6, 78, 59, 0.82) 100%);
}

.about-hero-frame {
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  margin: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .about-hero-frame {
    margin: 2rem;
    border-radius: 1.5rem;
  }
}

.about-hero-title {
  opacity: 0;
  transform: translateY(24px);
  animation: aboutHeroReveal 0.9s ease-out 0.2s forwards;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.about-hero-frame p {
  opacity: 0;
  transform: translateY(16px);
  animation: aboutHeroReveal 0.8s ease-out 0.5s forwards;
}

@keyframes aboutHeroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About page: story image */
.about-story-image {
  transition: transform 0.4s ease;
}

.about-story-image:hover {
  transform: scale(1.02);
}

/* ----- Footer: dark theme + glassmorphism ----- */
.footer-glass {
  background: linear-gradient(160deg, #052e23 0%, #0a3d2f 50%, #064e3b 100%);
  color: white;
}

.footer-glass-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.footer-glass .ykc-logo-footer {
  height: 2.5rem;
}

/* Footer: use same gold as rest of site (var(--gold)) */
.footer-glass {
  --footer-gold: var(--gold);
}
.footer-col-heading {
  color: var(--footer-gold) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.footer-glass .text-gold,
.footer-glass a:hover.text-gold,
.footer-glass .hover\:text-gold:hover {
  color: var(--footer-gold) !important;
}
.footer-glass .bg-gold,
.footer-glass .hover\:bg-gold\/90:hover {
  background-color: var(--footer-gold) !important;
}
.footer-glass input:focus {
  border-color: var(--footer-gold);
  --tw-ring-color: var(--footer-gold);
}
.footer-glass .ykc-logo-footer text,
.footer-glass .ykc-logo-footer circle {
  fill: var(--footer-gold);
}
.footer-glass .ykc-logo-footer path {
  stroke: var(--footer-gold);
  fill: none;
}

/* Newsletter input in footer - ensure placeholder visible */
.footer-glass input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Logo ----- */
.ykc-logo {
  height: 2.5rem;
}

@media (min-width: 768px) {
  .ykc-logo {
    height: 2.75rem;
  }
}

/* ----- Header nav: hover = gold text + green underline ----- */
.nav-link {
  color: var(--emerald);
  opacity: 0.9;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: var(--gold) !important;
}
.nav-link:hover::after {
  width: 100%;
}

/* ----- Smooth scroll ----- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ----- Focus styles ----- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

/* ----- Mobile menu ----- */
#mobile-menu:not(.hidden) {
  animation: menuSlide 0.25s ease;
}

@keyframes menuSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Products page: sidebar (reference style) ----- */
.products-sidebar-card {
  background: linear-gradient(180deg, #faf8f5 0%, #f5f1eb 100%);
  position: sticky;
  top: 6rem;
}

.products-sidebar-head {
  background: rgba(255, 255, 255, 0.6);
}

.products-sidebar-icon {
  box-shadow: 0 0 0 2px var(--emerald);
}

.products-sidebar-group {
  padding: 0.25rem 0;
}

.products-sidebar-sep {
  height: 0;
  border-top: 1px dashed rgba(6, 78, 59, 0.25);
  margin: 0.25rem 0.75rem;
}

.products-sidebar-link {
  border: 1px solid transparent;
}

.products-sidebar-link:hover,
.products-sidebar-link-active {
  color: var(--gold) !important;
  background: rgba(232, 185, 35, 0.1);
}

.products-sidebar-link-active {
  border-color: rgba(232, 185, 35, 0.35);
}

/* ----- Products page: section = descriptive image + overlay text (premium) ----- */
.product-section-image-wrap {
  position: relative;
  min-height: 280px;
}

.product-section-img {
  display: block;
  transition: transform 0.6s ease;
}

.product-section-image-wrap:hover .product-section-img {
  transform: scale(1.03);
}

.product-section-overlay {
  pointer-events: none;
}

.product-section-content {
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ----- Product variety cards (image + 2-3 line description) – main USP ----- */
.product-variety-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-variety-card:hover {
  border-color: rgba(6, 78, 59, 0.2);
}

.product-variety-image {
  background: linear-gradient(135deg, #f5f1eb 0%, #ebe6df 100%);
}

.product-variety-card .product-variety-image img {
  display: block;
}
