/* ===========================
   OMRA POUR TOUS — Premium CSS
   =========================== */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Green Palette (based on exact logo) */
  --primary: #0E8C43;
  /* Darker green from logo text & hexagon */
  --primary-light: #8DC63F;
  /* Lighter lime green from hexagon top */
  --primary-dark: #0A6530;
  /* Darker shade for hovers */
  --accent-gold: #FFB800;
  /* Gold line on the Kaaba */
  --green-wa: #25D366;
  /* WhatsApp */

  /* Light Theme (Default) */
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-alt: #F0EDE8;
  --text: #111111;
  /* Black from logo text */
  --text-muted: #5A504A;
  --text-inv: #FFFFFF;
  --btn-text: #FFFFFF;
  --border: #E1D7C6;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .10);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .15);
  --shadow-primary: 0 8px 30px rgba(14, 140, 67, .25);

  --glass-bg: rgba(255, 255, 255, .9);
  --glass-border: rgba(0, 0, 0, .05);
  --nav-scrolled: rgba(250, 248, 245, .95);
  --nav-text: #2C2A29;

  /* Typography */
  --font-heading: 'Playfair Display', 'Caudex', serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
  --font-arabic: 'Amiri', serif;

  /* Spacing */
  --section-pad: 100px 0;
  --container: 1200px;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --speed: 0.4s;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: #111111;
  /* Exact black from logo */
  --surface: #1A1A1A;
  --surface-alt: #222222;
  --text: #F0EDE8;
  --text-muted: #A4B0AA;
  --text-inv: #FFFFFF;
  --btn-text: #111111;
  /* Dark text for light green button in dark mode */
  --border: rgba(255, 255, 255, .1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
  --shadow-primary: 0 8px 30px rgba(141, 198, 63, .25);

  --glass-bg: rgba(26, 26, 26, .85);
  --glass-border: rgba(255, 255, 255, .05);
  --nav-scrolled: rgba(17, 17, 17, .95);
  --nav-text: #F0EDE8;

  /* Adjust primary for better contrast in dark mode */
  --primary: #8DC63F;
  --primary-light: #A1D853;
  --primary-dark: #0E8C43;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
  display: inline-block;
}

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

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.4em;
  color: var(--primary);
  direction: rtl;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--speed) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: left 0.6s var(--ease);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--btn-text);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(14, 140, 67, .4);
  color: var(--btn-text);
}

.btn-outline {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.hero-buttons .btn-outline {
  border-color: var(--text-inv);
  color: var(--text-inv);
}

.hero-buttons .btn-outline:hover {
  background: var(--text-inv);
  color: var(--primary-dark);
}

/* ---------- HEADER / NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--speed) var(--ease);
}

.navbar.scrolled {
  background: var(--nav-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 80px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-inv);
  transition: color var(--speed) var(--ease);
}

.navbar.scrolled .nav-logo-text {
  color: var(--nav-text);
}

.nav-logo-text span {
  background: linear-gradient(to right,
      var(--primary) 20%,
      var(--accent-gold) 40%,
      var(--primary-light) 60%,
      var(--primary) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shine-text 4s linear infinite;
  display: inline-block;
  padding-left: 2px;
  filter: drop-shadow(0 0 8px rgba(141, 198, 63, 0.4));
}

@keyframes shine-text {
  to {
    background-position: 200% center;
  }
}

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

.nav-links a {
  color: rgba(255, 255, 255, .85);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.navbar.scrolled .nav-links a {
  color: var(--nav-text);
}

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

.nav-links a:hover {
  color: var(--primary) !important;
}

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

.nav-cta {
  margin-left: 12px;
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Controls (Lang / Theme) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-inv);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--primary);
}

.navbar.scrolled .theme-toggle {
  color: var(--nav-text);
}

.navbar.scrolled .theme-toggle:hover {
  color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ====== PREMIUM LANG TOGGLE ====== */
.premium-lang-toggle {
  direction: ltr;
  position: relative;
  display: flex;
  align-items: center;
  width: 160px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 4px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  margin-left: 20px;
  transition: all 0.3s var(--ease);
}

.premium-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 184, 0, 0.25);
}

