/* =========================================
   SAFYA — Premium Egyptian Dates Export
   Design System & Styles
   ========================================= */

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

/* =========================================
   CSS Custom Properties (Design Tokens)
   ========================================= */
:root {
  /* Colors - Gold */
  --gold-primary: #C8963E;
  --gold-light: #DDAA55;
  --gold-dark: #A67A2E;
  --gold-glow: rgba(200, 150, 62, 0.25);
  --gold-subtle: rgba(200, 150, 62, 0.08);

  /* Dark Luxury Palette (Espresso & Roasted Coffee) */
  --bg-primary: #120E0B;
  --bg-secondary: #1B1510;
  --bg-tertiary: #241D16;
  --bg-card: #221A14;
  --bg-glass: rgba(18, 14, 11, 0.8);

  /* Light Cafe Palette (Warm Cafe Latte & Cream) */
  --cafe-bg: #F8F4EE;
  --cafe-surface: #FFFFFF;
  --cafe-latte: #F2E9DE;
  --cafe-sand: #E8DDCE;
  --cafe-border: rgba(175, 135, 90, 0.22);
  --cafe-badge-bg: #F0E5D8;

  /* Text Colors */
  --text-primary: #F7EFE4;
  --text-secondary: #B8ABA0;
  --text-muted: #7E7267;
  --text-gold: #C8963E;

  /* Light Section Text */
  --text-cafe-title: #23160D;
  --text-cafe-body: #544337;
  --text-cafe-muted: #827265;

  --border-subtle: rgba(200, 150, 62, 0.15);
  --border-gold: rgba(200, 150, 62, 0.35);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic-heading: 'Cairo', 'Playfair Display', sans-serif;
  --font-arabic-body: 'Cairo', 'Tajawal', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 32px rgba(200, 150, 62, 0.15);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
}

ul { list-style: none; }

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* =========================================
   Layout
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

/* =========================================
   Section Header
   ========================================= */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 16px;
  position: relative;
  padding: 0 20px;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold-primary);
}

.section-subtitle::before { left: -20px; }
.section-subtitle::after { right: -20px; }

.section-title {
  margin-bottom: 20px;
}

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

.section-description {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Gold ornamental divider */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 0;
}

.gold-divider .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.gold-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  transform: rotate(45deg);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-slow);
  transform: translate(-50%, -50%);
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #0D0B08;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold), 0 4px 20px rgba(200, 150, 62, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 1.5px solid var(--border-gold);
}

.btn-outline:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(248, 244, 238, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(175, 135, 90, 0.22);
  box-shadow: 0 4px 20px rgba(45, 30, 15, 0.06);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(244, 237, 227, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 6px 0;
  border-bottom: 1px solid rgba(200, 150, 62, 0.35);
  box-shadow: 0 8px 30px rgba(45, 30, 15, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-img {
  height: 92px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: all var(--transition-fast);
  filter: drop-shadow(0 2px 8px rgba(35, 22, 13, 0.06));
}

.navbar.scrolled .logo-img {
  height: 72px;
}

.logo:hover .logo-img {
  transform: scale(1.04);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #23160D;
  letter-spacing: 1.5px;
  line-height: 1.15;
  white-space: nowrap;
}

.logo-text span {
  color: var(--gold-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #4A3B30;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
}

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

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark)) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(200, 150, 62, 0.28);
}

.nav-cta:hover {
  box-shadow: 0 6px 20px rgba(200, 150, 62, 0.45);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #23160D;
  transition: all var(--transition-base);
  border-radius: 2px;
}

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

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 11, 8, 0.3) 0%,
    rgba(13, 11, 8, 0.5) 40%,
    rgba(13, 11, 8, 0.85) 100%
  );
  z-index: 1;
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease-out;
}

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

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .accent {
  color: var(--gold-primary);
  font-style: italic;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s ease-out 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

/* =========================================
   About Section
   ========================================= */
.about {
  background: var(--cafe-latte);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(70, 45, 20, 0.12);
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image-border {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--gold-primary);
  border-radius: calc(var(--radius-lg) + 4px);
  pointer-events: none;
  opacity: 0.6;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  opacity: 0.3;
}

.about-content h3 {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 12px;
}

.about-content h2 {
  color: var(--text-cafe-title);
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-cafe-body);
  margin-bottom: 16px;
}

