/* =========================================================
   RADIUS — Global Stylesheet
   Design language: bold editorial black/white base, single
   confident red accent, big type, generous whitespace.
   Bilingual (EN default / AR-RTL) via [dir="rtl"] + :lang(ar).
   ========================================================= */

:root {
  /* Palette */
  --bg:        #ffffff;
  --bg-alt:    #f4f3f0;
  --ink:       #0b0b0c;
  --ink-soft:  #3d3d3f;
  --muted:     #767676;
  --line:      #e4e2dd;
  --dark:      #0b0b0c;
  --dark-2:    #18181a;
  --dark-line: rgba(255,255,255,0.14);
  --accent:       #b3212c;
  --accent-dark:  #841820;
  --accent-tint:  #f7e9ea;
  --on-accent: #ffffff;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-ar:   'Noto Kufi Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --radius: 2px;
  --shadow-md: 0 12px 32px -16px rgba(11,11,12,0.25);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ---------- Arabic typography adjustments ----------
   Letter-spacing / uppercase break Arabic letter-joining,
   so both are neutralized whenever Arabic is active. */
:lang(ar), [dir="rtl"] {
  font-family: var(--font-ar);
}
:lang(ar) *, [dir="rtl"] * {
  letter-spacing: normal !important;
}
[dir="rtl"] .eyebrow,
[dir="rtl"] .btn,
[dir="rtl"] .nav__link,
[dir="rtl"] .lang-toggle,
[dir="rtl"] .site-footer__heading,
[dir="rtl"] .card__tag {
  text-transform: none !important;
}
[dir="rtl"] {
  line-height: 1.9;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Visually hidden until focused — clip-based, not off-canvas positioning.
   (A large negative `left` offset corrupts the scroll/paint bounds of
   RTL documents in Chrome, so this avoids off-screen positioning entirely.) */
.skip-link {
  position: absolute; top: 0; inset-inline-start: 0;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
  background: var(--accent); color: #fff;
  padding: 12px 20px; z-index: 200; font-weight: 600;
}
.skip-link:focus {
  width: auto; height: auto; overflow: visible;
  clip: auto; clip-path: none; white-space: normal;
}

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent);
  flex: none;
}
.section--dark .eyebrow, .hero .eyebrow { color: #ff8f92; }
.section--dark .eyebrow::before, .hero .eyebrow::before { background: #ff8f92; }

h1, .h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
h2, .h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 62ch;
}
.section--dark .lede { color: rgba(255,255,255,0.78); }
p.body { color: var(--ink-soft); max-width: 68ch; }
[dir="rtl"] .lede, [dir="rtl"] p.body { max-width: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 86px;
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 58px; width: auto; display: block; }
@media (max-width: 480px) {
  .brand__logo { height: 50px; }
}

.nav { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink); position: relative; padding-block: 6px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .25s var(--ease);
}
[dir="rtl"] .nav__link::after { transform-origin: left; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
}
.lang-toggle button {
  background: transparent; border: none; padding: 7px 13px; color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none; background: none; border: none; padding: 8px; margin-inline-start: 4px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: transform .2s var(--ease), opacity .2s var(--ease); }

@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav { gap: 14px; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; inset-inline: 0; top: 86px; background: #fff;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .site-header.is-open .nav__link { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .site-header.is-open .nav__link::after { display: none; }
}

