/* ============================================================
   SOLIV GLOBAL LTD — Master Stylesheet v2
   ============================================================
   Palette extracted from corrected logo:
     Gold #D0B43E "SOLIV" · Olive #65784B "GLOBAL LTD" · Black bg
   ============================================================ */

/* —————————————————————————————————————————————————————————————
   1. CUSTOM PROPERTIES
   ————————————————————————————————————————————————————————————— */
:root {
  /* ── Logo-derived palette ────────────────────────────────── */
  --gold:              #D0B43E;
  --gold-light:        #E0C962;
  --gold-dim:          #A8922E;
  --gold-muted:        #7D6D24;

  --olive:             #65784B;
  --olive-light:       #7E9460;
  --olive-dim:         #4E5E3A;
  --olive-muted:       #3A4629;

  /* ── Sky Blue theme base tones ───────────────────────────── */
  --base-sky-50:       #F0F9FF;
  --base-sky-100:      #E0F2FE;
  --base-sky-200:      #BAE6FD;
  --base-sky-300:      #7DD3FC;
  --base-sky-900:      #0C4A6E; /* Dark blue floor for footer */

  /* ── Semantic tokens ─────────────────────────────────────── */
  --color-bg:          var(--base-sky-100);
  --color-bg-alt:      var(--base-sky-50);
  --color-surface:     var(--base-sky-50);
  --color-surface-alt: var(--base-sky-100);
  --color-card:        rgba(255, 255, 255, 0.65); /* Glassmorphism card */
  --color-border:      rgba(14, 165, 233, 0.15); /* Soft light blue border */
  --color-border-dim:  rgba(14, 165, 233, 0.08);

  --color-primary:     var(--gold);
  --color-primary-dim: var(--gold-dim);
  --color-accent:      var(--olive);
  --color-accent-light:var(--olive-light);

  --color-text-gold:   #7A620E; /* Darkened gold text to pass WCAG AA contrast */
  --color-text-olive:  #2D3A1E; /* Darkened olive text to pass WCAG AA contrast */

  --color-text:        #0F172A; /* Deep slate/navy for readability */
  --color-text-soft:   #334155; /* High contrast body text */
  --color-text-muted:  #475569; /* Readable muted text */
  --color-text-dim:    #64748B; /* Readable dim text */
  --highlight-green:   #2D3A1E; /* Interactive green highlight */
  --highlight-gold:    #7A620E; /* Bright golden highlight */

  /* ── Typography ──────────────────────────────────────────── */
  --font-display:  'IBM Plex Sans', sans-serif;
  --font-body:     'IBM Plex Sans Arabic', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;

  /* ── Spacing scale ───────────────────────────────────────── */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* ── Layout ──────────────────────────────────────────────── */
  --header-h: 68px;
  --max-w: 1120px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  /* ── Motion ──────────────────────────────────────────────── */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.3s;
}

/* —————————————————————————————————————————————————————————————
   2. RESET
   ————————————————————————————————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-bg);
}

html[lang='en'], html[lang='en'] body {
  direction: ltr;
  font-family: var(--font-display);
}

body {
  margin: 0;
  background: var(--color-bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(101, 120, 75, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(208, 180, 62, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  background-attachment: fixed;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Global fine engineering grid lines overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 var(--sp-4); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-gold); }

::selection { background: var(--gold); color: #0A0A0C; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* —————————————————————————————————————————————————————————————
   3. HEADER
   ————————————————————————————————————————————————————————————— */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease;
}
#site-header::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background var(--dur) ease;
  pointer-events: none;
}
#site-header.scrolled {
  border-bottom-color: var(--color-border-dim);
}
#site-header.scrolled::before {
  background: rgba(255, 255, 255, 0.9);
}

.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 calc(clamp(1rem, 3vw, 2rem) + 70px) 0 clamp(1rem, 3vw, 2rem);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  direction: ltr; /* Always keep logo on the left and navigation on the right */
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: none;
  overflow: visible;
}

.header-logo img {
  height: 48px; /* Prominent physical size enabled by transparent cropped logo */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(122, 98, 14, 0.12)); /* Soft branding glow */
}

