/*!
 * Black Falcon Contracting Theme
 * Main stylesheet
 * Uses CSS logical properties for automatic RTL/LTR support
 */

/* ===== Design Tokens ===== */
:root {
  --navy-900: #050d18;
  --navy-800: #0a1929;
  --navy-700: #0f2438;
  --navy-600: #173651;
  --teal-500: #2dd4dd;
  --teal-400: #5ee5ec;
  --teal-300: #8cf0f5;
  --gold-500: #c9a961;
  --gold-400: #d9bd80;
  --white: #ffffff;
  --gray-100: #f4f6f9;
  --gray-200: #e4e9ef;
  --gray-300: #c8d2dd;
  --gray-500: #6b7a8c;
  --gray-700: #3a4658;
  --gray-900: #1a2230;

  --font-display: 'Cormorant Garamond', 'Tajawal', serif;
  --font-arabic-display: 'Tajawal', 'Cairo', sans-serif;
  --font-body: 'Cairo', 'Tajawal', system-ui, sans-serif;

  --max-w: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-sm: 0 4px 12px rgba(5, 13, 24, 0.08);
  --shadow-md: 0 16px 40px rgba(5, 13, 24, 0.12);
  --shadow-lg: 0 32px 80px rgba(5, 13, 24, 0.25);
  --shadow-glow: 0 0 60px rgba(45, 212, 221, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);

  /* ─── Semantic theme tokens (DARK mode default) ──────────── */
  --t-bg-page:         var(--white);
  --t-bg-section-dark: var(--navy-900);
  --t-bg-section-soft: var(--gray-100);
  --t-text-on-dark:    var(--white);
  --t-text-on-dark-muted: rgba(255, 255, 255, 0.78);
  --t-text-on-dark-faint: rgba(255, 255, 255, 0.5);
  --t-glass-on-dark:   rgba(255, 255, 255, 0.04);
  --t-glass-on-dark-border: rgba(255, 255, 255, 0.08);
  --t-header-scrolled: rgba(5, 13, 24, 0.72);
  --t-header-border:   rgba(255, 255, 255, 0.08);
  --t-divider-on-dark: rgba(255, 255, 255, 0.08);
  --t-aurora-opacity:  0.85;
  --t-grid-opacity:    0.04;
  --t-input-bg:        rgba(255, 255, 255, 0.04);
  --t-input-border:    rgba(255, 255, 255, 0.12);
  --t-input-text:      var(--white);
  --t-input-placeholder: rgba(255, 255, 255, 0.4);
}

/* ─── LIGHT MODE overrides ─────────────────────────────────── */
[data-theme="light"] {
  --t-bg-page:         #fbfcfd;
  --t-bg-section-dark: #eef3f9;
  --t-bg-section-soft: var(--gray-100);
  --t-text-on-dark:    var(--navy-900);
  --t-text-on-dark-muted: rgba(10, 25, 41, 0.78);
  --t-text-on-dark-faint: rgba(10, 25, 41, 0.5);
  --t-glass-on-dark:   rgba(255, 255, 255, 0.55);
  --t-glass-on-dark-border: rgba(10, 25, 41, 0.08);
  --t-header-scrolled: rgba(255, 255, 255, 0.85);
  --t-header-border:   rgba(10, 25, 41, 0.08);
  --t-divider-on-dark: rgba(10, 25, 41, 0.06);
  --t-aurora-opacity:  0.55;
  --t-grid-opacity:    0.025;
  --t-input-bg:        rgba(255, 255, 255, 0.6);
  --t-input-border:    rgba(10, 25, 41, 0.12);
  --t-input-text:      var(--navy-900);
  --t-input-placeholder: rgba(10, 25, 41, 0.4);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--t-bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
img { max-width: 100%; display: block; height: auto; }
button { font: inherit; border: 0; cursor: pointer; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--teal-500); color: var(--navy-900); }

