:root{
  /* ===== Palette ===== */
  --bg0:#07141c;
  --bg1:#10222d;
  --bg2:#2f5560;

  --gold0:#8a6f3b;
  --gold1:#c3a35b;
  --gold2:#ddcf95;

  --white:#ffffff;

  /* ===== System tokens ===== */
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.56);

  --accent: var(--gold1);
  --accent2: var(--gold2);
  --shadow: 0 18px 40px rgba(0,0,0,.48);

  --accent-rgb: 195,163,91; /* gold1 */
  --teal-rgb: 47,85,96;     /* bg2 */
}

*{box-sizing:border-box}
html,body{height:100%}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
@viewport { width: device-width; }
html,body{max-width:100%;overflow-x:hidden}

body{
  margin:0;
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 18% 15%, rgba(var(--accent-rgb), .18), transparent 56%),
    radial-gradient(900px 600px at 82% 70%, rgba(var(--teal-rgb), .22), transparent 58%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  position:relative;
  z-index:0;
}

a{color:inherit}

/* ===== Layout ===== */
.container{
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 44px);
}

/* ===== Skip link ===== */
.skip{
  position:absolute;
  left:0;
  top:-9999px;
  width:1px;height:1px;
  overflow:hidden;
  z-index:9999;
}
.skip:focus{
  position:fixed;
  left:16px; top:16px;
  width:auto;height:auto;
  padding:10px 12px;
  border:1px solid var(--line);
  background: rgba(7,20,28,.70);
  border-radius:10px;
  z-index:9999;
}

/* ==========================
   Background Video
   ========================== */
.bg-video{
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #050b10;
}
.bg-video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(4px);
  transform: scale(1.06); /* prevents blurred edges showing gaps */
}
.bg-video::after{
  content:"";
  position:absolute;
  inset:0;
  /* adjust transparency here */
  background: rgba(5, 11, 16, 0.814);
  z-index:1;
}

/* ===== Header ===== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7,20,28,.62);
  border-bottom: 1px solid var(--line);
}

/* allow dropdowns to render outside header */
.header, .nav, .nav-cta, .lang-switch{overflow:visible;}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

/* Brand block: image + text, consistent on all screens */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  line-height:1;
}
.brand-logo-mobile{
  display:block;
  height:34px;    /* desktop logo size */
  width:auto;
}
.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.brand-name{
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
  line-height:1;
}
.brand-sub{
  font-size:10px;
  color:var(--gold1);
  letter-spacing:3px;
  margin-top:4px;
  padding-left: -5px;
}

.brand-name-arabic{
  font-size:18px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
  line-height:1;
}
.brand-sub-arabic{
  font-size:14px;
  color:var(--gold1);
  letter-spacing:3px;
  margin-top:4px;
  padding-right: -5px;
}

/* Primary nav */
.nav-links{
  display:flex;
  gap:16px;
  align-items:center;
}
.nav-links a{
  text-decoration:none;
  font-size:18px;
  color:var(--muted);
}
.nav-links a:hover{color:var(--gold1)}

/* Header CTAs */
.nav-cta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  text-decoration:none;
  border:1px solid transparent;
  font-weight:800;
  font-size:14px;
  letter-spacing:.2px;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:hover{transform: translateY(-3px)}
.btn:active{transform: translateY(0)}
.btn-primary{
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .95), rgba(221,207,149,.92));
  color: rgba(7,20,28,.95);
  border-color: rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.btn-primary:hover{box-shadow: 0 20px 46px rgba(0,0,0,.52)}
