/* ============================================================
   Yousef Steel Industries — yousefsteel.net
   Design system in the "Castle" style:
   deep navy gradients, soft radii, glow accents, wave dividers
   ============================================================ */

:root {
  /* Brand navy — sampled from the Yousef logo */
  --brand-950: #081c38;
  --brand-900: #0e2a54;
  --brand-800: #16407e;
  --brand-700: #1d4e99;
  --brand-100: #dbe7f7;
  --brand-50: #f2f7fd;
  /* Hot-steel amber accent */
  --accent-600: #d98e00;
  --accent-500: #f5a300;
  --accent-300: #ffc44d;
  --accent-50: #fff6e3;
  --wa: #25d366;
  --wa-deep: #1db457;
  --slate-900: #0f1c33;
  --slate-600: #52627c;
  --slate-500: #64748b;
  --slate-100: #e8edf5;
  --slate-50: #f5f8fc;
  --white: #ffffff;

  --shadow-card: 0 1px 2px rgba(8, 28, 56, 0.05), 0 10px 30px -12px rgba(8, 28, 56, 0.15);
  --shadow-card-hover: 0 2px 4px rgba(8, 28, 56, 0.06), 0 20px 45px -15px rgba(8, 28, 56, 0.28);
  --glow-amber: 0 0 50px -10px rgba(245, 163, 0, 0.5);
  --glow-wa: 0 0 50px -10px rgba(37, 211, 102, 0.55);

  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  --font-ar: 'Tajawal', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-en: 'Inter', 'Tajawal', ui-sans-serif, system-ui, sans-serif;

  --container: 1240px;
  --ease: cubic-bezier(0.21, 0.47, 0.32, 0.98);

  --dots-light: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.13) 1px, transparent 0);
  --dots-dark: radial-gradient(circle at 1px 1px, rgba(14, 42, 84, 0.09) 1px, transparent 0);
  --grad-navy: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-900) 55%, var(--brand-800) 100%);
}

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

[dir='rtl'] { --font-body: var(--font-ar); --flow-start: right; }
[dir='ltr'] { --font-body: var(--font-en); --flow-start: left; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--slate-600);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--brand-950); font-weight: 800; }

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

::selection { background: var(--accent-300); color: var(--brand-950); }

:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--slate-50); }
::-webkit-scrollbar-thumb { background: var(--brand-900); border-radius: 8px; border: 2px solid var(--slate-50); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-600); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Latin-only tracking (letter-spacing breaks Arabic script) */
[dir='ltr'] .eyebrow { letter-spacing: 2.5px; text-transform: uppercase; }
[dir='ltr'] h1, [dir='ltr'] .section-title { letter-spacing: -0.02em; }
[dir='ltr'] .hero-chip { letter-spacing: 0.2px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-accent {
  background: var(--accent-500);
  color: var(--brand-950);
  box-shadow: var(--glow-amber);
}
.btn-accent:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); }
.btn-primary { background: var(--brand-900); color: #fff; }
.btn-primary:hover { background: var(--brand-800); transform: translateY(-2px); }
.btn-light-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn-light-outline:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: var(--glow-wa);
}
.btn-wa:hover { background: var(--wa-deep); transform: translateY(-2px); }
.btn-wa svg { fill: #fff; }

/* ============ Chips & eyebrow ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 700;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-500);
}
.center .eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-500);
}

/* ============ Top bar ============ */
.topbar {
  background: var(--brand-950);
  color: #b9c9e2;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
  padding-block: 4px;
}
.topbar-group { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar a { transition: color 0.25s; }
.topbar a:hover { color: var(--accent-300); }
.topbar .item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .item svg { width: 14px; height: 14px; stroke: var(--accent-500); flex: none; }
.topbar .item.wa svg { stroke: none; fill: var(--wa); }

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-100);
  transition: box-shadow 0.35s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-card); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand img { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.5; }
