/* ═══════════════════════════════════════════════════════════════
   Daaem Al-Najah — Main Stylesheet
   Design System: Navy Blue + Gold | RTL-First | Dark/Light Mode
   ═══════════════════════════════════════════════════════════════ */

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

/* ── CSS Variables (Light Mode Default) ───────────────────────── */
:root {
  /* Brand Colors */
  --c-primary:        #1e3a8a;
  --c-primary-light:  #2b5ea7;
  --c-primary-dark:   #162d6b;
  --c-accent:         #c9973b;
  --c-accent-light:   #e0b660;
  --c-accent-dark:    #a87d2e;

  /* Backgrounds */
  --c-bg:             #ffffff;
  --c-bg-alt:         #f4f7fc;
  --c-bg-dark:        #0f1c3d;
  --c-card:           #ffffff;
  --c-card-border:    #e4e9f5;

  /* Text */
  --c-text:           #1a2340;
  --c-text-muted:     #6b7a99;
  --c-text-inverse:   #ffffff;

  /* Borders & Shadows */
  --c-border:         #dde4f0;
  --shadow-sm:        0 2px 8px rgba(30,58,138,.08);
  --shadow-md:        0 8px 30px rgba(30,58,138,.12);
  --shadow-lg:        0 20px 60px rgba(30,58,138,.18);
  --shadow-gold:      0 8px 30px rgba(201,151,59,.25);

  /* Gradients */
  --grad-primary:     linear-gradient(135deg, #1e3a8a 0%, #2b5ea7 50%, #1a3070 100%);
  --grad-accent:      linear-gradient(135deg, #c9973b 0%, #e0b660 50%, #a87d2e 100%);
  --grad-hero:        linear-gradient(160deg, #0c1e4e 0%, #1e3a8a 40%, #162d6b 100%);
  --grad-dark:        linear-gradient(135deg, #0f1c3d 0%, #1a2e5e 100%);

  /* Layout */
  --container-max:    1320px;
  --navbar-h:         80px;
  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        24px;
  --radius-xl:        40px;
  --radius-pill:      100px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s cubic-bezier(.4,0,.2,1);

  /* Typography */
  --font-ar:  'Cairo', 'Tajawal', system-ui, sans-serif;
  --font-en:  'Cairo', system-ui, sans-serif;
}

/* ── Dark Mode Variables ──────────────────────────────────────── */
[data-theme="dark"] {
  --c-bg:          #0d1117;
  --c-bg-alt:      #161b22;
  --c-card:        #1c2128;
  --c-card-border: #30363d;
  --c-text:        #e6edf3;
  --c-text-muted:  #8b949e;
  --c-border:      #30363d;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.3);
  --shadow-md:     0 8px 30px rgba(0,0,0,.4);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ar);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--t-base), color var(--t-base);
}

[lang="en"] body { font-family: 'Cairo', system-ui, sans-serif; }

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { color: var(--c-text-muted); line-height: 1.8; }

.text-primary { color: var(--c-primary) !important; }
.text-accent  { color: var(--c-accent)  !important; }
.text-muted   { color: var(--c-text-muted) !important; }
.text-white   { color: #fff !important; }
.text-center  { text-align: center; }

/* ── Container ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1400px) { .container { padding: 0 2rem; } }

/* ── Grid ─────────────────────────────────────────────────────── */
.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.col { flex: 1; padding: 0 .75rem; }
[class*="col-"] { padding: 0 .75rem; }
.col-12 { width: 100%; }
.col-6  { width: 50%; }
.col-4  { width: 33.333%; }
.col-3  { width: 25%; }

@media (min-width: 768px) {
  .col-md-6 { width: 50%; }
  .col-md-4 { width: 33.333%; }
  .col-md-3 { width: 25%; }
  .col-md-8 { width: 66.666%; }
}
@media (min-width: 992px) {
  .col-lg-4 { width: 33.333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-8 { width: 66.666%; }
  .col-lg-3 { width: 25%; }
}
@media (min-width: 1200px) {
  .col-xl-4 { width: 33.333%; }
  .col-xl-6 { width: 50%; }
  .col-xl-3 { width: 25%; }
}
.g-4  { gap: 1.5rem; }
.g-6  { gap: 2rem; }
.gy-4 { row-gap: 1.5rem; }
.gy-6 { row-gap: 2rem; }
.gx-4 { column-gap: 1.5rem; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::before { background: rgba(255,255,255,.08); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(30,58,138,.35);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(30,58,138,.5); transform: translateY(-1px); }

.btn-accent {
  background: #b8881f;
  color: #fff;
  box-shadow: 0 2px 12px rgba(184,136,31,.3);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-accent:hover {
  background: #c99530;
  box-shadow: 0 6px 24px rgba(184,136,31,.45);
  transform: translateY(-1px);
}

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

.btn-outline-white {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.18);
  border-color: #fff;
}

.btn-lg { padding: .95rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }

/* ── Logo Dark Mode Swap ─────────────────────────────────────── */
.logo-for-light { display: block; }
.logo-for-dark  { display: none; }
[data-theme="dark"] .logo-for-light { display: none; }
[data-theme="dark"] .logo-for-dark  { display: block; }

/* ── Top Info Bar ─────────────────────────────────────────────── */
.topbar {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 500;
  padding: .55rem 0;
  line-height: 1;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar a { color: inherit; transition: color var(--t-fast); }
.topbar a:hover { color: var(--c-accent-light); }
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 768px) { .topbar-inner { justify-content: flex-end; } }
.topbar-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.topbar-item svg { width: 14px; height: 14px; opacity: .8; }
.topbar-phone { direction: ltr; unicode-bidi: isolate; letter-spacing: .3px; }
@media (max-width: 575px) { .topbar { display: none; } }

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: var(--c-card);
  border-bottom: 1px solid var(--c-card-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.navbar > .container { height: 100%; }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.navbar-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.navbar-menu li {
  display: flex;
  align-items: center;
}
.navbar-link {
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
  position: relative;
  line-height: 1.4;
}
.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  transition: all var(--t-base);
}
.navbar-link:hover { color: var(--c-primary); background: rgba(30,58,138,.05); }
.navbar-link:hover::after { left: .85rem; right: .85rem; }
.navbar-link.active { color: var(--c-primary); font-weight: 700; }
.navbar-link.active::after { left: .85rem; right: .85rem; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  transition: all var(--t-fast);
  font-size: .9rem;
}
.theme-toggle:hover { background: var(--c-primary); color: #fff; border-color: transparent; }

/* Lang Switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  font-weight: 700;
  font-size: .8rem;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
}
.lang-switch:hover { background: var(--c-primary); color: #fff; border-color: transparent; }

/* Mobile hamburger */
.hamburger {
  width: 38px; height: 38px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--t-base);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  backdrop-filter: blur(4px);
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: var(--c-card);
  border-left: 1px solid var(--c-border);
  z-index: 1001;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
[dir="rtl"] .mobile-nav { right: auto; left: 0; border-left: none; border-right: 1px solid var(--c-border); transform: translateX(-100%); }
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg-alt);
  font-size: 1.2rem;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
}
.mobile-nav-close:hover { background: #fee2e2; color: #ef4444; }
.mobile-nav-links { flex: 1; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--c-text);
  transition: all var(--t-fast);
  margin-bottom: .25rem;
}
.mobile-nav-link:hover { background: var(--c-bg-alt); color: var(--c-primary); }
.mobile-nav-footer { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }

@media (max-width: 1024px) {
  .navbar-menu { display: none; }
  .hamburger   { display: flex; }
}

/* ── Section Base ─────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-alt { background: var(--c-bg-alt); }
.section-dark {
  background: var(--grad-dark);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.75); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  background: rgba(30,58,138,.1);
  color: var(--c-primary);
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}
[data-theme="dark"] .section-label {
  background: rgba(30,58,138,.3);
  color: var(--c-accent-light);
}
.section-label-accent {
  background: rgba(201,151,59,.12);
  color: var(--c-accent-dark);
}
[data-theme="dark"] .section-label-accent {
  background: rgba(201,151,59,.2);
  color: var(--c-accent-light);
}

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}
.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}
.hero-bg-shape-1 { width: 600px; height: 600px; top: -200px; right: -200px; }
.hero-bg-shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.hero-bg-shape-3 { width: 200px; height: 200px; top: 40%; left: 30%; background: rgba(201,151,59,.06); }

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 1rem;
  background: rgba(201,151,59,.15);
  border: 1px solid rgba(201,151,59,.3);
  border-radius: var(--radius-pill);
  color: var(--c-accent-light);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--c-accent-light);
  line-height: 1;
}
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .25rem; }

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
}
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(15,28,61,.7) 100%);
  z-index: 1;
  border-radius: inherit;
}
.hero-image-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: .85rem 1.2rem;
  color: #fff;
  z-index: 2;
}
[dir="rtl"] .hero-badge { right: auto; left: 1.5rem; }
.hero-badge-num { font-size: 1.4rem; font-weight: 800; color: var(--c-accent-light); }
.hero-badge-text { font-size: .75rem; color: rgba(255,255,255,.75); }

/* ── Features Strip ───────────────────────────────────────────── */
.features-strip {
  background: var(--c-primary-dark);
  padding: 3rem 0;
}
.features-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background var(--t-fast);
}
[dir="rtl"] .feature-item { border-right: none; border-left: 1px solid rgba(255,255,255,.08); }
.feature-item:first-child { border-right: none; }
[dir="rtl"] .feature-item:first-child { border-left: none; }
.feature-item:last-child { border-right: none; border-left: none; }
.feature-item:hover { background: rgba(255,255,255,.04); }

.feature-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(201,151,59,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent-light);
  font-size: 1.3rem;
}
.feature-title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .2rem; }
.feature-desc  { font-size: .8rem; color: rgba(255,255,255,.55); }

@media (max-width: 767px) {
  .features-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .features-strip-grid { grid-template-columns: 1fr; }
}

/* ── About Section ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid .order-first { order: -1; }
}
.about-image-wrap {
  position: relative;
}
.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-main img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 2rem; background: var(--c-bg-alt); }
.about-image-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--c-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  color: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}
[dir="rtl"] .about-image-badge { left: auto; right: -1.5rem; }
.about-image-badge-num  { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.about-image-badge-text { font-size: .75rem; opacity: .8; margin-top: .2rem; }

.about-vmg {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 767px) { .about-vmg { grid-template-columns: 1fr; } }
.vmg-card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--t-base);
}
.vmg-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.vmg-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: .5rem;
}
.vmg-label { font-size: .8rem; font-weight: 600; color: var(--c-text-muted); }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--t-base);
  height: 100%;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary-light);
  transform: translateY(-3px);
}

.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card-icon-primary { background: rgba(30,58,138,.1); color: var(--c-primary); }
.card-icon-accent  { background: rgba(201,151,59,.1); color: var(--c-accent); }
.card-icon-green   { background: rgba(34,197,94,.1);  color: #16a34a; }
.card-icon-red     { background: rgba(239,68,68,.1);  color: #dc2626; }
.card-icon-purple  { background: rgba(147,51,234,.1); color: #7c3aed; }

.card h4 { margin-bottom: .6rem; font-size: 1.05rem; }
.card p  { font-size: .88rem; line-height: 1.7; }

/* ── Total Tools Section ──────────────────────────────────────── */
.total-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 991px) {
  .total-tools-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.tt-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.tt-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.tt-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.5rem;
}
.tt-feature-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .9rem;
  background: rgba(30,58,138,.06);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-primary);
}
[data-theme="dark"] .tt-feature-item { background: rgba(30,58,138,.2); color: var(--c-accent-light); }
.tt-feature-item svg { color: var(--c-accent); flex-shrink: 0; }

