/* ===========================
   Shree Niladri Bhog — Custom Styles
   Premium Indian Heritage Rice Brand
   Gold · Black · Ivory Palette
   =========================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Brand Colors — Gold, Black, Ivory */
  --gold:          #C9A227;   /* Deep Gold — primary accent */
  --gold-light:    #D4AF37;   /* Warm Gold — highlights */
  --gold-dark:     #8B6914;   /* Dark Antique Gold — depth */
  --gold-pale:     #F0E6C0;   /* Pale Gold — tints/backgrounds */
  --black:         #1C1C1C;   /* Matte Black — headings, nav */
  --black-soft:    #2A2A2A;   /* Soft Black — secondary dark */
  --beige:         #FAF8F3;   /* Ivory White — page background */
  --beige-warm:    #F2E9D8;   /* Warm Beige — alternating sections */
  --beige-mid:     #EDE0C8;   /* Mid Beige — cards, dividers */
  --white:         #FFFFFF;
  --dark:          #1C1C1C;   /* alias for --black */
  --dark-soft:     #3A3530;
  --gray-600:      #5C5245;
  --gray-400:      #9C9080;
  --gray-200:      #E8DED0;

  /* Legacy Aliases (mapped to gold/black — keeps HTML classes working) */
  --emerald:       #B08D2F;   /* Antique Gold (was green) */
  --emerald-dark:  #1C1C1C;   /* Matte Black (was dark green) */
  --emerald-light: #C9A227;   /* Deep Gold (was light green) */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  background-color: var(--beige);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.glass-white {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 162, 39, 0.15);
}

.glass-dark {
  background: rgba(28, 28, 28, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 162, 39, 0.15);
}

/* ---------- Navbar ---------- */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  /* Always visible: dark top gradient so hamburger is never invisible */
  background: linear-gradient(180deg, rgba(15, 12, 8, 0.75) 0%, transparent 100%);
}

.navbar.scrolled {
  background: rgba(250, 248, 243, 0.97) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 2px 24px rgba(28, 28, 28, 0.08), 0 1px 0 rgba(201, 162, 39, 0.18);
}

.navbar.scrolled .nav-link {
  color: var(--dark) !important;
}

.navbar.scrolled .nav-logo-text {
  color: var(--black) !important;
}

.navbar.scrolled .nav-logo-subtext {
  color: var(--gray-600) !important;
  opacity: 0.85;
}

.navbar.scrolled .hamburger-line {
  background-color: var(--dark) !important;
}

.hamburger.active .hamburger-line {
  background-color: var(--white) !important;
}

/* Hamburger — always dark when nav is ivory (scrolled) */
.navbar.scrolled.menu-open .hamburger-line {
  background-color: var(--white) !important;
}

/* Dropdown hover behavior */
.group:hover .absolute {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.group:hover svg.transition-transform {
  transform: rotate(180deg);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--gold) !important;
}

/* ---------- Mobile Menu Backdrop ---------- */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Mobile Menu Drawer (right panel) ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(84vw, 340px);
  background: #181510;
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
  border-left: 1px solid rgba(201, 162, 39, 0.2);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ---------- Hero Sections ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 12, 8, 0.72) 0%,
    rgba(20, 15, 5, 0.42) 50%,
    rgba(10, 8, 4, 0.88) 100%
  );
  z-index: 1;
}

.hero-section > *:not(.hero-bg) {
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-inner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

/* Page hero (shorter, for inner pages) */
.page-hero {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 6, 0.65);
  z-index: 1;
}

.page-hero > *:not(.hero-bg) {
  position: relative;
  z-index: 2;
}

.page-hero-inner {
  width: 100%;
}

/* ---------- Gradient Backgrounds ---------- */
.bg-emerald-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

.bg-dark-gradient {
  background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
}

.bg-beige-gradient {
  background: linear-gradient(180deg, var(--beige) 0%, var(--beige-warm) 100%);
}

