/* =========================================================================
   Theme Name: Al-Mustaghebel Auto Parts — Professional Redesign
   Primary Colors: Navy (#0d2d4a), Red (#c8181a), Gold (#d4a843)
========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --primary-blue: #0d2d4a;
  --primary-blue-mid: #154266;
  --primary-red: #c8181a;
  --primary-red-dark: #9e1214;
  --gold: #d4a843;
  --gold-light: #f0c860;
  --dark-color: #07192a;
  --light-bg: #f4f6f9;
  --warm-bg: #fafaf8;
  --text-color: #2c2c2c;
  --text-muted: #6b7280;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(13, 45, 74, 0.07);
  --shadow-md: 0 8px 24px rgba(13, 45, 74, 0.11);
  --shadow-lg: 0 20px 50px rgba(13, 45, 74, 0.16);
  --shadow-red: 0 8px 24px rgba(200, 24, 26, 0.25);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}

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

ul { list-style: none; }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-blue);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 15px;
}

p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 60px;
  position: relative;
  color: var(--primary-blue);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--gold));
  border-radius: 4px;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.py-5 {
  padding-top: 90px;
  padding-bottom: 90px;
}

.bg-white { background-color: var(--white); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), #e02527);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-red-dark), var(--primary-red));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(200, 24, 26, 0.38);
  color: var(--white);
}

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

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   HEADER & NAVIGATION
============================================================ */
header {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(13, 45, 74, 0.08), 0 4px 20px rgba(13, 45, 74, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links li a {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-color);
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}

.nav-links li a.active {
  color: var(--primary-red);
  background-color: rgba(200, 24, 26, 0.07);
}

.nav-links li a:hover {
  color: var(--primary-red);
  background-color: rgba(200, 24, 26, 0.06);
}

/* Language Switcher */
.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--primary-blue);
  border-radius: 30px;
  width: 76px;
  height: 34px;
  cursor: pointer;
  direction: ltr;
  overflow: hidden;
  border: none;
}

.lang-switch .lang-text {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  z-index: 2;
  user-select: none;
}

.lang-switch .lang-slider {
  position: absolute;
  top: 3px;
  width: 34px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary-red), #e02527);
  border-radius: 20px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lang-switch.is-ar .lang-slider { transform: translateX(3px); }
.lang-switch.is-en .lang-slider { transform: translateX(37px); }

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-blue);
  padding: 8px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--white);
  padding: 12px 20px 20px;
  border-top: 1px solid #f0f0f0;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-color);
  padding: 11px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-menu a:hover, .mobile-menu a.active {
  background-color: rgba(200, 24, 26, 0.07);
  color: var(--primary-red);
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  min-height: 88vh;
  background:
    linear-gradient(135deg, rgba(7, 25, 42, 0.92) 0%, rgba(13, 45, 74, 0.85) 100%),
    url('../assets/images/hero_bg.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Decorative diagonal lines pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.015) 30px,
    rgba(255,255,255,0.015) 60px
  );
  pointer-events: none;
}

/* Bottom wave divider */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--light-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 60px 0 100px;
}

/* Gold accent line above heading */
.hero-content::before {
  content: '';
  display: block;
  width: 55px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 22px;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--gold-light);
  position: relative;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 680px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-buttons .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-buttons .btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
}

/* ============================================================
   FEATURES SECTION (Floating cards)
============================================================ */
.features {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  padding-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-card {
  background-color: var(--white);
  padding: 40px 30px 36px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--gold));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

/* Colored icon circle */
.feature-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-mid));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
  background: linear-gradient(135deg, var(--primary-red), #e02527);
}

.feature-icon {
  font-size: 2rem;
  color: var(--white);
  display: inline-block;
}

/* Direct icon usage (without wrap) */
.feature-card > .feature-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover > .feature-icon {
  color: var(--primary-red);
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--primary-blue);
}

