@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --background: 30 20% 98%;
  --foreground: 350 50% 15%;
  --card: 0 0% 100%;
  --card-foreground: 350 50% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 350 50% 15%;
  --primary: 342 55% 35%;
  --primary-foreground: 30 20% 98%;
  --secondary: 43 65% 55%;
  --secondary-foreground: 350 50% 15%;
  --muted: 30 15% 92%;
  --muted-foreground: 350 20% 45%;
  --accent: 43 65% 55%;
  --accent-foreground: 350 50% 15%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 30 20% 88%;
  --input: 30 20% 88%;
  --ring: 342 55% 35%;
  --radius: 0.75rem;
  --gold: 43 65% 55%;
  --gold-light: 43 70% 70%;
  --burgundy: 342 55% 35%;
  --burgundy-dark: 342 60% 25%;
  --burgundy-light: 342 45% 50%;
  --cream: 30 20% 98%;
  --cream-dark: 30 15% 92%;
  --gradient-primary: linear-gradient(135deg, hsl(342 55% 35%), hsl(342 60% 25%));
  --gradient-gold: linear-gradient(135deg, hsl(43 65% 55%), hsl(43 70% 65%));
  --gradient-hero: linear-gradient(180deg, hsl(30 20% 98%) 0%, hsl(30 15% 94%) 100%);
  --shadow-soft: 0 4px 20px -4px hsl(342 55% 35% / 0.1);
  --shadow-card: 0 8px 30px -8px hsl(342 55% 35% / 0.12);
  --shadow-elevated: 0 20px 50px -15px hsl(342 55% 35% / 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.custom-logo {
  height: 3rem;
  width: auto;
}

@media (min-width: 768px) {
  .custom-logo {
    height: 3.5rem;
  }
}

.section-padding {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 2rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 6rem 3rem;
  }
}

.container-tight {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.text-gradient {
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-gold {
  background-image: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-elevated {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border: 2px solid hsl(var(--secondary));
  color: hsl(var(--secondary));
  background: transparent;
  text-decoration: none;
}

.btn-secondary:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.geometric-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23922045' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.faq-icon {
  font-size: 1.25rem;
}

.fa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.fa-icon.w-5, .fa-icon.h-5 { font-size: 1.25rem; }
.fa-icon.w-6, .fa-icon.h-6 { font-size: 1.5rem; }
.fa-icon.w-7, .fa-icon.h-7 { font-size: 1.75rem; }
.fa-icon.w-8, .fa-icon.h-8 { font-size: 2rem; }

/* Utility fallback (Tailwind subset) */
.block { display: block; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-20 { padding-top: 5rem; }
.pb-5 { padding-bottom: 1.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.\!py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.\!py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.w-80 { width: 20rem; }
.h-80 { height: 20rem; }
.w-96 { width: 24rem; }
.h-96 { height: 24rem; }
.w-full { width: 100%; }
.h-0\.5 { height: 0.125rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-8xl { font-size: 6rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-start { text-align: start; }

.bg-background { background-color: hsl(var(--background)); }
.bg-background\/90 { background-color: hsl(var(--background) / 0.9); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }
.bg-muted\/50 { background-color: hsl(var(--muted) / 0.5); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-secondary\/10 { background-color: hsl(var(--secondary) / 0.1); }
.bg-secondary\/20 { background-color: hsl(var(--secondary) / 0.2); }
.bg-destructive\/10 { background-color: hsl(var(--destructive) / 0.1); }
.bg-burgundy-dark\/50 { background-color: hsl(var(--burgundy-dark) / 0.5); }

.text-foreground { color: hsl(var(--foreground)); }
.text-background { color: hsl(var(--background)); }
.text-background\/70 { color: hsl(var(--background) / 0.7); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-primary-foreground\/60 { color: hsl(var(--primary-foreground) / 0.6); }
.text-primary-foreground\/80 { color: hsl(var(--primary-foreground) / 0.8); }
.text-secondary { color: hsl(var(--secondary)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-primary { color: hsl(var(--primary)); }

.border { border-width: 1px; border-style: solid; border-color: hsl(var(--border)); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: hsl(var(--border)); }
.border-border { border-color: hsl(var(--border)); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-1\/4 { top: 25%; }
.bottom-1\/4 { bottom: 25%; }
.top-24 { top: 6rem; }
.left-\[12\.5\%\] { left: 12.5%; }
.right-\[12\.5\%\] { right: 12.5%; }
.-top-4 { top: -1rem; }
.-right-4 { right: -1rem; }
.-bottom-4 { bottom: -1rem; }
.-left-4 { left: -1rem; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }

.invert { filter: invert(1); }
.blur-2xl { filter: blur(40px); }
.blur-3xl { filter: blur(64px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.transition-all { transition-property: all; transition-duration: 150ms; transition-timing-function: ease; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-duration: 150ms; transition-timing-function: ease; }
.transition-transform { transition-property: transform; transition-duration: 150ms; transition-timing-function: ease; }
.duration-300 { transition-duration: 300ms; }

.hover\:text-background:hover { color: hsl(var(--background)); }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:border-primary\/30:hover { border-color: hsl(var(--primary) / 0.3); }
.hover\:no-underline:hover { text-decoration: none; }

.group:hover .group-hover\:bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.group:hover .group-hover\:translate-x-1 { --tw-translate-x: 0.25rem; }

[class*="translate-"] {
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y));
}
.translate-x-1\/2 { --tw-translate-x: 50%; }
.-translate-x-1\/2 { --tw-translate-x: -50%; }
.translate-y-1\/2 { --tw-translate-y: 50%; }
.-translate-y-1\/2 { --tw-translate-y: -50%; }

.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-transparent { --tw-gradient-from: transparent; --tw-gradient-to: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to); }
.to-muted\/30 { --tw-gradient-to: hsl(var(--muted) / 0.3); }
.from-primary { --tw-gradient-from: hsl(var(--primary)); --tw-gradient-to: hsl(var(--primary) / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-secondary { --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--secondary)), var(--tw-gradient-to); }
.to-primary { --tw-gradient-to: hsl(var(--primary)); }
.to-burgundy-dark { --tw-gradient-to: hsl(var(--burgundy-dark)); }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:gap-12 { gap: 3rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-8xl { font-size: 6rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:h-12 { height: 3rem; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-6xl { font-size: 3.75rem; }
}
