@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  --black:      #0d0d0d;
  --black2:     #141414;
  --black3:     #1c1c1c;
  --grey-dark:  #2a2a2a;
  --grey-mid:   #3d3d3d;
  --grey:       #6b7280;
  --grey-light: #9ca3af;
  --border:     #e0e0e0;
  --border-dark:#2e2e2e;
  --light:      #f5f5f5;
  --lighter:    #fafafa;
  --teal:       #00b8a0;
  --teal-dark:  #009e8a;
  --teal-dim:   rgba(0,184,160,0.1);
  --white:      #ffffff;
  --body:       #374151;
  --ink:        #111111;
  --muted:      #6b7280;
  --subtle:     #9ca3af;
  --sans:       'Inter', -apple-system, sans-serif;
  --sans-ar:    'Noto Sans Arabic', sans-serif;
  --nav-h:      68px;
  --max:        1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: #fff; color: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ARABIC */
body.ar { font-family: var(--sans-ar); direction: rtl; text-align: right; }
body.ar .eyebrow::before { display: none; }
body.ar .eyebrow::after { content: ''; display: block; width: 24px; height: 1.5px; background: var(--teal); flex-shrink: 0; }
body.ar .btn svg, body.ar .btn-text svg { transform: scaleX(-1); }
body.ar .btn:hover svg { transform: scaleX(-1) translateX(-3px); }

/* LAYOUT */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }

/* EYEBROW */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; color: var(--teal);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 24px; height: 1.5px; background: var(--teal); flex-shrink: 0; }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
#nav.top { background: transparent; border-color: transparent; }
#nav.top .nav-links a { color: rgba(255,255,255,.75); }
#nav.top .nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
#nav.top .hamburger span { background: #fff; }
#nav.top .lang-toggle { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
#nav.top .lang-btn { color: rgba(255,255,255,.65); }
.nav-inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.nav-logo img { height: 36px; width: auto; }
#nav.top .nav-logo img { filter: invert(1) brightness(1.5); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--grey); padding: 7px 14px; border-radius: 6px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--light); }
.nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; align-items: center; background: var(--light); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.lang-btn { font-size: 12px; font-weight: 600; color: var(--grey); padding: 6px 14px; transition: all .2s; cursor: pointer; white-space: nowrap; }
.lang-btn.active { background: var(--black); color: #fff; }
.lang-btn:not(.active):hover { color: var(--ink); }
.nav-cta { font-size: 0.85rem; font-weight: 600; color: #fff; background: var(--black); padding: 9px 20px; border-radius: 8px; transition: opacity .2s; white-space: nowrap; }
.nav-cta:hover { opacity: .75; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* MOBILE MENU */
.mobile-menu {
  display: flex; /* always flex, use visibility+opacity to animate */
  position: fixed; inset: 0; background: #fff; z-index: 999;
  flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 60px 40px; gap: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: all; }
.mobile-menu a { font-size: clamp(1.3rem, 5vw, 1.8rem); font-weight: 300; color: var(--grey); padding: 10px 0; transition: color .2s; min-height: 44px; display: flex; align-items: center; }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu .mob-cta { font-size: 0.9rem !important; font-weight: 600 !important; background: var(--black); color: #fff !important; padding: 14px 28px !important; border-radius: 8px; margin-top: 20px; min-height: 48px !important; display: flex !important; align-items: center !important; }
/* Close button inside mobile menu */
.mobile-menu-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--light); border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer; transition: background .2s;
}
.mobile-menu-close:hover { background: var(--border); }
.mobile-menu-close span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  border-radius: 2px; position: absolute;
}
.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child  { transform: rotate(-45deg); }
/* Sub-link (Partner Portal indent) */
.mobile-menu .mob-sub { font-size: clamp(1rem, 4vw, 1.2rem) !important; padding-left: 18px !important; color: var(--grey-light) !important; border-left: 2px solid var(--border); margin-left: 4px; }
.mobile-lang { display: flex; gap: 8px; margin-top: 28px; }
.mob-lang-btn { font-size: 13px; font-weight: 600; color: var(--grey); padding: 8px 20px; border: 1px solid var(--border); border-radius: 6px; transition: all .2s; min-height: 44px; }
.mob-lang-btn.active { background: var(--black); color: #fff; border-color: var(--black); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; padding: 11px 22px; border-radius: 8px; transition: all .2s; cursor: pointer; white-space: nowrap; }
.btn svg { width: 15px; height: 15px; transition: transform .2s; flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { opacity: .8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); background: var(--light); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* PAGE BANNER */
.page-banner { padding: calc(var(--nav-h) + 72px) 0 72px; background: var(--black); position: relative; overflow: hidden; }
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(0,184,160,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(255,255,255,.03) 0%, transparent 60%);
  pointer-events: none;
}
/* Grid pattern overlay */
.page-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner .eyebrow { margin-bottom: 20px; }
.page-banner h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 16px; letter-spacing: -0.035em; }
.page-banner h1 em { font-style: normal; color: var(--teal); }
.page-banner p { font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,.7); max-width: 520px; }

/* TAGS */
.tag { display: inline-block; font-size: 0.75rem; font-weight: 500; color: var(--teal); background: rgba(0,184,160,.08); border: 1px solid rgba(0,184,160,.2); padding: 4px 10px; border-radius: 4px; }