/* ============ HERO ============ */
.hero {
  background: radial-gradient(ellipse at top right, #241417 0%, var(--dark) 55%);
  color: #fff;
  padding-block: clamp(64px, 11vw, 132px) clamp(56px, 9vw, 108px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset-inline-end: -10%; top: -20%;
  width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute; inset-inline-end: 6%; top: 10%;
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  pointer-events: none;
}
.hero__content { max-width: 760px; position: relative; }
.hero h1 { margin-block: 20px 22px; }
.hero__actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.page-header {
  background: var(--dark); color: #fff;
  padding-block: clamp(70px, 10vw, 108px) clamp(46px, 7vw, 72px);
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ""; position: absolute; inset-inline-end: -8%; bottom: -40%;
  width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}
.page-header h1 { margin-top: 16px; }
.page-header .lede { margin-top: 18px; }

/* ============ CARDS ============ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; height: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__index { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.card h3 { margin-top: 12px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.card__link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
[dir="rtl"] .card__link svg { transform: scaleX(-1); }
.card:hover .card__link { color: var(--accent); }
.card:hover .card__link svg { transform: translateX(4px); }
[dir="rtl"] .card:hover .card__link svg { transform: scaleX(-1) translateX(4px); }

.pillar {
  padding-top: 26px; border-top: 2px solid var(--ink);
}
.pillar h3 { margin-top: 14px; }
.pillar p { margin-top: 10px; color: var(--muted); }

/* ============ SERVICE LIST ============ */
.service-cat { padding-block: clamp(48px, 7vw, 84px); border-top: 1px solid var(--line); }
.service-cat__head { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; }
.service-cat__num { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; }

.feature-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  background: var(--dark); color: #fff; border-radius: 4px; padding: clamp(32px,5vw,56px);
}
@media (max-width: 800px) { .feature-band { grid-template-columns: 1fr; } }
.feature-band .lede { color: rgba(255,255,255,0.8); }
.feature-band__card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px; padding: 28px;
}
.feature-band__card h3 { color: #fff; }
.feature-band__card p { color: rgba(255,255,255,0.72); margin-top: 10px; }

/* ============ BAND / QUOTE ============ */
.slogan-band {
  background: var(--ink); color: #fff; text-align: center;
  padding-block: clamp(56px, 9vw, 96px);
}
.slogan-band .eyebrow { justify-content: center; color: #ff8f92; }
.slogan-band .eyebrow::before { display: none; }
.slogan-band h2 { margin-top: 14px; font-size: clamp(2.1rem, 5vw, 3.6rem); }

blockquote.pull {
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 24px; margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500; color: var(--ink); line-height: 1.5;
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--accent); color: #fff; border-radius: 4px;
  padding: clamp(36px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band .btn--primary { background: #fff; color: var(--accent); }
.cta-band .btn--primary:hover { background: var(--ink); color: #fff; }

/* ============ ABOUT VALUES ============ */
.value-list { border-top: 1px solid var(--line); }
.value-row {
  display: grid; grid-template-columns: 90px 1fr 2fr; gap: 24px;
  padding-block: 30px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.value-row__num { font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.value-row h3 { margin: 0; }
.value-row p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .value-row { grid-template-columns: 1fr; gap: 8px; }
  .value-row__num { order: -1; }
}

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: var(--dark); color: #fff; border-radius: 4px; padding: clamp(30px,4vw,44px); }
.contact-info__item { display: flex; gap: 16px; padding-block: 18px; border-top: 1px solid var(--dark-line); }
.contact-info__item:first-of-type { border-top: none; }
.contact-info__item svg { width: 22px; height: 22px; flex: none; color: #ff8f92; margin-top: 3px; }
.contact-info__item a, .contact-info__item span { color: rgba(255,255,255,0.86); font-size: 0.98rem; }
.contact-info__label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; background: #fff; color: var(--ink);
  transition: border-color .2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-status { font-size: 14px; font-weight: 600; margin-top: 14px; display: none; }
.form-status.is-visible { display: block; color: var(--accent); }

/* Required-field validation state */
.form-field.has-error label { color: var(--accent); }
.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.form-field.has-error input:focus,
.form-field.has-error textarea:focus {
  outline-color: var(--accent);
}

/* ============ FOOTER ============ */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding-block: 64px 28px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--dark-line); }
@media (max-width: 800px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer__blurb { margin-top: 14px; color: rgba(255,255,255,0.6); max-width: 34ch; font-size: 0.94rem; }
.site-footer__heading { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer__links li { margin-bottom: 11px; }
.site-footer__links a { font-size: 0.94rem; color: rgba(255,255,255,0.68); transition: color .2s var(--ease); }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============ 404 ============ */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page__code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; color: var(--accent); line-height: 1; }

/* ============ Utility reveal ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