/* ===== Container ===== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--teal-500);
  color: var(--navy-900);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
}
.skip-link:focus { inset-inline-start: 1rem; top: 1rem; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.4s var(--ease-out);
  background: linear-gradient(180deg, rgba(5,13,24,0.7), rgba(5,13,24,0));
}
.site-header.is-scrolled {
  background: rgba(5, 13, 24, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(45, 212, 221, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
/* Responsive uploaded logo image */
.brand img,
.brand .custom-logo {
  height: 38px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
/* Brand text (company name beside logo) */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-en { display: none; }
.brand-ar {
  font-family: var(--font-arabic-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--t-text-on-dark);
  letter-spacing: 0;
}
.brand-en {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--teal-400);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 2.25rem; flex-wrap: nowrap; }
.nav-list {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
}
.brand { flex-shrink: 0; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset-inline-start: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--teal-500);
  transition: width 0.3s var(--ease-out);
}
[dir="rtl"] .nav-link::after { transform: translateX(50%); }
.nav-link:hover { color: var(--teal-300); }
.nav-link:hover::after { width: 1.5rem; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--teal-500);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.cta-btn:hover {
  background: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(45, 212, 221, 0.4);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--white);
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav-list { display: none; }
  .nav > .cta-btn { display: none; }
  .nav.is-open .nav-list {
    display: flex;
    position: fixed;
    inset: 70px 0 0 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-900);
    padding: 2rem var(--gutter);
    overflow-y: auto;
  }
  .nav.is-open .nav-link {
    padding: 1.1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.is-open > .cta-btn {
    display: inline-flex;
    margin: 1.5rem var(--gutter);
    align-self: stretch;
    justify-content: center;
  }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand-mark { width: 34px; height: 34px; }
  .brand img,
  .brand .custom-logo { height: 32px; max-width: 130px; }
  .brand-ar { font-size: 0.95rem; }
  .brand-en { font-size: 0.62rem; letter-spacing: 0.15em; }
}
@media (max-width: 480px) {
  .brand-en { display: none; }
  .brand img,
  .brand .custom-logo { height: 28px; max-width: 110px; }
  .brand-mark { width: 30px; height: 30px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 110px;
  padding-bottom: 3rem;
  background: var(--t-bg-section-dark);
  color: var(--t-text-on-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(45, 212, 221, 0.18), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(45, 212, 221, 0.10), transparent 55%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 221, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 221, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 1rem; }
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding: 0.5rem 1.1rem;
  background: rgba(45, 212, 221, 0.12);
  border: 1px solid rgba(45, 212, 221, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-300);
  letter-spacing: 0.03em;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-family: var(--font-arabic-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero-title .accent {
  display: block;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0.3rem;
}
.hero-title-en {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  font-style: italic;
  color: var(--teal-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0.9;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}
.hero-slogan {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(45, 212, 221, 0.2);
  border-inline-start: 3px solid var(--teal-500);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
.hero-slogan svg { color: var(--teal-500); flex-shrink: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn svg { transition: transform 0.3s; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn:hover svg { transform: translateX(-4px) scaleX(-1); }
[dir="ltr"] .btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--teal-500);
  color: var(--navy-900);
  box-shadow: 0 12px 30px rgba(45, 212, 221, 0.3);
}
.btn--primary:hover {
  background: var(--teal-400);
  box-shadow: 0 16px 40px rgba(45, 212, 221, 0.45);
  transform: translateY(-3px);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Hero Visual - elegant single image with floating badges */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 600px;
  margin-inline-start: auto;
  width: 100%;
}
.hero-visual .stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-visual .card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-visual .card img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .card--main {
  inset: 0;
  z-index: 2;
  animation: floatA 8s ease-in-out infinite;
}
.hero-visual .card--side {
  width: 42%;
  aspect-ratio: 1;
  inset-inline-end: -8%;
  bottom: 8%;
  z-index: 4;
  animation: floatB 7s ease-in-out infinite;
}
.hero-visual .card--accent {
  width: 30%;
  aspect-ratio: 1;
  inset-inline-start: -6%;
  top: 6%;
  z-index: 5;
  animation: floatA 9s ease-in-out infinite reverse;
  border-radius: 50%;
  border: 4px solid var(--teal-500);
}
.hero-visual .card--accent img { border-radius: 50%; }
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.hero-visual .badge {
  position: absolute;
  background: var(--white);
  color: var(--navy-900);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-visual .badge-iso {
  inset-inline-start: -1.5rem;
  top: 35%;
  background: var(--white);
  z-index: 6;
}
.hero-visual .badge-cr {
  inset-inline-end: -1rem;
  bottom: 2%;
  background: var(--navy-800);
  color: var(--white);
  border: 1px solid rgba(45, 212, 221, 0.3);
  z-index: 6;
}
.hero-visual .badge .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--teal-500);
  color: var(--navy-900);
  display: grid; place-items: center;
}
.hero-visual .badge .num { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.hero-visual .badge .lbl { font-size: 0.72rem; font-weight: 500; opacity: 0.7; }

@media (max-width: 960px) {
  .hero-visual { height: 360px; max-width: 480px; margin: 0 auto; }
  .hero-visual .badge { font-size: 0.78rem; padding: 0.6rem 0.9rem; }
}
@media (max-width: 480px) {
  .hero-visual .badge-iso { inset-inline-start: 0; }
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  inset-inline: 0;
  bottom: 1.5rem;
  z-index: 5;
  display: flex;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@media (max-width: 960px) {
  .hero-scroll { display: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}
.hero-scroll-bar {
  width: 1px; height: 30px; background: currentColor; margin: 0 auto 0.5rem;
}

/* ===== Section Base ===== */
section { padding-block: var(--section-y); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-eyebrow {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(45, 212, 221, 0.1);
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--font-arabic-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-900);
  margin-bottom: 1rem;
}
.section-title .accent {
  color: var(--teal-500);
}
.section-title-en {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gray-500);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.section-lede {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-top: 1rem;
}

/* ===== About ===== */
.about {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.about-visual {
  position: relative;
  padding-bottom: 2.5rem;
  padding-inline-start: 1rem;
}
/* Teal accent frame behind the image */
.about-visual::before {
  content: '';
  position: absolute;
  inset-block: 1.5rem -0.5rem;
  inset-inline-start: -0.5rem;
  width: 60%;
  border: 2px solid var(--teal-500);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.about-image {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/11;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.12);
  will-change: transform;
}
.about-visual.is-visible .about-image img,
.about-image.is-visible img { transform: scale(1); }
/* Floating experience badge */
.about-stat-card {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  z-index: 2;
  background: var(--navy-900);
  color: var(--white);
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-stat-card .num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--teal-400);
  line-height: 1;
}
.about-stat-card .lbl {
  font-size: 0.82rem;
  margin-top: 0.35rem;
  opacity: 0.85;
  white-space: nowrap;
}
.about-content { align-self: center; }
.about-content .section-eyebrow,
.about-content .section-title {
  text-align: start;
}
.about-content .section-head { text-align: start; margin: 0 0 1.5rem; }
.about-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: 1.1rem;
}
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 520px) { .about-features { grid-template-columns: 1fr; } }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
.about-feature .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: var(--navy-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.about-feature strong {
  display: block;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.15rem;
}
.about-feature span {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ===== Pillars (Vision / Mission / Why) ===== */
.pillars {
  background: var(--t-bg-section-dark);
  color: var(--t-text-on-dark);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(45, 212, 221, 0.08), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(201, 169, 97, 0.06), transparent 40%);
}
.pillars .section-title { color: var(--white); }
.pillars .section-title-en { color: var(--teal-400); opacity: 0.8; }
.pillars .section-eyebrow { background: rgba(45, 212, 221, 0.12); color: var(--teal-300); }
.pillars-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar {
  position: relative;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease-out);
  backdrop-filter: blur(10px);
}
.pillar:hover {
  background: rgba(45, 212, 221, 0.06);
  border-color: rgba(45, 212, 221, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: var(--navy-900);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  transition: transform 0.4s var(--ease-out);
}
.pillar:hover .pillar-icon {
  transform: rotate(-6deg) scale(1.05);
}
.pillar-icon svg { width: 32px; height: 32px; }
.pillar-title {
  font-family: var(--font-arabic-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.pillar-title-en {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--teal-400);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.pillar-body {
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}
.pillar ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pillar ul li {
  position: relative;
  padding-inline-start: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
.pillar ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.7rem;
  width: 10px;
  height: 2px;
  background: var(--teal-500);
}

/* ===== Services ===== */
.services {
  background: var(--gray-100);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
  transition: width 0.4s var(--ease-out);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service:hover::before { width: 100%; }
.service-num {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gray-300);
  font-style: italic;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--teal-500);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  transition: all 0.4s var(--ease-out);
}
.service:hover .service-icon {
  background: var(--teal-500);
  color: var(--navy-900);
  transform: scale(1.1);
}
.service-title {
  font-family: var(--font-arabic-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ===== Projects ===== */
.projects { background: var(--white); }
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.65rem 1.4rem;
  background: transparent;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  transition: all 0.3s;
}
.filter-btn:hover {
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.filter-btn.is-active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

.project {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-200);
}
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.project::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 13, 24, 0.85) 100%);
  transition: opacity 0.4s;
}
.project:hover img { transform: scale(1.08); }
.project-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.75rem;
  z-index: 2;
  color: var(--white);
  transform: translateY(0);
  transition: transform 0.5s var(--ease-out);
}
.project-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(45, 212, 221, 0.95);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.project-title {
  font-family: var(--font-arabic-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}
.project-meta svg { width: 14px; height: 14px; }
.project[hidden] { display: none; }

/* ===== Stats ===== */
.stats {
  background: var(--t-bg-section-dark);
  color: var(--t-text-on-dark);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0%, rgba(45, 212, 221, 0.06) 100%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  color: var(--teal-500);
  line-height: 1;
}
.stat-num .plus { color: var(--teal-400); }
.stat-lbl {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Certifications ===== */
.certs { background: var(--gray-100); }
.cert-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .cert-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cert-list { grid-template-columns: 1fr; } }
.cert {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.cert:hover {
  border-color: var(--teal-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.cert-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--teal-500);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
}
.cert-info strong {
  display: block;
  font-size: 1rem;
  color: var(--navy-900);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.cert-info span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== Contact / CTA ===== */
.contact {
  background: var(--t-bg-section-dark);
  color: var(--t-text-on-dark);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(45, 212, 221, 0.15), transparent 50%),
    radial-gradient(circle at 10% 100%, rgba(45, 212, 221, 0.08), transparent 50%);
}
.contact .section-title { color: var(--white); }
.contact .section-title-en { color: var(--teal-400); opacity: 0.85; }
.contact .section-eyebrow { background: rgba(45,212,221,0.12); color: var(--teal-300); }
.contact .section-lede { color: rgba(255,255,255,0.78); }

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.contact-item:hover {
  background: rgba(45, 212, 221, 0.08);
  border-color: rgba(45, 212, 221, 0.3);
  transform: translateX(0);
}
[dir="rtl"] .contact-item:hover { transform: translateX(-4px); }
[dir="ltr"] .contact-item:hover { transform: translateX(4px); }
.contact-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(45, 212, 221, 0.15);
  color: var(--teal-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--teal-300);
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-item span {
  font-size: 1.02rem;
  color: var(--white);
  word-break: break-word;
}

/* Form */
.contact-form {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--white);
  font: inherit;
  font-size: 0.98rem;
  transition: all 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal-500);
  background: rgba(45, 212, 221, 0.06);
  box-shadow: 0 0 0 3px rgba(45, 212, 221, 0.15);
}
.field select option { background: var(--navy-800); color: var(--white); }
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--teal-500);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
  border: 2px solid var(--teal-500);
}
.form-submit:hover {
  background: var(--teal-400);
  border-color: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(45, 212, 221, 0.4);
}
.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-success {
  display: block;
  background: rgba(45, 212, 221, 0.15);
  color: var(--teal-300);
  border: 1px solid rgba(45, 212, 221, 0.3);
}
.form-status.is-error {
  display: block;
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--t-bg-section-dark);
  color: var(--t-text-on-dark-muted);
  padding-top: 4rem;
  border-top: 1px solid var(--t-divider-on-dark);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.footer-col ul li a {
  transition: color 0.25s;
}
.footer-col ul li a:hover { color: var(--teal-400); }
.footer-about p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.social-links { display: flex; gap: 0.6rem; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
  transition: all 0.3s;
}
.social-links a:hover {
  background: var(--teal-500);
  color: var(--navy-900);
  transform: translateY(-3px);
}
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Reveal animations (with JS fallback) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.no-js .reveal { opacity: 1; transform: none; }

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

/* WhatsApp floating */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
/* ===== WordPress Specific ===== */

/* Admin bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}
.lang-switch:hover {
  background: rgba(45, 212, 221, 0.15);
  border-color: rgba(45, 212, 221, 0.4);
  color: var(--teal-300);
}
.lang-switch svg { flex-shrink: 0; }
.bf-ltr .lang-switch span { font-family: 'Tajawal', 'Cairo', sans-serif; }
.bf-rtl .lang-switch span { font-family: 'Inter', sans-serif; letter-spacing: 0.02em; }

/* Mobile: lang switcher inside open menu */
@media (max-width: 960px) {
  .nav .lang-switch--header { display: none; }
  .nav.is-open .lang-switch--menu {
    display: inline-flex;
    margin: 0 var(--gutter) 1rem;
    align-self: flex-start;
  }
}
@media (min-width: 961px) {
  .lang-switch--menu { display: none; }
}

/* LTR adjustments — when site is in English */
.bf-ltr {
  font-family: 'Inter', 'Cairo', system-ui, sans-serif;
}
.bf-ltr body,
.bf-ltr .hero-title,
.bf-ltr .section-title,
.bf-ltr .pillar-title,
.bf-ltr .service-title,
.bf-ltr .project-title,
.bf-ltr .brand-ar {
  font-family: 'Inter', 'Cairo', system-ui, sans-serif;
}
.bf-ltr .hero-title,
.bf-ltr .section-title {
  letter-spacing: -0.02em;
  font-weight: 800;
}
.bf-ltr .brand-en {
  /* Show the Arabic name as the secondary line when site is English */
  font-family: 'Tajawal', sans-serif;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}
.bf-ltr .hero-title-en,
.bf-ltr .section-title-en {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

/* WP block content */
.entry-content > * {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.entry-content > .alignwide { max-width: 1080px; }
.entry-content > .alignfull { max-width: none; margin-inline: calc(50% - 50vw); }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: var(--font-arabic-display);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--navy-900);
}
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content p, .entry-content li { line-height: 1.85; }
.entry-content a { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--teal-500); text-underline-offset: 4px; }
.entry-content a:hover { color: var(--teal-500); }
.entry-content blockquote {
  border-inline-start: 4px solid var(--teal-500);
  padding: 1rem 1.5rem;
  background: var(--gray-100);
  font-style: italic;
  margin: 1.5rem 0;
}
.entry-content img { border-radius: var(--radius-md); }

/* Single post / page layout */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 8rem 0 3rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-arabic-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero .breadcrumb {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-top: 1rem;
}
.page-hero .breadcrumb a { color: var(--teal-400); }

.single-content {
  padding-block: var(--section-y);
}
.single-content .featured-image {
  max-width: 1080px;
  margin: 0 auto 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Project single layout */
.project-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding: 2rem;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
}
.project-meta-grid > div strong {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.project-meta-grid > div span {
  display: block;
  font-size: 1.05rem;
  color: var(--navy-900);
  font-weight: 700;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}
.project-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Archive grids */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-block: var(--section-y);
}
@media (max-width: 900px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .archive-grid { grid-template-columns: 1fr; } }
.archive-grid .post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease-out);
}
.archive-grid .post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.archive-grid .post-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.archive-grid .post-card-body { padding: 1.25rem; }
.archive-grid .post-card-body h3 {
  font-family: var(--font-arabic-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy-900);
}
.archive-grid .post-card-body .excerpt {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0 4rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  background: var(--white);
  color: var(--navy-900);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s;
  text-decoration: none;
}
.pagination a:hover { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }
.pagination .current { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* Search form */
.search-form {
  display: flex;
  align-items: stretch;
  max-width: 480px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
  background: var(--white);
}
.search-form:focus-within { border-color: var(--teal-500); }
.search-form input[type="search"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 0;
  background: transparent;
  font: inherit;
  outline: none;
}
.search-form button {
  padding: 0.85rem 1.5rem;
  background: var(--navy-900);
  color: var(--white);
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

/* Comments */
.comments-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}
.comments-title {
  font-family: var(--font-arabic-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

/* Widgets in footer */
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-widgets { grid-template-columns: 1fr; } }

/* Block editor adjustments */
.wp-block-button__link {
  background: var(--teal-500);
  color: var(--navy-900);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  display: inline-block;
}
.wp-block-button__link:hover {
  background: var(--teal-400);
  transform: translateY(-2px);
}

/* Print */
@media print {
  .site-header, .site-footer, .wa-float, .hero-actions, .filters,
  .lang-switch { display: none !important; }
  .hero { padding-top: 0; }
  body { color: #000; background: #fff; }
}

/* Accessibility: focus visible */
*:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline-offset: 4px;
}


/* ═══════════════════════════════════════════════════════════
   ▼▼▼ MODERN EFFECTS 2026 — Balanced ▼▼▼
   1. Glassmorphism · 2. Aurora · 3. Cinematic reveals · 4. Magnetic/Tilt
   All respect prefers-reduced-motion and work in both RTL/LTR.
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. GLASSMORPHISM ─────────────────────────────────────── */

/* Sticky header: intensify when scrolled */
.site-header.is-scrolled {
  background: rgba(5, 13, 24, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Hero floating badges: true frosted glass */
.badge.badge-iso,
.badge.badge-cr {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 32px rgba(5, 13, 24, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Pillars cards: deep glass on dark bg */
.pillar {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pillar.pillar-featured {
  background: rgba(45, 212, 221, 0.08);
  border-color: rgba(45, 212, 221, 0.25);
  box-shadow:
    0 16px 48px rgba(45, 212, 221, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Project overlay: frosted gradient bottom */
.project .overlay,
.project-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 13, 24, 0.92) 0%,
    rgba(5, 13, 24, 0.7) 40%,
    transparent 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Contact form: subtle glass */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s var(--ease-out);
}
.contact-item:hover {
  background: rgba(45, 212, 221, 0.08);
  border-color: rgba(45, 212, 221, 0.25);
  transform: translateY(-3px);
}

/* ─── 2. AURORA / MESH GRADIENTS ───────────────────────────── */

/* Animated aurora behind hero (slow + low opacity = elegant) */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(at 18% 22%, hsla(186, 80%, 50%, 0.35), transparent 45%),
    radial-gradient(at 82% 35%, hsla(199, 70%, 35%, 0.30), transparent 50%),
    radial-gradient(at 50% 85%, hsla(45, 60%, 50%, 0.18), transparent 55%),
    radial-gradient(at 30% 70%, hsla(195, 80%, 25%, 0.40), transparent 50%);
  filter: blur(40px);
  opacity: 0.85;
  z-index: -1;
  animation: aurora-drift 24s ease-in-out infinite;
}
@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate(3%, -2%) rotate(2deg) scale(1.05); }
  66%      { transform: translate(-2%, 3%) rotate(-1deg) scale(0.98); }
}

/* Subtle aurora on stats section */
.stats {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 25% 50%, hsla(186, 80%, 50%, 0.12), transparent 40%),
    radial-gradient(at 75% 50%, hsla(45, 60%, 50%, 0.08), transparent 40%);
  filter: blur(30px);
  z-index: -1;
  animation: aurora-drift 30s ease-in-out infinite;
}

/* Pillars section — deep navy aurora */
.pillars {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pillars::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(at 20% 30%, hsla(186, 70%, 30%, 0.4), transparent 50%),
    radial-gradient(at 80% 70%, hsla(45, 50%, 30%, 0.15), transparent 50%);
  filter: blur(60px);
  z-index: -1;
  animation: aurora-drift 28s ease-in-out infinite reverse;
}

/* Contact section — subtle teal aurora */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 70% 30%, hsla(186, 60%, 35%, 0.25), transparent 50%),
    radial-gradient(at 30% 80%, hsla(199, 50%, 25%, 0.3), transparent 50%);
  filter: blur(50px);
  z-index: -1;
  animation: aurora-drift 32s ease-in-out infinite;
}

/* ─── 3. CINEMATIC SCROLL REVEALS ──────────────────────────── */

/* Upgrade base reveal with smoother cubic-bezier */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Clip-path reveal — for images (slides up into view) */
.reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-clip.is-visible {
  clip-path: inset(0 0 0 0);
}

/* Scale-fade reveal — for hero images */
.reveal-zoom {
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Side reveal — slides from inline-start (RTL-aware) */
.reveal-side {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.bf-rtl .reveal-side,
[dir="rtl"] .reveal-side {
  transform: translateX(40px);
}
.reveal-side.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Image scale-on-scroll for project cards */
.project-image {
  overflow: hidden;
}
.project-image img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.project:hover .project-image img {
  transform: scale(1.08);
}

/* Hero parallax — using CSS variable updated by JS */
.hero-main-img,
.hero-side,
.hero-accent {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* About image: cinematic zoom on scroll */
/* Stagger reveal — children appear one after another */
.stagger > * { transition-delay: 0s; }
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.15s; }
.stagger > *:nth-child(3) { transition-delay: 0.25s; }
.stagger > *:nth-child(4) { transition-delay: 0.35s; }
.stagger > *:nth-child(5) { transition-delay: 0.45s; }
.stagger > *:nth-child(6) { transition-delay: 0.55s; }
.stagger > *:nth-child(7) { transition-delay: 0.65s; }
.stagger > *:nth-child(8) { transition-delay: 0.75s; }

/* ─── 4. MAGNETIC CTAs + 3D CARD TILT ──────────────────────── */

/* Magnetic button — JS updates transform on mousemove */
.btn-magnetic {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.btn-magnetic > * {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 3D tilt card — JS updates rotateX/Y */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.tilt-card .tilt-inner {
  transform-style: preserve-3d;
}
.tilt-card .project-overlay {
  transform: translateZ(20px);
}
.tilt-card .project-cat {
  transform: translateZ(30px);
}

/* Glow on tilt-card hover */
.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(45, 212, 221, 0.18) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.tilt-card:hover::after { opacity: 1; }

/* ─── ACCESSIBILITY: respect reduced motion ────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .stats::before, .pillars::before, .contact::before {
    animation: none !important;
  }
  .reveal, .reveal-clip, .reveal-zoom, .reveal-side {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .btn-magnetic, .tilt-card {
    transform: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ▲▲▲ END MODERN EFFECTS ▲▲▲ */

/* ═══════════════════════════════════════════════════════════
   ▼▼▼ LIGHT MODE OVERRIDES ▼▼▼
   Triggered by [data-theme="light"] on <html>
   ═══════════════════════════════════════════════════════════ */

[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
}
[data-theme="light"] .site-header.is-scrolled {
  background: var(--t-header-scrolled);
  border-bottom: 1px solid var(--t-header-border);
  box-shadow: 0 8px 32px rgba(10, 25, 41, 0.08);
}
[data-theme="light"] .site-header .brand-ar,
[data-theme="light"] .site-header .brand-en,
[data-theme="light"] .nav-link {
  color: var(--navy-900);
}
[data-theme="light"] .nav-link:hover { color: var(--teal-500); }
[data-theme="light"] .menu-toggle { color: var(--navy-900); }
[data-theme="light"] .lang-switch {
  background: rgba(10, 25, 41, 0.05);
  border-color: rgba(10, 25, 41, 0.15);
  color: var(--navy-900);
}
[data-theme="light"] .lang-switch:hover {
  background: rgba(45, 212, 221, 0.15);
  border-color: rgba(45, 212, 221, 0.4);
  color: var(--navy-900);
}

/* Hero in light mode */
[data-theme="light"] .hero-eyebrow {
  background: rgba(45, 212, 221, 0.12);
  border-color: rgba(45, 212, 221, 0.3);
  color: var(--navy-800);
}
[data-theme="light"] .hero-eyebrow .dot { background: var(--teal-500); }
[data-theme="light"] .hero-title { color: var(--navy-900); }
[data-theme="light"] .hero-title .accent,
[data-theme="light"] .hero-title-en { color: var(--teal-500); }
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .section-title-en { color: var(--gray-500); }
[data-theme="light"] .hero-lede,
[data-theme="light"] .hero p { color: var(--gray-700); }
[data-theme="light"] .hero-slogan {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(45, 212, 221, 0.35);
  color: var(--navy-900);
  box-shadow: 0 4px 16px rgba(10, 25, 41, 0.06);
}
[data-theme="light"] .hero-scroll { color: var(--gray-500); }

/* Ghost button in light mode */
[data-theme="light"] .btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--navy-900);
  border-color: rgba(10, 25, 41, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] .btn--ghost:hover {
  background: var(--white);
  border-color: var(--navy-900);
  color: var(--navy-900);
}

/* Skip link in light mode */
[data-theme="light"] .skip-link {
  background: var(--navy-900);
  color: var(--white);
}

/* Pillars in light mode */
[data-theme="light"] .pillars,
[data-theme="light"] .pillars * { color: inherit; }
[data-theme="light"] .pillars .section-title { color: var(--navy-900); }
[data-theme="light"] .pillars .section-eyebrow {
  background: rgba(45, 212, 221, 0.12);
  color: var(--navy-800);
}
[data-theme="light"] .pillar {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 25, 41, 0.06);
  box-shadow:
    0 10px 30px rgba(10, 25, 41, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .pillar.pillar-featured {
  background: rgba(45, 212, 221, 0.06);
  border-color: rgba(45, 212, 221, 0.3);
  box-shadow:
    0 16px 48px rgba(45, 212, 221, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .pillar-title { color: var(--navy-900); }
[data-theme="light"] .pillar-title-en { color: var(--gray-500); }
[data-theme="light"] .pillar-body,
[data-theme="light"] .pillar-list li { color: var(--gray-700); }
[data-theme="light"] .pillar-icon {
  background: var(--teal-500);
  color: var(--navy-900);
}

/* Stats in light mode */
[data-theme="light"] .stat-num {
  background: linear-gradient(135deg, var(--navy-900), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
[data-theme="light"] .stat-lbl,
[data-theme="light"] .stat-label { color: var(--gray-700); }

/* Contact in light mode */
[data-theme="light"] .contact .section-title { color: var(--navy-900); }
[data-theme="light"] .contact .section-lede,
[data-theme="light"] .contact .field label,
[data-theme="light"] .contact .form-label,
[data-theme="light"] .contact label { color: var(--gray-700); }
[data-theme="light"] .contact-form {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(10, 25, 41, 0.08);
}
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea,
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 25, 41, 0.12);
  color: var(--navy-900);
}
[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder,
[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder {
  color: rgba(10, 25, 41, 0.4);
}
[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form select:focus,
[data-theme="light"] .contact-form textarea:focus,
[data-theme="light"] .field input:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .field textarea:focus {
  border-color: var(--teal-500);
  background: var(--white);
  outline: none;
}
[data-theme="light"] .contact-item {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(10, 25, 41, 0.08);
  color: var(--navy-900);
}
[data-theme="light"] .contact-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(45, 212, 221, 0.3);
}
[data-theme="light"] .contact-item strong { color: var(--navy-900); }
[data-theme="light"] .contact-item span { color: var(--gray-700); }
[data-theme="light"] .contact-item .icon {
  background: var(--teal-500);
  color: var(--navy-900);
}
[data-theme="light"] .form-note { color: var(--gray-500); }

/* Footer in light mode */
[data-theme="light"] .site-footer h4,
[data-theme="light"] .site-footer .brand-ar,
[data-theme="light"] .site-footer .brand-en,
[data-theme="light"] .site-footer .footer-col a {
  color: var(--navy-900);
}
[data-theme="light"] .site-footer .footer-col a:hover { color: var(--teal-500); }
[data-theme="light"] .site-footer .footer-bottom {
  border-top-color: rgba(10, 25, 41, 0.08);
  color: var(--gray-500);
}
[data-theme="light"] .social-links a {
  background: rgba(10, 25, 41, 0.05);
  color: var(--navy-800);
}
[data-theme="light"] .social-links a:hover {
  background: var(--teal-500);
  color: var(--navy-900);
}

/* Aurora gradients — softer in light mode */
[data-theme="light"] .hero::before {
  background:
    radial-gradient(at 18% 22%, hsla(186, 70%, 60%, 0.18), transparent 45%),
    radial-gradient(at 82% 35%, hsla(199, 70%, 65%, 0.12), transparent 50%),
    radial-gradient(at 50% 85%, hsla(45, 70%, 60%, 0.10), transparent 55%),
    radial-gradient(at 30% 70%, hsla(195, 70%, 75%, 0.15), transparent 50%);
}
[data-theme="light"] .stats::before {
  background:
    radial-gradient(at 25% 50%, hsla(186, 70%, 60%, 0.08), transparent 40%),
    radial-gradient(at 75% 50%, hsla(45, 70%, 60%, 0.05), transparent 40%);
}
[data-theme="light"] .pillars::before {
  background:
    radial-gradient(at 20% 30%, hsla(186, 60%, 70%, 0.15), transparent 50%),
    radial-gradient(at 80% 70%, hsla(45, 60%, 65%, 0.08), transparent 50%);
}
[data-theme="light"] .contact::before {
  background:
    radial-gradient(at 70% 30%, hsla(186, 60%, 65%, 0.12), transparent 50%),
    radial-gradient(at 30% 80%, hsla(199, 50%, 70%, 0.15), transparent 50%);
}

/* ─── THEME TOGGLE BUTTON ──────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: rgba(45, 212, 221, 0.15);
  border-color: rgba(45, 212, 221, 0.4);
  transform: rotate(12deg);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease-out);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle {
  background: rgba(10, 25, 41, 0.05);
  border-color: rgba(10, 25, 41, 0.12);
  color: var(--navy-900);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(45, 212, 221, 0.15);
  border-color: rgba(45, 212, 221, 0.4);
}
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Smooth transition when switching themes */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out) !important;
}

/* ▲▲▲ END LIGHT MODE OVERRIDES ▲▲▲ */

/* ═══════════════════════════════════════════════════════════
   ▼▼▼ ENGINEERING / ARCHITECTURAL DECORATIONS ▼▼▼
   Subtle geometric elements that reinforce the brand identity:
   - Isometric grid pattern (replaces flat grid in hero)
   - Floating geometric shapes (circles/squares drifting)
   - Hexagonal architectural mesh (pillars background)
   - Blueprint corner brackets (section accents)
   - Compass/cardinal markers (premium detail)
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. ISOMETRIC GRID for Hero (replaces flat grid) ────── */
.hero::after {
  /* Override the flat grid with an isometric one */
  background-image:
    /* Diagonal lines at 30deg (left-to-right) */
    linear-gradient(30deg, transparent 49.5%, rgba(45, 212, 221, 0.06) 49.5%, rgba(45, 212, 221, 0.06) 50.5%, transparent 50.5%),
    /* Diagonal lines at -30deg (right-to-left) */
    linear-gradient(-30deg, transparent 49.5%, rgba(45, 212, 221, 0.06) 49.5%, rgba(45, 212, 221, 0.06) 50.5%, transparent 50.5%),
    /* Vertical lines */
    linear-gradient(90deg, transparent 49.5%, rgba(45, 212, 221, 0.04) 49.5%, rgba(45, 212, 221, 0.04) 50.5%, transparent 50.5%);
  background-size: 70px 40px, 70px 40px, 70px 70px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
[data-theme="light"] .hero::after {
  background-image:
    linear-gradient(30deg, transparent 49.5%, rgba(10, 25, 41, 0.06) 49.5%, rgba(10, 25, 41, 0.06) 50.5%, transparent 50.5%),
    linear-gradient(-30deg, transparent 49.5%, rgba(10, 25, 41, 0.06) 49.5%, rgba(10, 25, 41, 0.06) 50.5%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, rgba(10, 25, 41, 0.04) 49.5%, rgba(10, 25, 41, 0.04) 50.5%, transparent 50.5%);
}

/* ─── 2. FLOATING GEOMETRIC SHAPES (Hero) ────────────────── */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 221, 0.15);
  opacity: 0;
  animation: shapeFadeIn 1.5s var(--ease-out) 0.5s forwards,
             shapeDrift 18s ease-in-out infinite 2s;
}
.hero-shape--1 {
  top: 15%; inset-inline-end: 8%;
  width: 220px; height: 220px;
  animation-delay: 0.4s, 1.4s;
}
.hero-shape--2 {
  bottom: 18%; inset-inline-start: 12%;
  width: 140px; height: 140px;
  border-color: rgba(201, 169, 97, 0.2);
  animation-delay: 0.7s, 2s;
}
.hero-shape--3 {
  top: 50%; inset-inline-end: 35%;
  width: 80px; height: 80px;
  border-radius: 0;
  transform: rotate(45deg);
  animation-delay: 1s, 2.6s;
}
/* Hexagon shape using clip-path */
.hero-shape--hex {
  top: 32%; inset-inline-start: 5%;
  width: 60px; height: 70px;
  background: rgba(45, 212, 221, 0.04);
  border: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation-delay: 1.2s, 3.2s;
}
@keyframes shapeFadeIn {
  to { opacity: 1; }
}
@keyframes shapeDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(20px, -15px) rotate(3deg); }
  50%      { transform: translate(-10px, 20px) rotate(-2deg); }
  75%      { transform: translate(15px, 10px) rotate(1deg); }
}
.hero-shape--3 {
  /* override: rotated square */
  animation: shapeFadeIn 1.5s var(--ease-out) 1s forwards,
             shapeDriftSquare 22s ease-in-out infinite 2.6s;
}
@keyframes shapeDriftSquare {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(60deg) translate(15px, -10px); }
}

[data-theme="light"] .hero-shape { border-color: rgba(10, 25, 41, 0.1); }
[data-theme="light"] .hero-shape--2 { border-color: rgba(201, 169, 97, 0.25); }
[data-theme="light"] .hero-shape--hex { background: rgba(45, 212, 221, 0.06); }

/* Hide on mobile to keep things clean */
@media (max-width: 768px) {
  .hero-shapes { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shape { animation: none; opacity: 1; }
}

/* ─── 3. HEXAGONAL MESH OVERLAY (Pillars) ─────────────────── */
.pillars-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 92'><g fill='none' stroke='%232dd4dd' stroke-width='1' opacity='0.22'><polygon points='40,2 76,23 76,69 40,90 4,69 4,23'/><line x1='40' y1='2' x2='40' y2='46'/><line x1='4' y1='23' x2='40' y2='46'/><line x1='76' y1='23' x2='40' y2='46'/></g></svg>");
  background-size: 110px 127px;
  mask-image: radial-gradient(ellipse at center, black 5%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 5%, transparent 80%);
  opacity: 0.85;
}
[data-theme="light"] .pillars-mesh {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 92'><g fill='none' stroke='%230a1929' stroke-width='1' opacity='0.16'><polygon points='40,2 76,23 76,69 40,90 4,69 4,23'/><line x1='40' y1='2' x2='40' y2='46'/><line x1='4' y1='23' x2='40' y2='46'/><line x1='76' y1='23' x2='40' y2='46'/></g></svg>");
}

/* ─── 4. BLUEPRINT CORNER BRACKETS (Section accents) ──────── */
.bp-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bp-corners::before,
.bp-corners::after,
.bp-corners > span::before,
.bp-corners > span::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(45, 212, 221, 0.35);
  border-style: solid;
  border-width: 0;
}
.bp-corners::before {
  top: 24px;
  inset-inline-start: 24px;
  border-top-width: 1.5px;
  border-inline-start-width: 1.5px;
}
.bp-corners::after {
  top: 24px;
  inset-inline-end: 24px;
  border-top-width: 1.5px;
  border-inline-end-width: 1.5px;
}
.bp-corners > span {
  position: absolute;
  inset: 0;
}
.bp-corners > span::before {
  bottom: 24px;
  inset-inline-start: 24px;
  top: auto;
  border-bottom-width: 1.5px;
  border-inline-start-width: 1.5px;
}
.bp-corners > span::after {
  bottom: 24px;
  inset-inline-end: 24px;
  top: auto;
  border-bottom-width: 1.5px;
  border-inline-end-width: 1.5px;
}
[data-theme="light"] .bp-corners::before,
[data-theme="light"] .bp-corners::after,
[data-theme="light"] .bp-corners > span::before,
[data-theme="light"] .bp-corners > span::after {
  border-color: rgba(10, 25, 41, 0.18);
}

/* ─── 5. COMPASS MARKER (premium decoration) ───────────────── */
.compass-marker {
  position: absolute;
  top: 130px;
  inset-inline-end: 32px;
  width: 56px;
  height: 56px;
  z-index: 2;
  opacity: 0.4;
  color: var(--teal-400);
  pointer-events: none;
}
[data-theme="light"] .compass-marker { color: var(--navy-700); opacity: 0.35; }
.compass-marker svg { width: 100%; height: 100%; }
.compass-marker .compass-rose {
  transform-origin: center;
  animation: compassSpin 60s linear infinite;
}
@keyframes compassSpin {
  to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .compass-marker { display: none; }
}

/* ─── 6. DIMENSION LINE accent (blueprint detail) ─────────── */
.dimension-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}
.dimension-line::before,
.dimension-line::after {
  content: "";
  width: 50px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.dimension-line::before { box-shadow: 0 -3px 0 0 currentColor, 0 3px 0 0 currentColor; transform: translateX(2px); width: 1px; height: 7px; }
.dimension-line::after  { box-shadow: 0 -3px 0 0 currentColor, 0 3px 0 0 currentColor; transform: translateX(-2px); width: 1px; height: 7px; }
.dimension-line span {
  flex: 1;
  height: 1px;
  background: currentColor;
  max-width: 100px;
}
[data-theme="light"] .dimension-line { color: rgba(10, 25, 41, 0.35); }

/* ▲▲▲ END ARCHITECTURAL DECORATIONS ▲▲▲ */

/* ─── Dual Logo (Dark/Light Mode) ──────────────────────────── */
.brand .logo-light { display: none; }
.brand .logo-dark  { display: block; }
[data-theme="light"] .brand .logo-dark  { display: none; }
[data-theme="light"] .brand .logo-light { display: block; }

/* ─── Hide decorative English subtitles under titles ───────── */
.hero-title-en,
.section-title-en,
.pillar-title-en { display: none; }

/* ═══════════════════════════════════════════════════════════
   SERVICE CARDS (clickable) + DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

/* Clickable service card */
.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}
.service-link .service-arrow {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.35s var(--ease-out);
  color: var(--teal-500);
}
[dir="rtl"] .service-link .service-arrow { transform: translateX(-8px) scaleX(-1); }
.service-link:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}
[dir="rtl"] .service-link:hover .service-arrow { transform: translateX(0) scaleX(-1); }
.service-link:hover .service-title { color: var(--teal-500); }

