/* ─── FCME Design Tokens v3 — Light-First, Premium Agency ─────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* ── Light surface system ─────────────────────────────────── */
  --bg:          #FFFFFF;
  --bg-2:        #F4F6FB;
  --bg-3:        #ECEEF5;

  /* ── Dark surface system (hero, footer, CTA) ─────────────── */
  --dark:        #080E1C;
  --dark-2:      #0F1828;
  --dark-3:      #172236;

  /* ── Text on light ────────────────────────────────────────── */
  --text-1:      #0A0F1E;
  --text-2:      #3D4A63;
  --text-3:      #8492A6;

  /* ── Text on dark ────────────────────────────────────────── */
  --text-dark-1: #EDF2F7;
  --text-dark-2: #8A9BB8;
  --text-dark-3: #4A5E78;

  /* ── Brand ────────────────────────────────────────────────── */
  --orange:      #F5A623;
  --orange-dark: #E8941A;
  --orange-light:#FFF3DC;
  --blue:        #3B5BDB;
  --blue-light:  #EEF2FF;

  /* FCME full logo gradient */
  --fcme-gradient: linear-gradient(90deg, #5B6ED4 0%, #9B6BB1 38%, #E85D3B 72%, #F5A623 100%);

  /* ── Borders ──────────────────────────────────────────────── */
  --line:        #E2E8F0;
  --line-2:      #CBD5E1;
  --line-dark:   rgba(255,255,255,0.08);
  --line-dark-2: rgba(255,255,255,0.14);

  /* ── Typography ───────────────────────────────────────────── */
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* ── Spacing ──────────────────────────────────────────────── */
  --section-py:    100px;
  --section-py-sm: 60px;
  --container-max: 1280px;
  --container-pad: 48px;

  /* ── Radii ────────────────────────────────────────────────── */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* ── Elevation (for light bg) ──────────────────────────────── */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.04);

  /* ── Motion ───────────────────────────────────────────────── */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --transition:  0.25s var(--ease);
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

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

/* ─── Typography ────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { line-height: 1.75; color: var(--text-2); }

/* Headings on dark surfaces */
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4,
.site-footer h3, .site-footer h4 {
  color: var(--text-dark-1);
}

/* ─── Container ─────────────────────────────────────────────────────────────── */

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

/* ─── Sections ──────────────────────────────────────────────────────────────── */

.section {
  padding-block: var(--section-py);
  position: relative;
}

.section--alt   { background: var(--bg-2); }
.section--gray  { background: var(--bg-2); }
.section--dark  { background: var(--dark); }

/* ─── Section Header ────────────────────────────────────────────────────────── */

.section-header        { margin-bottom: 56px; }
.section-header--center { text-align: center; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Section label on dark */
.dark-section .section-label { color: var(--orange); }
.dark-section .section-label::before { background: var(--orange); }

.section-header--center .section-label { justify-content: center; }

.section-title { color: var(--text-1); }
.dark-section .section-title { color: var(--text-dark-1); }

.section-subtitle {
  font-size: 1.05rem;
  max-width: 580px;
  color: var(--text-2);
  margin-top: 12px;
  line-height: 1.75;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
  text-align: center;
}
.dark-section .section-subtitle { color: var(--text-dark-2); }

.gradient-line {
  display: none; /* replaced by section-label line */
}

/* ─── Grid Utilities ─────────────────────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --section-py: var(--section-py-sm);
    --container-pad: 20px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Utilities ─────────────────────────────────────────────────────────────── */

.hidden { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-gradient {
  background: var(--fcme-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--orange); }

::selection { background: var(--orange); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── Skip Link ─────────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute; top: -40px; left: 6px; z-index: 9999;
  padding: 8px 16px; background: var(--blue); color: #fff;
  font-weight: 600; border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 6px; }

/* ─── Site Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding-block: 20px;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  background: transparent;
}

/* Transparent over dark hero */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
}

/* Scrolled state — white frosted glass */
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding-block: 14px;
}