/* ── Stats Section ────────────────────────────────────────────── */
.stats-section {
  background: var(--grad-primary);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--c-accent-light);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}

/* ── Why Us Section ───────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 991px) { .why-grid { grid-template-columns: 1fr; } }
.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) { .why-cards { grid-template-columns: 1fr; } }
.why-card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--t-base);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-card:nth-child(2) { margin-top: 1.5rem; }
.why-card:nth-child(4) { margin-top: -1.5rem; }
.why-card-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ── Categories Section ───────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.category-card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--t-base);
  cursor: default;
}
.category-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 8px 30px rgba(201,151,59,.15);
  transform: translateY(-3px);
}
.category-card:hover .category-icon {
  background: var(--c-accent);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.category-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(30,58,138,.08);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: all var(--t-base);
}
[data-theme="dark"] .category-icon { background: rgba(30,58,138,.3); color: var(--c-accent-light); }
.category-name { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.category-desc { font-size: .82rem; color: var(--c-text-muted); line-height: 1.6; }

/* ── FAQ Section ──────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: all var(--t-base);
}
.faq-item.open { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-text);
  background: var(--c-card);
  text-align: right;
  transition: background var(--t-fast);
}
[dir="ltr"] .faq-question { text-align: left; }
.faq-question:hover { background: var(--c-bg-alt); }
.faq-item.open .faq-question { background: rgba(30,58,138,.05); color: var(--c-primary); }
.faq-chevron {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  transition: all var(--t-base);
  color: var(--c-text-muted);
}
.faq-item.open .faq-chevron { background: var(--c-primary); color: #fff; transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: .9rem;
  color: var(--c-text-muted);
  line-height: 1.8;
  background: var(--c-card);
}

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201,151,59,.12) 0%, transparent 70%);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-content h2 { color: #fff; margin-bottom: 1rem; }
.cta-content p  { color: rgba(255,255,255,.65); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── Contact Section ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-items { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-md);
  transition: all var(--t-base);
}
.contact-info-item:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(30,58,138,.08);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
[data-theme="dark"] .contact-info-icon { background: rgba(30,58,138,.25); }
.contact-info-label { font-size: .75rem; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .5px; }
.contact-info-value { font-size: .92rem; font-weight: 600; color: var(--c-text); margin-top: .1rem; }
.contact-info-value a { color: inherit; transition: color var(--t-fast); }
.contact-info-value a:hover { color: var(--c-primary); }

/* ── Form ─────────────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: .4rem;
}
.form-label .req { color: #ef4444; margin-right: .25rem; }
[dir="ltr"] .form-label .req { margin-right: 0; margin-left: .25rem; }
.form-control {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: inherit;
  font-size: .9rem;
  transition: all var(--t-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}
.form-control::placeholder { color: var(--c-text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 575px) { .form-row { grid-template-columns: 1fr; } }

.form-success, .form-error {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  align-items: center;
  gap: .6rem;
}
.form-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
[data-theme="dark"] .form-success { background: rgba(16,185,129,.12); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
[data-theme="dark"] .form-error   { background: rgba(239,68,68,.12);  color: #fca5a5; border-color: rgba(239,68,68,.3); }
.form-success.show, .form-error.show { display: flex; }

/* ── Map Section ──────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: none; }

/* ── Social Links ─────────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted);
  font-size: .9rem;
  transition: all var(--t-base);
}
.social-link:hover { border-color: var(--c-primary); background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.social-link.wa:hover   { border-color: #25d366; background: #25d366; }
.social-link.ig:hover   { border-color: #e1306c; background: linear-gradient(135deg,#405de6,#e1306c,#f77737); }
.social-link.fb:hover   { border-color: #1877f2; background: #1877f2; }
.social-link.yt:hover   { border-color: #ff0000; background: #ff0000; }
.social-link.li:hover   { border-color: #0a66c2; background: #0a66c2; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 991px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px)  { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand-logo { height: 40px; margin-bottom: 1rem; filter: brightness(10); }
.footer-brand-desc { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.8; }

.footer-widget-title {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-link {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-link:hover { color: var(--c-accent-light); }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: var(--c-accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ── Scroll to Top ────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: all var(--t-base);
  z-index: 900;
}
[dir="rtl"] .scroll-top { right: auto; left: 2rem; }
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--c-accent); transform: translateY(-2px); }

/* ── Divider ──────────────────────────────────────────────────── */
.divider {
  width: 60px; height: 4px;
  background: var(--grad-accent);
  border-radius: 2px;
  margin: 1rem auto;
}
.divider-start { margin-left: 0; }
[dir="rtl"] .divider-start { margin-left: auto; margin-right: 0; }

