/* ============================================
   NFL — Nature Fresh Life Organic
   Custom CSS — Animations, Organic Shapes, Effects
   ============================================ */

/* ── Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --nfl-green: #8CC63F;
  --nfl-dark-green: #2E7D32;
  --nfl-orange: #F7931E;
  --nfl-white: #FFFFFF;
  --nfl-light-gray: #F5F7F9;
  --nfl-dark: #1a1a2e;
  --nfl-text: #374151;
  --nfl-text-light: #6B7280;
  --nfl-green-gradient: linear-gradient(135deg, #2E7D32, #8CC63F);
  --nfl-orange-gradient: linear-gradient(135deg, #F7931E, #FDBA74);
  --nfl-hero-overlay: linear-gradient(135deg, rgba(46, 125, 50, 0.85), rgba(140, 198, 63, 0.7));
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* The off-canvas mobile menu is position:fixed, so it escapes body's
     overflow clip and scrolls <html> horizontally (white strip on mobile).
     Clipping here stops that page-level horizontal scroll on every page. */
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--nfl-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--nfl-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--nfl-dark);
  line-height: 1.2;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--nfl-light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--nfl-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--nfl-dark-green);
}

/* ── Leaf Pattern SVG Background ── */
.leaf-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 Q40 15 35 30 Q30 45 20 35 Q10 25 20 15 Q25 10 30 5Z' fill='%238CC63F' fill-opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.leaf-pattern-dark {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 8 Q55 20 48 40 Q40 58 25 45 Q12 32 25 18 Q32 12 40 8Z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── Organic Wave Dividers ── */
.wave-divider {
  position: relative;
  overflow: hidden;
}

.wave-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q360 0 720 30 Q1080 60 1440 30 L1440 60 L0 60Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
}

.wave-divider-green::after {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q360 0 720 30 Q1080 60 1440 30 L1440 60 L0 60Z' fill='%23F5F7F9'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
}

.wave-top {
  position: relative;
}

.wave-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q360 60 720 30 Q1080 0 1440 30 L1440 0 L0 0Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
  z-index: 1;
}

/* ── Glassmorphism Card ── */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  backface-visibility: hidden;
}

.glass-card:hover {
  transform: translateY(-6px);
}

