/* ============================================
   NASIM AL-TAIF — Design System
   Primary: #DD183B | Font: Changa (RTL)
   ============================================ */

/* ---------- 1. CSS Variables ---------- */
:root {
  --color-primary:   #DD183B;
  --color-secondary: #B81230;
  --color-dark:      #0f172a;
  --color-text:      #374151;
  --color-muted:     #6b7280;
  --color-bg:        #ffffff;
  --color-light:     #f9fafb;
  --color-alt:       #f0f4f8;
  --color-border:    #e5e7eb;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 4px 20px rgba(0,0,0,0.09);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.12);
  --shadow-red:  0 8px 30px rgba(221,24,59,0.2);

  --transition: 0.28s ease;
  --font: 'Changa', 'Segoe UI', Arial, sans-serif;
  --max-w: 1200px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  direction: rtl;
  color: var(--color-text);
  line-height: 1.75;
  background: var(--color-bg);
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ---------- 3. Layout Utilities ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-light { background: var(--color-bg);   padding: 5rem 0; }
.section-alt   { background: var(--color-alt);  padding: 5rem 0; }
.section-dark  { background: var(--color-dark); padding: 5rem 0; color: #fff; }
.section-red   { background: var(--color-primary); padding: 4rem 0; color: #fff; }

.text-center { text-align: center; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { color: var(--color-muted); font-size: 1.1rem; max-width: 640px; margin: 0.75rem auto 0; }

/* ---------- 4. Grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* ---------- 5. Typography ---------- */
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.25; color: var(--color-dark); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.3; color: var(--color-dark); }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--color-dark); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-red  h1,
.section-red  h2 { color: #fff; }

.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-muted); }
.label-tag {
  display: inline-block;
  background: rgba(221,24,59,0.1);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- 7. Header & Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links li a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-primary);
  background: rgba(221,24,59,0.06);
}

.menu-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--color-dark);
}
.menu-toggle svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- 8. Hero Section ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 5rem 0;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-112-7.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-content { color: #fff; }
.hero-content h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-content .hero-phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-content .hero-phone a { color: #fff; }
.hero-content .hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-bottom: 0;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

/* ---------- 9. Trust Bar ---------- */
.trust-bar {
  background: var(--color-primary);
  color: #fff;
  padding: 1.1rem 0;
}
.trust-bar-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
}
.trust-item svg { width: 22px; height: 22px; fill: rgba(255,255,255,0.9); }

/* ---------- 10. Cards ---------- */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-red);
  border-color: rgba(221,24,59,0.15);
}
.card-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card-icon svg { fill: #fff; width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.75rem; }
.card p  { color: var(--color-muted); flex: 1; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 1.25rem;
  transition: var(--transition);
}
.read-more::after { content: '←'; }
.read-more:hover { gap: 0.7rem; }

/* ---------- 11. Content Sections ---------- */
.content-block { margin-bottom: 2.5rem; }
.content-block h2 { margin-bottom: 1rem; }
.content-block h3 { margin-bottom: 0.75rem; }

.check-list { margin: 1rem 0 1.5rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
  flex-shrink: 0;
}

.num-list { margin: 1rem 0 1.5rem; counter-reset: nums; }
.num-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  counter-increment: nums;
}
.num-list li:last-child { border-bottom: none; }
.num-list li::before {
  content: counter(nums);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ---------- 12. Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.testimonial-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.65;
}
.testimonial-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

/* ---------- 13. CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.cta-section p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-phone {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}
.cta-phone a { color: #fff; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #9ca3af;
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1e293b;
}
.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.footer-col p { font-size: 0.95rem; line-height: 1.7; }
.footer-logo { height: 50px; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: #9ca3af;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a::before { content: '←'; font-size: 0.8rem; color: var(--color-primary); }
.footer-links a:hover { color: #fff; padding-right: 4px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.footer-contact-item a { color: #9ca3af; }
.footer-contact-item a:hover { color: var(--color-primary); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-links a {
  width: 38px;
  height: 38px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-links a:hover { background: var(--color-primary); }
.social-links svg { width: 18px; height: 18px; fill: #9ca3af; }
.social-links a:hover svg { fill: #fff; }
.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

/* ---------- 15. Floating Actions ---------- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}
.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: var(--transition);
}
.floating-btn:hover { transform: scale(1.12); box-shadow: 0 6px 30px rgba(0,0,0,0.3); }
.float-whatsapp { background: #25D366; }
.float-phone { background: var(--color-primary); }
.floating-btn svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- 16. Statistics Section ---------- */
.stats-section {
  background: var(--color-dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-item h3 {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.stat-item p {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

/* ---------- 17. Features Grid ---------- */
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-red);
}
.feature-card .icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
  background: rgba(221,24,59,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card .icon svg {
  width: 38px;
  height: 38px;
  fill: var(--color-primary);
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--color-muted); font-size: 0.95rem; }

/* ---------- 18. Map Container ---------- */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow);
  margin-top: 2rem;
  border: 1px solid var(--color-border);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- 19. Page Hero (Subpages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e2d44 100%);
  padding: 4rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-112-7.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 640px; font-size: 1.1rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 2px solid var(--color-primary);
    gap: 0.25rem;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { padding: 0.75rem 1rem; border-radius: var(--radius-sm); }

  .site-header { position: relative; }

  .grid-2, .grid-3, .grid-hero, .two-col { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .hero-section { min-height: auto; padding: 3.5rem 0; }

  .trust-bar-items { gap: 1.25rem; }
  .trust-item { font-size: 0.9rem; }

  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-col:first-child { grid-column: auto; }

  .cta-phone { font-size: 2rem; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .section-light, .section-alt, .section-dark, .section-red { padding: 3.5rem 0; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
}
