/* ============================================================
   Protelligence Security — luxury dark & gold theme
   ============================================================ */

:root {
  --bg:        #0a0a0c;
  --bg-2:      #0f0f12;
  --surface:   #16161a;
  --surface-2: #1d1d22;
  --gold:      #c9a14a;
  --gold-soft: #e6c878;
  --gold-deep: #a07e30;
  --text:      #f4f1ea;
  --muted:     #a29d92;
  --muted-2:   #756f64;
  --line:      rgba(201, 161, 74, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --maxw:      1180px;
  --radius:    4px;
  --shadow:    0 24px 60px rgba(0, 0, 0, 0.55);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Clip horizontal overflow in BOTH directions (catches the RTL/Arabic case
     that body's overflow-x:hidden misses). 'clip' — not 'hidden' — so the
     sticky header is not broken. */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.8rem;
  margin-bottom: 3px;
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  color: var(--text);
  margin-bottom: 1.1rem;
}
.section-title .accent { color: var(--gold); font-style: italic; }

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.6rem;
}

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--surface { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { margin-left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1407;
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201, 161, 74, 0.28);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.topbar {
  background: #060608;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: var(--muted);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1.6rem;
  max-width: var(--maxw);
  margin-inline: auto;
}
.topbar a { transition: color 0.3s; }
.topbar a:hover { color: var(--gold-soft); }
.topbar__contact { display: flex; gap: 1.6rem; }
.topbar__tag { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.68rem; color: var(--muted-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 8, 10, 0.96);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.05rem 1.6rem;
  max-width: var(--maxw);
  margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  color: var(--text);
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

/* Slide-out panel — used at ALL screen sizes */
.nav__links {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  height: 100vh;
  width: 20vw;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  background: #0c0c0f;
  border-left: 1px solid var(--line);
  box-shadow: -34px 0 70px rgba(0, 0, 0, 0.55);
  padding: 4.5rem 2.2rem 1.6rem;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
  z-index: 95;
  overflow-y: auto;
}
.nav__links.open { transform: translateX(0); }
.nav__links li { width: 100%; }
.nav__links a {
  display: block;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  position: relative;
  padding: 0.6rem 0;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.3s, padding-left 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--gold-soft); padding-left: 0.4rem; }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta { display: none; }
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 100;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  transition: all 0.35s var(--ease);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* When the slide-out menu is open, pin the close button to the viewport's
   right edge so it clears the language selector on wide (centered-nav) screens.
   `top` stays auto, preserving the toggle's vertical position so the phone
   layout — where the bar already fills the width — is unaffected. */
.nav__links.open ~ .nav__toggle { position: fixed; right: 2.2rem; }

/* Client-login icon — sits just to the left of the hamburger in the top bar.
   margin-inline-start:auto absorbs the free space so brand stays left while
   the icon + toggle group together on the right (logical props keep this
   correct under RTL). The negative inline-end margin tightens the gap to the
   hamburger so the two read as a pair rather than two scattered controls. */
.nav__login {
  margin-inline-start: auto;
  margin-inline-end: -1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--text);
  position: relative;
  z-index: 100;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__login svg { width: 22px; height: 22px; display: block; }
.nav__login:hover { color: var(--gold-soft); transform: translateY(-1px); }
.nav__login:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px;
}
/* When the slide-out menu is open, the close-X takes over the right edge —
   hide the login icon so the two don't overlap. */
.nav__links.open ~ .nav__login { opacity: 0; pointer-events: none; }

/* Dim/overlay behind the slide-out panel */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
  z-index: 90;
}
.nav__overlay.open { opacity: 1; visibility: visible; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(201, 161, 74, 0.10), transparent 55%),
    linear-gradient(180deg, #0c0c0f 0%, #08080a 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.hero__glow {
  position: absolute;
  width: 620px; height: 620px;
  right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(201,161,74,0.16), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 880px; padding: 5rem 0; }
.hero__title {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 1.04;
  margin-bottom: 1.6rem;
}
.hero__title .accent { color: var(--gold); font-style: italic; }
.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 85ch;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__scroll span { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); }

/* page hero (interior pages) */
.page-hero {
  position: relative;
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse at 75% 0%, rgba(201, 161, 74, 0.12), transparent 60%),
    linear-gradient(180deg, #0d0d10, #0a0a0c);
  border-bottom: 1px solid var(--line);
}
.page-hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1.2rem; }
.page-hero__title .accent { color: var(--gold); font-style: italic; }
.breadcrumbs {
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-bottom: 1.6rem;
  letter-spacing: 0.06em;
}
.breadcrumbs a:hover { color: var(--gold-soft); }
.breadcrumbs span { color: var(--gold); }

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.stat { background: var(--bg); padding: 2.4rem 1.6rem; text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* ============================================================
   Service cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 1.6rem;
  color: var(--gold);
}
.card__icon svg { width: 26px; height: 26px; }
.card__num {
  position: absolute;
  top: 1.6rem; right: 1.8rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.card__title { font-size: 1.6rem; margin-bottom: 0.8rem; color: var(--text); }
.card__text { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.4rem; }
.card__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease);
}
.card__link:hover { gap: 0.85rem; }

