/* TALIAH S.A.R.L – site styles
   One stylesheet for both languages. Logical properties (inline/block)
   make the layout mirror automatically on the Arabic page (dir="rtl"). */

:root {
  --graphite: #16181D;
  --graphite-deep: #0E0F13;
  --graphite-glow: #2A303C;
  --orange: #FF8A12;
  --orange-text: #B35400;     /* orange for text on light backgrounds (AA) */
  --blue: #3D7BFF;            /* Latin blue on dark */
  --ice-light: #A6D9FF;
  --blue-text: #2459F0;       /* Latin blue on white (AA) */
  --ink: #1A1C22;
  --muted: #4B5260;
  --muted-on-dark: #C5C9D2;
  --line: #E3E5EA;
  --soft: #F4F5F7;
  --white: #FFFFFF;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
  --font-logo-ar: "Kufam", "Almarai", sans-serif;

  --radius: 20px;
  --container: 1200px;
  --pad-section: clamp(64px, 8vw, 104px);
  --hero-glow-x: 74%;
}

html[lang="ar"] {
  --font-body: "Almarai", "Segoe UI", Tahoma, sans-serif;
  --font-head: "Almarai", "Segoe UI", Tahoma, sans-serif;
  --hero-glow-x: 26%;
}
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] .hero h1, html[lang="ar"] .section h2 { font-weight: 800; }

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--graphite-deep);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

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

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--orange); color: var(--graphite); font-weight: 700;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 24, 29, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 50px; height: 42px; }
.brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-latin { direction: ltr; text-align: left; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.12em; margin-right: -0.12em; color: var(--blue); }
/* الطليعة is kashida-justified to the exact width of TALIAH: size = 0.819 × the TALIAH size */
.brand-arabic { font-family: var(--font-logo-ar); font-weight: 700; font-size: 18.35px; line-height: 1.15; text-align: center; color: var(--orange); }