.lang-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--accent-gold), #FFF2B2);
  border-radius: 50px;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.5);
  z-index: 1;
}

.premium-lang-toggle.is-ar .lang-slider {
  transform: translateX(100%);
}

.lang-text {
  flex: 1;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-inv);
  z-index: 2;
  transition: color 0.3s var(--ease);
  pointer-events: none;
}

.premium-lang-toggle:not(.is-ar) .lang-fr {
  color: #000;
}

.premium-lang-toggle:not(.is-ar) .lang-ar {
  color: var(--text-inv);
}

.premium-lang-toggle.is-ar .lang-fr {
  color: var(--text-inv);
}

.premium-lang-toggle.is-ar .lang-ar {
  color: #000;
}

.navbar.scrolled .premium-lang-toggle {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .lang-text {
  color: var(--nav-text);
}

.navbar.scrolled .premium-lang-toggle:not(.is-ar) .lang-ar {
  color: var(--nav-text);
}

.navbar.scrolled .premium-lang-toggle.is-ar .lang-fr {
  color: var(--nav-text);
}

[data-theme="dark"] .lang-slider {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 15px rgba(14, 140, 67, 0.5);
}

[data-theme="dark"] .navbar.scrolled .lang-text {
  color: var(--text-inv);
}

[data-theme="dark"] .navbar.scrolled .premium-lang-toggle:not(.is-ar) .lang-ar {
  color: var(--text-inv);
}

[data-theme="dark"] .navbar.scrolled .premium-lang-toggle.is-ar .lang-fr {
  color: var(--text-inv);
}

/* ====== LANGUAGE SWITCH — PREMIUM DESIGN ====== */
.lang-switch {
  position: relative;
  width: 82px;
  height: 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .2);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  padding: 0;
  outline: none;
  animation: lang-pulse 3s ease-in-out infinite;
}

@keyframes lang-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 140, 67, 0);
  }

  50% {
    box-shadow: 0 0 12px 2px rgba(14, 140, 67, .2);
  }
}

.lang-switch:hover {
  animation: none;
}

.lang-switch::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
}

.lang-switch:hover::before,
.lang-switch.active::before {
  opacity: 1;
}

.lang-switch:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(14, 140, 67, .4), 0 0 40px rgba(14, 140, 67, .15);
  border-color: transparent;
}

.lang-switch-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent-gold), var(--primary-light));
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}

.lang-switch:hover .lang-switch-glow {
  opacity: 0.6;
}

.lang-switch-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.lang-switch-front,
.lang-switch-back {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.5s cubic-bezier(.4, 0, .2, 1);
}

.lang-switch-front {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}

.lang-switch-back {
  opacity: 0;
  transform: rotateY(180deg) scale(0.8);
}

.lang-switch.active .lang-switch-front {
  opacity: 0;
  transform: rotateY(-180deg) scale(0.8);
}

.lang-switch.active .lang-switch-back {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3));
}

.lang-code {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-inv);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

/* Scrolled state */
.navbar.scrolled .lang-switch {
  background: linear-gradient(135deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .03));
  border-color: rgba(0, 0, 0, .12);
}

.navbar.scrolled .lang-switch:hover {
  border-color: transparent;
}

.navbar.scrolled .lang-code {
  color: var(--nav-text);
  text-shadow: none;
}

/* Dark mode adjustments */
[data-theme="dark"] .lang-switch {
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border-color: rgba(255, 255, 255, .15);
}

[data-theme="dark"] .navbar.scrolled .lang-switch {
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border-color: rgba(255, 255, 255, .1);
}

/* Active AR state — show Moroccan flag glow */
.lang-switch.active:hover {
  box-shadow: 0 0 20px rgba(193, 39, 45, .4), 0 0 40px rgba(193, 39, 45, .15);
}