/* ── Service detail page ── */
.service-single { background: var(--t-bg-page); }

.svc-hero {
  position: relative;
  background: var(--t-bg-section-dark);
  color: var(--t-text-on-dark);
  padding: calc(110px + 3rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
}
.svc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(at 20% 20%, hsla(186, 80%, 50%, 0.25), transparent 50%),
    radial-gradient(at 80% 60%, hsla(199, 70%, 35%, 0.3), transparent 55%);
  filter: blur(40px);
  animation: aurora-drift 24s ease-in-out infinite;
}
.svc-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.svc-breadcrumb {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  color: var(--t-text-on-dark-muted);
}
.svc-breadcrumb a { color: var(--teal-400); text-decoration: none; }
.svc-breadcrumb a:hover { text-decoration: underline; }
.svc-hero-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(45, 212, 221, 0.12);
  border: 1px solid rgba(45, 212, 221, 0.3);
  color: var(--teal-400);
  margin-bottom: 1.5rem;
}
.svc-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.svc-hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--t-text-on-dark-muted);
  margin: 0;
}

.svc-body { padding: clamp(3rem, 6vw, 5rem) 0; }
.svc-body-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .svc-body-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.svc-feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}
.svc-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.svc-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--t-text-on-dark);
  margin-bottom: 1.3rem;
}
[data-theme="light"] .svc-content p,
.svc-content p { color: var(--gray-700); }
.svc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.svc-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.svc-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.svc-gallery-item:hover img { transform: scale(1.06); }

