/* =========================================================================
   Widemar — main.css
   Single stylesheet that handles both LTR (English) and RTL (Arabic) layouts
   via [dir] attribute selectors. Theme switching via [data-theme].
   ========================================================================= */

:root {
  /* --- Brand colors (constant) --- */
  --brand-blue: #1b3a8b;
  --brand-blue-bright: #2952cc;
  --brand-orange: #f59c2b;
  --brand-orange-light: #ffb456;

  /* --- Light theme --- */
  --bg: #faf7f2;
  --bg-elevated: #ffffff;
  --bg-deep: #f2ede2;
  --bg-feature: #0a0e27;
  --bg-feature-soft: #161a36;
  --bg-accent: #1b3a8b;

  --text: #0a0e27;
  --text-soft: #1a1f3a;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --text-on-feature: #faf7f2;
  --text-on-feature-soft: rgba(250, 247, 242, 0.72);

  --link-accent: #1b3a8b;
  --line: #e5e1d8;
  --line-strong: #d8d3c5;
  --line-on-feature: rgba(255, 255, 255, 0.1);

  --btn-bg: #0a0e27;
  --btn-text: #faf7f2;
  --btn-hover-bg: #1b3a8b;

  /* --- Fonts (defaults are English) --- */
  --font-display: "Plus Jakarta Sans", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "Plus Jakarta Sans", "IBM Plex Sans Arabic", sans-serif;
  --font-mono: "Plus Jakarta Sans", "IBM Plex Sans Arabic", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", sans-serif;

  --container: 1280px;
  --pad: clamp(20px, 4vw, 64px);
  --theme-trans:
    background-color 0.45s ease, color 0.35s ease, border-color 0.35s ease;
  --logo-img: url("../images/Logo-lightmode.svg");
}

/* RTL = Arabic typography */
[dir="rtl"] {
  --font-display: "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg: #0a0e27;
  --bg-elevated: #131838;
  --bg-deep: #050817;
  --bg-feature: #050817;
  --bg-feature-soft: #0f142e;
  --bg-accent: #122f7d;

  --text: #faf7f2;
  --text-soft: #e5e1d8;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --text-on-feature: #faf7f2;
  --text-on-feature-soft: rgba(250, 247, 242, 0.7);

  --link-accent: #7b9bf0;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-on-feature: rgba(255, 255, 255, 0.08);

  --btn-bg: #faf7f2;
  --btn-text: #0a0e27;
  --btn-hover-bg: #f59c2b;
  --logo-img: url("../images/Logo-darkmode.svg");
}

.logo-img {
  background-image: var(--logo-img) !important;
  background-size: 72.5px !important;
  background-repeat: no-repeat !important;
  margin-top: -1px;
  width: 72.5px !important;
  height: 42px !important;
}
/* ========== Reset & base ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: var(--theme-trans);
}
[dir="rtl"] body {
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

@media (max-width: 880px) {
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .section-lede {
    max-width: 100% !important;
  }

  .container.hero-inner {
    padding: 0 var(--pad) !important;
  }
  .container .reveal {
    max-width: 100% !important;
    width: 100% !important;
  }
  .nav-inner,
  .about-inner .section-eyebrow,
  .about-inner .section-title,
  .about-inner .section-lede,
  .reveal-about-stats,
  .services-header,
  .expertise-header,
  .expertise-grid {
    padding: 0 var(--pad) !important;
  }
  .principles,
  .contact {
    padding: clamp(80px, 12vw, 140px) var(--pad) !important;
  }
  .cta-strip {
    padding: 100px var(--pad) !important;
  }
  .stat {
    padding: 16px 8px !important;
  }
  .footer {
    padding: 90px var(--pad) 32px var(--pad) !important;
  }
}
input:-internal-autofill-selected {
  background-color: transparent !important;
}
/*
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: var(--text) !important;
  background-color: transparent !important;
  transition: background-color 9999s ease-in-out 0s;
}*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}
input {
  background: transparent;
}

input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-background-clip: text;
}

/* ========== Brand logo image ========== */
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}
.footer .brand-logo {
  height: 80px;
}

