/* ═══════════════════════════════════════════════
   ESNAD Security — Main Stylesheet
   الإسناد للأمن والحماية
   ═══════════════════════════════════════════════ */

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

:root {
  --gold:       #C28A2A;
  --gold-light: #E5A832;
  --gold-dark:  #9A6A18;
  --dark:       #1A1A1A;
  --dark2:      #222222;
  --gray:       #444;
  --light-gray: #f5f5f5;
  --white:      #ffffff;
  --text:       #333;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background: var(--white);
  direction: rtl;
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════ */
.topbar {
  background: var(--dark);
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar-left a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}
.topbar-left a:hover { color: var(--gold-light); }

.whatsapp-btn {
  background: #25D366;
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.whatsapp-btn:hover { background: #1fb855 !important; }

.lang-link {
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
}
.lang-link:hover { color: var(--gold-light); }

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
nav {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img {
  height: 54px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-en {
  font-size: 20px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 2px;
}
.logo-ar {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 3px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .2s;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #e8e8e8;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
  filter: grayscale(60%) brightness(0.85);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 45%,
    rgba(255, 255, 255, 0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
  padding: 60px 0;
}
.hero-text {
  flex: 1;
  max-width: 560px;
}
.hero-title {
  font-size: 40px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
}
.hero-title span { color: var(--gold); }

.hero-sub {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 30px;
  max-width: 440px;
}
.hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-shield {
  width: 320px;
  max-width: 100%;
  filter: drop-shadow(0 20px 40px rgba(194, 138, 42, 0.25));
  animation: floatShield 4s ease-in-out infinite;
}
@keyframes floatShield {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn-gold {
  background: var(--gold);
  color: #fff;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  padding: 12px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #ccc;
  transition: border-color .2s, color .2s;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold-sm {
  background: var(--gold);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}
.btn-gold-sm:hover { background: var(--gold-dark); }

/* ═══════════════════════════════════════════════
   SECTION TITLE
   ═══════════════════════════════════════════════ */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 900;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.section-title h2::before,
.section-title h2::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 2px;
  background: var(--gold);
}

/* ═══════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════ */
.services {
  padding: 70px 0 60px;
  background: #fff;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-right: 3cm;

}
.service-card {
  background: #fff;
  border: 1.5px solid #ebebeb;
  border-radius: 10px;
  padding: 28px 16px 22px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(194, 138, 42, 0.13);
  transform: translateY(-4px);
}
.service-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  background: #fff8ec;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg {
  width: 28px;
  height: 28px;
}
.service-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.service-card p {
  font-size: 12px;
  color: #777;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════════ */
.stats-strip {
  background: var(--dark);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.stat-item:last-child { border-left: none; }
.stat-icon {
  color: var(--gold);
  font-size: 28px;
  flex-shrink: 0;
}
.stat-text h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.stat-text p {
  color: #bbb;
  font-size: 13px;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════
   WHY US
   ═══════════════════════════════════════════════ */

.why-us {
  padding: 70px 0;
  background: var(--light-gray);
  text-align: center;
}

.why-us .why-grid {
  display: grid;
  grid-template-columns: minmax(0, 850px);
  justify-content: center;
  justify-items: center;
  align-items: center;
  width: 100%;
}

.why-content {
  width: 100%;
  margin: 0 auto;
}

.why-title-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

.why-title-block h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.why-title-block h2::before,
.why-title-block h2::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.why-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 22px;
  width: 100%;
  justify-content: center;
}

.why-point {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  text-align: right;
}

.why-point-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff8ec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #f0d89a;
}

.why-point-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.why-point-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.why-point-text p {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
  .why-us .why-grid {
    grid-template-columns: 1fr;
  }

  .why-points {
    grid-template-columns: 1fr;
  }

  .why-point {
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
  }
}
/* ─── Testimonial ─── */
.testimonial-block {
  background: #fff;
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  position: relative;
}
.quote-mark {
  font-size: 70px;
  color: var(--gold);
  line-height: 0.7;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 10px;
}
.testimonial-text {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
}
.author-title {
  font-size: 13px;
  color: #888;
}
.dots {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}
.dot.active { background: var(--gold); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  background: var(--dark);
  padding: 50px 0 0;
  color: #ccc;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 200px 220px;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { height: 44px; }
.footer-logo-text .en {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
}
.footer-logo-text .ar {
  font-size: 11px;
  color: var(--gold);
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: border-color .2s, color .2s;
}
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Footer Columns */
.footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col p,
.footer-col a {
  font-size: 13.5px;
  color: #aaa;
  line-height: 1.9;
  text-decoration: none;
  display: block;
}
.footer-col a:hover { color: var(--gold); }

/* Contact Items */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #aaa;
  font-size: 13.5px;
  direction: ltr;
}
.footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Jordan Section */
.footer-jordan {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-jordan h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.footer-jordan p {
  font-size: 13px;
  color: #999;
  line-height: 1.7;
}
.jordan-map {
  width: 60px;
  opacity: 0.6;
}

/* Footer CTA */
.footer-cta {
  background: rgba(194, 138, 42, 0.12);
  border: 1.5px solid var(--gold-dark);
  border-radius: 10px;
  padding: 20px 18px;
}
.footer-cta h4 {
  color: var(--gold-light) !important;
  font-size: 14px !important;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-cta p {
  font-size: 12.5px;
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.footer-bottom p {
  font-size: 13px;
  color: #777;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: #777;
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar-left { gap: 10px; }
  .hamburger   { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    gap: 16px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  nav { position: relative; }

  .hero-content  { flex-direction: column-reverse; gap: 24px; padding: 40px 0; }
  .hero-title    { font-size: 28px; }
  .hero-shield   { width: 200px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-left: none; }

  .why-grid      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-points    { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
}
.footer-jordan {
  text-align: center;
}

.jordan-map {
  width: 100px;
  max-width: 100%;
  height: auto;
  margin-top: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}