/* ==========================================================================
   FAMILY CHOICE - MASTER DESIGN SYSTEM (FAST & SNAPPY NATIVE SCROLL)
   Premium Eco-Luxury FMCG Brand Experience
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Urbanist:wght@500;600;700;800;900&display=swap');

:root {
  /* Brand Core Palette */
  --primary: #2E7D32;
  --primary-dark: #1b4d21;
  --primary-light: #4caf50;
  --primary-pale: #ebf7ee;
  --primary-glow: rgba(46, 125, 50, 0.28);
  
  /* Deep Forest Themes */
  --forest-950: #05140d;
  --forest-900: #081d13;
  --forest-850: #0d2a1c;
  --forest-800: #143827;
  --forest-border: rgba(255, 255, 255, 0.1);
  --forest-text-muted: #8ea89a;

  /* Ambient Warm Off-Whites & Creams */
  --bg-main: #FAFAF7;
  --bg-cream: #F3EFE6;
  --bg-soft: #F2F6F3;
  --surface: #FFFFFF;
  --surface-muted: #F7FAF7;
  
  /* Accents & Contrast */
  --accent: #E65100;
  --accent-warm: #FF7E33;
  --accent-glow: rgba(230, 81, 0, 0.25);
  
  /* Text & Hierarchy */
  --text-primary: #121F17;
  --text-secondary: #4A5D52;
  --text-muted: #73877B;
  --text-on-dark: #F3F7F4;
  --text-on-dark-dim: #A1B5A9;
  
  /* Borders & Glass */
  --border-light: rgba(18, 31, 23, 0.08);
  --border-medium: rgba(18, 31, 23, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-dark-bg: rgba(8, 29, 19, 0.75);
  --glass-dark-border: rgba(255, 255, 255, 0.08);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(18, 31, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(18, 31, 23, 0.08);
  --shadow-lg: 0 16px 40px rgba(18, 31, 23, 0.12);
  --shadow-xl: 0 24px 60px rgba(18, 31, 23, 0.16);
  --shadow-glow: 0 0 35px var(--primary-glow);

  /* Typography */
  --font-heading: 'Urbanist', 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cinzel', serif;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-norm: 0.25s;

  /* Layout */
  --container-max: 1320px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Reset & Box Sizing & Mobile Touch Optimizations */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  cursor: auto;
}

/* Form fields & typography selection */
input, textarea, select, p, span, h1, h2, h3, h4, h5, h6, li, td, th, blockquote {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Prevent unwanted selection on interactive buttons */
button, .btn-primary, .btn-secondary, .badge-pill, .footer-accordion-btn {
  user-select: none;
  -webkit-user-select: none;
}

/* Instant Crisp Image Rendering (Zero Flicker, Zero Reload Feel) */
img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  opacity: 1;
}

img.is-loading-cutout {
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

img.is-img-loaded {
  opacity: 1 !important;
}

a, a:hover, a:focus, a:active,
button, button:focus, button:active,
[role="button"], [tabindex] {
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-focus-ring-color: transparent !important;
  outline: none !important;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-warm), #4caf50);
  z-index: 1000;
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(46, 125, 50, 0.5);
}

/* GPU-Accelerated Lightweight Section Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.display-title {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
}

.section-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0.85rem auto 0;
}

.lead-text {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Base Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-spacing {
  padding-top: clamp(70px, 8vw, 120px);
  padding-bottom: clamp(70px, 8vw, 120px);
  position: relative;
}

.section-spacing-sm {
  padding-top: clamp(40px, 5vw, 70px);
  padding-bottom: clamp(40px, 5vw, 70px);
}

/* Section Header Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(46, 125, 50, 0.15);
  margin-bottom: 1.25rem;
}

.badge-pill-dark {
  background: rgba(46, 125, 50, 0.2);
  color: #7ee096;
  border-color: rgba(76, 175, 80, 0.3);
}

/* Button System */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e5a23 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all var(--duration-norm) var(--ease-out-expo);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s var(--ease-out-expo);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 125, 50, 0.35);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-norm) var(--ease-out-expo);
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(230, 81, 0, 0.3);
  transition: all var(--duration-norm) var(--ease-out-expo);
  border: none;
  cursor: pointer;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 81, 0, 0.4);
}