.card--featured { background: linear-gradient(160deg, #1a1610, var(--surface)); border-color: var(--line); }

/* ============================================================
   Feature split (image + text)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #16130c, #0d0d10);
  display: grid;
  place-items: center;
}
.split__media svg { width: 42%; opacity: 0.85; color: var(--gold); }
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  grid-area: 1 / 1;
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,161,74,0.12), transparent 60%);
}
.split__body h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.2rem; }
.split__body p { color: var(--muted); margin-bottom: 1.1rem; }

/* full-width feature banner image */
.media-banner {
  position: relative;
  width: 100%;
  height: clamp(300px, 44vw, 560px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.media-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  display: block;
}
.media-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0.15) 0%, transparent 35%, rgba(8,8,10,0.55) 100%);
  pointer-events: none;
}
.media-banner__caption {
  position: absolute;
  left: clamp(1.2rem, 3vw, 2.2rem);
  bottom: clamp(1.1rem, 2.5vw, 1.8rem);
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.split--text { align-items: start; }

/* feature list */
.feature-list { display: grid; gap: 1.1rem; margin: 1.6rem 0 2rem; }
.feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.97rem;
}
.feature-list .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 0.7rem;
}
.feature-list strong { color: var(--text); font-weight: 600; }
.feature-list span { color: var(--muted); font-weight: 400; }

/* ============================================================
   Detail blocks (service pages)
   ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.detail {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.detail:hover { border-color: var(--line); background: var(--surface-2); }
.detail__icon { color: var(--gold); margin-bottom: 1.1rem; }
.detail__icon svg { width: 30px; height: 30px; }
.detail h3 { font-size: 1.35rem; margin-bottom: 0.6rem; color: var(--text); }
.detail p { color: var(--muted); font-size: 0.93rem; }

/* ---------- clickable cards ---------- */
/* Whole-card link for .card via a stretched pseudo-element on the existing CTA. */
a.card { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* Detail cards rendered as links. */
a.detail {
  color: inherit; text-decoration: none; display: block;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
a.detail:hover { transform: translateY(-4px); }
.detail__more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.2rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s var(--ease);
}
.detail__more span { transition: transform 0.3s var(--ease); }
a.detail:hover .detail__more { gap: 0.85rem; }

/* ============================================================
   Coverage / pill list
   ============================================================ */
.pills { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.pill:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(201,161,74,0.12), transparent 60%),
    linear-gradient(180deg, #0e0e11, #090909);
  border-block: 1px solid var(--line);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.1rem; }
.cta-band h2 .accent { color: var(--gold); font-style: italic; }
.cta-band p { color: var(--muted); max-width: 54ch; margin: 0 auto 2rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-info { display: grid; gap: 1.6rem; }
.contact-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-item__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.3rem; font-weight: 600; }
.contact-item a, .contact-item p { color: var(--text); font-size: 1.02rem; }
.contact-item a:hover { color: var(--gold-soft); }

.form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 0.8rem; color: var(--muted-2); margin-top: 1rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #060608; border-top: 1px solid var(--line); padding-top: 4rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__brand .brand { margin-bottom: 1.2rem; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer__col ul { display: grid; gap: 0.7rem; }
.footer__col a, .footer__col li { color: var(--muted); font-size: 0.92rem; transition: color 0.3s; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__socials { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.footer__socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  transition: all 0.3s;
}
.footer__socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  /* 20% is too narrow to read on smaller screens — widen the panel */
  .nav__links { width: 320px; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .nav__links { width: 78vw; min-width: 0; }
  .nav__links a { font-size: 1.08rem; }
}

/* ==========================================================================
   Keep the slide-out menu on ONE screen at every height — never scroll.
   The compact base spacing fits tall screens (~700px+); each height step
   below tightens further so the menu always fits down to its lower bound
   (laptops, short windows, and landscape phones).
   ========================================================================== */
@media (max-height: 760px) {
  .nav__links { padding-top: 3.2rem; gap: 0.45rem; }
  .nav__links a { padding: 0.42rem 0; }
  .lang-select { padding-bottom: 0.55rem; margin-bottom: 0.1rem; }
}
@media (max-height: 600px) {
  .nav__links { padding-top: 2rem; gap: 0.18rem; }
  .nav__links a { padding: 0.24rem 0; font-size: 0.98rem; }
  .lang-select { padding-bottom: 0.35rem; }
  .lang-select select { padding-top: 0.28rem; padding-bottom: 0.28rem; }
}
@media (max-height: 470px) {
  .nav__links { padding-top: 1.1rem; gap: 0.04rem; padding-bottom: 0.7rem; }
  .nav__links a { padding: 0.16rem 0; font-size: 0.88rem; }
  .lang-select { padding-bottom: 0.25rem; margin-bottom: 0.05rem; }
  .lang-select select { padding-top: 0.24rem; padding-bottom: 0.24rem; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   Campaign landing pages (.lp-*) — paid-traffic, single task.
   Reuses the dark & gold system; no separate design language.
   ============================================================ */
.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.72rem; }

/* minimal header: brand + phone only (no main nav) */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.lp-header__phone { white-space: nowrap; flex-shrink: 0; }
.lp-header__phone svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .lp-header .brand__sub { display: none; }
  .lp-header .brand__name { font-size: 0.78rem; letter-spacing: 0.12em; }
  .lp-header .brand__mark { width: 34px; }
}

/* hero */
.lp-hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse at 75% 0%, rgba(201,161,74,0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.lp-hero__inner { max-width: 760px; }
.lp-hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--text);
  margin-bottom: 1.2rem;
}
.lp-hero__title .accent { color: var(--gold); font-style: italic; }
.lp-hero__sub { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: 56ch; margin-bottom: 2.2rem; }
.lp-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* trust row */
.lp-trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.lp-trust__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
}
.lp-trust__item { display: flex; gap: 0.7rem; align-items: flex-start; }
.lp-trust__item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.lp-trust__item strong { display: block; color: var(--text); font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.lp-trust__item span { color: var(--muted); font-size: 0.8rem; }

/* service cards */
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.lp-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color 0.3s, transform 0.3s;
}
.lp-card:hover { border-color: var(--line); transform: translateY(-3px); }
.lp-card__icon { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--gold); margin-bottom: 1.2rem; }
.lp-card__icon svg { width: 22px; height: 22px; }
.lp-card h3 { font-size: 1.4rem; color: var(--text); margin-bottom: 0.6rem; }
.lp-card p { color: var(--muted); font-size: 0.94rem; }