/* STAT ROW STRIP */
.stat-strip { background: var(--black); }
.stat-strip-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 40px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.07); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.2rem; font-weight: 700; color: #fff; letter-spacing: -0.04em; }
.stat-num span { color: #fff; }
.stat-lbl { font-size: 0.75rem; color: rgba(255,255,255,.58); margin-top: 4px; }

/* SECTION DIVIDERS — image-like banners using CSS gradients */
.visual-break {
  position: relative; overflow: hidden;
  height: 320px; display: flex; align-items: center; justify-content: center;
}
.visual-break-bg {
  position: absolute; inset: 0;
  background: var(--black);
}
.visual-break-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,184,160,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,184,160,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.visual-break-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,184,160,.12) 0%, transparent 70%);
}
.visual-break-content { position: relative; z-index: 1; text-align: center; }

/* FOOTER */
footer { background: var(--black); color: rgba(255,255,255,.5); display: block; }
.footer-grid { max-width: 1400px; margin: 0 auto; padding: 64px 40px 48px; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 64px; }
.footer-brand img { height: 32px; width: auto; filter: invert(1) brightness(.7); margin-bottom: 16px; }
.footer-brand p { font-size: 0.8rem; line-height: 1.75; color: rgba(255,255,255,.55); max-width: 220px; }
.footer-col h5 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,.62); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col span { font-size: 0.85rem; color: rgba(255,255,255,.5); }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding: 20px 40px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-bottom span { font-size: 0.75rem; color: rgba(255,255,255,.42); }
.qatar-mark { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0,184,160,.5); }
.qatar-pip { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: .5; }

/* REVEAL */
/* Visible by default — JS opts into animation via body.js-ready */
.fade { opacity: 1; transform: none; }
body.js-ready .fade { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
body.js-ready .fade.d1 { transition-delay: .1s; }
body.js-ready .fade.d2 { transition-delay: .2s; }
body.js-ready .fade.d3 { transition-delay: .3s; }
body.js-ready .fade.d4 { transition-delay: .4s; }
body.js-ready .fade.in { opacity: 1; transform: none; }


/* PRODUCTS DROPDOWN */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-has-dropdown > a::after {
  content: ""; border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px); display: inline-block; transition: transform .2s;
}
.nav-has-dropdown.open > a::after { transform: translateY(-1px) rotate(180deg); }

.nav-dropdown {
  display: none; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 10px; /* bridge the gap so mouse travel doesn't close it */
  z-index: 200; min-width: 210px;
}
.nav-dropdown-inner {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10); padding: 6px;
}
.nav-has-dropdown.open .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown { display: block; }

.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--grey);
  white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover { background: var(--light); color: var(--ink); }
.nav-dropdown a.dd-active { color: var(--ink); font-weight: 600; }
.nav-dropdown-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* Dark nav (transparent top) dropdown */
#nav.top .nav-dropdown-inner { background: #1a1a1a; border-color: rgba(255,255,255,.12); }
#nav.top .nav-dropdown a { color: rgba(255,255,255,.6); }
#nav.top .nav-dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* RESPONSIVE */
@media(max-width: 960px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links, .nav-cta, .lang-toggle { display: none; }
  .hamburger { display: flex; }
  .section { padding: 56px 0; }
  .page-banner { padding: calc(var(--nav-h) + 48px) 0 48px; }
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2):not(:nth-child(odd) ~ *) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 32px; padding: 36px 20px 28px; }
  .footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 4px; }
  .footer-brand img { margin-bottom: 0; flex-shrink: 0; }
  .footer-brand p { max-width: 100%; font-size: 0.75rem; }
  .footer-bottom { padding: 16px 20px; }
  /* Buttons full-width stacking on small screens */
  .btn { min-height: 44px; }
}
@media(max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section { padding: 32px 0; }
  /* Footer — brand only, no separator, no bottom bar */
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding: 24px 16px; }
  .footer-brand { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-col ul { gap: 8px; }
  .footer-nav-col { display: none; }
  /* Hide all columns — brand only on mobile */
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3),
  .footer-grid > div:nth-child(4) { display: none; }
  .footer-bottom { display: none; }
  .stat-item:last-child { border-bottom: none; }
  /* Hide decorative/fluff sections on mobile */
  .ticker-wrap { display: none; }
  .image-band { display: none; }
  .doha-section { display: none; }
  .process-section { display: none; }
  .svc-img-panel { display: none; }
  /* Tighter hero on mobile — always clear the fixed nav */
  .hero { min-height: auto; padding: calc(var(--nav-h) + 24px) 0 40px; }
  /* Reduce page banner padding — always clear the fixed nav */
  .page-banner { padding: calc(var(--nav-h) + 24px) 0 36px; }
  .page-banner h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  /* Hide about pillars section on mobile - mission section covers it */
  .pillars-grid { display: none !important; }
  /* Tighter stat strip */
  .stat-strip-inner { gap: 0; }
}

/* SKIP LINK (accessibility) */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--teal); color: #fff;
  font-size: 0.875rem; font-weight: 600; padding: 10px 18px;
  border-radius: 0 0 8px 8px; text-decoration: none;
  transition: top .2s; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── Sitewide geometry background ── */
#bg-geo { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