#main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-left: auto; /* Push nav menu links to the right, next to actions */
  margin-right: var(--sp-8); /* Comfortable gap between nav links and actions */
}

/* Let the desktop nav mirror correctly in RTL */
@media (min-width: 769px) {
  [dir='rtl'] #main-nav {
    direction: rtl;
  }
}

/* Ensure mobile header remains clean and consistent */
@media (max-width: 768px) {
  #main-nav {
    margin-left: auto; /* Push hamburger button to the far right */
    margin-right: 0;
    order: 2; /* Pinned hamburger button to the right of the nav links */
    direction: ltr;
  }
  .nav-actions {
    display: none; /* Hide since Contact Us is display: none and toggle is moved out */
  }
  [dir='rtl'] .nav-links {
    direction: rtl; /* Center-aligned links text flow */
  }
}

.nav-links { display: flex; align-items: center; gap: var(--sp-5); }

.nav-link {
  font-size: 0.88rem; font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur) ease;
  padding: var(--sp-1) 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px;
  left: 0; right: 0; height: 2px;
  background: var(--color-text-gold);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover { color: var(--color-text); }
.nav-link.active { color: var(--color-text-gold); }
.nav-link.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
}

.lang-toggle {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  font-size: 0.78rem; font-family: var(--font-display);
  padding: 3px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--dur), color var(--dur);
}
.lang-toggle:hover { border-color: var(--color-text-olive); color: var(--color-text-olive); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--base-black);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 18px;
  height: 36px; /* Explicit height ensures identical proportion in both LTR & RTL font heights */
  box-sizing: border-box;
  transition: background var(--dur), transform var(--dur), box-shadow var(--dur);
  border: 1px solid transparent;
}
.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 98, 14, 0.25);
}
.nav-cta:active {
  transform: translateY(0) scale(0.98);
}

.mobile-only-cta {
  display: none;
}

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: transform var(--dur) ease, opacity var(--dur) ease;
}

/* —————————————————————————————————————————————————————————————
   4. HERO
   ————————————————————————————————————————————————————————————— */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 15% 60%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    var(--color-bg);
  position: relative; overflow: hidden;
}

/* Specialized golden technical engineering grid overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
  pointer-events: none; z-index: 0;
}

/* Horizon gradient line + Noise overlay combined */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent, rgba(122, 98, 14, 0.25), rgba(45, 58, 30, 0.25), transparent),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.012'/%3E%3C/svg%3E");
  background-size: 100% 1px, auto auto;
  background-position: bottom left, top left;
  background-repeat: no-repeat, repeat;
  pointer-events: none; z-index: 0;
}

/* Animated global connectivity map */
.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: none;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* The map never mirrors for RTL — geography doesn't flip with text direction */
  direction: ltr;
}

.hero-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.map-continents path {
  fill: rgba(101, 120, 75, 0.16);
  stroke: rgba(208, 180, 62, 0.22);
  stroke-width: 1;
}

.map-arc {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.32;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.map-arc--primary {
  stroke-opacity: 0.5;
  stroke-width: 1.6;
}

.map-pulse-dot {
  fill: var(--highlight-gold);
  filter: drop-shadow(0 0 4px rgba(208, 180, 62, 0.8));
}

.map-marker-dot {
  fill: var(--gold);
}

.map-marker--primary .map-marker-dot {
  fill: var(--olive);
}

.map-marker-ping {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  animation: mapMarkerPing 2.6s ease-out infinite;
}

.map-marker--primary .map-marker-ping {
  fill: var(--olive);
}

@keyframes mapMarkerPing {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero-content {
  z-index: 1; position: relative;
  opacity: 0;
  animation: heroEntrance 1s var(--ease) 0.2s forwards;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-olive);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
  padding: 0 16px;
  border-left: 2px solid var(--color-text-olive);
  border-right: 2px solid var(--color-text-olive);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: var(--sp-5);
  text-shadow: 0 0 60px rgba(122, 98, 14, 0.08);
}

.hero-mission-block {
  max-width: 800px;
  margin-bottom: var(--sp-6);
  margin-inline: auto;
}

.hero-mission-text {
  font-size: clamp(1.1rem, 4.2vw, 1.45rem);
  color: var(--color-text-olive);
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 0 40px rgba(45, 58, 30, 0.08);
}

.hero-who-we-are {
  max-width: 900px;
  margin-bottom: var(--sp-6);
  margin-inline: auto;
}

.hero-desc {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.hero-specialty-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--sp-3);
}