.about-content strong {
  color: var(--text-cafe-title) !important;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cafe-border);
}

.stat-item {
  text-align: center;
  background: var(--cafe-surface);
  border: 1px solid var(--cafe-border);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  box-shadow: 0 4px 16px rgba(70, 45, 20, 0.05);
  transition: all var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-cafe-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* =========================================
   Products Section
   ========================================= */
.products {
  background: var(--bg-secondary);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: linear-gradient(180deg, #FAF6F0 0%, #F2E9DE 100%);
  border: 1px solid rgba(175, 135, 90, 0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  box-shadow: 0 8px 24px rgba(45, 30, 15, 0.08);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 0 16px 40px rgba(70, 45, 20, 0.16), 0 0 24px rgba(200, 150, 62, 0.2);
}

.product-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(250, 246, 240, 0.92) 100%
  );
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(45, 30, 15, 0.25);
}

.product-info {
  padding: 28px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #23160D;
  margin-bottom: 8px;
}

.product-origin {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.product-description {
  font-size: 0.92rem;
  color: #544337;
  line-height: 1.65;
  margin-bottom: 20px;
}

.product-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-feature {
  padding: 6px 14px;
  background: #EAE0D2;
  border: 1px solid rgba(175, 135, 90, 0.35);
  border-radius: 50px;
  font-size: 0.74rem;
  color: #463426;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.product-card:hover .product-feature {
  background: #E4D7C6;
  border-color: rgba(175, 135, 90, 0.5);
}

/* =========================================
   Process Section (Light Cafe Palette)
   ========================================= */
.process {
  background: var(--cafe-bg);
  position: relative;
}

.process .section-title,
.process .section-title span:not(.gold) {
  color: var(--text-cafe-title) !important;
}

.process .section-description {
  color: var(--text-cafe-body) !important;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
  opacity: 0.45;
}

.process-step {
  text-align: center;
  position: relative;
  padding-top: 20px;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--cafe-surface);
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(70, 45, 20, 0.08);
  transition: all var(--transition-base);
}

.step-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--gold-primary);
}

.process-step:hover .step-icon {
  background: var(--gold-primary);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.3);
}

.process-step:hover .step-icon svg {
  fill: #FFFFFF;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-cafe-title);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-cafe-muted);
  line-height: 1.5;
}

/* =========================================
   Why Choose Us Section
   ========================================= */
.why-us {
  background: var(--bg-secondary);
  position: relative;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  background: linear-gradient(180deg, #FAF6F0 0%, #F2E9DE 100%);
  border: 1px solid rgba(175, 135, 90, 0.28);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(45, 30, 15, 0.08);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 16px 36px rgba(70, 45, 20, 0.14), 0 0 24px rgba(200, 150, 62, 0.2);
}

.why-card:hover::before {
  opacity: 1;
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: #EAE0D2;
  border: 1px solid rgba(175, 135, 90, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(70, 45, 20, 0.05);
}

.why-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.5;
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-color: var(--gold-primary);
  box-shadow: 0 4px 16px rgba(200, 150, 62, 0.3);
}

.why-card:hover .why-icon svg {
  stroke: #FFFFFF;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #23160D;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.92rem;
  color: #544337;
  line-height: 1.65;
}

/* =========================================
   Certifications Section (Light Cafe Palette)
   ========================================= */
.certifications {
  background: var(--cafe-latte);
  padding: 80px 0;
  border-top: 1px solid var(--cafe-border);
  border-bottom: 1px solid var(--cafe-border);
}

.certifications .section-title,
.certifications .section-title span:not(.gold) {
  color: var(--text-cafe-title) !important;
}

.certifications .section-description {
  color: var(--text-cafe-body) !important;
}

.cert-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 40px;
  background: var(--cafe-surface);
  border: 1px solid var(--cafe-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px rgba(70, 45, 20, 0.05);
  transition: all var(--transition-base);
  min-width: 200px;
}

.cert-item:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.15);
}

.cert-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  width: 48px;
  height: 48px;
  fill: var(--gold-primary);
}

.cert-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-cafe-title);
}