.lang-switch.active .lang-switch-glow {
  background: linear-gradient(135deg, #C1272D, var(--accent-gold), #0E8C43);
}

/* Click ripple effect */
.lang-switch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  z-index: 2;
}

.lang-switch.clicked::after {
  width: 120px;
  height: 120px;
  opacity: 0;
}

/* ====== LANGUAGE FLOAT ====== */
.lang-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.lang-float svg {
  color: var(--primary);
}

.lang-float:hover {
  transform: translateY(-5px);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(141, 198, 63, .4);
}

.lang-float:hover svg {
  color: #fff;
}

[data-theme="dark"] .lang-float {
  background: var(--nav-bg);
  color: var(--text-inv);
  border-color: rgba(141, 198, 63, .5);
}

[data-theme="dark"] .lang-float:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

[data-theme="dark"] .lang-float:hover svg {
  color: #000;
}




/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-inv);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

.navbar.scrolled .hamburger span {
  background: var(--nav-text);
}

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

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

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(14, 51, 32, .3) 0%,
      rgba(14, 51, 32, .6) 50%,
      rgba(14, 51, 32, .9) 100%);
  z-index: -1;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(180deg,
      rgba(18, 24, 21, .3) 0%,
      rgba(18, 24, 21, .7) 50%,
      rgba(18, 24, 21, 1) 100%);
}

.hero-content {
  text-align: center;
  color: var(--text-inv);
  max-width: 800px;
  padding: 0 24px;
}

/* Hero Brand Title — Spectacular */
.hero-brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
  animation: brandAppear 1.5s cubic-bezier(.4, 0, .2, 1) forwards;
  opacity: 0;
}

@keyframes brandAppear {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    letter-spacing: 20px;
  }

  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-5px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    letter-spacing: normal;
  }
}

.hero-brand-word {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-inv);
  text-shadow: 0 0 40px rgba(255, 255, 255, .15), 0 4px 20px rgba(0, 0, 0, .4);
  position: relative;
}

.hero-brand-separator {
  width: 12px;
  display: inline-block;
}

.hero-brand-word-accent {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(90deg,
      var(--primary) 0%,
      var(--accent-gold) 25%,
      var(--primary-light) 50%,
      var(--accent-gold) 75%,
      var(--primary) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroShine 3s linear infinite;
  filter: drop-shadow(0 0 25px rgba(141, 198, 63, .5));
  position: relative;
}

@keyframes heroShine {
  to {
    background-position: 300% center;
  }
}

.hero-bismillah {
  font-family: var(--font-arabic);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 24px;
  opacity: 0.9;
}

[data-theme="dark"] .hero-bismillah {
  color: var(--primary-light);
}

.hero-content h1 {
  color: var(--text-inv);
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.hero-content h1 span {
  color: var(--primary);
  display: block;
}

[data-theme="dark"] .hero-content h1 span {
  color: var(--primary-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

[data-theme="dark"] .hero-stat-number {
  color: var(--primary-light);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2.5s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 3px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* ---------- ABOUT ---------- */
.about {
  padding: var(--section-pad);
  background: var(--bg);
}

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

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.6s var(--ease);
}

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

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(14, 51, 32, .85);
  backdrop-filter: blur(10px);
  color: var(--text-inv);
  padding: 16px 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="dark"] .about-image-badge {
  background: rgba(26, 34, 30, .85);
}

.about-image-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
}

.about-image-badge .badge-text {
  font-size: 0.85rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, .9);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--speed) var(--ease);
}

.about-feature:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--text-inv);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.about-feature h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

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

/* ---------- PACKAGES / SERVICES ---------- */
.packages {
  padding: var(--section-pad);
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
}

.packages::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(141, 198, 63, .08) 0%, transparent 70%);
  border-radius: 50%;
}

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

.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--speed) var(--ease);
}

