/*
Theme Name: TranslationTouch
Theme URI: https://translationtouch.com
Author: TranslationTouch
Author URI: https://translationtouch.com
Description: Custom theme for TranslationTouch — Arabic Localization Specialists
Version: 2.0.8
License: Private
Text Domain: translationtouch
*/

/* ============================================================================
   DESIGN SYSTEM 2.0 — editorial Arabic-localization brand
   Palette: warm paper + deep ink + teal, serif display + Inter body
   ========================================================================== */

:root {
  --ink: #0b1113;
  --ink-2: #111b1e;
  --ink-3: #1a292d;
  --paper: #f6f3ec;
  --paper-2: #ece8df;
  --white: #ffffff;
  --teal: #1ec8c9;
  --teal-dark: #087d83;
  --teal-soft: #cceff0;
  --gold: #c5a56a;
  --muted-dark: #9caeb2;
  --muted-light: #5d686a;
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-light: rgba(11, 17, 19, 0.13);
  --shadow: 0 24px 80px rgba(4, 12, 14, 0.14);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --content: 1180px;
  --transition: 0.2s ease;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Legacy aliases so not-yet-ported templates still read coherently */
  --font-display: var(--display);
  --font-body: var(--sans);
  --dark: var(--ink);
  --navy: var(--ink);
  --navy-deep: #070c0e;
  --surface: var(--paper);
  --surface-line: var(--border-light);
  --text: var(--ink);
  --text-mid: var(--muted-light);
  --text-muted: var(--muted-light);
  --text-on-dark: #e8f0f2;
  --teal-bright: var(--teal);
  --teal-deep: var(--teal-dark);
  --teal-glow: rgba(30, 200, 201, 0.2);
}

/* ─── RESET & BASE ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background-color: var(--ink); /* matches dark header; kills top overscroll flash */
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Home opens on a dark hero — keep page chrome ink so no cream strip above the header */
body.home,
body.front-page {
  background-color: var(--ink);
}
body.nav-open, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* ─── ACCESSIBILITY ─────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
a:focus:not(:focus-visible) { outline: none; }

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */
.container {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

/* ─── TYPOGRAPHY HELPERS ────────────────────────────────────────────────────── */
.eyebrow, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before, .section-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-on-dark { color: var(--teal); }

.display {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 7.4vw, 92px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--white);
}
.display em { color: var(--teal); font-style: italic; font-weight: 400; }
.hero .display, .page-hero .display, .hero h1, .page-hero h1 { color: var(--white); }

