/* ============================================================
   B2B — بوابة الكويت الرقمية للتجارة
   الهوية: كحلي داكن + ذهبي (مطابقة لهوية البوسترات)
   ============================================================ */

:root {
  --navy-950: #060f21;
  --navy-900: #0a1930;
  --navy-850: #0c1e3a;
  --navy-800: #10254a;
  --navy-700: #17325e;
  --navy-600: #1f4176;
  --gold: #f0b429;
  --gold-light: #ffd166;
  --gold-deep: #d99e14;
  --text: #eef3fb;
  --text-muted: #a9b9d2;
  --text-faint: #7e91ad;
  --border: rgba(240, 180, 41, 0.14);
  --border-soft: rgba(169, 185, 210, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(3, 8, 20, 0.45);
  --shadow-soft: 0 10px 30px rgba(3, 8, 20, 0.3);
  --header-h: 74px;
  --transition: 0.3s cubic-bezier(0.25, 0.6, 0.3, 1);
  --font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: rgba(240, 180, 41, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--navy-950);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 8px;
  border: 2px solid var(--navy-950);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-deep);
}

.ic {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

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

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 800;
}

.section {
  padding-block: clamp(60px, 9vw, 104px);
}

.section.alt {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(240, 180, 41, 0.05), transparent 60%),
    var(--navy-850);
}

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(38px, 6vw, 60px);
}

.section-head h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow.light {
  background: rgba(6, 15, 33, 0.25);
  border-color: rgba(6, 15, 33, 0.3);
  color: var(--navy-950);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-950);
  box-shadow: 0 10px 28px rgba(240, 180, 41, 0.32);
}

.btn-gold:hover {
  box-shadow: 0 16px 36px rgba(240, 180, 41, 0.42);
}

.btn-outline {
  border: 1.5px solid rgba(238, 243, 251, 0.35);
  color: var(--text);
  background: rgba(238, 243, 251, 0.04);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240, 180, 41, 0.07);
}

.btn-navy {
  background: var(--navy-950);
  color: var(--gold);
  box-shadow: 0 12px 30px rgba(6, 15, 33, 0.4);
}

.btn-navy:hover {
  background: var(--navy-900);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(10, 25, 48, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  background: rgba(7, 17, 34, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-mark {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
}

.logo-mark em {
  font-style: normal;
  color: var(--gold);
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--gold);
  border: 1.5px solid var(--border);
  background: rgba(240, 180, 41, 0.07);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background var(--transition), border-color var(--transition);
}

.lang-toggle:hover {
  background: rgba(240, 180, 41, 0.15);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 40px) 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(850px 520px at 82% 12%, rgba(240, 180, 41, 0.13), transparent 62%),
    radial-gradient(700px 500px at 8% 85%, rgba(31, 65, 118, 0.5), transparent 65%),
    linear-gradient(200deg, var(--navy-850), var(--navy-900) 55%, var(--navy-950));
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(169, 185, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 185, 210, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px dashed rgba(240, 180, 41, 0.18);
  inset-inline-end: -140px;
  top: -120px;
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  position: relative;
  max-width: 860px;
  text-align: start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(240, 180, 41, 0.09);
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-title span {
  display: block;
}

.hero-title .highlight {
  color: var(--gold);
  position: relative;
  width: fit-content;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 6px;
  inset-inline-start: 0;
  width: 100%;
  height: 10px;
  background: rgba(240, 180, 41, 0.18);
  border-radius: 6px;
  z-index: -1;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.hero-chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-chips .ic {
  color: var(--gold);
  width: 1.05em;
  height: 1.05em;
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.07), rgba(240, 180, 41, 0.02) 40%, rgba(240, 180, 41, 0.07));
  border-block: 1px solid var(--border);
  padding-block: 34px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.25;
  direction: ltr;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(240, 180, 41, 0.07);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 22px;
}

.about-note .ic {
  color: var(--gold);
  margin-top: 5px;
}

.about-note p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.about-figure {
  position: relative;
}

.figure-btn {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.figure-btn img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.figure-btn:hover {
  transform: translateY(-5px);
}

.figure-btn:hover img {
  transform: scale(1.04);
}

.zoom-hint {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(6, 15, 33, 0.72);
  border: 1px solid var(--border);
  color: var(--gold);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.about-figure figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* ============================================================
   Sectors
   ============================================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sector-card {
  background: var(--navy-800);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.sector-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.sector-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.sector-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.sector-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.sectors-more {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.92rem;
  margin-top: 26px;
}

/* ============================================================
   Partnership
   ============================================================ */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.partner-card {
  background: var(--navy-850);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 38px);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.partner-card:hover {
  transform: translateY(-5px);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.partner-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.partner-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(240, 180, 41, 0.25);
}

.partner-card h3 {
  font-size: 1.25rem;
}

.partner-card > p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 20px;
}

.check-list li {
  position: relative;
  padding-inline-start: 26px;
  font-weight: 600;
  font-size: 0.93rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.48em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060f21' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat,
    var(--gold);
}

.option-card {
  background: var(--navy-900);
  border: 1px dashed rgba(240, 180, 41, 0.28);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.option-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(240, 180, 41, 0.1);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.option-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

.partner-benefit {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(240, 180, 41, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
}

.partner-benefit .ic {
  color: var(--gold);
  margin-top: 4px;
}

.partner-benefit p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   Why B2B
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-card {
  background: var(--navy-800);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.why-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.why-closer {
  margin-top: 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.1), rgba(240, 180, 41, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 34px);
}

.why-closer p {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  font-weight: 700;
  max-width: 820px;
  margin-inline: auto;
}

/* ============================================================
   Vision & Mission
   ============================================================ */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vm-card {
  background:
    radial-gradient(420px 200px at 88% -8%, rgba(240, 180, 41, 0.09), transparent 60%),
    var(--navy-850);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: clamp(26px, 3.5vw, 40px);
  transition: transform var(--transition), border-color var(--transition);
}

.vm-card:hover {
  transform: translateY(-5px);
  border-color: var(--border);
}

.vm-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.vm-card h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: var(--gold);
}

.vm-card p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ============================================================
   Goals
   ============================================================ */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.goal-card {
  background: var(--navy-800);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.goal-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.goal-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.goal-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--gold);
}

.goal-card ul li {
  position: relative;
  padding-inline-start: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.goal-card ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ============================================================
   Values
   ============================================================ */
.values-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 880px;
  margin-inline: auto;
}

.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--navy-850);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.value-chip::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060f21' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat,
    var(--gold);
  flex-shrink: 0;
}

.value-chip:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  background: var(--navy-800);
}

/* ============================================================
   Promise
   ============================================================ */
.promise {
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-950);
  padding-block: clamp(56px, 8vw, 88px);
}

