/* ==========================================================================
   HERBOMEAL-D Premium Design System Stylesheet
   ========================================================================== */

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

:root {
  --primary-brown: #24140D;
  --secondary-brown: #4A2D1B;
  --gold: #D8A63C;
  --gold-hover: #C5932B;
  --cream: #F8F1E5;
  --light-beige: #EFE1CC;
  --herbal-green: #667A45;
  --herbal-green-light: rgba(102, 122, 69, 0.1);
  --dark-text: #221B17;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(36, 20, 13, 0.04);
  --shadow-md: 0 8px 24px rgba(36, 20, 13, 0.06);
  --shadow-lg: 0 16px 48px rgba(36, 20, 13, 0.1);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: -webkit-fill-available;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark-text);
  background-color: #180B06; /* dark espresso - matches hero, hides any gap behind fixed header */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 118px; /* offset for fixed header: logo bar (64px) + nav bar (54px) */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-brown);
  font-weight: 700;
  line-height: 1.25;
}

em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
}

p {
  font-size: 16px;
  line-height: 1.7;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-brown);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* STICKY NAV SYSTEM */
.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: transparent;
  transition: var(--transition);
  padding: 0;
}

.header-sticky.scrolled {
  padding: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.top-logo-bar {
  background: #FFFFFF;
  border-bottom: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 56px;
  opacity: 1;
  overflow: hidden;
  padding: 4px 0;
}

.header-sticky.scrolled .top-logo-bar {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
}

.nav-bar-section {
  background: rgba(24, 11, 6, 0.97); /* dark espresso brown - matches website hero/header */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 166, 60, 0.25);
  transition: var(--transition);
  padding: 10px 0;
}

.header-sticky.scrolled .nav-bar-section {
  padding: 8px 0;
  background: rgba(12, 5, 2, 0.99); /* slightly darker espresso on scroll */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-link-custom {
  position: relative;
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.nav-link-custom:hover, 
.nav-link-custom.active {
  color: var(--gold) !important;
  text-shadow: 0 0 12px rgba(216, 166, 60, 0.4);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Custom Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #E6B74E);
  color: var(--primary-brown) !important;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(216, 166, 60, 0.25);
  transition: var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(216, 166, 60, 0.4);
  background: linear-gradient(135deg, #E6B74E, var(--gold));
}

.btn-gold-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold) !important;
  background: transparent;
  font-weight: 600;
  transition: var(--transition);
}

.btn-gold-outline:hover {
  background: rgba(216, 166, 60, 0.1);
  color: var(--gold) !important;
  transform: translateY(-2px);
}

/* HERO SECTION styling override */
.hero-section {
  background: linear-gradient(135deg, #180B06 0%, var(--primary-brown) 50%, #301B11 100%);
  position: relative;
  overflow: visible;
  padding-top: 48px;
  padding-bottom: 60px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(102, 122, 69, 0.08) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(216, 166, 60, 0.06) 0%, transparent 45%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Quotes box styling */
.quote-box {
  background: rgba(248, 241, 229, 0.03);
  border-left: 3px solid #A3B882;
  border-radius: 0 12px 12px 0;
  border-top: 1px solid rgba(163, 184, 130, 0.15);
  border-right: 1px solid rgba(163, 184, 130, 0.1);
  border-bottom: 1px solid rgba(163, 184, 130, 0.1);
}

.quote-highlight-text {
  color: #A3B882;
}

/* Product features panel */
.feature-box {
  background: transparent;
  border: none;
  border-radius: 16px;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-4px);
}

.feature-image-container {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .feature-image-container {
    height: 140px;
  }
}

@media (max-width: 640px) {
  .feature-image-container {
    height: 180px;
  }
}

.feature-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.feature-box:hover .feature-image-container img {
  transform: scale(1.08);
  filter: drop-shadow(0 12px 20px rgba(216, 166, 60, 0.2)) drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

/* 4 Pillars Section */
.pillar-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(74, 45, 27, 0.08);
  transition: var(--transition);
}

.pillar-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(216, 166, 60, 0.3);
}

.pillar-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.pillar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.pillar-card:hover .pillar-img-wrap img {
  transform: scale(1.05);
}

.ing-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(74, 45, 27, 0.06);
  max-width: 440px;
  width: 100%;
}

.ing-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ing-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 20, 13, 0.8) 0%, rgba(36, 20, 13, 0) 70%);
  opacity: 0.85;
  transition: var(--transition);
}

.ing-gallery-item:hover img {
  transform: scale(1.08);
}

.ing-gallery-item:hover .ing-gallery-overlay {
  opacity: 0.95;
  background: linear-gradient(to top, rgba(102, 122, 69, 0.85) 0%, rgba(36, 20, 13, 0.3) 100%);
}

/* Radial / Semicircle Safety Layout on Desktop */
.safety-arc-container {
  display: flex;
  align-items: stretch;
  gap: 24px;
  position: relative;
}