.brand-ar {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--brand-950);
  white-space: nowrap;
}
.brand-en {
  font-family: var(--font-en);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate-500);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-weight: 700;
  font-size: 0.93rem;
  padding: 9px 15px;
  border-radius: var(--r-md);
  color: var(--slate-600);
  transition: 0.25s;
  white-space: nowrap;
}
.nav a:hover { color: var(--brand-950); background: var(--brand-50); }
.nav a.active { color: var(--accent-600); background: var(--accent-50); }

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

.lang-switch {
  font-weight: 700;
  font-size: 0.83rem;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--r-md);
  padding: 9px 15px;
  color: var(--brand-900);
  transition: 0.25s;
}
.lang-switch:hover { border-color: var(--accent-500); color: var(--accent-600); background: var(--accent-50); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--r-md);
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-900);
  margin-block: 5px;
  transition: 0.3s;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--grad-navy);
  color: #fff;
  overflow: hidden;
}
.hero .dots {
  position: absolute;
  inset: 0;
  background-image: var(--dots-light);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero .glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero .glow-1 {
  top: -160px;
  inset-inline-end: -6%;
  width: 460px;
  height: 460px;
  background: rgba(245, 163, 0, 0.16);
  filter: blur(130px);
}
.hero .glow-2 {
  bottom: -120px;
  inset-inline-start: -6%;
  width: 400px;
  height: 400px;
  background: rgba(63, 150, 255, 0.14);
  filter: blur(110px);
}
.hero .watermark {
  position: absolute;
  bottom: -70px;
  inset-inline-end: -40px;
  width: 380px;
  opacity: 0.05;
  pointer-events: none;
  filter: grayscale(1) brightness(3);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  padding-block: 90px 150px;
}
.hero-copy { max-width: 640px; }
.hero-badge {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  color: var(--accent-300);
  animation: rise 0.8s 0.05s var(--ease) both;
}
.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  line-height: 1.28;
  margin-block: 24px 20px;
  text-wrap: balance;
  animation: rise 0.8s 0.18s var(--ease) both;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent-300), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy > p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(219, 231, 247, 0.85);
  max-width: 560px;
  animation: rise 0.8s 0.3s var(--ease) both;
}
.hero-actions { display: flex; gap: 13px; margin-top: 36px; flex-wrap: wrap; animation: rise 0.8s 0.42s var(--ease) both; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 48px;
  animation: rise 0.8s 0.55s var(--ease) both;
}
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust .tic {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}
.hero-trust .tic svg { width: 18px; height: 18px; stroke: var(--accent-300); }
.hero-trust span { font-size: 0.88rem; font-weight: 700; color: rgba(255, 255, 255, 0.92); }

/* hero visual — glass photo card */
.hero-visual { position: relative; animation: rise 0.9s 0.3s var(--ease) both; }
.hero-glass {
  position: relative;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  padding: 18px;
}
.hero-glass > img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.hero-chip svg { width: 16px; height: 16px; flex: none; }
.hero-chip.c1 {
  top: -16px;
  inset-inline-start: 30px;
  background: #fff;
  color: var(--brand-900);
  animation: floaty 5s ease-in-out infinite;
}
.hero-chip.c1 svg { stroke: var(--accent-600); }
.hero-chip.c2 {
  bottom: -16px;
  inset-inline-end: 30px;
  background: var(--accent-500);
  color: var(--brand-950);
  animation: floaty 6s 0.4s ease-in-out infinite reverse;
}
.hero-chip.c2 svg { stroke: var(--brand-950); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* wave divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  width: 100%;
  color: var(--white);
  pointer-events: none;
}

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

