/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Noto+Sans+Devanagari:wght@100;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-cream: #EDE4D0;
  --bg-light-cream: #F2EDE0;
  --dark-green: #1E4A10;
  --orange: #D9571A;
  --gold: #C9A020;
  --text-dark: #1A1A14;
  --text-muted: #4A4A3A;
  --whatsapp-green: #25D366;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-gold { color: var(--gold); }
.text-white { color: #fff; }

.bg-cream { background-color: var(--bg-cream); }
.bg-light-cream { background-color: var(--bg-light-cream); }
.bg-dark-green { background-color: var(--dark-green); color: #fff; }
.bg-orange { background-color: var(--orange); color: #fff; }

.section-padding { padding: 80px 0; }

.small-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}
.btn-primary {
  background-color: var(--dark-green);
  color: #fff;
}
.btn-primary:hover { background-color: #15340b; }
.btn-outline-white {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline-white:hover {
  background-color: #fff;
  color: var(--dark-green);
}
.btn-outline {
  background-color: transparent;
  color: var(--dark-green);
  border: 1px solid var(--dark-green);
}
.btn-outline:hover {
  background-color: var(--dark-green);
  color: #fff;
}
.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #fff;
}
.btn-whatsapp:hover { background-color: #1ebd5a; }
.btn-full { width: 100%; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--bg-cream);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 15px 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-circle {
  width: 50px;
  height: 50px;
  border: 2px solid var(--dark-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-brand-text .bold {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark-green);
  display: block;
}
.nav-brand-text .small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--orange);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--orange);
}

/* Hero Sections */
.hero {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 74, 16, 0.75); /* Dark green overlay */
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-badge {
  background-color: var(--orange);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}
.hero p.subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.9);
}