.feature-card p {
  font-size: 0.97rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ============================================================
   ABOUT PREVIEW
============================================================ */
.about-preview {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text { flex: 1; }

.about-text h2 {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1.25;
}

.about-text .highlight { color: var(--primary-red); }

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -18px;
  right: -18px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--gold);
  border-radius: var(--border-radius-lg);
  z-index: 0;
  opacity: 0.5;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 60%;
  height: 60%;
  background: rgba(200, 24, 26, 0.06);
  border-radius: var(--border-radius-lg);
  z-index: 0;
}

/* ============================================================
   STATS SECTION
============================================================ */
.stats {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0a2238 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(200, 24, 26, 0.08) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 20px;
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.stat-item h3 {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

/* ============================================================
   BRANDS SECTION
============================================================ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.brand-card {
  background-color: var(--white);
  padding: 28px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid #eaeaea;
}

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

.brand-card img {
  filter: grayscale(100%) opacity(0.65);
  transition: var(--transition);
}

.brand-card:hover img {
  filter: grayscale(0%) opacity(1);
}

.brand-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 700;
  transition: var(--transition);
}

.brand-card:hover h4 {
  color: var(--primary-blue);
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta-branches {
  background: linear-gradient(135deg, var(--primary-red) 0%, #9e1214 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-branches::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.03) 20px,
    rgba(255,255,255,0.03) 40px
  );
}

.cta-branches h2 {
  color: var(--white);
  font-size: 2.6rem;
  position: relative;
  z-index: 1;
}

.cta-branches p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-branches .btn {
  background: var(--white);
  color: var(--primary-red);
  font-size: 1.1rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.cta-branches .btn:hover {
  background: var(--gold-light);
  color: var(--primary-blue);
  transform: translateY(-4px);
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonial-card {
  padding: 35px 30px;
  border-radius: var(--border-radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
  border: 1.5px solid #edf0f4;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 5rem;
  color: var(--primary-red);
  opacity: 0.12;
  font-family: Georgia, serif;
  line-height: 1;
}

body:not(.ltr-mode) .testimonial-card::before {
  left: auto;
  right: 24px;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 24, 26, 0.15);
}

.rating {
  color: #f5a623;
  margin-bottom: 16px;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 0;
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

.client-name {
  font-weight: 800;
  color: var(--primary-blue);
  margin-top: 20px;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-name::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 2px;
}

/* ============================================================
   BLOG CARDS
============================================================ */
.blog-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid #edf0f4;
  transition: var(--transition);
}

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

.blog-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.06);
}

.blog-content {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.5;
  color: var(--primary-blue);
}

.read-more {
  margin-top: auto;
  color: var(--primary-red);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-blue);
  gap: 12px;
}

/* ============================================================
   BRANCHES PAGE
============================================================ */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.branch-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1.5px solid #edf0f4;
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.branch-card-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-mid));
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.branch-card-header i {
  color: var(--gold-light);
  font-size: 1.6rem;
}

.branch-card-header h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin: 0;
}

.branch-content {
  padding: 28px;
  flex-grow: 1;
}

.branch-city {
  display: inline-block;
  background: rgba(200, 24, 26, 0.08);
  color: var(--primary-red);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.branch-card p {
  font-size: 0.97rem;
  color: #6b7280;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.branch-card p i {
  color: var(--primary-red);
  margin-top: 4px;
  flex-shrink: 0;
}

.branch-actions {
  display: flex;
  gap: 10px;
  padding: 18px 28px;
  background-color: var(--light-bg);
  border-top: 1px solid #eaeaea;
}

.branch-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.95rem;
  gap: 6px;
}

.btn-call {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
}

.btn-call:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-2px);
}

.btn-map {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-mid));
  color: white;
}