/* ============ Stats (floating card) ============ */
.stats-wrap { position: relative; z-index: 10; margin-top: -64px; }
.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}
.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 20px;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 26%;
  height: 48%;
  width: 1px;
  background: var(--slate-100);
}
.stat .sic {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-50);
}
.stat .sic svg { width: 22px; height: 22px; stroke: var(--accent-600); }
.stat .num {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--brand-950);
  line-height: 1.25;
}
.stat .num .unit { color: var(--accent-500); }
.stat .label { color: var(--slate-500); font-size: 0.83rem; font-weight: 600; }

/* ============ Ticker ============ */
.ticker {
  overflow: hidden;
  margin-top: 76px;
  border-block: 1px solid var(--slate-100);
  background: var(--slate-50);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-seq { display: flex; align-items: center; flex: none; padding-block: 14px; }
.ticker-seq span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-900);
  white-space: nowrap;
  padding-inline: 20px;
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.ticker-seq span::after { content: '◆'; font-size: 0.55rem; color: var(--accent-500); }
@keyframes ticker { to { transform: translateX(-50%); } }
[dir='rtl'] .ticker-track { animation-direction: reverse; }

/* ============ Sections ============ */
.section { padding-block: 96px; position: relative; }
.section.tint { background: var(--slate-50); }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.4;
  color: var(--brand-950);
  text-wrap: balance;
}
.section-sub { color: var(--slate-500); margin-top: 14px; font-size: 1.02rem; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 70px;
  align-items: center;
}
.about-media { position: relative; }
.about-media::before {
  content: '';
  position: absolute;
  inset-inline-end: -34px;
  top: -34px;
  width: 220px;
  height: 220px;
  background-image: var(--dots-dark);
  background-size: 18px 18px;
  border-radius: var(--r-xl);
  z-index: 0;
}
.about-media .frame {
  position: relative;
  z-index: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}
.about-media .frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.about-media:hover .frame img { transform: scale(1.04); }
.about-media .year-chip {
  position: absolute;
  z-index: 2;
  inset-inline-start: -20px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  box-shadow: var(--shadow-card-hover);
}
.year-chip .yic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-50);
}
.year-chip .yic svg { width: 22px; height: 22px; stroke: var(--accent-600); }
.year-chip .y { font-weight: 800; font-size: 1.5rem; color: var(--brand-950); line-height: 1.2; }
.year-chip .t { font-size: 0.8rem; color: var(--slate-500); font-weight: 600; }

.about-text p { margin-bottom: 18px; }
.about-text strong { color: var(--brand-950); }
.about-points { display: grid; gap: 14px; margin-top: 26px; }
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  color: var(--brand-900);
}
.about-points svg { width: 22px; height: 22px; flex: none; margin-top: 4px; }
.about-cta { margin-top: 34px; display: flex; gap: 13px; flex-wrap: wrap; }