/* ========== Nav ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition:
    all 0.3s ease,
    background-color 0.45s ease;
  background: transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 14.5px;
  font-weight: 500;
  margin-inline-start: auto;
  margin-inline-end: 24px;
}
[dir="rtl"] .nav-links {
  font-size: 15px;
}
.nav-links a {
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--link-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  white-space: nowrap;
  direction: ltr;
}
.lang-toggle-ar {
  font-family: var(--font-arabic) !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  white-space: nowrap;
  direction: ltr;
}
.lang-toggle:hover,
.lang-toggle-ar:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s ease;
}
.theme-toggle:hover svg {
  transform: rotate(20deg);
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-cta {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.nav-cta:hover {
  background: var(--brand-orange);
  color: #0a0e27;
  transform: translateY(-1px);
}
.nav-cta svg {
  transition: transform 0.25s;
}
.nav-cta:hover svg {
  transform: translateX(3px);
}
[dir="rtl"] .nav-cta svg {
  transform: scaleX(-1);
}
[dir="rtl"] .nav-cta:hover svg {
  transform: scaleX(-1) translateX(3px);
}

.mobile-toggle {
  display: none;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: none;
  }
  .mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: background-color 0.3s;
  }
  .nav-cta {
    display: none;
  }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--bg);
}
.hero-motif {
  position: absolute;
  top: 50%;
  inset-inline-end: -8%;
  width: 50%;
  max-width: 720px;
  transform: translateY(-50%);
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
[data-theme="dark"] .hero-motif {
  opacity: 0.16;
}
.hero-motif svg {
  width: 100%;
  height: auto;
  display: block;
}
[dir="rtl"] .hero-motif svg {
  transform: scaleX(-1);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    color-mix(in srgb, var(--text) 4%, transparent) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  pointer-events: none;
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--link-accent);
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease-out both;
}
[dir="rtl"] .hero-eyebrow {
  text-transform: none;
  letter-spacing: 0.06em;
}
.hero-eyebrow .ar-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--brand-orange);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 1100px;
  animation: fadeUp 0.9s 0.1s ease-out both;
}
[dir="rtl"] .hero-headline {
  font-weight: 800;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--link-accent);
  position: relative;
}
[dir="rtl"] .hero-headline em {
  font-style: normal;
  font-weight: 700;
}
.hero-headline em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 100%;
  height: 0.12em;
  background: var(--brand-orange);
  opacity: 0.45;
  z-index: -1;
}
.hero-headline .accent {
  color: var(--brand-orange);
  font-style: normal;
}

.hero-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  animation: fadeUp 1s 0.25s ease-out both;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 540px;
}
[dir="rtl"] .hero-lede {
  line-height: 1.8;
  max-width: 580px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-self: end;
}
@media (max-width: 880px) {
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-ctas {
    justify-self: start;
  }
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1.5px solid var(--btn-bg);
}
.btn-primary:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bg);
  color: var(--btn-text);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px
    color-mix(in srgb, var(--btn-hover-bg) 50%, transparent);
}
.btn-primary svg,
.btn-secondary svg {
  transition: transform 0.25s;
}
.btn-primary:hover svg {
  transform: translateX(3px);
}
[dir="rtl"] .btn-primary svg,
[dir="rtl"] .btn-secondary svg {
  transform: scaleX(-1);
}
[dir="rtl"] .btn-primary:hover svg {
  transform: scaleX(-1) translateX(3px);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero-tags {
  margin-top: 90px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  animation: fadeUp 1.1s 0.4s ease-out both;
}
[dir="rtl"] .hero-tags {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  gap: 24px 48px;
}
.hero-tags-label {
  color: var(--text);
  font-weight: 500;
}
[dir="rtl"] .hero-tags-label {
  font-weight: 600;
}
.hero-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
[dir="rtl"] .hero-tags-list {
  gap: 24px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Section base ========== */
section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
  margin-bottom: 24px;
}
[dir="rtl"] .section-eyebrow {
  text-transform: none;
  letter-spacing: 0.06em;
}
.section-eyebrow .ar-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand-orange);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 14ch;
  margin-bottom: 28px;
}
[dir="rtl"] .section-title {
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--link-accent);
}
[dir="rtl"] .section-title em {
  font-style: normal;
  font-weight: 700;
}
.section-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 56ch;
}
[dir="rtl"] .section-lede {
  line-height: 1.85;
  max-width: 62ch;
}

