/* ===== CSS Variables ===== */
:root {
  --primary: #1a3c6e;
  --primary-dark: #0f2447;
  --accent: #e8410a;
  --accent-light: #ff5722;
  --gold: #f0a500;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --text: #2d2d2d;
  --text-muted: #666;
  --border: #e0e6ed;
  --shadow: 0 8px 32px rgba(26,60,110,0.12);
  --shadow-hover: 0 16px 48px rgba(26,60,110,0.22);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-info { display: flex; gap: 20px; }
.top-info span, .top-hotline { display: flex; align-items: center; gap: 6px; }
.top-hotline { color: var(--gold); font-weight: 700; font-size: 14px; }
.top-hotline i { animation: ring 2s infinite; }
@keyframes ring {
  0%,100%{transform:rotate(0)} 10%,30%{transform:rotate(-15deg)} 20%,40%{transform:rotate(15deg)}
}

/* ===== Header ===== */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 20px; }
.logo a { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px;
  box-shadow: 0 4px 15px rgba(26,60,110,0.3);
}
.logo-name { display: block; font-family: 'Tajawal', sans-serif; font-size: 18px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.logo-sub { display: block; font-size: 11px; color: var(--text-muted); }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary);
  color: var(--white);
}
.btn-call-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(232,65,10,0.35);
  white-space: nowrap;
}
.btn-call-header:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,65,10,0.45); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e5099 100%);
  color: white;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(240,165,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,65,10,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240,165,0,0.2);
  border: 1px solid rgba(240,165,0,0.4);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: 16px; opacity: 0.9; margin-bottom: 35px; line-height: 1.8; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary-lg {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; gap: 10px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(232,65,10,0.4);
}
.btn-primary-lg:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(232,65,10,0.5); }
.btn-outline-lg {
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  display: flex; align-items: center; gap: 10px;
  transition: var(--transition);
}
.btn-outline-lg:hover { background: rgba(255,255,255,0.1); border-color: white; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--gold); font-family: 'Tajawal', sans-serif; }
.stat-label { font-size: 12px; opacity: 0.8; }
.hero-image-wrap {
  position: relative;
}
.hero-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-img-main img { width: 100%; height: 380px; object-fit: cover; }
.hero-img-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: white;
  border-radius: var(--radius);
  padding: 15px 20px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  min-width: 180px;
}
.hero-img-badge .badge-icon { font-size: 28px; }
.hero-img-badge .badge-text strong { display: block; color: var(--primary); font-size: 14px; }
.hero-img-badge .badge-text span { font-size: 11px; color: var(--text-muted); }

/* ===== Section Headings ===== */
.section-head { text-align: center; margin-bottom: 55px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,60,110,0.08);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.section-head h2 span { color: var(--accent); }
.section-head p { color: var(--text-muted); max-width: 550px; margin: 0 auto; font-size: 15px; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 2px; margin: 15px auto 0; }

/* ===== Services Section ===== */
.services-section { background: var(--light-bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-img { height: 200px; overflow: hidden; position: relative; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,36,71,0.7) 0%, transparent 60%);
}
.service-body { padding: 22px; }
.service-icon { font-size: 2rem; margin-bottom: 10px; }
.service-body h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.service-body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.service-link i { transition: transform var(--transition); }
.service-card:hover .service-link i { transform: translateX(-4px); }

/* ===== Why Us ===== */
.why-us { background: white; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why-image { position: relative; }
.why-image img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; height: 450px; }
.why-image-badge {
  position: absolute;
  top: 20px; left: -20px;
  background: var(--accent);
  color: white;
  padding: 15px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 25px rgba(232,65,10,0.35);
}
.why-image-badge strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.why-image-badge span { font-size: 12px; opacity: 0.9; }
.why-features { display: flex; flex-direction: column; gap: 20px; }
.why-feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.why-feature:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.why-feature-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #2a5298);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px;
}
.why-feature h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.why-feature p { font-size: 13px; color: var(--text-muted); }