.cert-desc {
  font-size: 0.75rem;
  color: var(--text-cafe-muted);
  text-align: center;
}

/* =========================================
   Testimonials Section
   ========================================= */
.testimonials {
  background: var(--bg-secondary);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: linear-gradient(180deg, #FAF6F0 0%, #F2E9DE 100%);
  border: 1px solid rgba(175, 135, 90, 0.28);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-base);
  position: relative;
  box-shadow: 0 8px 24px rgba(45, 30, 15, 0.08);
}

.testimonial-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(70, 45, 20, 0.14), 0 0 24px rgba(200, 150, 62, 0.2);
}

.testimonial-quote {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--gold-primary);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #544337;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #23160D;
}

.author-role {
  font-size: 0.8rem;
  color: #827265;
}

/* =========================================
   Contact Section (Light Cafe Palette)
   ========================================= */
.contact {
  background: var(--cafe-bg);
  position: relative;
}

.contact .section-title,
.contact .section-title span:not(.gold) {
  color: var(--text-cafe-title) !important;
}

.contact .section-description {
  color: var(--text-cafe-body) !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h3 {
  font-size: 1.6rem;
  color: var(--text-cafe-title);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-cafe-body);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--cafe-surface);
  border: 1px solid var(--cafe-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(70, 45, 20, 0.06);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-primary);
  fill: none;
  stroke-width: 1.5;
}

.contact-item h4 {
  font-size: 0.95rem;
  color: var(--text-cafe-title);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-cafe-muted);
}

/* =========================================
   Social Links — Official Brand Styling
   ========================================= */
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: all var(--transition-fast);
}

/* Facebook Official Styling */
.social-link.social-facebook,
.social-link[aria-label="Facebook"] {
  background: rgba(24, 119, 242, 0.12);
  border: 1px solid rgba(24, 119, 242, 0.3);
  color: #1877F2;
}

.social-link.social-facebook svg,
.social-link[aria-label="Facebook"] svg {
  fill: #1877F2;
}

.social-link.social-facebook:hover,
.social-link[aria-label="Facebook"]:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
  transform: translateY(-3px) scale(1.05);
}

.social-link.social-facebook:hover svg,
.social-link[aria-label="Facebook"]:hover svg {
  fill: #FFFFFF;
}

/* Instagram Official Styling */
.social-link.social-instagram,
.social-link[aria-label="Instagram"] {
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid rgba(225, 48, 108, 0.3);
  color: #E1306C;
}

.social-link.social-instagram svg,
.social-link[aria-label="Instagram"] svg {
  color: #E1306C;
}

.social-link.social-instagram:hover,
.social-link[aria-label="Instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.45);
  transform: translateY(-3px) scale(1.05);
}

.social-link.social-instagram:hover svg,
.social-link[aria-label="Instagram"]:hover svg {
  color: #FFFFFF;
}

/* WhatsApp Official Styling */
.social-link.social-whatsapp,
.social-link[aria-label="WhatsApp"] {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.social-link.social-whatsapp svg,
.social-link[aria-label="WhatsApp"] svg {
  color: #25D366;
  fill: #25D366;
}

.social-link.social-whatsapp:hover,
.social-link[aria-label="WhatsApp"]:hover {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-3px) scale(1.05);
}

.social-link.social-whatsapp:hover svg,
.social-link[aria-label="WhatsApp"]:hover svg {
  color: #FFFFFF;
  fill: #FFFFFF;
}

/* Contact Form */
.contact-form {
  background: var(--cafe-surface);
  border: 1px solid var(--cafe-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 16px 48px rgba(70, 45, 20, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-cafe-title);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: #FAF7F2;
  border: 1.5px solid #DACAB8;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-cafe-title);
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9C8C7E;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-brand .logo-img {
  height: 105px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand .logo-text {
  color: #F7EFE4;
  font-size: 1.7rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--gold-primary);
  padding-left: 8px;
}

#footerWhatsAppLink {
  color: #25D366;
  font-weight: 500;
}

#footerWhatsAppLink:hover {
  color: #2ecc71;
}