.promise-inner {
  max-width: 840px;
  text-align: center;
}

.promise h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  margin-bottom: 18px;
}

.promise p {
  font-weight: 600;
  margin-bottom: 14px;
  color: rgba(6, 15, 33, 0.82);
}

.promise .btn {
  margin-top: 14px;
}

/* ============================================================
   Gallery
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--navy-800);
  border: 1px solid var(--border-soft);
  padding: 9px 22px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.filter-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
  color: var(--navy-950);
  box-shadow: 0 8px 20px rgba(240, 180, 41, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--navy-800);
  border: 1px solid var(--border-soft);
  padding: 0;
  display: block;
  width: 100%;
  text-align: start;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: itemIn 0.45s ease both;
}

@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gallery-item.hide {
  display: none;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 15, 33, 0.85), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gi-overlay,
.gallery-item:focus-visible .gi-overlay {
  opacity: 1;
}

.gi-overlay .gi-zoom {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(240, 180, 41, 0.92);
  color: var(--navy-950);
}

.gi-caption {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.5;
}

.noscript-note {
  text-align: center;
  color: var(--text-muted);
  padding-block: 30px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  padding-block: clamp(44px, 6vw, 70px) 34px;
}

.footer-brand .logo-mark {
  font-size: 2rem;
}

.footer-slogan {
  color: var(--gold);
  font-weight: 700;
  margin: 12px 0 10px;
}

.footer-about {
  color: var(--text-faint);
  font-size: 0.92rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1.02rem;
  margin-bottom: 18px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.93rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 13px;
}

.footer-contact .ic {
  color: var(--gold);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-block: 18px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.86rem;
}

/* ============================================================
   Back to top
   ============================================================ */
.to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-950);
  box-shadow: 0 12px 28px rgba(240, 180, 41, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  transform: translateY(-3px);
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 9, 20, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

body.lb-lock {
  overflow: hidden;
}

.lb-figure {
  max-width: min(1320px, 94vw);
  max-height: 92vh;
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.open .lb-figure {
  transform: scale(1);
}

.lb-figure img {
  max-width: 100%;
  max-height: calc(92vh - 64px);
  max-height: calc(92svh - 64px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}

.lb-counter {
  direction: ltr;
  color: var(--gold);
  font-weight: 800;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid var(--border);
  padding: 2px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.lb-close,
.lb-nav {
  position: fixed;
  z-index: 210;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 37, 74, 0.75);
  border: 1px solid var(--border-soft);
  color: #fff;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.lb-close:hover,
.lb-nav:hover {
  background: var(--gold);
  color: var(--navy-950);
}

.lb-close {
  top: 22px;
  inset-inline-end: 22px;
}

/* أسهم التنقل بمواضع فيزيائية ثابتة في الاتجاهين */
.lb-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev:hover,
.lb-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

  .goals-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    background: rgba(7, 17, 34, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  body.nav-open .main-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 6%;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border-soft);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 14px 4px;
    font-size: 1.02rem;
  }

  .main-nav a::after {
    display: none;
  }

  .about-grid,
  .partner-grid,
  .vm-grid {
    grid-template-columns: 1fr;
  }

  .about-figure {
    order: -1;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 14px;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-sub {
    display: none;
  }

  .lang-toggle span {
    display: none;
  }

  .lang-toggle {
    padding: 9px 12px;
  }

  .lang-toggle .ic {
    width: 1.35em;
    height: 1.35em;
  }

  .lb-nav {
    width: 44px;
    height: 44px;
  }

  .lb-prev {
    left: 8px;
  }

  .lb-next {
    right: 8px;
  }

  .lb-close {
    top: 14px;
    inset-inline-end: 14px;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 15px;
  }

  .why-grid,
  .goals-grid,
  .gallery-grid,
  .sectors-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
  }

  .to-top {
    bottom: 18px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