.safety-arc-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.safety-arc-pack {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.safety-arc-pack img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(36, 20, 13, 0.12);
  border: 1px solid rgba(74, 45, 27, 0.06);
}

/* Curvature offsets disabled for uniform alignment */

@media (max-width: 1024px) {
  .safety-arc-container {
    flex-direction: column-reverse;
    gap: 24px;
  }
  .safety-arc-pack {
    width: 100%;
    height: 300px;
  }
  .safety-arc-pack img {
    height: 100%;
    object-fit: cover;
  }
}

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

.safety-card {
  background: var(--white);
  border: 1px solid rgba(74, 45, 27, 0.06);
  border-radius: 16px;
  padding: 20px 24px;
  transition: var(--transition);
}

.safety-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

/* Nutrition label formatting - Dark Premium Card matching screenshot */
.nutrition-label-box {
  background: #180B06;
  border: 1.5px solid rgba(216, 166, 60, 0.4);
  border-radius: 20px;
  padding: 28px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 12px 35px rgba(24, 11, 6, 0.35);
  color: #ffffff;
}

.nutrition-header {
  border-bottom: 1px solid rgba(216, 166, 60, 0.25);
  padding-bottom: 16px;
  margin-bottom: 16px;
  position: relative;
}

.nutrition-header h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--gold);
  margin-bottom: 4px;
}

.nutrition-header p {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
}

.nutrition-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 0;
  border-bottom: 1px solid rgba(216, 166, 60, 0.25);
}

.nutrition-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.nutrition-table tr.thick-border td {
  border-bottom: 1.5px solid rgba(216, 166, 60, 0.3);
}

.nutrition-table tr.medium-border td {
  border-bottom: 1px solid rgba(216, 166, 60, 0.3);
}

.nutrition-table td.val-bold {
  font-weight: 700;
  color: #ffffff;
}

.badge-zero-sugar {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.badge-energy-kcal {
  background: rgba(216, 166, 60, 0.15);
  border: 1px solid rgba(216, 166, 60, 0.4);
  color: #D8A63C;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.bg-row-green-highlight {
  background: rgba(16, 185, 129, 0.08);
  border-radius: 6px;
}

/* Ideal For Grid Cards */
.ideal-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(74, 45, 27, 0.06);
  transition: var(--transition);
}

.ideal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(216, 166, 60, 0.25);
}

.ideal-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #FAF6F0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestion-card-img {
  width: 100%;
  height: 240px;
  background-color: #FAF6F0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.suggestion-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  transition: transform 0.6s ease;
}

.ideal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.ideal-card:hover .ideal-card-img img {
  transform: scale(1.05);
}

/* Preparation Step Timeline styling */
.prep-step-card {
  background: var(--white);
  border: 1px solid rgba(74, 45, 27, 0.06);
  border-radius: 20px;
  padding: 24px;
  transition: var(--transition);
}

.prep-step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(102, 122, 69, 0.3);
}

.prep-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--herbal-green), #7A8E58);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(102, 122, 69, 0.25);
}

.prep-step-img {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
  background-color: #FAF6F0;
}

.prep-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.highlight-box-jaggery {
  background: #180B06;
  border: 1.5px solid rgba(216, 166, 60, 0.4);
  border-left: 6px solid #D8A63C;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(24, 11, 6, 0.25);
  position: relative;
}

.highlight-box-warning {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.06) 0%, rgba(185, 28, 28, 0.12) 100%);
  border: 1.5px solid rgba(220, 38, 38, 0.3);
  border-left: 6px solid #DC2626;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.08);
}

/* 4 Distinct Color Visuals for Storage Cards */
.storage-card-temp {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.06) 0%, rgba(217, 119, 6, 0.12) 100%);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-top: 4px solid #D97706;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.storage-card-temp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.18);
}

.storage-card-sun {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.06) 0%, rgba(202, 138, 4, 0.12) 100%);
  border: 1px solid rgba(202, 138, 4, 0.25);
  border-top: 4px solid #CA8A04;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(202, 138, 4, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.storage-card-sun:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(202, 138, 4, 0.18);
}

.storage-card-cool {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.06) 0%, rgba(225, 29, 72, 0.12) 100%);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-top: 4px solid #E11D48;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.storage-card-cool:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.18);
}

.storage-card-child {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(124, 58, 237, 0.12) 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-top: 4px solid #7C3AED;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.storage-card-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.18);
}

/* Served Hot & Served Cold Highlight Cards */
.highlight-card-hot {
  background: linear-gradient(135deg, rgba(224, 83, 38, 0.07) 0%, rgba(224, 83, 38, 0.14) 100%);
  border: 1px solid rgba(224, 83, 38, 0.22);
  border-left: 5px solid #E05326;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(224, 83, 38, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card-hot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 83, 38, 0.15);
}

.highlight-card-cold {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.07) 0%, rgba(14, 165, 233, 0.14) 100%);
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-left: 5px solid #0EA5E9;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card-cold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
}