.specialty-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(101, 120, 75, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.specialty-tag:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(208, 180, 62, 0.04);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: var(--sp-6);
  max-width: 950px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--base-black);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 20px;
  height: 38px;
  box-sizing: border-box;
  transition: background var(--dur), transform var(--dur), box-shadow var(--dur), border-color var(--dur), color var(--dur);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(208, 180, 62, 0.25);
}

.hero-cta:active {
  transform: translateY(0) scale(0.98);
}

.hero-cta.secondary {
  background: transparent;
  color: var(--color-text-gold);
  border: 1px solid rgba(122, 98, 14, 0.3);
}

.hero-cta.secondary:hover {
  background: rgba(122, 98, 14, 0.08);
  border-color: var(--color-text-gold);
  color: var(--color-text-gold);
  box-shadow: 0 4px 12px rgba(122, 98, 14, 0.12);
}

@media (max-width: 600px) {
  .hero-mission-block { margin-bottom: var(--sp-4); }
  .hero-who-we-are { margin-bottom: var(--sp-4); }
  .hero-specialty-tags { gap: 6px; }
  .specialty-tag { padding: 4px 10px; font-size: 0.65rem; }
  .hero-ctas { gap: 8px; }
  .hero-cta { padding: 8px 14px; font-size: 0.78rem; height: 34px; }
}

/* Vertical gold rule accent beside the hero block - disabled for centered layout */
.hero-content::before {
  display: none;
}

/* —————————————————————————————————————————————————————————————
   5. SIGNAL DIVIDER
   ————————————————————————————————————————————————————————————— */
.signal-divider {
  width: 100%; height: 80px;
  overflow: hidden; pointer-events: none;
  position: relative;
}
.signal-divider svg { width: 100%; height: 100%; }

/* Global divider stroke refinement for visual interest & contrast */
.signal-divider svg path {
  stroke-width: 1.5px;
  opacity: 0.28 !important;
  transition: opacity var(--dur) ease;
}

.signal-divider::before {
  content: '';
  position: absolute; top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--color-border) 30%, var(--color-border) 70%, transparent 95%);
}

/* —————————————————————————————————————————————————————————————
   6. PAGE SECTIONS
   ————————————————————————————————————————————————————————————— */
.page-section {
  display: none;
  padding: 0;
}
.page-section.active { display: block; }

.page-section[data-page="about"] { padding-top: 0; }

/* Alternate section backgrounds for rhythm */
.section-block {
  padding: var(--sp-20) 0;
  position: relative;
  overflow: hidden;
}

/* Localized background glows */
.section-block::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  top: -250px; left: -250px;
  pointer-events: none;
  z-index: 0;
}

.section-block--alt {
  background: var(--color-bg-alt);
}
.section-block--alt::before {
  background: radial-gradient(circle, rgba(122, 98, 14, 0.06) 0%, transparent 70%);
  top: auto; bottom: -250px; right: -250px;
  left: auto;
}

.section-block--surface {
  background: var(--color-surface);
}

.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* Section tag + title */
.section-header { margin-bottom: var(--sp-10); }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-olive);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-3);
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--color-text-olive);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-title .accent {
  color: #000000;
}

/* —————————————————————————————————————————————————————————————
   7. IMAGE PLACEHOLDERS (refined, not flat boxes)
   ————————————————————————————————————————————————————————————— */
.img-placeholder {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background:
    linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 50%, var(--color-surface) 100%);
}

/* Inner subtle grid pattern */
.img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
  pointer-events: none;
}

/* Corner accent brackets */
.img-placeholder::after {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid var(--color-text-gold);
  border-radius: var(--radius);
  opacity: 0.3;
  pointer-events: none;
}

.img-placeholder-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  z-index: 1;
}

.img-placeholder-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(122, 98, 14, 0.08);
  border: 1px solid rgba(122, 98, 14, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-gold);
}