/* Sidebar cards */
.svc-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 900px) { .svc-sidebar { position: static; } }
.svc-card {
  background: var(--t-bg-page);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .svc-card { border-color: rgba(10,25,41,0.08); }
.svc-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
  color: var(--navy-900);
}
[data-theme="light"] .svc-card h3 { color: var(--navy-900); }
.svc-highlights ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.svc-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--gray-700);
}
.svc-highlights li svg { color: var(--teal-500); flex-shrink: 0; margin-top: 2px; }
.svc-cta {
  background: var(--navy-900);
  border: none;
  color: var(--white);
}
.svc-cta h3 { color: var(--white); }
.svc-cta p { color: rgba(255,255,255,0.8); font-size: 0.96rem; line-height: 1.6; margin: 0 0 1.5rem; }
.svc-cta .btn { width: 100%; justify-content: center; margin-bottom: 0.75rem; }
.svc-cta .btn:last-child { margin-bottom: 0; }

/* Related services */
.svc-related {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--t-bg-section-soft);
  border-top: 1px solid var(--gray-200);
}
[data-theme="light"] .svc-related { border-color: rgba(10,25,41,0.06); }
.svc-related-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--navy-900);
}
[data-theme="light"] .svc-related-title { color: var(--navy-900); }
.svc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .svc-related-grid { grid-template-columns: 1fr; }
}





/* ===== Accessibility ===== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--teal-500);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: var(--navy-900);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  inset-inline-start: 1rem;
  line-height: normal;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

/* Footer bottom bar */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

/* Lang switcher inside the menu (mobile) */
.lang-switch--menu {
  margin: 1rem var(--gutter);
}

/* Project filters scroll */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 var(--gutter) 0.5rem;
    margin-inline: calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
}