.package-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.package-card.featured {
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.package-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: 20px;
  right: -32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-inv);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 40px;
  transform: rotate(45deg);
  z-index: 2;
}

.package-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 140, 67, .15), rgba(14, 140, 67, .05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.package-card h3 {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.package-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.package-price small {
  font-size: 0.45em;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.package-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.package-features li .check {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.package-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: var(--section-pad);
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 140, 67, .8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

[data-theme="dark"] .gallery-item-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(18, 24, 21, .9) 100%);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--text-inv);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: var(--section-pad);
  background: var(--surface-alt);
}

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

.testimonial-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  border: 1px solid var(--border);
  transition: all var(--speed) var(--ease);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--accent-gold);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.testimonial-author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-quote {
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
}

[data-theme="dark"] .testimonial-quote {
  opacity: 0.1;
}

/* ---------- CONTACT / CTA ---------- */
.cta {
  padding: var(--section-pad);
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

[data-theme="dark"] .cta {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/view-kaaba-masjid-al-haram-grand-mosque-768x576.jpg') center/cover;
  opacity: 0.06;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta .section-label {
  color: var(--primary-light);
}

.cta h2 {
  color: var(--text-inv);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, .8);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

/* ---------- VIDEO SECTION ---------- */
.video-section {
  padding: var(--section-pad);
  background: var(--bg);
}

.video-container {
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  background: var(--surface);
}

.video-container video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  outline: none;
}

/* ---------- RESERVATION FORM ---------- */
.reservation-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 24px;
  margin-top: 40px;
  text-align: left;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 32px;
}

.form-group label {
  color: var(--text-inv);
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 8px;
}

[dir="rtl"] .form-group label {
  margin-left: 0;
  margin-right: 8px;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-inv);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all var(--speed) var(--ease);
}

.reservation-form input::placeholder,
.reservation-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.reservation-form select option {
  background: var(--surface);
  color: var(--text);
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
  border-color: var(--primary-light);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.1);
}

.form-submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  border-radius: 12px;
  justify-content: center;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #111111;
  padding: 60px 0 0;
  color: rgba(255, 255, 255, .7);
}

[data-theme="dark"] .footer {
  background: #090B0A;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 16px;
  color: rgba(255, 255, 255, .6);
}

.footer-brand .nav-logo-text {
  font-size: 1.5rem;
  color: var(--text-inv);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inv);
  font-size: 1.1rem;
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--text-inv);
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--text-inv);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, .6);
  transition: all 0.3s var(--ease);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, .8);
}

.footer-contact-item .icon {
  color: var(--primary-light);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, .4);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inv);
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, .4);
  z-index: 999;
  transition: all 0.3s var(--ease);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, .5);
}

@keyframes pulse-wa {

  0%,
  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, .4);
  }

  50% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, .6), 0 0 0 12px rgba(37, 211, 102, .1);
  }
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--text-inv);
  border-color: var(--primary);
}

/* ---------- MAROC LAUNCH ---------- */
.maroc-launch {
  position: relative;
  padding: 120px 0;
  background: var(--surface-alt);
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .maroc-launch {
  background: #0D0D0D;
}

.maroc-launch-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
}

.orb-green {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -200px;
  left: -100px;
  animation: drift1 12s ease-in-out infinite;
}

.orb-lime {
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  bottom: -100px;
  right: -100px;
  animation: drift2 15s ease-in-out infinite;
}

@keyframes drift1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(80px, 60px);
  }
}

@keyframes drift2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-60px, -80px);
  }
}

.launch-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border-radius: 50px;
  background: rgba(141, 198, 63, .12);
  border: 1px solid rgba(141, 198, 63, .3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 32px;
}



[data-theme="dark"] .launch-badge {
  color: var(--primary-light);
}

.launch-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 40px;
  color: var(--text);
}

.launch-title span {
  display: block;
}

