/* =====================================================================
   TAYER AL MUSTAQBAL — Design System
   Petrol Teal / Solar Gold / Cream — Cormorant Garamond + Montserrat + Tajawal
   ===================================================================== */

:root {
  /* ---- Brand colour palette (from Brand Guidelines v1.0) ---- */
  --teal-950: #08222b;
  --teal-900: #0d3543; /* Petrol Teal — primary */
  --teal-800: #124453;
  --teal-600: #586a6e;
  --gold-600: #d98e2a; /* darkened gold, small text on light */
  --gold-500: #f5a934; /* Solar Gold — accent */
  --gold-300: #fbd08a;
  --cream-50: #f7f4ec;
  --cream-100: #efeadd;
  --cream-200: #efe6c8; /* Cream — light text on teal, warm paper */
  --white: #ffffff;

  /* ---- Semantic tokens ---- */
  --bg-page: var(--cream-50);
  --bg-surface: var(--white);
  --bg-surface-muted: var(--cream-100);
  --bg-dark: var(--teal-900);
  --bg-dark-deep: var(--teal-950);
  --text-primary: var(--teal-950);
  --text-muted: var(--teal-600);
  --text-on-dark: var(--cream-200);
  --text-on-dark-muted: #a9bdc2;
  --accent: var(--gold-500);
  --accent-strong: var(--gold-600);
  --border-subtle: rgba(13, 53, 67, 0.12);
  --border-on-dark: rgba(239, 230, 200, 0.16);
  --focus-ring: #2f8fd6;

  /* ---- Typography ---- */
  --font-display: 'Cormorant Garamond', 'Noto Serif', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-arabic: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;

  /* ---- Spacing scale (8px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ---- Layout ---- */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(8, 34, 43, 0.08);
  --shadow-md: 0 12px 32px rgba(8, 34, 43, 0.14);
  --shadow-lg: 0 24px 60px rgba(8, 34, 43, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 320ms;
  --dur-slow: 600ms;
}

/* Arabic / RTL swaps the type system wholesale — Cormorant has no Arabic glyphs */
:root[dir='rtl'] {
  --font-display: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

/* Brand guidelines define three fixed colourways (gold-on-teal, dark-on-light,
   white-on-dark) rather than an adaptive theme — the page intentionally does
   not follow OS/browser prefers-color-scheme, so brand contrast stays exact. */

/* =====================================================================
   Reset & base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
p { margin: 0; }
svg { display: block; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -60px;
  background: var(--gold-500);
  color: var(--teal-950);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* =====================================================================
   Layout helpers
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 860px) { .container { padding-inline: var(--space-7); } }

.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--muted { background: var(--bg-surface-muted); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2--video { grid-template-columns: minmax(240px, 320px) 1fr; }
}

.training-video {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--teal-950);
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

/* =====================================================================
   Typography components
   ===================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
:root[dir='rtl'] .eyebrow { letter-spacing: 0.02em; }
.section--dark .eyebrow { color: var(--gold-500); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.2vw + 1.2rem, 4.6rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.6vw + 1.4rem, 3.1rem);
  line-height: 1.1;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 0.8vw + 1.2rem, 1.9rem);
}
.lead {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 60ch;
}
.section--dark .lead { color: var(--text-on-dark-muted); }
.kicker-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 1vw + 1.1rem, 1.8rem);
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  min-height: 44px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold-500); color: var(--teal-950); }
.btn-primary:hover { background: var(--gold-600); box-shadow: var(--shadow-md); }
.btn-outline-dark { border-color: var(--teal-900); color: var(--teal-900); background: transparent; }
.btn-outline-dark:hover { background: var(--teal-900); color: var(--cream-200); }
.btn-outline-light { border-color: rgba(239, 230, 200, 0.55); color: var(--cream-200); background: transparent; }
.btn-outline-light:hover { background: rgba(239, 230, 200, 0.12); border-color: var(--cream-200); }
.btn-ghost { color: var(--teal-900); padding-inline: var(--space-2); }
.section--dark .btn-ghost { color: var(--cream-200); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; min-height: 38px; }
.btn-icon { width: 1em; height: 1em; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn-icon { transform: translateX(3px); }
:root[dir='rtl'] .btn:hover .btn-icon { transform: translateX(-3px) scaleX(-1); }
:root[dir='rtl'] .btn-icon { transform: scaleX(-1); }

/* =====================================================================
   Site header / nav
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  padding-block: var(--space-4);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: rgba(8, 34, 43, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(239, 230, 200, 0.14);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  box-shadow: var(--shadow-md);
}
:root[dir='rtl'] .nav-shell { padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2); }

.brand-mark { display: flex; align-items: center; gap: var(--space-3); color: var(--cream-200); flex-shrink: 0; }
.brand-logo-img { height: 40px; width: auto; display: block; }
.brand-logo-img--footer { height: 96px; }
/* Horizontal lockup is wide (~7:1): step it down where the nav gets tight */
@media (max-width: 1359px) {
  .brand-caption { display: none; }
}
@media (min-width: 980px) and (max-width: 1199px) {
  .brand-logo-img:not(.brand-logo-img--footer) { height: 32px; }
  .nav-shell .nav-links a { padding-inline: 0.6rem; }
}
@media (min-width: 980px) and (max-width: 1099px) {
  .brand-logo-img:not(.brand-logo-img--footer) { height: 28px; }
  .nav-shell .nav-links a { padding-inline: 0.5rem; }
}
@media (max-width: 639px) {
  .nav-shell > .brand-mark { flex-shrink: 1; min-width: 0; }
  .brand-logo-img:not(.brand-logo-img--footer) { height: auto; width: 100%; max-height: 28px; object-fit: contain; object-position: left center; }
  :root[dir='rtl'] .brand-logo-img:not(.brand-logo-img--footer) { object-position: right center; }
}
.brand-caption { font-family: var(--font-body); font-weight: 500; font-size: 0.58rem; letter-spacing: 0.16em; color: var(--gold-500); text-transform: uppercase; white-space: nowrap; }
:root[dir='rtl'] .brand-caption { letter-spacing: 0.02em; }

@media (max-width: 639px) {
  .brand-caption { display: none; }
  .nav-actions > a.btn { display: none; }
}

.nav-links { display: none; align-items: center; gap: var(--space-1); }
.nav-links a {
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current='page'] { background: rgba(239, 230, 200, 0.1); color: var(--cream-200); }
@media (min-width: 980px) { .nav-links { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 230, 200, 0.08);
  border: 1px solid rgba(239, 230, 200, 0.2);
  color: var(--cream-200);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 38px;
}
.lang-toggle span { padding: 0.3rem 0.55rem; border-radius: var(--radius-pill); transition: background var(--dur-fast) var(--ease-out); }
.lang-toggle[data-lang='en'] span[data-val='en'],
.lang-toggle[data-lang='ar'] span[data-val='ar'] { background: var(--gold-500); color: var(--teal-950); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(239, 230, 200, 0.1);
  border: 1px solid rgba(239, 230, 200, 0.2);
  color: var(--cream-200);
}
@media (min-width: 980px) { .nav-toggle { display: none; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 600;
  background: var(--teal-950);
  color: var(--cream-200);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease-out);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-close { width: 44px; height: 44px; border-radius: 50%; background: rgba(239,230,200,0.1); border: 1px solid rgba(239,230,200,0.2); color: var(--cream-200); display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav a { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; padding-block: var(--space-3); border-bottom: 1px solid rgba(239,230,200,0.12); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream-200);
  overflow: hidden;
  margin-top: calc(-1 * (var(--space-4) + 62px));
  padding-top: calc(var(--space-4) + 62px + var(--space-8));
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--teal-950); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,34,43,0.55) 0%, rgba(8,34,43,0.35) 35%, rgba(8,34,43,0.88) 92%), linear-gradient(90deg, rgba(8,34,43,0.75) 0%, rgba(8,34,43,0.15) 55%);
}
.hero-content { position: relative; z-index: 1; padding-block: var(--space-8); width: 100%; }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); margin-top: var(--space-7); max-width: 100%; }
.hero-stat { display: flex; flex-direction: column; flex: 0 0 auto; }
.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1vw + 0.95rem, 2.4rem);
  color: var(--gold-500);
  line-height: 1.1;
  white-space: nowrap;
  display: flex;
  align-items: flex-end;
  min-height: 1.3em;
}
.hero-stat .lbl { font-size: 0.8rem; color: var(--text-on-dark-muted); margin-top: var(--space-2); white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.scroll-cue { position: absolute; inset-inline-end: var(--space-6); bottom: var(--space-6); z-index: 1; display: none; align-items: center; gap: var(--space-2); color: var(--text-on-dark-muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
@media (min-width: 860px) { .scroll-cue { display: flex; } }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--gold-500), transparent); }