.img-placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Size variants */
.img-placeholder--hero { height: 380px; max-width: 900px; margin: 0 auto; }
.img-placeholder--wide { height: 320px; }
.img-placeholder--training { height: 300px; max-width: 900px; }

/* Image rendering and hover transitions */
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur) var(--ease);
}
.img-placeholder:hover img {
  transform: scale(1.04);
}
/* Hide placeholder grid and text overlays when an image is present */
.img-placeholder:has(img)::before,
.img-placeholder:has(img)::after,
.img-placeholder:has(img) .img-placeholder-label {
  display: none;
}

/* —————————————————————————————————————————————————————————————
   8. ABOUT
   ————————————————————————————————————————————————————————————— */
.about-content {
  padding-bottom: var(--sp-16);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-8);
  text-align: left;
}

[dir="rtl"] .about-grid {
  text-align: right;
}

.about-info-block {
  margin-bottom: var(--sp-6);
}

.about-info-block:last-child {
  margin-bottom: 0;
}

.about-info-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-gold);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-info-text {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin-bottom: 0;
}

.about-expertise-block {
  display: flex;
  flex-direction: column;
}

.about-expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-2);
}

.about-why-us {
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-10);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--color-border-dim);
  width: 100%;
}

.about-why-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-gold);
  margin-bottom: var(--sp-8);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[dir="rtl"] .about-why-title {
  direction: rtl;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-5);
  width: 100%;
}

[dir="rtl"] .why-us-grid {
  direction: rtl;
}

.why-us-item {
  padding: var(--sp-6) var(--sp-4);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.why-us-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-text-gold), var(--color-text-olive));
  opacity: 0;
  transition: opacity var(--dur);
}

.why-us-item:hover {
  transform: translateY(-2.5px);
  border-color: var(--color-text-gold);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.why-us-item:hover::before {
  opacity: 1;
}

.why-us-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--sp-3);
  margin-bottom: 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .about-why-us {
    margin-top: var(--sp-8);
    padding-top: var(--sp-8);
  }
  .why-us-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sp-4);
  }
}

/* —————————————————————————————————————————————————————————————
   9. SERVICES
   ————————————————————————————————————————————————————————————— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  text-align: left;
}

[dir="rtl"] .services-grid {
  text-align: right;
}

.service-category-card {
  padding: var(--sp-6);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-category-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-text-gold), var(--color-text-olive));
  opacity: 0;
  transition: opacity var(--dur);
}

.service-category-card:hover {
  transform: translateY(-2.5px);
  border-color: rgba(122, 98, 14, 0.3);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.service-category-card:hover::before {
  opacity: 1;
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

[dir="rtl"] .category-header {
  flex-direction: row-reverse;
}

#page-services .category-header {
  margin-bottom: 0;
}

#page-services .category-services-list {
  display: none;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #000000;
  margin: 0;
  line-height: 1.3;
}

.category-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.category-services-list li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  position: relative;
}

.category-subtitle-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-gold);
  margin-bottom: var(--sp-3);
  margin-top: calc(-1 * var(--sp-1));
}

.category-desc-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  margin: 0;
}

/* —————————————————————————————————————————————————————————————
   10. TRAINING (DEPRECATED: Now uses Services Grid system)
   ————————————————————————————————————————————————————————————— */

/* —————————————————————————————————————————————————————————————
   11. MAGAZINE
   ————————————————————————————————————————————————————————————— */
.magazine-content { max-width: 800px; }

.magazine-body {
  font-size: 1.08rem; line-height: 2;
  color: var(--color-text-soft); max-width: 720px;
}

.magazine-stats {
  display: flex; gap: var(--sp-12); margin: var(--sp-10) 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex; flex-direction: column; gap: var(--sp-1);
  position: relative;
  padding-bottom: var(--sp-3);
}
.stat-item::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--color-text-olive);
}
[dir='rtl'] .stat-item::after { left: auto; right: 0; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--color-text-gold); line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem; color: var(--color-text-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}

.magazine-cta,
.conference-cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-6);
  padding: 11px 26px;
  background: transparent;
  border: 1px solid rgba(122, 98, 14, 0.4);
  color: var(--color-text-gold);
  border-radius: var(--radius);
  font-weight: 500; font-size: 0.92rem;
  transition: all var(--dur);
}
.magazine-cta:hover,
.conference-cta:hover {
  background: var(--gold);
  color: var(--base-black);
  border-color: var(--gold);
}