.glass-card-dark {
  background: rgba(46, 125, 50, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(140, 198, 63, 0.2);
  border-radius: var(--radius-lg);
}

/* ── Product Card Styles ── */
.product-card {
  background: var(--nfl-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  /* Specific transitions (not `all`) + GPU hints = smooth hover lift */
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--nfl-green);
  margin-top: 10px;
}
.carousel-track {
  padding-top: 14px;
}

/* ── Flippable Product Card ── */
.flip-card {
  perspective: 1500px;
  height: 480px;
  transition: transform var(--transition-base);
}

.flip-card:hover {
  transform: translateY(-8px);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.15, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back {
  box-shadow: var(--shadow-xl);
  border-color: var(--nfl-green);
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-front .product-image {
  overflow: hidden;
}

.flip-card-front .product-image img {
  transition: transform 0.45s ease;
  transform-origin: center top;
}

.flip-card:hover .flip-card-front .product-image img {
  transform: scale(1.05);
}

/* Round flip toggle button (top-right of each face) */
.flip-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 125, 50, 0.2);
  color: var(--nfl-dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), color var(--transition-fast), transform 0.4s ease;
}

.flip-toggle:hover {
  background: var(--nfl-dark-green);
  color: #ffffff;
  transform: rotate(180deg);
}

.flip-card-back-body {
  flex: 1;
  overflow-y: auto;
}

/* ── Product language toggle (EN / ગુજરાતી) ── */
.lang-toggle {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-toggle button {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nfl-text);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.lang-toggle button.active {
  background: var(--nfl-dark-green);
  color: #ffffff;
}

.product-card .product-image {
  overflow: hidden;
  position: relative;
}

.product-card .product-image img {
  transition: transform 0.45s ease;
  /* Anchor the zoom to the top so a ~1rem gap is always kept above the image
     on hover (it grows downward instead of eating the top space). */
  transform-origin: center top;
}

/* Subtle, contained zoom — product packshots use object-contain, so a large
   scale made them look oversized/cropped. A gentle lift reads as premium. */
.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* ── Category Badge ── */
.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-organic { background: rgba(140, 198, 63, 0.15); color: #2E7D32; }
.badge-micronutrient { background: rgba(59, 130, 246, 0.12); color: #1D4ED8; }
.badge-soil { background: rgba(161, 98, 7, 0.12); color: #92400E; }
.badge-bio { background: rgba(16, 185, 129, 0.12); color: #065F46; }
.badge-water-soluble { background: rgba(247, 147, 30, 0.12); color: #C2410C; }

/* ── Buttons ── */
.btn-primary {
  background: var(--nfl-green-gradient);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--nfl-dark-green);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
  border: 2px solid var(--nfl-dark-green);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--nfl-dark-green);
  color: white;
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--nfl-orange-gradient);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(247, 147, 30, 0.3);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 147, 30, 0.4);
  filter: brightness(1.05);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  background: #22C55E;
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all var(--transition-base);
  text-decoration: none;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ── Scroll to Top Button ── */
.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--nfl-dark-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  z-index: 999;
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--nfl-green);
  transform: translateY(-3px);
}

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  /* Animate only opacity + transform (GPU-friendly) instead of `all`,
     and hint the compositor so the reveal is buttery-smooth. */
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.animate-on-scroll.slide-left {
  transform: translateX(-40px);
}

.animate-on-scroll.slide-left.animated {
  transform: translateX(0);
}

.animate-on-scroll.slide-right {
  transform: translateX(40px);
}

.animate-on-scroll.slide-right.animated {
  transform: translateX(0);
}

.animate-on-scroll.scale-up {
  transform: scale(0.9);
}

.animate-on-scroll.scale-up.animated {
  transform: scale(1);
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stagger children animation delays */
.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: #2E7D32;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nfl-hero-overlay);
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

/* Floating leaf decorations */
.hero-leaf {
  position: absolute;
  opacity: 0.1;
  animation: floatLeaf 6s ease-in-out infinite;
  z-index: 1;
}

.hero-leaf:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.hero-leaf:nth-child(2) { top: 60%; right: 8%; animation-delay: 2s; }
.hero-leaf:nth-child(3) { bottom: 15%; left: 15%; animation-delay: 4s; }

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* ── Header / Navbar ── */
/* IMPORTANT: the navbar must NOT use `filter`, `backdrop-filter`, `transform`,
   or `will-change`. The mobile menu & overlay are position:fixed children of
   <nav>; any of those properties on an ancestor turns it into the containing
   block for fixed descendants, which clips/mis-positions the slide-in menu and
   makes it look "broken / transparent". We keep the navbar a solid opaque bar. */
.navbar {
  transition: background var(--transition-base), box-shadow var(--transition-base);
  z-index: 1050;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-link {
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--nfl-green);
  transition: width var(--transition-base);
  border-radius: 1px;
}

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

/* ── Mobile Menu ── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff !important;
  max-width: 85vw;
  overflow-x: hidden;
  overflow-y: auto;
}

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

.mobile-overlay {
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity var(--transition-base);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger animation */
.hamburger-line {
  transition: all var(--transition-base);
}

.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);
}

/* ── Section Headers ── */
.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(140, 198, 63, 0.1);
  color: var(--nfl-dark-green);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* ── Testimonial Card ── */
.testimonial-card {
  background: var(--nfl-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--nfl-green);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Testimonial carousel dots — active dot reflects the current review */
.carousel-dot {
  background-color: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot:hover {
  background-color: #9ca3af;
}

.carousel-dot.active {
  background-color: var(--nfl-green);
  width: 28px;
  border-radius: 9999px;
}

/* ── Timeline ── */
.timeline-item {
  position: relative;
  padding-left: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--nfl-green), var(--nfl-dark-green));
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nfl-green);
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
}

.timeline-item:last-child::before {
  bottom: 50%;
}

/* ── Headings on dark / coloured sections ──
   The global h1–h6 rule forces a near-black colour, so any heading without an
   explicit colour class rendered dark on green backgrounds (page titles,
   "Quality at Every Step", etc.). Inside a `.text-white` section, headings
   should follow the section and be white. */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
  color: #ffffff;
}

/* ── Page Header Banner ── */
.page-header {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.14), transparent 55%),
    var(--nfl-green-gradient);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Clean brand accent under each page title */
.page-header h1 {
  display: inline-block;
  position: relative;
}

.page-header h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 16px;
  border-radius: 2px;
  background: var(--nfl-orange);
}