/* Watermarks */
.watermark-hindi {
  position: absolute;
  font-family: var(--font-hindi);
  font-size: 15rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.watermark-number {
  position: absolute;
  font-size: 12rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  top: -40px;
  left: -20px;
  pointer-events: none;
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card-img {
  position: relative;
  height: 250px;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-top-left {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 12px;
  border-radius: 15px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-price {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #fff;
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-weight: 700;
}
.product-card-body {
  padding: 25px;
  position: relative;
}
.orange-bar {
  width: 40px;
  height: 3px;
  background-color: var(--orange);
  margin-bottom: 15px;
}
.product-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}
.product-card-subtitle {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.product-card-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-actions {
  display: flex;
  gap: 10px;
}

/* specific badge colors */
.badge-herbal-tea { background-color: #C44E1A; }
.badge-superfood { background-color: #3B4A1A; }
.badge-blend { background-color: #5C2A40; }
.badge-rejuvenating { background-color: #C44E1A; }
.badge-purifying { background-color: #1E5A14; }
.badge-therapeutic { background-color: #3B4A1A; }
.badge-spice { background-color: #B83A1A; }

/* Filter Pills */
.filter-pills {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 8px 20px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-pill.active, .filter-pill:hover {
  background: var(--dark-green);
  color: #fff;
  border-color: var(--dark-green);
}

/* Modals & Popups */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.modal-body { padding: 30px; }

/* Features */
.features-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 40px;
}
.feature-box {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Accordion */
.faq-accordion .faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.faq-question {
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.faq-answer {
  padding-bottom: 20px;
  display: none;
  color: var(--text-muted);
}
.faq-answer.active { display: block; }
.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-sans);
}
textarea.form-control { height: 120px; resize: vertical; }
select.form-control { appearance: none; }
select.form-control option[value=""] { color: var(--orange); } /* Pseudo approach for placeholder */

/* Footer */
.footer {
  background-color: var(--dark-green);
  color: #fff;
  padding: 60px 0 20px;
  border-top: 4px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-logo .logo-circle { border-color: #fff; }
.footer p { color: rgba(255,255,255,0.7); }
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.social-icon:hover { border-color: #fff; background: #fff; color: var(--dark-green); }
.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--gold);
}
.footer-links li {
  margin-bottom: 10px;
  list-style: none;
}
.footer-links a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* Responsiveness */
@media (max-width: 768px) {
  .grid-3, .grid-2, .footer-grid, .features-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .nav-links { display: none; /* simple mobile nav hide for now */ }
  .hero h1 { font-size: 2.5rem; }
  .watermark-hindi { font-size: 8rem; }
}

/* ---- Logo as image ---- */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* ---- Why Choose Us exact layout ---- */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.why-choose-item {
  padding: 30px 40px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.15);
  position: relative;
}
.why-choose-item:first-child { border-left: none; }
.why-choose-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.why-choose-item h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.why-choose-item p {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto;
}

/* ---- Products grid equal height ---- */
#products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

/* ---- Product card price ---- */
.product-price-main {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.product-price-main .per-weight {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Prevent layout shift - reserve space for images before they load */
.product-card-img {
  background: linear-gradient(135deg, #f0ede5 25%, #e8e3d8 50%, #f0ede5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.product-card-img img {
  position: relative;
  z-index: 1;
}

/* Skeleton shimmer while images load */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Stop shimmer once image loads */
.product-card-img img[src] {
  background: none;
  animation: none;
}

/* GPU-accelerated hover transforms */
.product-card {
  will-change: transform;
  transform: translateZ(0);
}

/* Optimize font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Hide off-screen images until scroll */
img[loading="lazy"] {
  content-visibility: auto;
}

/* Smooth image fade-in on load */
img {
  transition: opacity 0.3s ease;
}
img:not([src]), img[src=""] {
  opacity: 0;
}

/* ============================================
   COMPLETE MOBILE RESPONSIVE FIX
   ============================================ */

/* --- Hamburger button (hidden on desktop) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--dark-green);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- TABLET (max 992px) ---- */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  #products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- MOBILE (max 768px) ---- */
@media (max-width: 768px) {

  /* Navbar */
  .navbar { padding: 10px 0; }
  .navbar .container { padding: 0 16px; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1050;
    font-size: 1.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; font-weight: 600; }
  .nav-brand img { height: 52px !important; }

  /* Hero */
  .hero { padding: 70px 0 50px; }
  .hero h1 { font-size: 2.2rem !important; }
  .hero p.subtitle { font-size: 1rem !important; }
  .hero .container > div[style*="flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .hero .btn { width: 100%; text-align: center; }

  /* Grids → single column */
  .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Products grid → 1 column on phone */
  #products-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 4px;
  }

  /* Product cards full width */
  .product-card { width: 100%; }
  .product-card-img { height: 220px; }
  .product-card-body { padding: 18px; }
  .product-card-body h3 { font-size: 1.3rem; }
  .product-actions { flex-direction: column; gap: 8px; }
  .product-actions .btn { width: 100%; }

  /* Filter pills - scrollable */
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pill { white-space: nowrap; flex-shrink: 0; }

  /* Section padding */
  .section-padding { padding: 50px 0; }
  h2 { font-size: 1.8rem !important; }

  /* Why Choose Us numbers */
  .watermark-number { font-size: 2.5rem !important; }
  .watermark-hindi { font-size: 6rem !important; }

  /* Footer */
  .footer { padding: 40px 0 20px; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .footer-logo img { height: 44px !important; }

  /* Footer tagline */
  .footer-bottom { font-size: 0.8rem; }

  /* Features row */
  .features-row {
    flex-direction: column !important;
    gap: 20px;
  }

  /* Modals */
  .modal-content { margin: 10px; border-radius: 12px; }
  .modal-body { padding: 20px 16px; }

  /* Contact form grid */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Container padding */
  .container { padding: 0 16px; }

  /* About page circles/grids */
  div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: 2fr 1fr 1fr 1.5fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---- SMALL PHONES (max 400px) ---- */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.8rem !important; }
  .hero-badge { font-size: 0.75rem; padding: 4px 12px; }
  #products-grid { gap: 15px; }
  .product-card-img { height: 190px; }
}