/* —————————————————————————————————————————————————————————————
   12. CONFERENCES
   ————————————————————————————————————————————————————————————— */
.conference-content { max-width: 800px; }

.conference-body {
  font-size: 1.08rem; line-height: 2;
  color: var(--color-text-soft); max-width: 720px;
}

.conference-link-area { display: none; }

.conferences-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
  width: 100%;
}

.conference-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-8);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.conference-card:hover {
  border-color: rgba(122, 98, 14, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 0 0 30px rgba(122, 98, 14, 0.03);
}

.conference-card-image {
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.conference-card-image .img-placeholder {
  height: 100%;
  width: 100%;
}

.conference-card-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.conference-status-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(122, 98, 14, 0.06);
  border: 1px solid rgba(122, 98, 14, 0.3);
  color: var(--color-text-gold);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.conference-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

.conference-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2.5);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.meta-icon {
  color: var(--color-text-gold);
  flex-shrink: 0;
}

.conference-role-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.role-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #000000;
  margin-top: 0;
  margin-bottom: var(--sp-2.5);
}

.role-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.role-list li {
  position: relative;
  padding-left: var(--sp-4);
}

[dir="rtl"] .role-list li {
  padding-left: 0;
  padding-right: var(--sp-4);
}

.role-list li::before {
  content: "•";
  position: absolute;
  color: var(--color-text-gold);
  font-weight: bold;
}

[dir="ltr"] .role-list li::before {
  left: 0;
}

[dir="rtl"] .role-list li::before {
  right: 0;
}

.conference-card .conference-cta {
  margin-top: var(--sp-2);
  align-self: flex-start;
}

/* Conference Details Sub-Grid */
.conference-details-grid {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(101, 120, 75, 0.15);
  padding-top: var(--sp-6);
  margin-top: var(--sp-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-self: stretch;
  width: 100%;
}

@media (min-width: 768px) {
  .conference-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .conference-details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.conf-detail-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: var(--sp-4);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.conf-detail-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(122, 98, 14, 0.2);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.conf-detail-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2.5);
  margin-bottom: var(--sp-2);
}

.conf-detail-icon {
  color: var(--color-text-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.conf-detail-icon svg {
  stroke-width: 2;
}

.conf-detail-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.conf-detail-text {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin: 0;
}

.conf-detail-link {
  color: var(--color-text-gold);
  text-decoration: none;
  border-bottom: 1px dashed rgba(122, 98, 14, 0.4);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  font-weight: 500;
}

.conf-detail-link:hover {
  color: var(--color-text-gold);
  border-bottom-color: var(--color-text-gold);
}

/* —————————————————————————————————————————————————————————————
   13. CONTACT
   ————————————————————————————————————————————————————————————— */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  align-items: center;
  justify-items: center;
  margin-top: var(--sp-6);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-6);
  width: 100%;
  max-width: 360px;
  transition: opacity 0.65s ease, transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-item:hover {
  border-color: rgba(122, 98, 14, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 0 0 30px rgba(122, 98, 14, 0.03);
}

.contact-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--color-bg), var(--color-bg-alt));
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-gold); flex-shrink: 0;
}

.contact-item > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--color-text-dim);
  text-transform: uppercase; letter-spacing: 0.12em;
}

.contact-value {
  font-size: 0.92rem; color: var(--color-text);
  margin-top: var(--sp-2); line-height: 1.6;
  word-break: normal;
  overflow-wrap: break-word;
  width: 100%;
}

.contact-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--dur) ease;
}

.contact-link:hover {
  color: var(--color-text-gold);
}

.contact-form-wrapper {
  background: linear-gradient(135deg, rgba(21, 21, 24, 0.8), rgba(16, 16, 19, 0.8));
  border: 1px solid rgba(101, 120, 75, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-group { margin-bottom: var(--sp-5); }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}

.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  background: rgba(16, 16, 19, 0.6);
  border: 1px solid rgba(101, 120, 75, 0.22);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.92rem; font-family: inherit;
  outline: none;
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(21, 21, 24, 0.85);
  box-shadow: 0 0 12px rgba(208, 180, 62, 0.08);
}
.form-group textarea { min-height: 110px; resize: vertical; }