/* ============ Product cards ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--r-lg);
  padding: 34px 28px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.card .index {
  position: absolute;
  inset-inline-end: 22px;
  top: 16px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 2.3rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--slate-100);
  line-height: 1;
  pointer-events: none;
  transition: 0.35s;
}
.card:hover .index { -webkit-text-stroke-color: rgba(245, 163, 0, 0.5); }
.card .icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  background: var(--accent-50);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: 0.35s;
}
.card:hover .icon { background: var(--brand-900); }
.card .icon svg { width: 28px; height: 28px; stroke: var(--accent-600); transition: 0.35s; }
.card:hover .icon svg { stroke: var(--accent-300); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; flex: 1; }
.card .more {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-600);
  transition: 0.3s;
}
.card .more svg { width: 16px; height: 16px; stroke: currentColor; transition: transform 0.3s var(--ease); }
.card .more:hover { color: var(--wa-deep); }
[dir='rtl'] .card .more svg { transform: scaleX(-1); }
[dir='rtl'] .card .more:hover svg { transform: scaleX(-1) translateX(4px); }
[dir='ltr'] .card .more:hover svg { transform: translateX(4px); }

/* ============ Process ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 26px 28px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: 0.35s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-950);
  background: var(--accent-500);
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: var(--glow-amber);
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 55px;
  inset-inline-end: -26px;
  width: 26px;
  border-top: 2px dashed rgba(100, 116, 139, 0.4);
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* ============ Values ============ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--r-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  transition: 0.35s var(--ease);
}
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.value .vic {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--accent-50);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.value .vic svg { width: 24px; height: 24px; stroke: var(--accent-600); }
.value h3 { font-size: 1.08rem; margin-bottom: 7px; }
.value p { font-size: 0.92rem; }

/* ============ Vision cards ============ */
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.vision-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--r-lg);
  padding: 38px 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: 0.35s var(--ease);
}
.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-300));
  transform: scaleX(0);
  transform-origin: var(--flow-start, right);
  transition: transform 0.45s var(--ease);
}
.vision-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.vision-card:hover::before { transform: scaleX(1); }
.vision-card .icon {
  width: 58px;
  height: 58px;
  border-radius: var(--r-md);
  background: var(--brand-950);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.vision-card .icon svg { width: 27px; height: 27px; stroke: var(--accent-300); }
.vision-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.vision-card p { font-size: 0.96rem; }

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 248px;
  grid-auto-flow: dense;
  gap: 20px;
}
.g-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  border-radius: var(--r-lg);
  background: var(--brand-950);
  box-shadow: var(--shadow-card);
  text-align: start;
  transition: 0.35s var(--ease);
}
.g-item:hover { box-shadow: var(--shadow-card-hover); }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.5s;
}
.g-item:hover img { transform: scale(1.06); opacity: 0.85; }
.g-item .cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 48px 20px 16px;
  background: linear-gradient(to top, rgba(8, 28, 56, 0.94), transparent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transform: translateY(10px);
  opacity: 0;
  transition: 0.4s var(--ease);
  z-index: 1;
}
.g-item:hover .cap { transform: none; opacity: 1; }
.g-item .plus {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-500);
  color: var(--brand-950);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: 0.35s var(--ease);
  z-index: 1;
}
.g-item:hover .plus { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 14, 30, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; }
.lightbox img {
  max-width: min(1040px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card-hover);
}
.lightbox .lb-cap { color: #dbe7f7; margin-top: 18px; font-size: 0.95rem; }
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.25s;
}
.lb-btn:hover { background: var(--accent-500); color: var(--brand-950); border-color: var(--accent-500); }
.lb-close { top: 24px; inset-inline-end: 24px; }
.lb-prev { inset-inline-start: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 24px; top: 50%; transform: translateY(-50%); }

/* ============ CTA card ============ */
.cta-section { padding-block: 20px 110px; }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--grad-navy);
  box-shadow: var(--shadow-card-hover);
  text-align: center;
  padding: 76px 30px;
}
.cta-card .dots {
  position: absolute;
  inset: 0;
  background-image: var(--dots-light);
  background-size: 22px 22px;
  pointer-events: none;
}
.cta-card .watermark {
  position: absolute;
  top: -50px;
  inset-inline-end: -40px;
  width: 260px;
  opacity: 0.06;
  pointer-events: none;
  filter: grayscale(1) brightness(3);
}
.cta-inner { position: relative; max-width: 640px; margin-inline: auto; }
.cta-card h2 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-wrap: balance;
}
.cta-card p { color: rgba(219, 231, 247, 0.85); margin-top: 14px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-cards { display: grid; gap: 16px; align-content: start; }
.c-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: 0.3s var(--ease);
}
.c-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.c-card .ic {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--accent-50);
  display: grid;
  place-items: center;
}
.c-card .ic svg { width: 24px; height: 24px; stroke: var(--accent-600); }
.c-card.wa .ic { background: #e8fbef; }
.c-card.wa .ic svg { stroke: none; fill: var(--wa); }
.c-card h4 { font-size: 1rem; margin-bottom: 4px; }
.c-card p, .c-card a { font-size: 0.94rem; }
.c-card a:hover { color: var(--accent-600); }
.c-card.wa a:hover { color: var(--wa-deep); }
.c-card .ltr { direction: ltr; unicode-bidi: embed; }

.map-wrap {
  position: relative;
  min-height: 440px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-card);
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9);
}

