@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* ═══════════════════════════════════════════════════════════
   BrainBridge Solutions — shared design system
   Aesthetic: intelligence dossier — navy/gold, editorial serif,
   mono data voice, film grain, hairline grids.
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #1E2D4A;
  --navy-deep: #12192E;
  --navy-light: #2A3F62;
  --bg: #F5F3EE;
  --white: #FFFFFF;
  --gold: #C8943A;
  --gold-light: #D9AA5A;
  --charcoal: #12191F;
  --charcoal-mid: #2C3A44;
  --muted: #6B7B8A;
  --border: rgba(30,45,74,0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--navy-deep);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

/* film grain over everything — printed-dossier texture */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 1000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.032;
}

::selection { background: var(--gold); color: var(--navy-deep); }

html { scrollbar-color: rgba(200,148,58,0.45) var(--navy-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: rgba(200,148,58,0.35); border-radius: 5px; border: 2px solid var(--navy-deep); }
::-webkit-scrollbar-thumb:hover { background: rgba(200,148,58,0.6); }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1001;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: 2px;
  transition: top 0.2s;
}

.skip-link:focus { top: 1rem; }

#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 101;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ─── NAV ─── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

nav.site-nav.scrolled {
  background: rgba(18,25,46,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 24px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }

.nav-logo img {
  height: 116px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: transparent;
  color: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  letter-spacing: 0.06em;
  transition: background 0.3s, border-color 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.7) !important;
  color: var(--white) !important;
}

nav.site-nav.scrolled .nav-cta {
  background: var(--gold) !important;
  color: var(--charcoal) !important;
  border-color: var(--gold) !important;
}

nav.site-nav.scrolled .nav-cta:hover {
  background: var(--gold-light) !important;
  border-color: var(--gold-light) !important;
}

.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  transition: all 0.3s;
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 200;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.7);
  line-height: 1;
}

/* ─── LAYOUT PRIMITIVES ─── */
section { position: relative; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

/* ─── PAGE HERO (interior pages) ─── */
.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(200,148,58,0.08), transparent 65%),
    radial-gradient(ellipse 70% 50% at 10% 110%, rgba(42,63,98,0.5), transparent 70%),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    var(--navy-deep);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px, 100% 100%;
  padding: 12rem 0 5rem;
}

.page-hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.page-hero-title em { font-style: italic; color: var(--gold); }

.page-hero-dek {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
}

/* ─── BREADCRUMBS ─── */
.breadcrumbs {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
}

.breadcrumbs a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 0.625rem; color: rgba(200,148,58,0.5); }

/* ─── BUTTONS ─── */
.btn-primary, .btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.875rem 2rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover, .btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline, .btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.875rem 2rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline:hover, .btn-ghost-light:hover {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.875rem 2.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
}

.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover .btn-arrow,
.btn-gold:hover .btn-arrow,
.btn-navy:hover .btn-arrow { transform: translateX(4px); }

/* ─── SIGNAL MARQUEE ─── */
.signal-strip {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1.125rem 0;
  overflow: hidden;
  position: relative;
}

.signal-strip::before, .signal-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.signal-strip::before { left: 0; background: linear-gradient(90deg, var(--navy-deep), transparent); }
.signal-strip::after { right: 0; background: linear-gradient(-90deg, var(--navy-deep), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.signal-strip:hover .marquee-track { animation-play-state: paused; }

.marquee-group { display: flex; align-items: center; flex-shrink: 0; }

.marquee-item {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  white-space: nowrap;
  padding: 0 1.75rem;
}

.marquee-sep { color: rgba(200,148,58,0.5); font-size: 0.5rem; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── CARDS ─── */
.card-hover {
  position: relative;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(18,25,46,0.10);
}

.card-hover:hover::before { transform: scaleX(1); }

/* ─── STATS ─── */
.stat-number {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  font-weight: 400;
}

/* ─── ARTICLE / PROSE (insights + case study) ─── */
.article-shell {
  background: var(--bg);
  padding: 5rem 0 6rem;
}

.article-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  gap: 5rem;
}

.prose { font-size: 1.0625rem; line-height: 1.85; color: var(--charcoal-mid); font-weight: 300; }

.prose h2 {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 2.75rem 0 1rem;
}

.prose h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.prose p { margin-bottom: 1.25rem; }

.prose a { color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(200,148,58,0.5); transition: border-color 0.2s, color 0.2s; }
.prose a:hover { color: var(--gold); border-color: var(--gold); }

.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--navy); font-weight: 500; }

.prose blockquote {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--navy);
  padding-left: 1.75rem;
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
}

.takeaways {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 1.75rem 2rem;
  margin: 0 0 2.5rem;
}

.takeaways-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.takeaways ul { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }

.takeaways li {
  font-size: 0.9375rem;
  color: var(--charcoal-mid);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}

.takeaways li::before { content: '◆'; position: absolute; left: 0; top: 0.2rem; color: var(--gold); font-size: 0.5rem; }