.form-submit {
  background: var(--gold); color: var(--base-black);
  border: none; border-radius: var(--radius);
  font-weight: 600; font-size: 0.92rem;
  padding: 11px 26px; cursor: pointer;
  transition: background var(--dur), transform var(--dur);
}
.form-submit:hover { background: var(--gold-light); transform: translateY(-1px); }

.form-success {
  margin-top: var(--sp-4);
  padding: 10px 18px;
  background: rgba(45, 58, 30, 0.08);
  border: 1px solid var(--color-text-olive);
  border-radius: var(--radius);
  color: var(--color-text-olive);
  font-size: 0.88rem; font-weight: 500;
  animation: fadeInUp 0.3s ease;
}

/* —————————————————————————————————————————————————————————————
   14. FOOTER
   ————————————————————————————————————————————————————————————— */
#site-footer {
  background: var(--base-sky-900);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--sp-12) 0 var(--sp-6);
  position: relative;
  color: rgba(255, 255, 255, 0.8);
}
#site-footer::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--olive), transparent);
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.footer-top {
  display: flex; justify-content: space-between; align-items: start;
  margin-bottom: var(--sp-8); flex-wrap: wrap; gap: var(--sp-8);
}

.footer-brand .footer-logo {
  height: 36px; /* Prominent physical size enabled by transparent cropped logo */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}
.footer-tagline {
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.75);
  margin-top: var(--sp-3); max-width: 280px; line-height: 1.65;
}

.footer-links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-links a {
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.75);
  transition: color var(--dur);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-5);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
}

.footer-signal { width: 180px; height: 16px; margin-bottom: var(--sp-2); opacity: 0.4; }
.footer-signal svg { width: 100%; height: 100%; }

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem; color: rgba(255, 255, 255, 0.5);
}
.footer-reg {
  font-family: var(--font-mono);
  font-size: 0.65rem; color: rgba(255, 255, 255, 0.4);
  opacity: 0.8; margin-bottom: 0;
}

/* —————————————————————————————————————————————————————————————
   15. ANIMATIONS
   ————————————————————————————————————————————————————————————— */
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-in.visible {
  opacity: 1; transform: translateY(0);
}

/* —————————————————————————————————————————————————————————————
   16. UTILITIES
   ————————————————————————————————————————————————————————————— */
.text-primary    { color: var(--gold); }
.text-accent     { color: var(--color-text-olive); }
.text-muted      { color: var(--color-text-muted); }
.text-dim        { color: var(--color-text-dim); }
.font-mono       { font-family: var(--font-mono); }
.font-display    { font-family: var(--font-display); }

/* —————————————————————————————————————————————————————————————
   17. RESPONSIVE
   ————————————————————————————————————————————————————————————— */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(240, 249, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: var(--sp-8);
    opacity: 0;
    z-index: 999;
  }
  .nav-links.nav-open {
    display: flex;
    animation: mobileMenuFadeIn 0.2s ease forwards;
  }
  @keyframes mobileMenuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .nav-link { font-size: 1.15rem; }

  .nav-cta { display: none; }
  .mobile-only-cta { display: block; }
  .mobile-only-cta .nav-cta { display: inline-flex; }

  .menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { min-height: 85vh; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.2rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-content::before { display: none; }

  .section-block { padding: var(--sp-16) 0; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2rem); }

  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .contact-form-wrapper { padding: var(--sp-6); }

  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: var(--sp-3); }
  .footer-bottom { align-items: start; }

  .img-placeholder--hero,
  .img-placeholder--training { height: 220px; }
  .img-placeholder--wide { height: 200px; }

  .magazine-stats { gap: var(--sp-8); }

  .conference-card {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: var(--sp-5);
  }
  .conference-card-image {
    aspect-ratio: 16 / 9;
  }
}

/* —————————————————————————————————————————————————————————————
   18. LARGE SCREENS
   ————————————————————————————————————————————————————————————— */
@media (min-width: 1200px) {
  /* Center alignment is default, no side margins needed */
}