/* approach steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.lp-step { position: relative; padding-top: 2.6rem; }
.lp-step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); font-weight: 600;
}
.lp-step h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 0.5rem; }
.lp-step p { color: var(--muted); font-size: 0.94rem; }

/* privacy band */
.lp-privacy__inner { max-width: 720px; }

/* minimal footer */
.lp-footer { background: #060608; border-top: 1px solid var(--line); padding-block: 2.4rem; }
.lp-footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.lp-footer small, .lp-footer p { color: var(--muted-2); font-size: 0.82rem; }
.lp-footer a { color: var(--muted); }
.lp-footer a:hover { color: var(--gold-soft); }

/* sticky mobile WhatsApp button */
.lp-sticky-wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: none; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1407; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 0.85rem 1.2rem; border-radius: 100px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.lp-sticky-wa svg { width: 20px; height: 20px; }

/* ---- RTL (Arabic) ---- */
[dir="rtl"] .eyebrow::before { margin-right: 0; margin-left: 0.8rem; }
[dir="rtl"] .lp-sticky-wa { right: auto; left: 1rem; }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
[dir="rtl"] .lp-step::before { left: auto; right: 0; }
[dir="rtl"] .lp-step { padding-left: 0; padding-right: 0; }

/* ---- LP responsive ---- */
@media (max-width: 900px) {
  .lp-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-cards { grid-template-columns: 1fr 1fr; }
  .lp-steps { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 680px) {
  .lp-sticky-wa { display: inline-flex; }
  .lp-hero { padding-bottom: 5rem; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-hero__cta .btn { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
  .lp-trust__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Language selector (injected by js/i18n.js)
   ========================================================================== */
/* Language selector — lives at the top of the slide-out menu panel */
.lang-select {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.42rem 2rem 0.42rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  /* custom gold chevron */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a24a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}
.lang-select select:hover { border-color: var(--gold); color: var(--gold-soft); }
.lang-select select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* options render with the OS palette; force a dark, readable list */
.lang-select option { background: #0c0c0f; color: var(--text); }

@media (max-width: 600px) {
  .lang-select select {
    font-size: 0.72rem;
    padding: 0.36rem 1.7rem 0.36rem 0.7rem;
  }
}

/* ==========================================================================
   Right-to-left support (Arabic) — set on <html dir="rtl"> by js/i18n.js
   ========================================================================== */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nav { direction: rtl; }
[dir="rtl"] .lang-select { justify-content: flex-end; }
[dir="rtl"] .lang-select select {
  padding: 0.42rem 0.9rem 0.42rem 2rem;
  background-position: left 0.85rem center;
}
/* Keep the off-canvas panel sliding from the RIGHT in RTL as well: this reuses
   the exact LTR mechanism that body{overflow-x:hidden} already clips, so it
   never introduces horizontal scroll. Only the inner alignment is mirrored. */
[dir="rtl"] .nav__links { align-items: flex-end; }
[dir="rtl"] .nav__links a { text-align: right; }
[dir="rtl"] .nav__links a::after { left: auto; right: 0; }
[dir="rtl"] .nav__links a:hover,
[dir="rtl"] .nav__links a.active { padding-left: 0; padding-right: 0.4rem; }
[dir="rtl"] .topbar__inner,
[dir="rtl"] .topbar__contact { direction: rtl; }
[dir="rtl"] .breadcrumbs { direction: rtl; }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
[dir="rtl"] .footer__grid,
[dir="rtl"] .detail-grid,
[dir="rtl"] .cards,
[dir="rtl"] .pills { direction: rtl; }
