
/* ════════════════════════════════════════════
    TATHMEER CUSTOM DESIGN SYSTEM
    Palette:
      --gold-deep   #8B6914   (authority, desert heritage)
      --gold-mid    #C49A2A   (warmth, quality)
      --gold-light  #E8C96A   (highlight)
      --navy        #0D1B2A   (trust, military precision)
      --navy-mid    #1E3148   (depth)
      --sand        #F7F3EC   (desert / neutral bg)
      --off-white   #FEFCF9
    ════════════════════════════════════════════ */

:root {
  --gold-deep:    #8B6914;
  --gold-mid:     #C49A2A;
  --gold-light:   #E8C96A;
  --navy:         #0D1B2A;
  --navy-mid:     #1E3148;
  --sand:         #F7F3EC;
  --off-white:    #FEFCF9;
  --text-dark:    #17202A;
  --text-mid:     #3D5166;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-arabic:  'Noto Sans Arabic', 'Segoe UI', sans-serif;
  --font-chinese: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --radius:       6px;
  --transition:   0.3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--off-white);
  overflow-x: hidden;
}

/* ── RTL / Language Support ── */
html[dir="rtl"] body { font-family: var(--font-arabic); }
html[lang="zh"] body  { font-family: var(--font-chinese); }

html[dir="rtl"] .navbar-nav { margin-right: auto; margin-left: 0 !important; }
html[dir="rtl"] .section-subtitle, html[dir="rtl"] .section-title { text-align: right; }
html[dir="rtl"] .footer-lists { flex-direction: row-reverse; }
html[dir="rtl"] .contact-card { flex-direction: row-reverse; }
html[dir="rtl"] .founder-section { flex-direction: row-reverse; }
html[dir="rtl"] .competency-grid { direction: rtl; }
html[dir="rtl"] .nav-link { letter-spacing: 0; }
html[dir="rtl"] .item { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .item i { margin-left: 16px; margin-right: 0; }

/* ── Particles ── */
#particles-js {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ── Navbar ── */
.custom-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 14px 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.custom-navbar.scrolled {
  background: rgba(13, 27, 42, 0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
  padding: 8px 0;
}

.navbar-brand img { height: 52px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }

.nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px !important;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--gold-light) !important; }
.nav-link:hover::after { transform: scaleX(1); }

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
}
html[dir="rtl"] .lang-switcher { margin-left: 0; margin-right: 20px; }

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--gold-mid);
  border-color: var(--gold-mid);
  color: #fff;
}
.lang-btn .flag { font-size: 1em; }

/* ── Hero Header ── */
.header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,27,42,0.78) 0%, rgba(13,27,42,0.55) 60%, rgba(139,105,20,0.3) 100%);
  z-index: 2;
}
.header .overlay {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}
.header .subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(196,154,42,0.15);
  border: 1px solid rgba(196,154,42,0.4);
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.header .title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.header .tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-deep));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(196,154,42,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(196,154,42,0.55);
  text-decoration: none;
  color: #fff;
}
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ── Sections ── */
section { padding: 90px 0; position: relative; }
section:nth-child(even) { background: var(--sand); }
section:nth-child(odd) { background: var(--off-white); }

.has-bg-img {
  background: var(--navy) !important;
  color: #fff;
}
.has-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(assets/img/header.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.12;
  z-index: 0;
}
.has-bg-img .container { position: relative; z-index: 1; }

/* ── Section Headers ── */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 10px;
}
.has-bg-img .section-label { color: var(--gold-light); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
}
.has-bg-img .section-heading { color: #fff; }

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 28px;
}
html[dir="rtl"] .section-divider { margin-right: 0; }

section p { color: var(--text-mid); line-height: 1.75; }
.has-bg-img p { color: rgba(255,255,255,0.82); }