/* Animated SVG Arrow Icon & Amazon Icon */
.btn-arrow-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.amazon-btn-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-right: 2px;
}

.btn-primary:hover .btn-arrow-icon,
.btn-secondary:hover .btn-arrow-icon,
.btn-accent:hover .btn-arrow-icon,
.trio-product-item:hover .btn-arrow-icon,
.modal-bottom-buy-btn:hover .btn-arrow-icon {
  transform: translateX(4px);
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.glass-panel-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Subtle Organic Background Blobs */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.blob-green {
  background: radial-gradient(circle, rgba(76, 175, 80, 0.35) 0%, rgba(46, 125, 50, 0) 70%);
}

.blob-warm {
  background: radial-gradient(circle, rgba(255, 179, 0, 0.25) 0%, rgba(255, 126, 51, 0) 70%);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--forest-900);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(76, 175, 80, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.3s var(--ease-out-expo);
  max-width: 420px;
}

.toast.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

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

/* ==========================================================================
   PAGE PRELOADER (ULTRA-FAST & SNAPPY LOADING SCREEN)
   ========================================================================== */
.page-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 999999;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f4fbf6 60%, #e8f7ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  pointer-events: auto;
}

.page-preloader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(1.02);
  pointer-events: none !important;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  position: relative;
  z-index: 2;
  animation: preloaderFloat 3s ease-in-out infinite alternate;
}

.preloader-logo-ring {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.preloader-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #2e7d32, #66bb6a, #38bdf8, #81c784, #2e7d32);
  animation: preloaderSpin 2s linear infinite;
  filter: blur(10px);
  opacity: 0.75;
}

.preloader-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.25);
  position: relative;
  z-index: 2;
}

.preloader-brand-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--forest-950);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.preloader-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.preloader-progress-track {
  width: 220px;
  height: 6px;
  background: rgba(46, 125, 50, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #4caf50 50%, #38bdf8 100%);
  border-radius: var(--radius-full);
  transition: width 0.25s ease-out;
}

.preloader-status {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

@keyframes preloaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloaderFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* Floating WhatsApp Quick Action (Liquid Frosted Glass & Reflection) */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 995;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: rgba(8, 29, 19, 0.72);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(20, 56, 39, 0.45) 50%, rgba(8, 29, 19, 0.82) 100%);
  backdrop-filter: blur(22px) saturate(200%);
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  color: #FFFFFF;
  padding: 10px 20px 10px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 25px rgba(37, 211, 102, 0.22), inset 0 1px 1.5px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(13, 42, 28, 0.82);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(37, 211, 102, 0.25) 50%, rgba(8, 29, 19, 0.9) 100%);
  border-color: rgba(37, 211, 102, 0.5);
  border-top-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42), 0 0 32px rgba(37, 211, 102, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  color: #FFFFFF;
}

/* Diagonal Liquid Glass Light Gleam / Reflection Sweep */
.floating-whatsapp::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: glassSheenSweep 4.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes glassSheenSweep {
  0%, 65% {
    left: -60%;
  }
  100% {
    left: 140%;
  }
}

.floating-whatsapp-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 0 12px rgba(37, 211, 102, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.floating-whatsapp:hover .floating-whatsapp-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(37, 211, 102, 0.28);
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp-svg {
  width: 22px;
  height: 22px;
  fill: #25D366;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s ease;
}

.floating-whatsapp-text {
  line-height: 1;
  color: #FFFFFF;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(37, 211, 102, 0.5);
  animation: whatsappGlassPulse 2.8s infinite ease-out;
  pointer-events: none;
}

@keyframes whatsappGlassPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    padding: 6px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
  .floating-whatsapp-text {
    display: none;
  }
  .floating-whatsapp-icon {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .floating-whatsapp-svg {
    width: 26px;
    height: 26px;
  }
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #scroll-progress { display: none; }
  .page-preloader { display: none !important; }
  .floating-whatsapp::before { display: none; }
}