/* ── Form Styles ── */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  background: white;
  color: var(--nfl-text);
}

.form-input:focus {
  outline: none;
  border-color: var(--nfl-green);
  box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.15);
}

.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-input.error + .form-error {
  display: block;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--nfl-dark);
  font-size: 0.9rem;
}

/* ── Toast Notifications ── */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: var(--nfl-dark-green);
}

.toast-error {
  background: #DC2626;
}

/* ── Product Filter Animations ── */
.product-grid-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-grid-item.hiding {
  opacity: 0;
  transform: scale(0.8);
}

.product-grid-item.showing {
  opacity: 1;
  transform: scale(1);
}

/* ── Filter Buttons ── */
.filter-btn {
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid #E5E7EB;
  background: white;
  color: var(--nfl-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--nfl-green);
  color: var(--nfl-dark-green);
}

.filter-btn.active {
  background: var(--nfl-dark-green);
  border-color: var(--nfl-dark-green);
  color: white;
}

/* ── Product Gallery ── */
.gallery-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--nfl-green);
}

/* ── Certification Badge ── */
.cert-badge {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid rgba(140, 198, 63, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-base);
}

.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--nfl-green);
}

/* ── Stats Counter ── */
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  background: var(--nfl-green-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Marquee / Infinite Scroll ── */
.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Feature Icon Container ── */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

/* ── Accessibility: Focus States ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--nfl-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--nfl-dark-green);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--nfl-green-gradient);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

/* ── Responsive Adjustments ── */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    background-attachment: scroll;
  }

  .stat-number {
    font-size: 2rem;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 24px;
    bottom: 16px;
    right: 16px;
  }

  .scroll-top {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .toast {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* ── Print Styles ── */
@media print {
  .navbar,
  .whatsapp-float,
  .scroll-top,
  .mobile-menu,
  .cta-banner {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }
}

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ── Counter Animation ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Gradient text utility ── */
.gradient-text {
  background: var(--nfl-green-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-orange {
  background: var(--nfl-orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar & Footer Logo Size Fixes (for images with transparent padding) ── */
.nav-logo-desktop {
  height: 110px !important;
  margin-top: -28px !important;
  margin-bottom: -28px !important;
  object-fit: contain;
  max-width: none !important;
}

.nav-logo-mobile {
  height: 95px !important;
  margin-top: -26px !important;
  margin-bottom: -26px !important;
  object-fit: contain;
  max-width: none !important;
}

.footer-logo-custom {
  height: 140px !important;
  margin-top: -38px !important;
  margin-bottom: -20px !important;
  object-fit: contain;
  max-width: none !important;
}

/* ── Hero Image Slider ──
   Visibility is driven entirely by the `.active` class (toggled in main.js).
   We avoid Tailwind opacity/z utilities in the markup so the two systems can't
   fight each other and cause flashing or stacked slides. */
.hero-slide {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide .slide-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transition-delay: 0.25s;
}

.hero-slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-dot.active {
  background-color: var(--nfl-green) !important;
  width: 24px !important;
  border-radius: 6px !important;
}

/* On small screens the hero content is tall; centering pushed the top badge
   (🌱 ISO 9001…) up under the fixed header. Top-align it and clear the navbar. */
@media (max-width: 1023px) {
  .hero-slide {
    align-items: flex-start !important;
  }
  .hero-slide > div {
    padding-top: 7rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* ============================================
   MULTI-LANGUAGE (Google Translate)
   ============================================ */

/* Hide Google's injected chrome (top banner, tooltips) so the page stays clean */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.skiptranslate iframe {
  display: none !important;
}
body {
  top: 0 !important;
  position: static !important;
}
#google_translate_element {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0;
  overflow: hidden;
}
.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

/* Our own language switcher (globe pill dropdown) */
.nfl-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nfl-lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(140, 198, 63, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 12px center, right 10px center;
  border: 1px solid rgba(46, 125, 50, 0.25);
  border-radius: 9999px;
  padding: 8px 30px 8px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nfl-dark-green);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.nfl-lang-select:hover {
  background-color: rgba(140, 198, 63, 0.2);
  border-color: var(--nfl-green);
}

.nfl-lang-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
}

/* Full-width inside the mobile slide-in menu */
.mobile-menu .nfl-lang,
.mobile-menu .nfl-lang-select {
  width: 100%;
}