/* ---------- Cards ---------- */
.premium-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(201, 162, 39, 0.08);
  box-shadow: 0 4px 24px rgba(28, 28, 28, 0.05);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(201, 162, 39, 0.14);
  border-color: rgba(201, 162, 39, 0.3);
}

.feature-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(201, 162, 39, 0.1);
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(201, 162, 39, 0.12);
  border-color: var(--gold);
}

.feature-card .icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
  background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
  transform: rotate(5deg) scale(1.1);
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(201, 162, 39, 0.08);
  box-shadow: 0 4px 24px rgba(28, 28, 28, 0.05);
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 64px rgba(201, 162, 39, 0.18);
}

.product-card .product-image {
  height: 280px;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

/* ---------- Timeline ---------- */
.timeline-step {
  position: relative;
  text-align: center;
}

.timeline-step .step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-step:hover .step-number {
  background: linear-gradient(135deg, var(--black), var(--black-soft));
  transform: scale(1.15);
}

.timeline-connector {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  z-index: 1;
  opacity: 0.3;
}

/* ---------- Section Headings ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.section-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.section-title .highlight {
  color: var(--gold-dark);
}

.section-title .gold-highlight {
  color: var(--gold);
}

.gold-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.45);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.45);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.55);
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, #181510 0%, #0E0C08 100%);
  color: rgba(255, 255, 255, 0.65);
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.35), transparent);
}

/* ---------- Mineral Cards ---------- */
.mineral-card {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.07), rgba(176, 141, 47, 0.03));
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
}

.mineral-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(201, 162, 39, 0.12);
}

/* ---------- Quote Block ---------- */
.quote-block {
  position: relative;
  padding: 3rem;
  border-left: 4px solid var(--gold);
  background: rgba(201, 162, 39, 0.05);
  border-radius: 0 20px 20px 0;
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 6rem;
  font-family: 'Cinzel', serif;
  color: rgba(201, 162, 39, 0.18);
  line-height: 1;
}

/* ---------- Contact Form ---------- */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--dark);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}

.form-input::placeholder {
  color: var(--gray-400);
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes grain-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(20px) rotate(180deg); opacity: 0; }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Stat Counter ---------- */
.stat-number {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}

/* ---------- Tag badges ---------- */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  background: rgba(201, 162, 39, 0.15);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(201, 162, 39, 0.3);
  backdrop-filter: blur(8px);
}

/* ---------- Checklist Style ---------- */
.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
}

.check-item:last-child {
  border-bottom: none;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

/* ---------- Customer type cards ---------- */
.customer-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(201, 162, 39, 0.1);
  box-shadow: 0 2px 16px rgba(28, 28, 28, 0.04);
}

.customer-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.14);
}

.customer-card .card-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(176, 141, 47, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.customer-card:hover .card-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  transform: scale(1.1);
}

/* ---------- Map container ---------- */
.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
  }

  .page-hero {
    height: 260px;
  }

  .hero-inner {
    padding-top: 80px;
  }

  .premium-card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .timeline-connector {
    display: none;
  }

  .quote-block {
    padding: 2rem 1.5rem;
  }
}

/* ---------- Preloader (optional feel) ---------- */
.page-loaded .fade-in-element {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hamburger Animation ---------- */
.hamburger-line {
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ---------- Mobile Sticky Footer Fix ---------- */
#mobileStickyFooter {
  background-color: #181510 !important; /* Premium Matte Black / Antique Gold theme background */
  background: rgba(24, 21, 16, 0.97) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(201, 162, 39, 0.3) !important; /* Rich Gold Top Border Accent */
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4) !important;
}

#mobileStickyFooter a,
#mobileStickyFooter button {
  color: rgba(250, 248, 243, 0.85) !important; /* Ivory white with high legibility */
  transition: all 0.3s ease !important;
}

#mobileStickyFooter a:hover,
#mobileStickyFooter button:hover {
  color: #C9A227 !important; /* Antique Deep Gold on hover/active */
}

#mobileStickyFooter .w-px {
  background-color: rgba(201, 162, 39, 0.25) !important; /* Elegant gold-tinted dividers */
}