/* ============ Footer ============ */
.footer { background: var(--brand-950); color: #b9c9e2; position: relative; overflow: hidden; }
.footer .dots {
  position: absolute;
  inset: 0;
  background-image: var(--dots-light);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.footer .container { position: relative; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 1fr;
  gap: 44px;
  padding-block: 68px 52px;
}
.footer h4 {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-500);
}
.footer p { font-size: 0.92rem; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-hours {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
}
.footer-hours svg { width: 16px; height: 16px; stroke: var(--accent-500); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { transition: 0.25s; display: inline-flex; align-items: center; gap: 9px; font-size: 0.93rem; }
.footer-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-500);
  flex: none;
  transition: 0.25s;
}
.footer-links a:hover { color: var(--accent-300); padding-inline-start: 4px; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 14px; font-size: 0.92rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; stroke: var(--accent-500); flex: none; margin-top: 5px; }
.footer-contact .wa-ic { stroke: none; fill: var(--wa); }
.footer-contact a:hover { color: var(--accent-300); }
.footer-contact .ltr { direction: ltr; unicode-bidi: embed; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bottom .amber { color: var(--accent-300); }

/* ============ Floating buttons ============ */
.float-stack {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.25s var(--ease);
}
.float-btn:hover { transform: scale(1.09); }
.float-btn svg { width: 27px; height: 27px; }
.float-wa { background: var(--wa); box-shadow: 0 16px 36px -10px rgba(37, 211, 102, 0.75); }
.float-wa svg { fill: #fff; }
.float-wa::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--wa);
  animation: pulse 2.2s infinite;
}
.float-tel { background: var(--brand-900); box-shadow: 0 16px 36px -10px rgba(8, 28, 56, 0.6); }
.float-tel svg { stroke: var(--accent-300); }
@keyframes pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.65); opacity: 0; }
}

.to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 120;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  color: var(--brand-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: 0.35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-500); border-color: var(--accent-500); color: var(--brand-950); }
.to-top svg { width: 20px; height: 20px; stroke: currentColor; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; padding-block: 70px 140px; }
  .hero-visual { max-width: 560px; }
  .cards-grid, .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 70px; }
  .about-media .frame img { height: 440px; }
  .about-media .year-chip { inset-inline-start: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 22px 22px;
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-card-hover);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .header .container { min-height: 74px; }
  .hero-glass > img { height: 320px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat { justify-content: flex-start; padding: 22px 18px; }
  .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(n+3)::after {
    content: '';
    position: absolute;
    inset-inline: 6%;
    top: 0;
    height: 1px;
    width: 88%;
    background: var(--slate-100);
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .section { padding-block: 76px; }
  .ticker { margin-top: 60px; }
  .cta-card { padding: 56px 22px; }
}

@media (max-width: 560px) {
  .cards-grid, .vision-grid, .values-grid, .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .g-item.tall { grid-row: span 1; }
  .g-item.wide { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; gap: 38px; }
  .topbar .topbar-group:last-child { display: none; }
  .brand img { height: 40px; }
  .brand { gap: 10px; }
  .brand-ar { font-size: 0.86rem; }
  .brand-en { font-size: 0.47rem; letter-spacing: 1px; }
  .hero-grid { padding-block: 56px 130px; }
  .hero-chip { display: none; }
  .hero-glass { padding: 12px; }
  .hero-glass > img { height: 240px; }
  .stats-wrap { margin-top: -48px; }
  .float-stack { bottom: 20px; inset-inline-start: 18px; gap: 11px; }
  .float-btn { width: 52px; height: 52px; }
  .to-top { bottom: 20px; inset-inline-end: 18px; }
}