.btn-ghost{
  background: rgba(255,255,255,.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-block{width:100%}

/* ==========================
   Corporate Language Switcher
   ========================== */
.lang-switch{position:relative}
.lang-btn{gap:8px; padding:9px 12px}
.lang-ico{display:inline-flex}
.lang-caret{opacity:.75; font-size:12px; margin-left:2px}
[dir="rtl"] .lang-caret{margin-left:0; margin-right:2px}

/* Use logical properties so RTL never crops */
.lang-menu{
  position:absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;    /* right in LTR, left in RTL */
  inset-inline-start: auto;
  min-width: 180px;
  max-width: min(260px, calc(100vw - 24px));
  background: rgba(7,20,28,.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
  display:none;
  z-index:1000;
}
.lang-menu.is-open{display:block}

.lang-item{
  width:100%;
  text-align:left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}
[dir="rtl"] .lang-item{text-align:right}
.lang-item:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
.lang-item:active{transform: translateY(1px)}

/* ===== Hero ===== */
.hero{padding:58px 0 28px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items: stretch;
}
.pill{
  display:inline-flex;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size:13px;
  margin:0 0 16px;
}
h1{
  margin:0 0 12px;
  font-size: clamp(34px, 4.5vw, 54px);
  letter-spacing:.2px;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
  max-width: 56ch;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}
.hero-trust{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
.trust-item{
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.03);
}
.trust-title{font-weight:900;font-size:13px;margin-bottom:6px}
.trust-text{color:var(--muted);font-size:13px;line-height:1.4}

/* ===== Cards / Panels ===== */
.card, .panel{
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-radius:18px;
  padding:18px;
}
.hero-card .card{box-shadow: var(--shadow)}

/* ===== Hero balance (Option A): make right card full-height and structured ===== */
.hero-card{
  height: 100%;
  display: flex;
}
.hero-card .card{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps CTA area anchored and fills column */
  padding: 24px;
}
h2{margin:0 0 10px;font-size:22px}
h3{margin:0 0 10px;font-size:16px;letter-spacing:.2px}
.muted{color:var(--muted)}
.small{font-size:13px}
.tiny{font-size:12px}
.divider{height:1px;background:var(--line);margin:14px 0}

/* Mini list */
.mini-list{margin-top:14px}
.mini-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.mini-row:last-child{border-bottom:none}
.mini-k{color:var(--muted2);font-size:13px}
.mini-v{font-weight:800;font-size:13px}

/* ===== Sections ===== */
.section{padding:52px 0}
.section-alt{
  background: rgba(255,255,255,.02);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.section-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom:18px;
  text-align:center;
}
.section-head p{margin:0; max-width:70ch}
.section-head h2{margin:0}

/* Grids */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}

/* Steps */
.steps{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:16px;
  padding:14px;
}
.step-num{
  width:34px;height:34px;
  border-radius:12px;
  background: rgba(var(--accent-rgb), .18);
  border:1px solid rgba(var(--accent-rgb), .34);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color: var(--accent2);
}
.step-title{font-weight:900;margin-bottom:6px}

.cta-row{margin-top:18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}

/* GCC section */
.two-col{display:grid;grid-template-columns: 1fr 1fr;gap:14px}
.bullets{margin:10px 0 0;padding-left:18px;color:var(--muted);line-height:1.7}
.flags{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px}
.flag{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:999px;
  padding:8px 10px;
  font-size:13px;
  color: var(--muted);
}

/* Contact */
.contact{display:grid;grid-template-columns: 1.15fr .85fr;gap:14px;align-items:start}
.contact-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 10px}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  background: rgba(7,20,28,.62);
  padding:22px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:center;
}
.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer-links a{
  text-decoration:none;
  color:var(--muted);
  font-size:13px;
}
.footer-links a:hover{color:var(--text)}
.footer-note{
  align-items: center;
  grid-column: 1 / -1;
  font-size: .85rem;
  color: rgba(255,255,255,.62);
}
.footer-note a{
  color: inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,0.18);
}
.footer-note a:hover{opacity:.92}
.footer-divider{margin:0 6px; opacity:.55}

/* Center the footer note across the full footer grid */
.footer .footer-grid .footer-note{
  grid-column: 1 / -1;     /* keep spanning full width */
  justify-self: center;     /* center the grid item within the grid */
  width: 100%;
  text-align: center;       /* center the text inside */
  margin: 0 auto;           /* kills any default offset */
}


/* ===== RTL hardening ===== */
[dir="rtl"] .brand-name,
[dir="rtl"] .brand-sub{letter-spacing:0}
[dir="rtl"] .bullets{padding-left:0;padding-right:18px}
[dir="rtl"] body{
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ===== Embedded form shell ===== */
.form-shell{
  max-width:900px;
  margin:0 auto;
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  background: transparent;
}
.form-shell iframe{
  width:100%;
  min-height:1200px;
  border:0;
  border-radius:18px;
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 980px){
  .nav-links{display:none}
  .nav{flex-wrap:wrap}
  .brand{flex: 1 1 100%}
  .nav-cta{width:100%; flex-wrap:wrap; justify-content:flex-start}

  .hero-grid{grid-template-columns:1fr}
  .hero-trust{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-links{justify-content:flex-start}

  /* Mobile brand behavior:
     - show IMAGE
     - hide TEXT until scrolled (CSS driven by .header.is-scrolled) */
  .brand-logo-mobile{
    height:44px;
    transition: opacity .18s ease, transform .18s ease;
  }
  .brand-text{
    opacity:0;
    transform: translateY(6px);
    pointer-events:none;
    transition: opacity .18s ease, transform .18s ease;
  }

  .header.is-scrolled .brand-logo-mobile{
    opacity:0;
    transform: translateY(-6px) scale(.98);
    pointer-events:none;
  }
  .header.is-scrolled .brand-text{
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }
}

/* Extra failsafe: some browsers keep a wide layout viewport; detect by coarse pointer */
@media (max-width: 1400px) and (pointer: coarse){
  .hero-grid, .grid-3, .steps, .two-col, .contact, .footer-grid{grid-template-columns:1fr !important}
  .hero-trust{grid-template-columns:1fr !important}
  .nav-links{display:none !important}
}

/* ===== Mobile: center header contents ===== */
@media (max-width: 980px){
  .header .nav{
    justify-content: center;     /* center horizontally */
    text-align: center;
  }

  .header .brand{
    justify-content: center;
  }

  .header .nav-cta{
    width: 100%;
    justify-content: center;     /* center buttons */
  }
}