.btn-map:hover {
  background: linear-gradient(135deg, var(--dark-color), var(--primary-blue));
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-container {
  display: flex;
  gap: 40px;
}

.contact-form-box {
  flex: 2;
  background: var(--white);
  padding: 44px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-info-box {
  flex: 1;
  background: linear-gradient(160deg, var(--primary-blue) 0%, #0a2238 100%);
  color: var(--white);
  padding: 44px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-info-box h3, .contact-info-box p { color: var(--white); }

.contact-info-box p { color: rgba(255,255,255,0.8); }

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-blue);
  font-size: 0.97rem;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--light-bg);
  color: var(--text-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 24, 26, 0.1);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: linear-gradient(175deg, #0a1e30 0%, var(--dark-color) 100%);
  color: #94a3b8;
  padding: 70px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 14px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red), var(--gold));
  border-radius: 2px;
}

body.ltr-mode .footer-col h4::after { right: auto; left: 0; }

.footer-col p {
  color: #94a3b8;
  font-size: 0.97rem;
  line-height: 1.85;
}

.footer-links li { margin-bottom: 10px; }

.footer-links li a {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.97rem;
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--gold-light);
  padding-right: 5px;
}

.footer-links li:not(:has(a)) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: rgba(255,255,255,0.07);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}

.social-links a:hover {
  background-color: var(--primary-red);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.9rem;
  color: #64748b;
}

/* --- Footer Trust Badges --- */
.footer-trust-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-top: 35px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.trust-cert-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px 28px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  direction: rtl;
  color: #94a3b8;
}

body.ltr-mode .cert-row { direction: ltr; }

.cert-icon {
  font-size: 1.1rem;
  color: var(--gold);
  width: 22px;
  text-align: center;
}

.trust-pay-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pay-badge {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pay-tabby { background-color: #3eefb2; color: #000; }
.pay-tamara { background: linear-gradient(90deg, #ffcabd 0%, #d8afff 100%); color: #000; }
.pay-apple { background-color: #1a1a1a; color: #fff; }
.pay-mada { background-color: #fff; color: #0f171e; border: 1px solid #ddd; }

/* ============================================================
   FAB BUTTONS
============================================================ */
.fab-container {
  position: fixed;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.fab-item {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: var(--transition);
}

.fab-item:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.fab-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.fab-call { background: linear-gradient(135deg, var(--primary-blue), #0a2238); }

/* ============================================================
   GLASS & PREMIUM HELPERS
============================================================ */
.glass-effect {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.premium-shadow {
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.premium-shadow:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   PAGE HERO (Inner pages)
============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0a2238 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.018) 30px,
    rgba(255,255,255,0.018) 60px
  );
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.6rem; }
  .about-preview, .contact-container { flex-direction: column; gap: 36px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .section-title { font-size: 2rem; }
  .py-5 { padding-top: 70px; padding-bottom: 70px; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero { min-height: 75vh; }
  .section-title { font-size: 1.8rem; }
  .btn { padding: 11px 24px; font-size: 0.97rem; }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .feature-card, .footer-col { text-align: center; }
  .footer-col h4::after { left: 50%; right: auto; transform: translateX(-50%); }
  .social-links { justify-content: center; }
  .fab-container { bottom: 20px; left: 16px; }
  .fab-item { width: 52px; height: 52px; font-size: 22px; }
  .contact-form-box, .contact-info-box { padding: 28px 22px; }
  .stat-item h3 { font-size: 2.6rem; }
  .cta-branches h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   LTR (English) OVERRIDES
============================================================ */
body.ltr-mode {
  direction: ltr;
  text-align: left;
}

body.ltr-mode .social-links { direction: ltr; }

body.ltr-mode .footer-links li a i {
  margin-right: 8px;
  margin-left: 0;
}

body.ltr-mode .testimonial-card {
  border-right: none;
  border-left: 4px solid var(--primary-red);
}

body.ltr-mode .hero-content::before { margin-right: auto; }

body.ltr-mode .footer-links li a:hover { padding-right: 0; padding-left: 5px; }

/* ============================================================
   KEYFRAME ANIMATIONS
============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.hero-content {
  animation: fadeInDown 0.9s ease-out both;
}