/* =====================================================================
   Cards
   ===================================================================== */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-6);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-card { display: flex; flex-direction: column; gap: var(--space-4); }
.value-card .icon-badge { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--cream-200); color: var(--teal-900); display: inline-flex; align-items: center; justify-content: center; }
.value-card .icon-badge svg { width: 26px; height: 26px; }
.partner-logo-badge { display: flex; align-items: center; justify-content: center; height: 64px; width: 100%; margin-top: var(--space-5); }
.partner-logo-badge img { width: 170px; height: auto; max-height: 100%; display: block; object-fit: contain; }
.partner-logo-badge--stacked img { width: 130px; }
.stock-photo-plain { width: 100%; height: auto; display: block; }

.product-photo { aspect-ratio: 4/3; background: var(--teal-950); display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-5); }
.product-photo img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-5); }

.step-card { position: relative; padding-top: var(--space-7); }
.step-card .step-num { position: absolute; top: var(--space-5); inset-inline-start: var(--space-6); font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--gold-300); }

.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-card .thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--teal-800), var(--teal-950)); display: flex; align-items: center; justify-content: center; color: var(--gold-500); position: relative; overflow: hidden; }
.product-card .thumb svg { width: 64px; height: 64px; }
.product-card .thumb--photo { background: linear-gradient(135deg, var(--teal-800), var(--teal-950)); }
.product-card .thumb--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform var(--dur-slow) var(--ease-out); }
.product-card:hover .thumb--photo img { transform: scale(1.05); }
.product-card .thumb--contain img { object-fit: contain; padding: var(--space-5); }
.product-card .body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.product-card .body h3 { font-size: 1.3rem; }
.product-card .tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--cream-100);
  color: var(--teal-800);
}
.section--dark .tag { background: rgba(239,230,200,0.1); color: var(--cream-200); }