/* ========== About / Stats ========== */
.about {
  background: var(--bg);
  border-top: 1px solid var(--line);
  transition: var(--theme-trans);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 12px;
}
.stat {
  background: var(--bg);
  padding: 36px 28px;
  transition: background 0.3s;
}
.stat:hover {
  background: var(--bg-elevated);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  color: var(--link-accent);
  letter-spacing: -0.03em;
  direction: ltr;
  display: inline-block;
}
[dir="rtl"] .stat-num {
  font-weight: 700;
}
.stat-num .plus {
  color: var(--brand-orange);
  font-size: 0.7em;
}
.stat-label {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.4;
}
[dir="rtl"] .stat-label {
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 880px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ========== Services ========== */
.services {
  background: var(--bg-feature);
  color: var(--text-on-feature);
  position: relative;
  overflow: hidden;
  transition: var(--theme-trans);
}
.services::before {
  content: "";
  position: absolute;
  top: -10%;
  inset-inline-end: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(245, 156, 43, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.services .section-eyebrow {
  color: var(--brand-orange-light);
}
.services .section-eyebrow::before {
  background: var(--brand-orange-light);
}
.services .section-title {
  color: var(--text-on-feature);
}
.services .section-title em {
  color: var(--brand-orange-light);
}
.services .section-lede {
  color: var(--text-on-feature-soft);
}

.services-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-on-feature);
  border: 1px solid var(--line-on-feature);
}
.service-card {
  background: var(--bg-feature);
  padding: 48px 36px;
  position: relative;
  transition: background 0.3s ease;
  cursor: pointer;
}
.service-card:hover {
  background: var(--bg-feature-soft);
}
.service-card:hover .service-arrow {
  color: var(--brand-orange);
  transform: translate(4px, -4px);
}
[dir="rtl"] .service-card:hover .service-arrow {
  transform: scaleX(-1) translate(4px, -4px);
}
.service-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--brand-orange);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
  direction: ltr;
}
.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  color: var(--brand-orange-light);
}
.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--text-on-feature);
}
[dir="rtl"] .service-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
}
.service-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-on-feature-soft);
}
[dir="rtl"] .service-desc {
  font-size: 15px;
  line-height: 1.8;
}
.service-arrow {
  position: absolute;
  top: 36px;
  inset-inline-end: 32px;
  width: 18px;
  height: 18px;
  color: rgba(250, 247, 242, 0.4);
  transition: all 0.3s ease;
}
[dir="rtl"] .service-arrow {
  transform: scaleX(-1);
}
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Expertise ========== */
.expertise {
  background: var(--bg);
  position: relative;
  transition: var(--theme-trans);
}
.expertise-header {
  margin-bottom: 64px;
  max-width: 800px;
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.expertise-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.expertise-card:hover {
  border-color: var(--link-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px
    color-mix(in srgb, var(--link-accent) 30%, transparent);
}
.expertise-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.expertise-card:hover::after {
  opacity: 1;
}

.expertise-card:nth-child(1) {
  grid-column: span 5;
}
.expertise-card:nth-child(2) {
  grid-column: span 4;
}
.expertise-card:nth-child(3) {
  grid-column: span 3;
}
.expertise-card:nth-child(4) {
  grid-column: span 4;
}
.expertise-card:nth-child(5) {
  grid-column: span 4;
}
.expertise-card:nth-child(6) {
  grid-column: span 4;
}
.expertise-card:nth-child(7) {
  grid-column: span 12;
  min-height: 180px;
  background: var(--bg-feature);
  color: var(--text-on-feature);
  border-color: var(--bg-feature);
}
.expertise-card:nth-child(7) .expertise-num {
  color: var(--brand-orange);
}
.expertise-card:nth-child(7) .expertise-title {
  color: var(--text-on-feature);
}
.expertise-card:nth-child(7) .expertise-desc {
  color: var(--text-on-feature-soft);
}

.expertise-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--link-accent);
  margin-bottom: 24px;
  direction: ltr;
}
[dir="rtl"] .expertise-num {
  letter-spacing: 0.08em;
  font-size: 12px;
}
.expertise-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text);
}
[dir="rtl"] .expertise-title {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.expertise-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
[dir="rtl"] .expertise-desc {
  font-size: 15px;
  line-height: 1.75;
}
@media (max-width: 900px) {
  .expertise-card {
    grid-column: span 12 !important;
    min-height: 160px;
  }
}

/* ========== Principles ========== */
.principles {
  background: var(--bg-accent);
  color: var(--text-on-feature);
  position: relative;
  overflow: hidden;
  transition: var(--theme-trans);
}
.principles-motif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 75%;
  opacity: 0.06;
  pointer-events: none;
}
.principles-motif svg {
  width: 100%;
  height: 100%;
  display: block;
}
[dir="rtl"] .principles-motif svg {
  transform: scaleX(-1);
}

.principles-header {
  max-width: 720px;
  margin-bottom: 80px;
  position: relative;
}
.principles .section-eyebrow {
  color: var(--brand-orange-light);
}
.principles .section-eyebrow::before {
  background: var(--brand-orange-light);
}
.principles .section-title {
  color: var(--text-on-feature);
}
.principles .section-title em {
  color: var(--brand-orange-light);
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  position: relative;
}
.principle {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 247, 242, 0.18);
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-orange-light);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  direction: ltr;
}
.principle-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-on-feature);
}
[dir="rtl"] .principle-title {
  font-weight: 700;
  line-height: 1.3;
}
.principle-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-on-feature-soft);
}
[dir="rtl"] .principle-desc {
  font-size: 15px;
  line-height: 1.85;
}
@media (max-width: 880px) {
  .principles-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ========== CTA strip ========== */
.cta-strip {
  background: var(--bg);
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: var(--theme-trans);
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-strip-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 700px;
}
[dir="rtl"] .cta-strip-title {
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 750px;
}
.cta-strip-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--link-accent);
}
[dir="rtl"] .cta-strip-title em {
  font-style: normal;
  font-weight: 700;
}