.launch-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .launch-title .highlight {
  filter: drop-shadow(0 0 20px rgba(141, 198, 63, .2));
}

.flight-anim-container {
  position: relative;
  width: min(600px, 90vw);
  height: 80px;
  margin: 0 auto 50px;
}

.flight-anim-container svg {
  width: 100%;
  height: 100%;
}

.city-dot-wrap {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.city-dot-wrap.mecca {
  left: 0;
}

.city-dot-wrap.maroc {
  right: 0;
}

.city-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.city-dot-wrap.mecca .city-dot {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold);
}

.city-dot-wrap.maroc .city-dot {
  background: #C1272D;
  border-color: #C1272D;
  box-shadow: 0 0 15px #C1272D;
}

.city-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.city-dot-wrap.mecca .city-name {
  color: var(--accent-gold);
}

.city-dot-wrap.maroc .city-name {
  color: #C1272D;
}

.plane-emoji {
  position: absolute;
  font-size: 1.6rem;
  top: 0;
  animation: fly 4s linear infinite;
}

@keyframes fly {
  0% {
    left: 5%;
    top: 30px;
  }

  50% {
    top: -5px;
  }

  100% {
    left: 90%;
    top: 30px;
  }
}

[dir="rtl"] .plane-emoji {
  transform: scaleX(-1);
  animation: fly-rtl 4s linear infinite;
}

@keyframes fly-rtl {
  0% {
    right: 5%;
    top: 30px;
  }

  50% {
    top: -5px;
  }

  100% {
    right: 90%;
    top: 30px;
  }
}

.countdown-wrap {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
}

[data-theme="dark"] .countdown-number {
  color: var(--primary-light);
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-sep {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-muted);
  opacity: 0.4;
  line-height: 1.2;
  align-self: flex-start;
  margin-top: 4px;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: .4;
  }

  50% {
    opacity: .1;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid {
    gap: 48px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 220px);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

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

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

.mobile-controls {
  display: none;
}

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

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.4s var(--ease);
    box-shadow: -10px 0 30px rgba(0, 0, 0, .1);
  }

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

  .nav-links a {
    font-size: 1.1rem;
    color: var(--text);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .mobile-controls {
    display: flex;
    justify-content: center;
    padding: 12px 0;
  }

  .mobile-controls .lang-switch {
    background: linear-gradient(135deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .02));
    border-color: rgba(0, 0, 0, .1);
  }

  .mobile-controls .lang-code {
    color: var(--text);
    text-shadow: none;
  }

  [dir="rtl"] .nav-links {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--border);
    transition: left 0.4s var(--ease);
  }

  [dir="rtl"] .nav-links.open {
    left: 0;
  }

  [dir="rtl"] .mobile-controls {
    padding: 12px 0;
  }

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

  .about-image img {
    height: 350px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat-number {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
    height: 250px;
  }

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

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

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

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-bismillah {
    font-size: 1.5rem;
  }

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

  .package-card {
    padding: 28px 24px;
  }

  .lang-switch {
    width: 72px;
    height: 36px;
  }

  .lang-flag {
    font-size: 1rem;
  }

  .lang-code {
    font-size: 0.65rem;
  }

  .nav-controls {
    gap: 8px;
    margin-left: 8px;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* RTL Specific Styles for general layout */
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .section-desc {
  margin-left: auto;
  margin-right: auto;
}

[dir="rtl"] .package-features li {
  padding-right: 0;
}

[dir="rtl"] .btn::before {
  left: auto;
  right: -100%;
  transition: right 0.6s var(--ease);
}

[dir="rtl"] .btn:hover::before {
  right: 100%;
  left: auto;
}

/* RTL nav controls order */
[dir="rtl"] .nav-controls {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .nav-cta {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .ar-hide {
  display: none;
}

/* Hero brand language toggle */
.hero-brand-ar {
  display: none;
}

[dir="rtl"] .hero-brand-fr {
  display: none;
}

[dir="rtl"] .hero-brand-ar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}