/* ====== تبيان العالمية — Tebian Global ====== */
:root {
  --navy: #1c3667;
  --navy-dark: #142a52;
  --navy-deep: #0f2144;
  --blue: #4a7bd0;
  --blue-light: #6f9be0;
  --gold: #d8b56a;
  --gold-light: #e6cb92;
  --bg-light: #f2f7fd;
  --card-border: #e3ecf7;
  --text: #22314f;
  --text-muted: #5d6f8d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 54, 103, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  color: var(--text);
  background: #fff;
  direction: rtl;
  overflow-x: hidden;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

img, svg { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Islamic geometric pattern (8-point star) ---- */
.pattern-bg,
.site-header,
.why,
.site-footer {
  position: relative;
}
.site-header::before,
.why::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M36 6l8.5 21.5L66 36l-21.5 8.5L36 66l-8.5-21.5L6 36l21.5-8.5z'/%3E%3Ccircle cx='36' cy='36' r='10'/%3E%3Cpath d='M0 0h72v72H0z' opacity='.35'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
}

/* ============ Header ============ */
.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(15, 33, 68, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  position: relative;
  z-index: 1;
}

.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand-ar {
  font-family: 'Amiri', 'Cairo', serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-en {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  opacity: 0.9;
}

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  padding-block: 6px;
  position: relative;
  transition: color 0.25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.6px;
  border-radius: 2px;
  background: #fff;
  transition: 0.3s;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(180deg, #f7fafd 0%, #eef4fb 100%);
  padding: 84px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 40px;
}

.hero-list {
  max-width: 560px;
  margin: 0 auto 42px;
  text-align: right;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
}
.hero-list-title {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.hero-list ul li {
  padding: 7px 22px 7px 0;
  position: relative;
  font-weight: 600;
  color: var(--text);
}
.hero-list ul li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(74, 123, 208, 0.35);
}
.btn-primary:hover { background: #3d6cc0; }
.btn-primary .arrow { font-size: 0.9em; }

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

/* ============ Stats ============ */
.stats {
  background: linear-gradient(90deg, var(--navy) 0%, #2b53a0 55%, #eaf1fb 130%);
  padding: 54px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  color: #fff;
}
.stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: var(--gold-light);
}
.stat-icon svg { width: 100%; height: 100%; }
.stat-num {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
}
.stat-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-top: 2px;
}
.stat-sub {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 6px;
  font-weight: 500;
}

/* ============ Companies ============ */
.companies {
  padding: 84px 0 70px;
  background: #fff;
}

.section-head { text-align: center; margin-bottom: 52px; }
.section-title {
  display: inline-block;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  padding: 10px 34px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 8px;
  letter-spacing: 2px;
}
.section-sub {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--text-muted);
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 54, 103, 0.07);
  padding: 8px 22px;
  border-radius: 8px;
}

.cards-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(28, 54, 103, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(28, 54, 103, 0.16);
}

.card-logo {
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

/* logos */
.logo-tebian { background: var(--navy); color: #fff; }
.logo-tebian .logo-ar { font-family: 'Amiri', serif; font-size: 1.45rem; font-weight: 700; }

.logo-en { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.5px; opacity: 0.9; }
.logo-en-light { color: #f4e9c8; }

.logo-aoun { background: #fff; }
.logo-aoun-mark {
  font-family: 'Amiri', serif;
  font-size: 1.9rem;
  font-weight: 700;
  background: linear-gradient(90deg, #1c8a7a, #3db6a2, #f0a63a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-tagline { font-size: 0.72rem; font-weight: 700; color: #1c8a7a; }

.logo-khalij { background: #fff; }
.logo-khalij-mark { font-family: 'Amiri', serif; font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.logo-khalij .logo-en { color: var(--text-muted); }
.tagline-red { color: #c0392b; letter-spacing: 1px; }

.logo-rowad { background: #fff; }
.rowad-icon { width: 42px; height: 42px; }
.logo-rowad-mark { font-family: 'Amiri', serif; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.logo-rowad .logo-tagline { color: var(--blue); }

.logo-faseeh { background: #0e4d40; color: #f4e9c8; }
.logo-faseeh-mark { font-family: 'Amiri', serif; font-size: 2.1rem; font-weight: 700; color: #eecf6d; }

.card-body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  border-top: 1px solid var(--card-border);
}
.card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.7;
  flex: 1;
}
.card-tm {
  font-size: 0.66rem;
  color: #8b97ad;
  font-weight: 600;
  border-top: 1px dashed var(--card-border);
  border-bottom: 1px dashed var(--card-border);
  padding: 8px 2px;
  margin: 12px 0 14px;
}
.btn-card {
  background: #fff;
  color: var(--blue);
  border: 1.6px solid var(--blue);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  justify-content: center;
}
.btn-card:hover { background: var(--blue); color: #fff; }

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #c5d4ea;
  cursor: pointer;
  transition: 0.25s;
  padding: 0;
}
.carousel-dots button.active { background: var(--navy); width: 22px; border-radius: 6px; }

/* ============ Why us ============ */
.why {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 80px 0;
}
.why .section-head { margin-bottom: 46px; position: relative; z-index: 1; }
.why-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 1px;
}
.why-sub {
  margin-top: 12px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
  z-index: 1;
}
.why-item { text-align: center; padding: 10px 6px; }
.why-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  color: var(--gold-light);
  opacity: 0.95;
}
.why-icon svg { width: 100%; height: 100%; }
.why-item h3 {
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.why-item p {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 44px;
  position: relative;
  z-index: 1;
}
.footer-brand .brand-ar { font-size: 1.9rem; display: block; }
.footer-brand .brand-en { display: block; margin-top: 2px; }
.footer-desc {
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  max-width: 340px;
}
.footer-links h4, .footer-contact h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.2s;
  position: relative;
  padding-right: 14px;
}
.footer-links a::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--gold);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-email {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  direction: ltr;
  margin-bottom: 20px;
  transition: 0.2s;
}
.footer-email:hover { color: var(--gold-light); }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}
.socials a svg { width: 17px; height: 17px; }
.socials a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 18px;
  position: relative;
  z-index: 1;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .cards-track { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--navy-dark);
    flex-direction: column;
    gap: 0;
    padding: 10px 6%;
    display: none;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

  .hero { padding: 60px 0 54px; }

  /* companies become swipeable carousel */
  .cards-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cards-track::-webkit-scrollbar { display: none; }
  .card {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
  .carousel-dots { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 18px 10px; }
  .stat-num { font-size: 1.6rem; }
  .why-grid { grid-template-columns: 1fr; }
  .card { flex: 0 0 88%; }
}