/* ── Utilities ────────────────────────────────────────────────── */
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-0 { margin-bottom: 0 !important; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }

.w-100 { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-none { display: none !important; }

/* ── Animations ───────────────────────────────────────────────── */
[data-aos] { opacity: 0; transition-property: opacity, transform; }
[data-aos="fade-up"]    { transform: translateY(30px); }
[data-aos="fade-down"]  { transform: translateY(-30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos="zoom-in"]    { transform: scale(.9); }
[data-aos].aos-animate  { opacity: 1; transform: none; }

/* ── Loading Spinner ──────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cookie / Notices ─────────────────────────────────────────── */
.notice-bar {
  background: var(--c-primary);
  color: #fff;
  text-align: center;
  padding: .6rem 1rem;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.notice-bar a { color: var(--c-accent-light); font-weight: 700; }
.notice-close {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.notice-close:hover { background: rgba(255,255,255,.35); }

/* ── WhatsApp Float ───────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 900;
  transition: all var(--t-base);
  animation: wa-bounce 3s ease-in-out infinite;
}
[dir="rtl"] .whatsapp-float { left: auto; right: 2rem; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.5); }
@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Responsive Extras ────────────────────────────────────────── */
@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .section-lg { padding: 3.5rem 0; }
  .hero { padding: 4.5rem 0 3rem; overflow: visible; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
  .hero-actions { gap: .75rem; }
  .section-title { font-size: 1.6rem; }
  .section-label { font-size: .75rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .footer-grid { gap: 1.5rem; }
  .why-cards { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .tt-features { grid-template-columns: 1fr; }
  .about-stats { gap: 1rem; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .contact-info-items { gap: .75rem; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 0 3rem; min-height: auto; }
  .hero-title { font-size: 1.65rem; line-height: 1.3; }
  .hero-subtitle { font-size: .95rem; }
  .hero-desc { font-size: .9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { justify-content: space-between; }
  .section-title { font-size: 1.4rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 1.25rem; }
  .cta-section .btn { width: 100%; text-align: center; justify-content: center; margin: .25rem 0; }
}

/* ── Print ────────────────────────────────────────────────────── */
@media print {
  .navbar, .topbar, .scroll-top, .whatsapp-float, .mobile-nav, .mobile-nav-overlay { display: none !important; }
  body { color: #000; background: #fff; }
}