/* Custom Tabs Styling for Global Initiatives */
.tabs-custom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--light-beige);
  padding-bottom: 2px;
  justify-content: center;
}

.tab-custom-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--secondary-brown);
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.tab-custom-btn:hover {
  color: var(--gold);
}

.tab-custom-btn.active {
  color: var(--primary-brown);
}

.tab-custom-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-custom-btn.active::after {
  transform: scaleX(1);
}

.tab-custom-pane {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-custom-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Testimonials Carousel styles */
.testimonials-slider-container {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 10px;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
    width: 33.333%;
  }
}

/* Custom modal styling */
.modal-custom {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(36, 20, 13, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease forwards;
}

.modal-custom.active {
  display: flex;
}

.modal-custom-content {
  background: var(--white);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(216, 166, 60, 0.2);
}

.modal-custom-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(36, 20, 13, 0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-brown);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-custom-close:hover {
  background: var(--primary-brown);
  color: var(--white);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--primary-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(216, 166, 60, 0.3);
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: none;
}

.back-to-top.active {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary-brown);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .safety-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .safety-pack-center {
    order: -1;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 100px; /* smaller offset on mobile: logo bar (~48px) + nav bar (~52px) */
  }
  p {
    font-size: 15px;
  }
  .hero-section {
    padding-top: 32px;
    padding-bottom: 40px;
  }
}

/* Utility Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Footer Social Media Icon Styling (Medium Size) */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--gold);
  color: var(--primary-brown);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(216, 166, 60, 0.25);
}

.footer-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   Language Selector & RTL Styling
   ========================================================================== */
.language-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 1rem;
  color: var(--primary-brown);
  background: var(--cream);
  border: 1px solid rgba(216, 166, 60, 0.65);
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.language-toggle:hover {
  background: var(--light-beige);
  border-color: var(--gold);
}

.language-toggle:focus-visible {
  outline: 3px solid rgba(216, 166, 60, 0.35);
  outline-offset: 3px;
}

.language-arrow {
  transition: transform 0.2s ease;
  font-size: 0.75rem;
}

.language-toggle[aria-expanded="true"] .language-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 2000;
  min-width: 180px;
  padding: 0.4rem;
  background: var(--white);
  border: 1px solid rgba(74, 45, 27, 0.14);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(36, 20, 13, 0.12);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  color: var(--dark-text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.language-option:hover {
  background: var(--cream);
}

.language-option.active {
  color: var(--primary-brown);
  background: var(--light-beige);
  font-weight: 700;
}

.language-option.active::after {
  content: "✓";
  position: absolute;
  right: 0.75rem;
  color: var(--herbal-green);
  font-weight: 800;
}

/* RTL Styles */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] body {
  font-family: "Cairo", sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
  font-family: "Cairo", sans-serif;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .feature-grid,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .footer-grid {
  direction: rtl;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-option {
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  text-align: right;
}

html[dir="rtl"] .language-option.active::after {
  right: auto;
  left: 0.75rem;
}

html[dir="rtl"] .directional-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .mr-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html[dir="rtl"] .ml-2 {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

html[dir="rtl"] .mr-3 {
  margin-right: 0 !important;
  margin-left: 0.75rem !important;
}

html[dir="rtl"] .ml-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .mr-auto {
  margin-right: 0 !important;
  margin-left: auto !important;
}

html[dir="rtl"] .testimonials-track {
  direction: ltr; /* Keeps translation calculations consistent */
}

html[dir="rtl"] .safety-layout-grid {
  direction: rtl;
}

html[dir="rtl"] .modal-custom-close {
  right: auto;
  left: 15px;
}

html[dir="rtl"] .modal-custom-content .pr-14 {
  padding-right: 1.5rem !important;
  padding-left: 3.5rem !important;
}

@media (max-width: 768px) {
  .language-toggle {
    min-width: auto;
    width: 36px;
    height: 36px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }

  /* Restore default shape for screens with text */
  @media (min-width: 640px) {
    .language-toggle {
      width: auto;
      height: auto;
      padding: 0.5rem 1rem;
      border-radius: 999px;
    }
  }

  .language-menu {
    position: fixed;
    top: 70px;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  html[dir="rtl"] .language-menu {
    right: 1rem;
    left: 1rem;
  }
}

/* Floating WhatsApp button styling */
.whatsapp-float {
  position: fixed;
  bottom: 92px; /* Positioned above the back-to-top button */
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 24px;
}

.whatsapp-float:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

/* RTL layout alignment for floating buttons */
html[dir="rtl"] .back-to-top {
  right: auto;
  left: 30px;
}

html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 30px;
}

/* Pulsing and blinking animation for Watch Preparation Video button */
@keyframes pulse-blink {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(197, 160, 89, 0.4), 0 4px 6px -4px rgba(197, 160, 89, 0.4);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(197, 160, 89, 0.7), 0 8px 10px -6px rgba(197, 160, 89, 0.7);
    opacity: 0.9;
  }
}

.btn-watch-video {
  animation: pulse-blink 2s infinite ease-in-out;
}