.stat-callout {
  background: var(--navy);
  border-radius: 3px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.stat-callout .figure {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.375rem;
}

.stat-callout .caption {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* article meta / byline */
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 2rem;
}

.article-byline strong { color: var(--gold); font-weight: 500; }

/* FAQ */
.faq-block { margin: 3rem 0 0; }

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.625rem;
}

.faq-a { font-size: 0.9685rem; line-height: 1.75; color: var(--muted); font-weight: 300; }

/* author box */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.75rem 2rem;
  margin: 3.5rem 0 0;
}

.author-box img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--navy);
}

.author-box .author-name { font-weight: 500; font-size: 1rem; color: var(--navy); }

.author-box .author-bio { font-size: 0.875rem; line-height: 1.65; color: var(--muted); font-weight: 300; margin-top: 0.375rem; }

/* article sidebar */
.article-aside { position: relative; }

.aside-sticky { position: sticky; top: 7.5rem; display: flex; flex-direction: column; gap: 2.25rem; }

.aside-block {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  padding: 1.5rem 1.625rem;
}

.aside-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.aside-block ul { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }

.aside-block li a {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--charcoal-mid);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.aside-block li a:hover { color: var(--gold); }

.aside-cta {
  background: var(--navy);
  border: none;
}

.aside-cta p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}

/* insight cards (index + teasers) */
.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.insight-card-body { padding: 1.875rem 2rem 2rem; display: flex; flex-direction: column; flex: 1; }

.insight-kicker {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.875rem;
}

.insight-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.insight-excerpt { font-size: 0.875rem; line-height: 1.65; color: var(--muted); font-weight: 300; flex: 1; }

.insight-meta {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(30,45,74,0.45);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ─── FOOTER ─── */
footer.site-footer {
  background: var(--charcoal);
  padding: 4.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: 'BB';
  position: absolute;
  right: -1rem;
  bottom: -7rem;
  font-family: var(--serif);
  font-size: 22rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: rgba(255,255,255,0.018);
  pointer-events: none;
  user-select: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 110px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 0.875rem;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

.footer-col-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.45;
}

.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.45); }

/* ─── CONTACT FORM ─── */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.form-group label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--charcoal);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--navy); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-eyebrow, .hero-headline, .hero-subhead, .hero-actions, .hero-meta,
  .hero-scroll-indicator { opacity: 1 !important; transform: none !important; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-inner { height: 72px; }
  .nav-logo img { height: 88px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .page-hero { padding: 9rem 0 4rem; }

  .article-grid { grid-template-columns: 1fr; gap: 3rem; }
  .aside-sticky { position: static; }

  .footer-top { grid-template-columns: 1fr; gap: 2.25rem; padding-bottom: 2rem; }
  .footer-brand img { height: 88px; }
}

@media (max-width: 600px) {
  .nav-inner { height: 64px; padding: 0 1.25rem; }
  .nav-logo img { height: 72px; }

  .section-inner { padding: 0 1.25rem; }
  .article-grid { padding: 0 1.25rem; }
  .footer-inner { padding: 0 1.25rem; }

  .page-hero { padding: 7.5rem 0 3.25rem; }

  .marquee-item { padding: 0 1.25rem; }
  .form-row { grid-template-columns: 1fr; }

  .author-box { flex-direction: column; align-items: flex-start; }

  footer.site-footer { padding: 3rem 0 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-brand img { height: 64px; }
  .footer-tagline { font-size: 1.125rem; }
}

@media (max-width: 400px) {
  .nav-logo img { height: 56px; }
  .section-inner { padding: 0 1rem; }
  .article-grid { padding: 0 1rem; }
  .footer-inner { padding: 0 1rem; }
  .mobile-menu a { font-size: 1.5rem; }
}

/* ─── LANGUAGE SWITCHER ─── */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  color: rgba(255,255,255,0.7);
  padding: 0.3rem 0.625rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lang-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  min-width: 130px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  overflow: hidden;
}

.lang-dropdown--open { display: block; }

.lang-option {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--white); }

.lang-option--active {
  color: var(--gold);
  font-weight: 500;
}

/* RTL adjustments */
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .lang-option { text-align: right; }
[dir="rtl"] .nav-links { margin-right: 0; margin-left: auto; }
[dir="rtl"] .footer-bottom { text-align: right; }
[dir="rtl"] .mobile-menu { text-align: right; }

/* Arabic letter-spacing reset — letter-spacing breaks connected Arabic script */
[dir="rtl"] * { letter-spacing: 0 !important; }

/* Double contrast for small gold/muted text on light backgrounds in RTL.
   Scoped to light-bg elements so dark-section gold accents are unaffected. */
[dir="rtl"] .programme-for,
[dir="rtl"] .page-hero-eyebrow,
[dir="rtl"] .pillars-eyebrow,
[dir="rtl"] .cs-eyebrow,
[dir="rtl"] .section-eyebrow {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.375rem !important;
  color: #7A5000 !important;
  text-transform: none !important;
}

[dir="rtl"] .programme-block-label {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 0.9375rem !important;
  color: #4A5A6A !important;
  text-transform: none !important;
}

@media (max-width: 768px) {
  .lang-btn { padding: 0.275rem 0.5rem; }
  .lang-current-label { display: none; }
}