/* ── Competency Cards ── */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.competency-card {
  background: var(--off-white);
  border: 1px solid rgba(196,154,42,0.2);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.competency-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  border-color: var(--gold-mid);
}
.competency-card .card-icon {
  font-size: 2rem;
  color: var(--gold-mid);
  margin-bottom: 14px;
  display: block;
}
.competency-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.competency-card p { font-size: 0.92rem; margin: 0; color: var(--text-mid); }

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.product-item {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px 22px;
  color: #fff;
  border-left: 4px solid var(--gold-mid);
  transition: transform var(--transition);
}
html[dir="rtl"] .product-item { border-left: none; border-right: 4px solid var(--gold-mid); }
.product-item:hover { transform: translateY(-4px); }
.product-item .product-num {
  font-size: 2.5rem;
  font-family: var(--font-display);
  color: var(--gold-light);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 8px;
}
.product-item h3 { font-size: 1.05rem; color: #fff; margin-bottom: 8px; font-weight: 600; }
.product-item p { font-size: 0.88rem; color: rgba(255,255,255,0.72); margin: 0; }

/* ── Why Us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
html[dir="rtl"] .why-item { flex-direction: row-reverse; text-align: right; }
.why-item i {
  font-size: 1.6rem;
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.why-item h4 { font-size: 1rem; color: #fff; margin-bottom: 6px; font-weight: 600; }
.why-item p  { font-size: 0.88rem; color: rgba(255,255,255,0.72); margin: 0; }

/* ── Founder ── */
.founder-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}
html[dir="rtl"] .founder-layout { grid-template-columns: 1fr 280px; }
@media (max-width: 768px) {
  .founder-layout { grid-template-columns: 1fr; }
  html[dir="rtl"] .founder-layout { grid-template-columns: 1fr; }
}
.founder-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
figcaption {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  line-height: 1.4;
  font-style: italic;
}
.founder-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 16px;
}
.video-container {
  position: relative;
  z-index: 2;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── Timeline (History) ── */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 16px;
}
html[dir="rtl"] .timeline { padding-left: 0; padding-right: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-mid), transparent);
}
html[dir="rtl"] .timeline::before { left: auto; right: 0; }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 12px; height: 12px;
  background: var(--gold-mid);
  border-radius: 50%;
  border: 2px solid var(--off-white);
}
html[dir="rtl"] .timeline-item::before { left: auto; right: -34px; }
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-mid);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline-item h3 { font-size: 1rem; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.timeline-item p  { font-size: 0.91rem; color: var(--text-mid); margin: 0; }

/* ── Contact ── */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) { .contact-card { grid-template-columns: 1fr; } }
.contact-info-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 28px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
html[dir="rtl"] .contact-item { flex-direction: row-reverse; text-align: right; }
.contact-item i {
  font-size: 1.3rem;
  color: var(--gold-mid);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196,154,42,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-item h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; }
.contact-item p  { font-size: 0.92rem; color: var(--text-mid); margin: 0; }
.contact-item a  { color: var(--text-mid); }
.contact-item a:hover { color: var(--gold-mid); text-decoration: none; }
.contact-map img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo img { height: 60px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-col h6 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-col p { font-size: 0.88rem; margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; display: block; margin-bottom: 6px; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); text-decoration: none; }
.social-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
html[dir="rtl"] .social-links { flex-direction: row-reverse; }
.social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all var(--transition);
}
.social-link:hover { background: var(--gold-mid); border-color: var(--gold-mid); color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* ── Navbar Toggler ── */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 10px;
  background: transparent;
}
.navbar-toggler span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: all var(--transition);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .navbar-collapse { background: rgba(13,27,42,0.97); border-radius: 8px; padding: 16px; margin-top: 8px; }
  .lang-switcher { margin-left: 0; margin-top: 12px; }
  html[dir="rtl"] .lang-switcher { margin-right: 0; }
}
@media (max-width: 576px) {
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold-mid);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 99999;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #particles-js { display: none; }
}

/* ── Print ── */
@media print {
  #particles-js, .custom-navbar, .scroll-hint, .hero-cta { display: none; }
  .header { min-height: auto; padding: 60px 0; }
}