.gallery-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,34,43,0.88) 0%, rgba(8,34,43,0.05) 55%); display: flex; align-items: flex-end; padding: var(--space-5); }
.gallery-card .overlay .cap { color: var(--cream-200); }
.gallery-card .overlay .cap .loc { font-weight: 700; font-size: 1rem; }
.gallery-card .overlay .cap .meta { font-size: 0.78rem; color: var(--text-on-dark-muted); margin-top: 2px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: start; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.spec-table th { color: var(--text-muted); font-weight: 600; width: 40%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.feature-list { display: flex; flex-direction: column; gap: var(--space-2); }
.feature-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 0.95rem; }
.feature-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--gold-600); }

/* =====================================================================
   Testimonial / quote / stat strip
   ===================================================================== */
.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); text-align: center; }
@media (min-width: 760px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 2vw + 1.4rem, 3.2rem); color: var(--gold-500); }
.stat-strip .lbl { font-size: 0.85rem; color: var(--text-on-dark-muted); margin-top: var(--space-1); }

.quote-block { border-inline-start: 3px solid var(--gold-500); padding-inline-start: var(--space-5); }
:root[dir='rtl'] .quote-block { border-inline-start: none; border-inline-end: 3px solid var(--gold-500); padding-inline-start: 0; padding-inline-end: var(--space-5); }

/* =====================================================================
   Forms
   ===================================================================== */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.78rem; color: var(--text-muted); }
.field input, .field textarea, .field select {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-500); }
.field-error { color: #b3261e; font-size: 0.8rem; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field.has-error .field-error { display: block; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--teal-950); color: var(--text-on-dark-muted); padding-block: var(--space-9) var(--space-6); }
.footer-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.footer-grid h4 { color: var(--cream-200); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-grid li { margin-bottom: var(--space-3); }
.footer-grid a:hover { color: var(--gold-500); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border-on-dark); font-size: 0.8rem; }
.social-row { display: flex; gap: var(--space-3); }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-on-dark); display: inline-flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--gold-500); color: var(--teal-950); border-color: var(--gold-500); }
.social-row svg { width: 17px; height: 17px; }

/* =====================================================================
   Utilities
   ===================================================================== */
.mt-1{margin-top:var(--space-1)} .mt-2{margin-top:var(--space-2)} .mt-3{margin-top:var(--space-3)}
.mt-4{margin-top:var(--space-4)} .mt-5{margin-top:var(--space-5)} .mt-6{margin-top:var(--space-6)}
.mt-7{margin-top:var(--space-7)} .mt-8{margin-top:var(--space-8)}
.text-center{text-align:center}
.max-w-prose{max-width:65ch}
.gap-2{gap:var(--space-2)} .gap-3{gap:var(--space-3)} .gap-4{gap:var(--space-4)}

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

.badge-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(245, 169, 52, 0.12);
  color: var(--gold-600);
  border: 1px solid rgba(245, 169, 52, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}
.section--dark .badge-pill { background: rgba(245, 169, 52, 0.14); color: var(--gold-500); }

.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-strong); }

.page-hero {
  background: var(--teal-950);
  color: var(--cream-200);
  padding-block: var(--space-9) var(--space-7);
  margin-top: calc(-1 * (var(--space-4) + 62px));
  padding-top: calc(var(--space-4) + 62px + var(--space-8));
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset-inline-end: -10%;
  top: -20%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(245,169,52,0.18), transparent 70%);
  pointer-events: none;
}

.filter-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-chip {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-primary);
}
.filter-chip[aria-pressed='true'] { background: var(--teal-900); border-color: var(--teal-900); color: var(--cream-200); }

.back-to-top {
  position: fixed;
  inset-inline-end: var(--space-5);
  bottom: var(--space-5);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--cream-200);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  z-index: 400;
  border: none;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }
:root[dir='rtl'] .back-to-top svg { transform: rotate(90deg); }
