/* ===== Family Mark Pharmacy — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --navy:        #2B3C6E;
  --navy-dark:   #1E2A4F;
  --navy-light:  #3A4F8A;
  --gold:        #D4A843;
  --gold-light:  #E8C56D;
  --gold-dark:   #B8902E;
  
  /* Neutrals */
  --white:       #FFFFFF;
  --off-white:   #F8F9FC;
  --gray-50:     #F1F3F8;
  --gray-100:    #E4E7EF;
  --gray-200:    #C9CEE0;
  --gray-400:    #8B93AD;
  --gray-600:    #5A6380;
  --gray-800:    #2D3348;
  --black:       #0D1117;

  /* Semantic */
  --success:     #22C55E;
  --info:        #3B82F6;

  /* Typography */
  --font-ar:     'Cairo', sans-serif;
  --font-en:     'Inter', sans-serif;

  /* Spacing scale */
  --space-xs:    0.25rem;
  --space-sm:    0.5rem;
  --space-md:    1rem;
  --space-lg:    1.5rem;
  --space-xl:    2rem;
  --space-2xl:   3rem;
  --space-3xl:   4rem;
  --space-4xl:   6rem;

  /* Radius */
  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(43, 60, 110, 0.08);
  --shadow-md:   0 4px 16px rgba(43, 60, 110, 0.10);
  --shadow-lg:   0 8px 32px rgba(43, 60, 110, 0.12);
  --shadow-xl:   0 16px 48px rgba(43, 60, 110, 0.16);
  --shadow-gold: 0 4px 24px rgba(212, 168, 67, 0.30);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --transition:  0.35s var(--ease-out);
}

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

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

body {
  font-family: var(--font-ar);
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4); }
  50%      { box-shadow: 0 0 0 16px rgba(212, 168, 67, 0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
}

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

.navbar-logo {
  height: 52px;
  transition: transform var(--transition);
  border-radius: var(--radius-sm);
}
.navbar-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a {
  color: var(--gray-800);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark) !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 28px rgba(212, 168, 67, 0.45) !important;
  color: var(--navy-dark) !important;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.navbar.scrolled .menu-toggle span {
  background: var(--navy);
}
.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;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--off-white), transparent);
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-content {
  animation: fadeInRight 1s var(--ease-out) 0.3s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.3);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray-200);
  max-width: 520px;
  margin-bottom: var(--space-2xl);
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.hero-image {
  animation: fadeInLeft 1s var(--ease-out) 0.6s both;
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-xl) + 6px);
  background: linear-gradient(135deg, var(--gold), transparent 50%, var(--navy-light));
  z-index: -1;
  opacity: 0.6;
}

/* Floating stats */
.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  animation: fadeInUp 1s var(--ease-out) 0.9s both;
}

.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-en);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray-200);
  margin-top: 2px;
}

/* Decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}
.hero-shape-1 {
  width: 400px;
  height: 400px;
  border: 40px solid var(--gold);
  top: -100px;
  left: -100px;
}
.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--gold);
  bottom: 20%;
  right: -50px;
  animation: float 6s ease-in-out infinite;
}
.hero-shape-3 {
  width: 100px;
  height: 100px;
  background: var(--white);
  top: 30%;
  left: 40%;
  animation: float 8s ease-in-out infinite 1s;
}

/* ── Section Commons ── */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}
.section-subtitle::before,
.section-subtitle::after {
  content: '';
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: var(--radius-full);
}
.section-subtitle::before {
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.section-description {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── About Section ── */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--gold);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.4;
}

.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: var(--space-lg);
}

.about-content p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: var(--space-xl);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.about-feature:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.about-feature .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-feature span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

/* ── Services Section ── */
.services {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(43, 60, 110, 0.08), rgba(43, 60, 110, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.8rem;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  transform: scale(1.1) rotate(-5deg);
}
.service-card:hover .service-icon svg {
  color: var(--gold);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── Products Section ── */
.products {
  background: var(--white);
}

/* Category Filter Tabs */
.category-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-full);
  background: var(--white);
  font-family: var(--font-ar);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(43, 60, 110, 0.04);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(43, 60, 110, 0.25);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-btn:not(.active) .filter-count {
  background: var(--gray-50);
  color: var(--gray-400);
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-100);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.product-info {
  padding: var(--space-lg);
}

.product-category {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.product-info p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  font-family: var(--font-en);
}

.product-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.product-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  transform: scale(1.15);
}

/* ── Why Choose Us ── */
.why-us {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(212, 168, 67, 0.08), transparent 60%);
}

.why-us .section-subtitle {
  color: var(--gold-light);
}
.why-us .section-title {
  color: var(--white);
}
.why-us .section-description {
  color: var(--gray-200);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.why-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.why-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
  border-color: rgba(212, 168, 67, 0.3);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.5rem;
  transition: all var(--transition);
}
.why-card:hover .why-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--shadow-gold);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
}
.why-card p {
  font-size: 0.9rem;
  color: var(--gray-200);
  line-height: 1.7;
}

/* ── Testimonials ── */
.testimonials {
  background: var(--white);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
.author-info span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ── Contact Section ── */
.contact {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.12), transparent 60%);
  border-radius: 50%;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  position: relative;
}

.contact-info > p {
  color: var(--gray-200);
  font-size: 0.95rem;
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  position: relative;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.contact-item .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(212, 168, 67, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-item-text p {
  font-size: 0.9rem;
  color: var(--gray-200);
  direction: ltr;
  text-align: right;
}

.contact-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  position: relative;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-link:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-3px);
  border-color: var(--gold);
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.contact-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-family: var(--font-ar);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--off-white);
  transition: all var(--transition);
  outline: none;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(43, 60, 110, 0.08);
}

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

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Map Section ── */
.map-section {
  height: 350px;
  background: var(--gray-100);
  position: relative;
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand img {
  height: 56px;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.8;
  max-width: 300px;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  position: relative;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: all var(--transition);
  padding: 2px 0;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: 0.85rem;
  color: var(--gray-400);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-hours li span:first-child {
  font-weight: 600;
  color: var(--gray-200);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-400);
}
.footer-bottom a {
  color: var(--gold);
  font-weight: 600;
}

/* ── Scroll to Top ── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  transform: translateY(-4px);
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition);
  animation: pulse 3s ease infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ── Loading overlay ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  height: 80px;
  animation: float 2s ease-in-out infinite;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; }
  .hero-image  { order: 0; max-width: 500px; margin: 0 auto; }
  .hero-description { margin: 0 auto var(--space-2xl); }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrapper { max-width: 500px; margin: 0 auto; }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-slider { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    gap: var(--space-lg);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    color: var(--gray-800) !important;
    font-size: 1.1rem;
  }
  
  .menu-toggle { display: flex; }
  
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-image img { height: 300px; }
  
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-slider { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: var(--space-md); }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