/* ===== How It Works ===== */
.how-it-works { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; }
.how-it-works .section-head h2 { color: white; }
.how-it-works .section-tag { background: rgba(255,255,255,0.15); color: white; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute;
  top: 35px; right: 12.5%; left: 12.5%;
  height: 2px;
  background: rgba(255,255,255,0.2);
}
.step-card { text-align: center; position: relative; }
.step-num {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(232,65,10,0.4);
  position: relative; z-index: 1;
  font-family: 'Tajawal', sans-serif;
}
.step-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; opacity: 0.85; }

/* ===== Testimonials ===== */
.testimonials { background: var(--light-bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 18px;
}
.author-info strong { display: block; font-size: 14px; color: var(--primary); }
.author-info span { font-size: 12px; color: var(--text-muted); }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  text-align: center;
  padding: 70px 0;
}
.cta-section h2 { font-family: 'Tajawal', sans-serif; font-size: 2.2rem; font-weight: 900; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 35px; }
.cta-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-white {
  background: white;
  color: var(--accent);
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; gap: 10px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.btn-outline-white {
  border: 2px solid white;
  color: white;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  display: flex; align-items: center; gap: 10px;
  transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ===== Float Call Button ===== */
.float-call-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 25px rgba(232,65,10,0.45);
  z-index: 998;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.float-call-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(232,65,10,0.55); animation: none; }
@keyframes pulse {
  0%,100%{box-shadow:0 8px 25px rgba(232,65,10,0.45)}
  50%{box-shadow:0 8px 35px rgba(232,65,10,0.7), 0 0 0 8px rgba(232,65,10,0.1)}
}

/* ===== Footer ===== */
.main-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { font-family: 'Tajawal', sans-serif; font-size: 22px; font-weight: 800; color: white; margin-bottom: 15px; }
.footer-col p { font-size: 14px; line-height: 1.8; opacity: 0.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); }
.footer-col h4 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,0.1); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; opacity: 0.8; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-col ul a:hover { opacity: 1; color: var(--gold); padding-right: 5px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 15px; }
.footer-contact-item i { color: var(--gold); margin-top: 3px; width: 16px; }
.footer-contact-item small { display: block; font-size: 11px; opacity: 0.6; }
.footer-contact-item strong { font-size: 14px; color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p { font-size: 13px; opacity: 0.6; }

/* ===== Page Hero ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-family: 'Tajawal', sans-serif; font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.page-hero p { opacity: 0.85; font-size: 15px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 15px; font-size: 13px; opacity: 0.75; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { opacity: 0.5; }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 25px; }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #2a5298);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
}
.contact-info-text strong { display: block; font-size: 14px; color: var(--primary); margin-bottom: 3px; }
.contact-info-text span { font-size: 13px; color: var(--text-muted); }
.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 25px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  background: white;
  direction: rtl;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  background: linear-gradient(135deg, var(--primary), #2a5298);
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 20px rgba(26,60,110,0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26,60,110,0.4); }
.alert-success { background: #d4edda; color: #155724; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.alert-error { background: #f8d7da; color: #721c24; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }

/* ===== Privacy / Terms ===== */
.content-page { padding: 70px 0; }
.content-box { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; }
.content-box h2 { font-size: 1.6rem; font-weight: 700; color: var(--primary); margin: 30px 0 12px; }
.content-box h2:first-child { margin-top: 0; }
.content-box p { font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 14px; }
.content-box ul { margin: 10px 0 14px; padding-right: 20px; }
.content-box ul li { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; position: relative; }
.content-box ul li::before { content: '•'; color: var(--accent); position: absolute; right: -16px; }

/* ===== About Page ===== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-text h2 { font-family: 'Tajawal', sans-serif; font-size: 2rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 15px; }
.about-text p { color: var(--text-muted); font-size: 15px; line-height: 1.9; margin-bottom: 12px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
.team-card { background: white; border-radius: var(--radius-lg); padding: 25px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.team-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 32px; margin: 0 auto 15px; }
.team-card h4 { font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.team-card p { font-size: 13px; color: var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { gap: 40px; }
  .hero h1 { font-size: 2.4rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: white; padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; }
  .hamburger { display: flex; }
  .btn-call-header { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { display: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-info { display: none; }
  .section-padding { padding: 55px 0; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .section-head h2 { font-size: 1.7rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .float-call-btn span { display: none; }
  .float-call-btn { padding: 14px 18px; border-radius: 50%; width: 56px; height: 56px; justify-content: center; }
}