/* ========== Contact ========== */
.contact {
  background: var(--bg);
  position: relative;
  transition: var(--theme-trans);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-info .section-title {
  font-size: clamp(36px, 4.5vw, 56px);
}
[dir="rtl"] .contact-info .section-title {
  font-size: clamp(32px, 4vw, 52px);
}
.contact-blocks {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-block {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.contact-block:last-child {
  border-bottom: none;
}
.contact-block-icon {
  color: var(--brand-orange);
  margin-top: 4px;
}
.contact-block-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
[dir="rtl"] .contact-block-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.contact-block-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
[dir="rtl"] .contact-block-value {
  line-height: 1.6;
}
[dir="rtl"] .contact-phone-email-value {
  text-align: end !important;
}
.contact-block-value.ltr {
  direction: ltr;
  text-align: start;
}
.contact-block-value a {
  transition: color 0.2s;
}
.contact-block-value a:hover {
  color: var(--link-accent);
}

.contact-form {
  background: var(--bg-elevated);
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: -1px;
  width: 60px;
  height: 6px;
  background: var(--brand-orange);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
}
.form-field.full {
  grid-column: span 2;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
[dir="rtl"] .form-field label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.form-field label .req {
  color: var(--brand-orange);
  margin-inline-start: 2px;
}
.form-field input {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 14px 0;
  border: none;
  border-bottom: 1.5px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
[dir="rtl"] .form-field input,
[dir="rtl"] .form-field textarea {
  font-size: 16px;
}
.form-field input[type="email"],
.form-field input[type="tel"] {
  direction: ltr;
  text-align: start;
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
}
.form-field input:focus {
  border-bottom-color: var(--link-accent);
  border-radius: 0 !important;
  color: var(--text) !important;
}
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--link-accent);
  border-radius: 0 !important;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
}

/* Honeypot — hidden from humans, visible to bots */
.form-field-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  visibility: hidden;
}

.form-submit {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 13px;
  color: var(--text-muted);
}
[dir="rtl"] .form-note {
  font-size: 14px;
}
.form-note .req {
  color: var(--brand-orange);
}
.form-message {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 16px;
  display: none;
}
.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  display: block;
}
.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  display: block;
}

.submit-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  font-family: inherit;
}
[dir="rtl"] .submit-btn {
  font-size: 15px;
}
.submit-btn:hover:not(:disabled) {
  background: var(--brand-orange);
  color: #0a0e27;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(245, 156, 43, 0.4);
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.submit-btn svg {
  transition: transform 0.25s;
}
.submit-btn:hover:not(:disabled) svg {
  transform: translateX(3px);
}
[dir="rtl"] .submit-btn svg {
  transform: scaleX(-1);
}
[dir="rtl"] .submit-btn:hover:not(:disabled) svg {
  transform: scaleX(-1) translateX(3px);
}
@media (max-width: 980px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-form {
    padding: 32px 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: span 1;
  }
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-feature);
  color: var(--text-on-feature);
  padding: 90px 0 32px;
  position: relative;
  overflow: hidden;
  transition: var(--theme-trans);
}
.footer-motif {
  position: absolute;
  bottom: -10%;
  inset-inline-end: -2%;
  width: 38%;
  max-width: 520px;
  opacity: 0.05;
  pointer-events: none;
}
.footer-motif svg {
  width: 100%;
  height: auto;
  display: block;
}
[dir="rtl"] .footer-motif svg {
  transform: scaleX(-1);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
  position: relative;
}
.footer-tagline {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(250, 247, 242, 0.85);
  max-width: 320px;
}
[dir="rtl"] .footer-tagline {
  font-style: normal;
  line-height: 1.5;
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-orange-light);
  margin-bottom: 20px;
}
[dir="rtl"] .footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col li a {
  font-size: 14.5px;
  color: rgba(250, 247, 242, 0.7);
  transition: color 0.2s;
}
[dir="rtl"] .footer-col li a {
  font-size: 15px;
}
.footer-col li a:hover {
  color: var(--brand-orange-light);
}
.footer-col li a.ltr {
  direction: ltr;
  display: inline-block;
}
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.5);
}
.footer-bottom .socials {
  display: flex;
  gap: 18px;
}
.footer-bottom .socials a {
  color: rgba(250, 247, 242, 0.6);
  transition: color 0.2s;
}
.footer-bottom .socials a:hover {
  color: var(--brand-orange-light);
}
@media (max-width: 880px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ========== Reveal animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 2px;
}
.flex-end {
  display: flex;
  justify-content: end;
}
.rtl {
  direction: rtl;
}