/* Nav link colors change on scroll */
.site-header:not(.scrolled) .primary-nav a { color: rgba(255,255,255,0.75); }
.site-header:not(.scrolled) .primary-nav a:hover,
.site-header:not(.scrolled) .primary-nav .current-menu-item > a { color: #fff; }

.site-header.scrolled .primary-nav a { color: var(--text-2); }
.site-header.scrolled .primary-nav a:hover,
.site-header.scrolled .primary-nav .current-menu-item > a { color: var(--text-1); }

.site-logo { flex-shrink: 0; }
.site-logo img { height: 36px; width: auto; }

/* Primary Nav */
.primary-nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.primary-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.site-header.scrolled .primary-nav a:hover { background: var(--bg-2); }

.primary-nav .current-menu-item > a {
  position: relative;
}

.site-header.scrolled .primary-nav .current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Mobile nav close button — hidden on desktop, shown on mobile via media query */
.nav-close { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1001;
}

.site-header.scrolled .nav-toggle { border-color: var(--line-2); }

.nav-toggle span {
  display: block; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.scrolled .nav-toggle span { background: var(--text-1); }

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .primary-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 88vw);
    height: 100dvh;
    background: #fff;
    border-left: 1px solid var(--line);
    padding: 88px 28px 32px;
    overflow-y: auto;
    transition: right var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.open { right: 0; }
  .nav-close {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 20px; right: 20px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    z-index: 1002;
  }
  .nav-close:hover { background: var(--bg); color: var(--text-1); }
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .primary-nav a {
    font-size: 1rem;
    padding: 14px 4px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--text-2) !important;
  }
  .primary-nav a:hover { color: var(--text-1) !important; background: none !important; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  /* Hide hamburger when nav drawer is open — close button inside nav handles it */
  body.nav-open .nav-toggle { visibility: hidden; }
}

/* ─── Site Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--dark);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .site-logo img { height: 32px; margin-bottom: 20px; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 260px;
  color: var(--text-dark-3);
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-3);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dark-3);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-dark-1); }

.footer-contact .footer-heading { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-contact p { font-size: 0.875rem; margin-bottom: 8px; color: var(--text-dark-3); }
.footer-contact a { color: var(--orange); transition: opacity var(--transition); }
.footer-contact a:hover { opacity: 0.8; }
.footer-contact .btn--primary { color: #fff; }
.footer-contact .btn--primary:hover { color: #fff; opacity: 1; }

.footer-tech-partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-dark-3);
  letter-spacing: 0.02em;
}
.footer-tech-partner a { color: var(--orange); font-weight: 600; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
  font-size: 0.8rem;
  color: var(--text-dark-3);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ─── WhatsApp FAB ──────────────────────────────────────────────────────────── */

.whatsapp-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  width: 54px; height: 54px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-fab:hover {
  transform: scale(1.10);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

.whatsapp-fab svg { width: 26px; height: 26px; }

/* ─── Hero Section (dark) ───────────────────────────────────────────────────── */

.hero {
  min-height: 100dvh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 80px;
}

/* Background image */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/dubai-hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.30;
}

/* Dark gradient overlay on top of image */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,14,28,0.96) 0%, rgba(8,14,28,0.70) 60%, rgba(8,14,28,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  padding: 6px 14px 6px 10px;
  background: rgba(245,166,35,0.10);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 100px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  background: var(--fcme-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dark-2);
  margin-bottom: 44px;
  max-width: 520px;
  line-height: 1.75;
}

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

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dark-3);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce-scroll 2.5s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Stats Bar ─────────────────────────────────────────────────────────────── */

.stats-bar {
  padding-block: 0;
  background: var(--dark-2);
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: left;
  padding: 40px 36px;
  border-right: 1px solid var(--line-dark);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.stat-number .stat-suffix {
  font-size: 0.6em;
  font-weight: 700;
  color: var(--orange);
  vertical-align: super;
  letter-spacing: 0;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dark-3);
}

@media (max-width: 768px) {
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--line-dark); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--line-dark); border-right: none; }
  .stat-item { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .stat-item { padding: 22px 18px; }
  .stat-number { font-size: 2.2rem; }
}

/* ─── Marquee ───────────────────────────────────────────────────────────────── */

.marquee-wrap {
  overflow: hidden;
  padding-block: 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee-scroll 35s linear infinite;
  width: max-content;
}

.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  opacity: 1;
  filter: grayscale(0);
  transition: opacity var(--transition), filter var(--transition);
  flex-shrink: 0;
}

.marquee-item:hover { opacity: 1; filter: grayscale(0); }
.marquee-item img { height: 26px; width: auto; max-width: 100px; object-fit: contain; }

.marquee-sep {
  display: flex;
  align-items: center;
  opacity: 0.2;
  flex-shrink: 0;
}

.marquee-sep span {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-3);
}

/* ─── Page Hero (inner pages — dark) ────────────────────────────────────────── */

.page-hero {
  background: var(--dark);
  padding-top: 148px;
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal line texture */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, var(--dark) 25%, transparent 25%),
    linear-gradient(225deg, var(--dark) 25%, transparent 25%),
    linear-gradient(45deg, var(--dark-2) 25%, transparent 25%),
    linear-gradient(315deg, var(--dark-2) 25%, transparent 25%);
  background-size: 60px 60px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Brand watermark */
.page-hero::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 153px;
  background-image: url('../images/logo-transparent.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 900px;
  margin-top: 14px;
}

.page-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-dark-2);
  max-width: 600px;
  margin-top: 16px;
  line-height: 1.75;
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark-3);
}

.breadcrumb a { color: var(--text-dark-3); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--text-dark-3); font-size: 0.6rem; opacity: 0.5; }