.section-title {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.section-title em { color: var(--teal-dark); font-style: italic; font-weight: 400; }
.section-title-on-dark, .section-title-on-dark em { color: var(--white); }
.section-title-on-dark em { color: var(--teal); }

.lead { max-width: 700px; margin: 22px 0 0; color: var(--muted-light); font-size: 18px; }
.lead-on-dark { color: #b4c2c5; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.1; color: var(--ink); }
p { line-height: 1.7; }

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.button, .btn-primary, .btn-secondary, .btn-dark, .btn-light {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button:hover, .btn-primary:hover, .btn-dark:hover, .btn-light:hover { transform: translateY(-2px); }
.button-primary, .btn-primary { background: var(--teal); color: var(--ink); }
.button-primary:hover, .btn-primary:hover { background: #5edfe0; color: var(--ink); }
.button-dark, .btn-dark { background: var(--ink); color: var(--white); }
.button-dark:hover, .btn-dark:hover { background: var(--ink-3); color: var(--white); }
.button-light, .btn-light { background: var(--white); color: var(--ink); }
.button-outline { border-color: var(--border-dark); color: var(--white); background: transparent; }
.button-outline:hover { border-color: var(--teal); transform: translateY(-2px); }
.btn-secondary {
  border-color: var(--border-light);
  color: var(--ink);
  background: transparent;
}
.btn-secondary:hover { border-color: var(--teal-dark); color: var(--teal-dark); transform: translateY(-2px); }
.button[disabled] { cursor: default; opacity: 0.7; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 14px;
  transition: gap var(--transition), color var(--transition);
}
.link-arrow:hover { gap: 14px; }

/* ─── HEADER / NAV ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--ink);
  border-bottom: 1px solid var(--border-dark);
}
.site-nav {
  /* Keep for legacy selectors; visual chrome lives on .site-header only */
  background: transparent;
  border: 0;
  position: static;
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand, .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.brand-lockup picture, .brand-lockup-icon { display: block; flex-shrink: 0; line-height: 0; }
.brand-lockup--nav .brand-lockup-icon { width: 48px; height: 48px; }
.brand-lockup-text { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.brand-slogan {
  margin-top: 7px;
  color: var(--muted-dark);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-lockup--footer { align-items: center; }
.brand-lockup--footer .brand-lockup-icon { width: 48px; height: 48px; }

.nav-panel { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  color: #c5d0d2;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a.active, .nav-links a[aria-current="page"] { position: relative; }
.nav-links a.active::after, .nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  background: var(--teal);
}
.nav-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 800;
  transition: background var(--transition);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #5edfe0; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ─── SECTIONS ──────────────────────────────────────────────────────────────── */
.section { padding: 112px 0; }
.section-sm { padding: 76px 0; }
.section-dark, .band-dark { background: var(--ink); color: var(--white); }
.section-ink-2 { background: var(--ink-2); color: var(--white); }
.section-white, .band-white { background: var(--white); }
.band-surface { background: var(--paper); }
.band-teal { background: var(--teal-soft); }
.section-head, .section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 52px;
}
.section-head .lead, .section-header .section-desc { max-width: 520px; }
.section-desc { color: var(--muted-light); font-size: 18px; }

/* ─── HERO (home) ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 58px;
  background:
    radial-gradient(circle at 78% 18%, rgba(30, 200, 201, 0.18), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 70px 70px, 70px 70px, auto;
  color: var(--white);
}
.hero::after {
  content: "لمسة";
  position: absolute;
  right: -20px;
  bottom: -100px;
  color: rgba(30, 200, 201, 0.05);
  font-family: Tahoma, Arial, sans-serif;
  font-size: clamp(160px, 26vw, 360px);
  font-weight: 700;
  line-height: 1;
  direction: rtl;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: 72px;
}
.hero-copy { max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin: 30px 0 0; color: var(--muted-dark); font-size: 13px; }
.hero-paths { display: grid; gap: 12px; }
.path-card {
  position: relative;
  display: block;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.path-card:hover { transform: translateY(-4px); border-color: rgba(30, 200, 201, 0.6); background: rgba(255, 255, 255, 0.075); }
.path-card small { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.path-card h2 { margin: 10px 0 8px; font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1.08; color: var(--white); }
.path-card p { margin: 0; color: var(--muted-dark); font-size: 14px; }
.path-card .arrow { position: absolute; top: 24px; right: 24px; color: var(--teal); font-size: 24px; }

.proof-strip { position: relative; z-index: 2; margin-top: 70px; border-top: 1px solid var(--border-dark); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 28px 24px; border-right: 1px solid var(--border-dark); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: 0; }
.proof-value { display: block; color: var(--white); font-family: var(--display); font-size: 30px; line-height: 1; }
.proof-label { display: block; margin-top: 8px; color: var(--muted-dark); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; }

/* ─── SERVICE GRID (home) ───────────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.service-card {
  grid-column: span 4;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
}
.service-card.featured { grid-column: span 6; background: var(--ink); color: var(--white); border-color: transparent; }
.service-number { color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.15em; }
.featured .service-number { color: var(--teal); }
.service-card h3 { margin: 40px 0 14px; font-family: var(--display); font-size: 32px; font-weight: 400; line-height: 1.05; }
.service-card.featured h3 { color: var(--white); }
.service-card p { margin: 0; color: var(--muted-light); font-size: 15px; }
.featured p { color: var(--muted-dark); }
.service-card a { margin-top: auto; padding-top: 30px; color: var(--teal-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.featured a { color: var(--teal); }

/* ─── OUTCOME / QUOTE PANEL ─────────────────────────────────────────────────── */
.outcome-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 76px; align-items: start; }
.outcome-list { border-top: 1px solid var(--border-light); }
.outcome-item { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--border-light); }
.outcome-item strong { color: var(--teal-dark); font-family: var(--display); font-size: 34px; font-weight: 400; }
.outcome-item h3 { margin: 0 0 6px; font-size: 16px; }
.outcome-item p { margin: 0; color: var(--muted-light); font-size: 14px; }
.quote-panel {
  position: sticky;
  top: 120px;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}
.quote-mark { color: var(--teal); font-family: var(--display); font-size: 74px; line-height: 0.65; }
.quote-panel blockquote { margin: 24px 0 28px; font-family: var(--display); font-size: 32px; line-height: 1.2; color: var(--white); }
.quote-panel cite { color: var(--muted-dark); font-style: normal; font-size: 13px; }

/* ─── CASE GRID ─────────────────────────────────────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-card {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}
.case-card:hover { border-color: rgba(30, 200, 201, 0.55); }
.case-tag { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.case-metric { margin-top: 50px; font-family: var(--display); font-size: 60px; line-height: 1; color: var(--white); }
.case-card h3 { margin: 20px 0 12px; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.05; color: var(--white); }
.case-card p { margin: 0; color: var(--muted-dark); font-size: 14px; }
.case-link { margin-top: auto; padding-top: 28px; color: var(--teal); font-weight: 800; font-size: 14px; }
.disclaimer { margin: 24px 0 0; color: #7f9397; font-size: 12px; }

/* ─── WORKFLOW ──────────────────────────────────────────────────────────────── */
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-light); }
.workflow-step { padding: 32px 28px 0 0; }
.workflow-step:not(:last-child) { border-right: 1px solid var(--border-light); margin-right: 28px; }
.workflow-step span { color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.workflow-step h3 { margin: 32px 0 10px; font-family: var(--display); font-size: 28px; font-weight: 400; }
.workflow-step p { margin: 0; color: var(--muted-light); font-size: 14px; }
.section-dark .workflow { border-top-color: var(--border-dark); }
.section-dark .workflow-step:not(:last-child) { border-right-color: var(--border-dark); }
.section-dark .workflow-step span { color: var(--teal); }
.section-dark .workflow-step h3 { color: var(--white); }
.section-dark .workflow-step p { color: var(--muted-dark); }
@media (max-width: 700px) {
  .section-dark .workflow-step, .section-dark .workflow-step:not(:last-child) { border-bottom-color: var(--border-dark); }
}

/* Case studies volume table */
.case-volume-table-wrap {
  max-width: 720px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
}
.case-volume-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.case-volume-table th,
.case-volume-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.case-volume-table thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--sans);
}
.case-volume-table tbody th { font-weight: 800; color: var(--ink); }
.case-volume-table tbody tr:last-child th,
.case-volume-table tbody tr:last-child td { border-bottom: 0; }
.case-volume-note { max-width: 720px; margin: 16px 0 0; color: var(--muted-light); font-size: 13px; }
.case-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.case-facts dt { color: var(--muted-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.case-facts dd { margin: 4px 0 0; font-weight: 800; font-size: 18px; }
.case-meta { color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.case-list { display: grid; gap: 18px; }
.case-list .case-card {
  min-height: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--ink);
}
.case-list .case-card h3 { color: var(--ink); font-size: 28px; }
.case-list .case-card p { color: var(--muted-light); }
.extras-lead { max-width: 720px; margin: 16px 0 0; color: var(--muted-light); font-size: 17px; }
.page-section { padding: 96px 0; }
.page-section .container, .extras-section { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.extras-intro { margin-bottom: 40px; }
.case-engagements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.extras-card { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border-light); }
.extras-card h3 { margin: 0 0 10px; font-family: var(--display); font-size: 28px; font-weight: 400; }
.extras-card p { margin: 0; color: var(--muted-light); font-size: 14px; }
.tt-card { border-radius: var(--radius); background: var(--white); border: 1px solid var(--border-light); }
.tt-card--teal { background: var(--teal-soft); border-color: transparent; }
.tt-card--slate { background: var(--ink-2); color: var(--white); border-color: transparent; }
.tt-card--slate h3, .tt-card--slate .case-meta { color: var(--teal); }
.tt-card--slate p { color: var(--muted-dark); }
.tt-card--accent { border-left: 4px solid var(--teal); }
.tt-stat-bar { padding: 64px 0; }
.tt-stat-bar-inner { display: grid; gap: 16px; }
.tt-stat-bar-inner--3 { grid-template-columns: repeat(3, 1fr); }
.tt-stat-bar-inner--4 { grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 28px 22px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border-light);
  background: var(--white);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stat-item--teal-deep { background: var(--ink); border-color: transparent; color: var(--white); }
.stat-item--teal { background: var(--teal-soft); border-color: transparent; }
.stat-item--slate { background: var(--ink-2); border-color: transparent; color: var(--white); }
.stat-item--vivid { background: rgba(30, 200, 201, 0.12); border-color: rgba(30, 200, 201, 0.35); }
.stat-number { font-family: var(--display); font-size: clamp(28px, 3.5vw, 40px); line-height: 1; margin-bottom: 8px; }
.stat-item--teal-deep .stat-number, .stat-item--slate .stat-number { color: var(--white); }
.stat-item--teal .stat-number, .stat-item--vivid .stat-number { color: var(--teal-dark); }
.stat-number--sm { font-size: clamp(18px, 2vw, 22px); }
.stat-number sup { font-size: 0.5em; }
.stat-label { font-size: 13px; color: var(--muted-light); }
.stat-item--teal-deep .stat-label, .stat-item--slate .stat-label { color: var(--muted-dark); }
.stat-mini-label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; opacity: 0.7; }
@media (max-width: 900px) {
  .tt-stat-bar-inner--3, .tt-stat-bar-inner--4, .case-engagements-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .tt-stat-bar-inner--3, .tt-stat-bar-inner--4, .case-engagements-grid, .case-facts { grid-template-columns: 1fr; }
  .page-section .container, .extras-section { width: min(calc(100% - 32px), var(--content)); }
}

/* ─── PRINCIPLE BAND ────────────────────────────────────────────────────────── */
.principle-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.arabic-statement {
  padding: 52px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 40% 30%, rgba(30, 200, 201, 0.18), transparent 48%), rgba(255, 255, 255, 0.03);
  text-align: center;
}
.arabic-statement strong { display: block; font-family: Tahoma, Arial, sans-serif; font-size: clamp(38px, 5vw, 62px); line-height: 1.45; direction: rtl; color: var(--white); }
.arabic-statement span { display: block; margin-top: 14px; color: var(--muted-dark); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.principle-copy p { color: var(--muted-dark); }

/* ─── CTA BAND ──────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 74px;
  border-radius: var(--radius-lg);
  background: var(--teal);
  color: var(--ink);
  display: block;
}
.cta-band::after { content: "→"; position: absolute; right: 36px; bottom: -68px; color: rgba(11, 17, 19, 0.1); font-size: 240px; line-height: 1; }
.cta-band h2, .cta-band-title { max-width: 780px; margin: 0; font-family: var(--display); font-size: clamp(38px, 5.5vw, 66px); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); }
.cta-band p, .cta-band-sub { position: relative; z-index: 1; max-width: 650px; margin: 20px 0 28px; color: rgba(11, 17, 19, 0.8); }
.cta-band .button, .cta-band .btn-dark, .cta-band a.btn-dark { position: relative; z-index: 1; }

/* ─── INNER PAGE HERO ───────────────────────────────────────────────────────── */
.page-hero { padding: 92px 0 78px; background: var(--ink); color: var(--white); }
.page-hero-inner { max-width: 820px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: end; }
.page-hero .eyebrow, .page-hero .section-eyebrow { color: var(--teal); }
.page-hero h1 { font-family: var(--display); font-size: clamp(44px, 6vw, 76px); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; color: var(--white); margin: 0 0 18px; }
.page-hero h1 em { font-style: italic; color: var(--teal); }
.page-hero p { color: #b4c2c5; font-size: 18px; max-width: 640px; }
.page-aside { padding: 28px; border: 1px solid var(--border-dark); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); }
.page-aside p { margin: 0; color: var(--muted-dark); }
.mini-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.mini-proof div { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.mini-proof strong { display: block; color: var(--white); }
.mini-proof span { color: var(--muted-dark); font-size: 11px; }

/* ─── DETAIL / SERVICES INNER ───────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 80px; align-items: start; }
.sticky-index { position: sticky; top: 120px; }
.index-links { display: grid; margin-top: 24px; border-top: 1px solid var(--border-light); }
.index-links a { padding: 14px 0; border-bottom: 1px solid var(--border-light); color: var(--muted-light); font-size: 14px; text-decoration: none; }
.index-links a:hover { color: var(--teal-dark); }
.service-detail { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--border-light); scroll-margin-top: 110px; }
.service-detail:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.service-detail h2 { margin: 0 0 18px; font-family: var(--display); font-size: clamp(32px, 4vw, 46px); font-weight: 400; line-height: 1.05; }
.service-detail p { color: var(--muted-light); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 14px 14px 14px 38px; border-radius: 12px; background: var(--paper-2); font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 14px; color: var(--teal-dark); font-weight: 900; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.capability-card { padding: 30px; border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--white); }
.capability-card h3 { margin: 0 0 10px; font-family: var(--display); font-size: 28px; font-weight: 400; }
.capability-card p { margin: 0; color: var(--muted-light); font-size: 14px; }

/* ─── FOUNDERS / TEAM ───────────────────────────────────────────────────────── */
.founder-grid { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 18px; }
.founder-card { overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.founder-card img {
  width: min(280px, calc(100% - 56px));
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 28px auto 4px;
  border: 6px solid var(--paper-2);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: #7f7f81;
  box-shadow: 0 12px 34px rgba(4, 12, 14, 0.12);
}
.founder-copy { padding: 30px; }
.founder-copy h2, .founder-copy h3 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 400; }
.founder-role { color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.founder-copy p { color: var(--muted-light); margin-top: 12px; }

/* ─── FORMS (theme + WPForms) ───────────────────────────────────────────────── */
.quote-form-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 24px; align-items: start; }
.form-card, .contact-card { padding: 38px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-card h2, .contact-card h2 { margin: 0 0 8px; font-family: var(--display); font-size: 34px; font-weight: 400; }
.form-intro { margin: 0 0 28px; color: var(--muted-light); }
.form-grid, .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field, .form-group { display: grid; gap: 8px; margin-bottom: 18px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend, .form-group label, .form-group-label { color: var(--ink); font-size: 13px; font-weight: 800; }
.required { color: #a53535; }
.field input, .field select, .field textarea,
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd1d1;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.field textarea, .form-group textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal-dark);
  outline: 3px solid rgba(30, 200, 201, 0.17);
}
.choice-grid, .checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-grid label { cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: inline-flex; min-height: 42px; align-items: center; padding: 9px 14px; border: 1px solid #cbd1d1; border-radius: 999px; font-size: 13px; font-weight: 600; }
.choice-grid input:checked + span { border-color: var(--teal-dark); background: var(--teal-soft); }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.checkbox-label input { min-height: auto; width: auto; }
.file-drop { display: block; padding: 22px; border: 1px dashed #aeb9ba; border-radius: 12px; background: #fafaf8; cursor: pointer; text-align: center; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop strong { display: block; }
.file-drop span { display: block; margin-top: 4px; color: var(--muted-light); font-size: 12px; }
.privacy-note, .contact-form-fallback-note { margin: 0; color: var(--muted-light); font-size: 12px; }
.form-status { margin: 18px 0 0; padding: 14px; border-radius: 10px; background: #dff4e5; color: #205e34; }
.contact-list { display: grid; gap: 0; margin: 24px 0 0; }
.contact-row { padding: 18px 0; border-top: 1px solid var(--border-light); }
.contact-row small { display: block; color: var(--muted-light); }
.contact-row a, .contact-row strong { font-weight: 800; text-decoration: none; }

/* WPForms bridge — inherit theme field styling */
.wpforms-container .wpforms-field-label { color: var(--ink); font-size: 13px; font-weight: 800; }
.wpforms-container input[type=text],
.wpforms-container input[type=email],
.wpforms-container input[type=tel],
.wpforms-container select,
.wpforms-container textarea {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd1d1;
  border-radius: 10px;
}
.wpforms-container button[type=submit] {
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  font-weight: 800;
}

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 860px; margin: 44px auto 0; border-top: 1px solid var(--border-light); }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border: 0; background: transparent; color: var(--ink); font-weight: 800; text-align: left; }
.faq-button::after { content: "+"; color: var(--teal-dark); font-size: 24px; }
.faq-button[aria-expanded="true"]::after { content: "−"; }
.faq-panel { padding: 0 0 24px; color: var(--muted-light); }
.faq-panel p { margin: 0; }

/* ─── LEGAL / PROSE ─────────────────────────────────────────────────────────── */
.prose, .legal-content { max-width: 760px; margin: 0 auto; }
.prose h2, .legal-content h2 { margin: 40px 0 14px; font-family: var(--display); font-size: 32px; font-weight: 400; }
.prose h3, .legal-content h3 { margin: 28px 0 10px; font-size: 20px; }
.prose p, .legal-content p { margin: 0 0 16px; color: var(--muted-light); }
.prose ul, .legal-content ul { margin: 0 0 16px 20px; list-style: disc; color: var(--muted-light); }
.prose li, .legal-content li { margin-bottom: 8px; }
.prose a, .legal-content a { color: var(--teal-dark); text-decoration: underline; }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer { padding: 72px 0 30px; background: #070c0e; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr; gap: 50px; }
.footer-about, .footer-tagline { max-width: 330px; margin: 22px 0 0; color: var(--muted-dark); font-size: 14px; }
.footer-col h2, .footer-col h4, .footer-col .footer-heading { margin: 0 0 18px; color: #879a9e; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; font-family: var(--sans); }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links li { color: #d3dcde; font-size: 14px; }
.footer-links a, .footer-col a { display: block; color: #d3dcde; font-size: 14px; text-decoration: none; margin-bottom: 0; transition: color var(--transition); }
.footer-links a:hover, .footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border-dark); color: #6f8387; font-size: 12px; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #6f8387; font-size: 12px; }
.footer-legal a:hover { color: var(--teal); }

/* Legacy footer layout fallback (pre-port templates) */
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-dark); margin-bottom: 32px; }

/* ─── REVEAL ANIMATION ──────────────────────────────────────────────────────── */
[data-reveal] { opacity: 1; transform: none; }
html[data-js="true"] [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
html[data-js="true"] [data-reveal][data-visible="true"] { opacity: 1; transform: none; }
.fade-up { }

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

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-panel {
    position: fixed;
    inset: 82px 0 auto 0;
    display: none;
    max-height: calc(100vh - 82px);
    overflow: auto;
    padding: 24px;
    background: rgba(11, 17, 19, 0.99);
    border-bottom: 1px solid var(--border-dark);
  }
  .nav-panel[data-open="true"] { display: grid; }
  .nav-links { display: grid; gap: 0; }
  .nav-links.open { display: grid; }
  .nav-links li { border-bottom: 1px solid var(--border-dark); }
  .nav-links a { display: block; padding: 16px 4px; font-size: 16px; }
  .nav-links a.active::after, .nav-links a[aria-current="page"]::after { display: none; }
  .nav-panel > .button, .nav-links .nav-links-cta { margin-top: 18px; }
  .hero-grid, .page-hero-grid, .outcome-grid, .principle-band, .detail-grid, .quote-form-grid { grid-template-columns: 1fr; }
  .hero-paths { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--border-dark); }
  .service-card, .service-card.featured { grid-column: span 6; }
  .case-grid, .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .workflow-step:nth-child(2) { border-right: 0; }
  .quote-panel, .sticky-index { position: static; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 32px), var(--content)); }
  .brand-slogan { display: none; }
  .brand-name { font-size: 21px; }
  .brand-lockup--nav .brand-lockup-icon { width: 42px; height: 42px; }
  .nav { min-height: 74px; }
  .nav-panel { inset-block-start: 74px; max-height: calc(100vh - 74px); }
  .hero { padding: 72px 0 40px; }
  .hero-grid { gap: 46px; }
  .hero-paths { grid-template-columns: 1fr; }
  .display { font-size: clamp(44px, 13vw, 64px); }
  .hero-actions .button, .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
  .proof-strip { margin-top: 48px; }
  .proof-item { padding: 22px 14px; }
  .proof-item:first-child { padding-left: 0; }
  .proof-value { font-size: 26px; }
  .proof-label { font-size: 10px; }
  .section, .section-sm { padding: 76px 0; }
  .section-head, .section-header { display: block; margin-bottom: 34px; }
  .section-title { font-size: 40px; }
  .service-card, .service-card.featured { grid-column: 1 / -1; min-height: 290px; }
  .case-grid, .capability-grid, .founder-grid { grid-template-columns: 1fr; }
  .founder-card img { width: min(280px, calc(100% - 48px)); margin-top: 24px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step, .workflow-step:not(:last-child) { margin-right: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--border-light); }
  .arabic-statement, .cta-band { padding: 34px 24px; }
  .page-hero { padding: 70px 0 54px; }
  .mini-proof { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .form-card, .contact-card { padding: 26px 20px; }
  .form-grid, .form-row { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { display: grid; }
}