.nav { display: flex; align-items: center; gap: 4px 26px; }
.nav a {
  color: #D5DEEC; text-decoration: none; font-weight: 500; font-size: 15px;
  padding-block: 12px;
}
.nav a:hover { color: var(--white); }
.nav .lang-switch {
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  padding: 8px 14px; font-weight: 600;
}
.nav .lang-switch:hover { border-color: var(--white); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 16px 28px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-accent { background: var(--orange); color: var(--graphite); }
.btn-accent:hover { background: #FFA040; color: var(--graphite); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.45); color: var(--white); padding: 14.5px 28px; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--graphite); color: var(--white); }
.btn-dark:hover { background: #2A2D34; color: var(--white); }
.btn-dark[disabled] { opacity: 0.6; cursor: progress; }
.nav .btn { padding: 12px 22px; font-size: 15px; color: var(--graphite); }

.menu-toggle {
  display: none; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px; width: 48px; height: 48px; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--graphite); padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav .lang-switch { align-self: flex-start; margin-top: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}
/* Without JavaScript the menu stays visible */
.no-js .nav { display: flex; position: static; flex-wrap: wrap; flex-direction: row; background: none; padding: 0; }
.no-js .menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse 70% 85% at var(--hero-glow-x) 42%, var(--graphite-glow) 0%, var(--graphite) 52%, var(--graphite-deep) 100%);
  color: var(--white);
}
.hero-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-block: clamp(56px, 8vw, 112px);
}
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.badge {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid rgba(98, 182, 255, 0.35); border-radius: 999px;
  background: rgba(98, 182, 255, 0.08); color: var(--ice-light); font-size: 14px; font-weight: 600; line-height: 1.4;
}
.badge::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--orange); }
.hero h1 {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.12; letter-spacing: -0.01em;
}
html[lang="ar"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero h1 .accent { color: var(--orange); white-space: nowrap; }
.hero-lead { margin: 0; max-width: 590px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--muted-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-visual { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.hero-logo { width: 100%; max-width: 440px; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: #121418;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 34px 70px -24px rgba(0, 0, 0, 0.75); }
.hero-logo-svg { display: block; width: 100%; height: 100%; }
@media (max-width: 600px) { .hero-logo { max-width: 300px; border-radius: 22px; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--pad-section); }
.section-soft { background: var(--soft); }
.section-white { background: var(--white); }
.section-dark { background: var(--graphite); color: var(--white); }
.eyebrow { margin: 0; color: var(--orange-text); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.section-dark .eyebrow { color: var(--ice-light); }
.section h2 {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18;
}
html[lang="ar"] .section h2 { line-height: 1.4; }
.section-lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); }
.section-dark .section-lead { color: var(--muted-on-dark); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin-bottom: 48px; }

/* Activities */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(18, 20, 24, 0.35); }
.card h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; }
html[lang="ar"] .card h3 { font-family: var(--font-body); }
.card p { margin: 0; color: var(--muted); }
.icon-box {
  --glow: rgba(47, 112, 255, 0.55);
  width: 92px; height: 92px; border-radius: 24px; margin-bottom: 6px;
  background: radial-gradient(120% 120% at 30% 15%, #3A3E47 0%, #1E2128 45%, #0E0F13 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 16px 30px -14px var(--glow);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.icon-box .pi { width: 64px; height: 64px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.card:hover .icon-box { transform: scale(1.06) rotate(-3deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 36px -12px var(--glow); }
.icon-blue { color: var(--blue); --glow: rgba(47, 112, 255, 0.55); }
.icon-orange { color: var(--orange); --glow: rgba(255, 138, 18, 0.55); }
@media (prefers-reduced-motion: reduce) {
  .card, .icon-box { transition: none; }
  .card:hover, .card:hover .icon-box { transform: none; }
}

/* Method */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split > .split-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.split > .split-side { flex: 1 1 480px; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { flex: none; width: 44px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 22px; color: var(--blue-text); }
.step h3 { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
html[lang="ar"] .step h3 { font-family: var(--font-body); }
.step p { margin: 0; color: var(--muted); }

/* Partnership */
.partner { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.partner-copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.checklist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--white); font-weight: 500; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--orange); }
.markets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.markets-label { color: var(--muted-on-dark); font-size: 15px; margin-inline-end: 4px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(166, 217, 255, 0.35); color: var(--ice-light); font-size: 14px; font-weight: 600; }
.partner-link { align-self: flex-start; color: var(--ice-light); font-weight: 600; padding-block: 10px; }
.partner-link:hover { color: var(--white); }

.route {
  flex: 1 1 340px; min-width: 0; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; padding: 32px;
}
.route-stop { display: flex; gap: 16px; align-items: center; }
.route-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.route-dot.ice { background: var(--blue); box-shadow: 0 0 0 6px rgba(61, 123, 255, 0.22); }
.route-dot.orange { background: var(--orange); box-shadow: 0 0 0 6px rgba(255, 138, 18, 0.18); }
.route-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.route-place { display: block; font-size: 15px; color: #AEB3BD; }
.route-line { margin-block: 8px; margin-inline-start: 7px; height: 56px; border-inline-start: 2px dashed rgba(255, 255, 255, 0.28); }

/* Contact */
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--blue-text); }
.contact-label { display: block; font-weight: 600; font-size: 15px; }
.contact-value { display: block; color: var(--muted); }
.contact-value a { color: var(--muted); text-decoration: none; }
.contact-value a:hover { color: var(--ink); text-decoration: underline; }

.form {
  flex: 1 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 24px; padding: clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid #C5CFDD;
  border-radius: 12px; background: var(--white); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-text); outline-offset: 1px; border-color: var(--blue-text); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-success { color: #11703D; }
.form-status.is-error { color: #B3261E; }
.form-status.is-info { color: var(--blue-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite-deep); color: #AEB3BD; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; padding-block: 56px 40px; }
.footer-brand { flex: 1 1 320px; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { margin: 0; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col strong { color: var(--white); }
.footer-col a { color: #AEB3BD; text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 24px 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px;
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 24px;
  background: radial-gradient(ellipse 70% 85% at 50% 40%, var(--graphite-glow) 0%, var(--graphite) 55%, var(--graphite-deep) 100%); }
.notfound-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 560px; }
.notfound h1 { margin: 0; font-family: "Montserrat", sans-serif; font-size: clamp(28px, 4vw, 40px); }
.notfound p { margin: 0; color: var(--muted-on-dark); }