html[dir="rtl"] .footer-col a:hover {
  padding-left: 0;
  padding-right: 8px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* =========================================
   Scroll Animations
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

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

/* =========================================
   Keyframes
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

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

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

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #F8F4EE;
    border-left: 1px solid rgba(175, 135, 90, 0.25);
    box-shadow: -10px 0 30px rgba(45, 30, 15, 0.15);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition-base);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .process-timeline::before {
    display: none;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .cert-grid {
    gap: 16px;
  }

  .cert-item {
    padding: 20px 24px;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .cert-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: whatsapp-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}

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

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 2;
}

.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: whatsapp-pulse 2s ease-out infinite;
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  right: 76px;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes whatsapp-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* =========================================
   Language Switcher Component
   ========================================= */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(238, 230, 218, 0.9);
  border: 1px solid rgba(175, 135, 90, 0.35);
  border-radius: 30px;
  padding: 3px 5px;
  gap: 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.lang-switcher:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 2px 12px rgba(200, 150, 62, 0.2);
}

.lang-btn {
  background: transparent;
  color: #5A4739;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  line-height: 1.2;
}

.lang-btn:hover {
  color: #23160D;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(200, 150, 62, 0.3);
}

.lang-divider {
  color: rgba(175, 135, 90, 0.45);
  font-size: 0.75rem;
  user-select: none;
}

/* =========================================
   RTL & Arabic Language Support
   ========================================= */
html[dir="rtl"],
html[lang="ar"],
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic-body);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .logo-text,
html[dir="rtl"] .section-title,
html[dir="rtl"] .hero-title {
  font-family: var(--font-arabic-heading);
  letter-spacing: normal;
}

html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] label {
  font-family: var(--font-arabic-body);
}

html[dir="rtl"] .section-subtitle {
  letter-spacing: 2px;
}

/* Flipped arrow icons in RTL */
html[dir="rtl"] .btn svg,
html[dir="rtl"] .form-submit svg {
  transform: scaleX(-1);
}

/* Hero Badge */
html[dir="rtl"] .hero-badge .dot {
  margin-right: 0;
  margin-left: 8px;
}

/* About Grid */
html[dir="rtl"] .about-content {
  text-align: right;
}

/* Product Cards */
html[dir="rtl"] .product-badge {
  left: auto;
  right: 16px;
}

html[dir="rtl"] .product-origin::before {
  margin-right: 0;
  margin-left: 6px;
}

html[dir="rtl"] .product-info {
  text-align: right;
}

html[dir="rtl"] .product-features {
  justify-content: flex-start;
}

/* Timeline Process */
html[dir="rtl"] .process-step {
  text-align: right;
}

/* Why Us */
html[dir="rtl"] .why-card {
  text-align: right;
}

/* Certifications */
html[dir="rtl"] .cert-item {
  text-align: center;
}

/* Testimonials */
html[dir="rtl"] .testimonial-quote {
  right: auto;
  left: 24px;
}

html[dir="rtl"] .testimonial-author {
  text-align: right;
}

/* Contact Info & Details */
html[dir="rtl"] .contact-info {
  text-align: right;
}

html[dir="rtl"] .contact-details {
  text-align: right;
}

html[dir="rtl"] .contact-item {
  text-align: right;
}

html[dir="rtl"] .contact-icon {
  margin-right: 0;
  margin-left: 16px;
}

/* Form */
html[dir="rtl"] .contact-form {
  text-align: right;
}

html[dir="rtl"] .form-group {
  text-align: right;
}

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

html[dir="rtl"] select {
  background-position: left 16px center;
}

/* Footer */
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .footer-col {
  text-align: right;
}

/* WhatsApp Tooltip */
html[dir="rtl"] .whatsapp-tooltip {
  right: auto;
  left: 72px;
}

html[dir="rtl"] .whatsapp-tooltip::after {
  right: auto;
  left: -6px;
  border-right: none;
  border-left: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: none;
}

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

/* Nav links underline in RTL */
html[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

/* Mobile Nav Drawer in RTL */
@media (max-width: 1024px) {
  html[dir="rtl"] .nav-links {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid rgba(175, 135, 90, 0.25);
    box-shadow: 10px 0 30px rgba(45, 30, 15, 0.15);
    transition: left var(--transition-base);
  }

  html[dir="rtl"] .nav-links.active {
    right: auto;
    left: 0;
  }
}

