/* =========================================================================
   Layal Consulting — Design System
   Institutional / premium-minimalist corporate finance consultancy
   Brand: Neon Blue #2323FF · Typeface: Manrope
   ========================================================================= */

/* ----- 1. Tokens ------------------------------------------------------- */
:root {
  /* Brand & neutrals */
  --brand:        #2323FF;   /* Neon Blue — primary */
  --brand-bright: #0303FF;   /* hover / pressed */
  --brand-deep:   #0000C1;
  --navy:         #000040;   /* deepest ground */
  --navy-2:       #0A0A52;   /* dark section base */
  --navy-3:       #111185;   /* cosmic blue */
  --tint:         #BABAFF;   /* light tint */
  --tint-soft:    #ECECFF;   /* very light wash */
  --tint-wash:    #F4F4FF;

  --ink:          #0B0C10;   /* primary text */
  --ink-soft:     #3A3D45;   /* secondary text */
  --grey:         #6B6E72;   /* supporting text */
  --grey-soft:    #9A9DA2;
  --line:         rgba(11,12,16,.10);
  --line-soft:    rgba(11,12,16,.06);

  --paper:        #FFFFFF;
  --paper-2:      #F6F7FB;   /* off-white */
  --paper-3:      #EEF0F6;

  --red:          #E30000;   /* sparing accent only */

  /* On-dark */
  --on-dark:        #FFFFFF;
  --on-dark-soft:   rgba(255,255,255,.66);
  --on-dark-faint:  rgba(255,255,255,.40);
  --line-dark:      rgba(255,255,255,.12);
  --line-dark-soft: rgba(255,255,255,.07);

  /* Typography */
  --font: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale (8px rhythm) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section-y: clamp(64px, 9vw, 120px);

  /* Radius */
  --r-sm: 4px; --r: 8px; --r-lg: 14px; --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11,12,16,.05);
  --shadow:    0 14px 38px -16px rgba(11,12,16,.16);
  --shadow-lg: 0 36px 70px -28px rgba(11,12,16,.26);
  --shadow-brand: 0 16px 38px -14px rgba(35,35,255,.46);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-in: cubic-bezier(.55,.06,.68,.19);
  --dur: 240ms;

  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ----- 2. Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

/* ----- 3. Layout helpers ---------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--off  { background: var(--paper-2); }
.section--tint { background: var(--tint-wash); }
.section--dark {
  background: var(--navy);
  color: var(--on-dark);
  background-image:
    radial-gradient(1100px 480px at 78% -10%, rgba(35,35,255,.34), transparent 60%),
    radial-gradient(800px 420px at 6% 108%, rgba(17,17,133,.5), transparent 55%);
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1200;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: var(--r);
  font-weight: 600; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ----- 4. Typography helpers ------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brand); opacity: .55; }
.section--dark .eyebrow { color: var(--tint); }
.section--dark .eyebrow::before { background: var(--tint); }

.section-header { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-headline {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.025em; color: var(--ink);
}
.section--dark .section-headline { color: var(--on-dark); }
.section-sub {
  margin-top: 22px; font-size: 1.12rem; line-height: 1.7; color: var(--ink-soft); max-width: 60ch;
}
.section--dark .section-sub { color: var(--on-dark-soft); }
.section-header--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; max-width: none; }

/* ----- 5. Buttons ----------------------------------------------------- */
.btn-primary, .btn-outline, .btn-outline-dark, .btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem; letter-spacing: .005em;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-bright); transform: translateY(-2px); }
.btn-outline { color: #fff; border: 1px solid rgba(255,255,255,.34); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-outline-dark { color: var(--ink); border: 1px solid var(--line); }
.btn-outline-dark:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-arrow svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ----- 6. Navigation -------------------------------------------------- */
#navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; white-space: nowrap; }
.nav-logo .square { color: var(--brand); font-size: .7em; transform: translateY(-1px); }
/* Brand SVG logo — two variants, switched by nav state */
.nav-logo .logo-img { height: 26px; width: auto; display: block; }
.nav-logo .logo-img-dark { display: none; }
.nav-dark:not(.scrolled) .nav-logo .logo-img-light { display: none; }
.nav-dark:not(.scrolled) .nav-logo .logo-img-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 9px 13px; font-size: .95rem; font-weight: 500; border-radius: var(--r-sm);
  color: inherit; opacity: .82; white-space: nowrap; transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.nav-cta {
  padding: 11px 20px; border-radius: var(--r-pill); background: var(--brand); color: #fff !important;
  font-weight: 600; font-size: .93rem; opacity: 1 !important; white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-cta:hover { background: var(--brand-bright); transform: translateY(-1px); }

/* dark variant — transparent over hero, white text */
.nav-dark { color: #fff; background: transparent; }
.nav-dark .nav-cta { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }
.nav-dark .nav-cta:hover { background: #fff; color: var(--navy) !important; }
/* solid variant — white from load (inner pages) + dark scrolled state */
.nav-solid, #navbar.scrolled {
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--ink); border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(11,12,16,.02);
}
.nav-solid .nav-cta, #navbar.scrolled .nav-cta { background: var(--brand); border: 0; color: #fff !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.hamburger span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 999;
  background: var(--paper); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 12px var(--gutter) 24px;
  transform: translateY(-110%); transition: transform var(--dur) var(--ease); box-shadow: var(--shadow);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { padding: 14px 4px; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.mobile-menu a.active { color: var(--brand); font-weight: 700; }
.mobile-menu .mobile-cta { margin-top: 18px; background: var(--brand); color: #fff; text-align: center; border-radius: var(--r-pill); border: 0; font-weight: 600; }

/* ----- 7. Hero -------------------------------------------------------- */
#hero {
  position: relative; min-height: clamp(620px, 92vh, 880px);
  display: flex; align-items: center; padding-top: var(--nav-h);
  background: var(--navy); color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid { display: none; }
.hero-glow {
  position: absolute; width: 800px; height: 800px; right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(35,35,255,.55), transparent 62%); filter: blur(20px);
  will-change: transform; animation: heroOrb1 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; width: 620px; height: 620px; left: -200px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(17,17,133,.6), transparent 60%);
  will-change: transform; animation: heroOrb2 26s ease-in-out infinite alternate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
@keyframes heroOrb1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px,46px) scale(1.16); } }
@keyframes heroOrb2 { from { transform: translate(0,0) scale(1); } to { transform: translate(90px,-54px) scale(1.22); } }
.hero-accent-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--brand) 45%, var(--tint) 70%, transparent); opacity: .8; }
.hero-content { position: relative; z-index: 1; max-width: 940px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tint);
  padding: 8px 16px; border: 1px solid rgba(186,186,255,.3); border-radius: var(--r-pill); margin-bottom: 30px;
}
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px 2px rgba(35,35,255,.9); }
.hero-headline { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.hero-subhead { margin-top: 28px; font-size: clamp(1.06rem, 1.6vw, 1.3rem); line-height: 1.62; color: var(--on-dark-soft); max-width: 64ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ----- 8. Positioning quote ------------------------------------------ */
.positioning-quote {
  font-size: clamp(1.2rem, 2.1vw, 1.8rem); font-weight: 500; line-height: 1.5; letter-spacing: -.012em;
  color: var(--ink); max-width: 860px; margin-inline: auto; text-align: center;
}
.positioning-quote em { font-style: normal; color: var(--brand); }
.lead { font-size: 1.22rem; line-height: 1.7; color: var(--ink-soft); max-width: 70ch; }
.lead + .lead { margin-top: 20px; }

/* ----- 9. Stats ------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { padding: 8px 28px; border-left: 1px solid var(--line-dark); }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-number { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat-number.is-text { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.stat-label { margin-top: 16px; font-size: .95rem; line-height: 1.5; color: var(--on-dark-soft); }

/* ----- 10. Service snapshot cards ------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 34px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  overflow: hidden;
}
.service-card.is-link:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--brand);
  transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease);
}
.service-card.is-link:hover::after { transform: scaleY(1); }
.service-number { font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r); background: var(--tint-soft); color: var(--brand); margin-bottom: 6px; }
.service-icon svg { width: 24px; height: 24px; }
.service-name { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.service-desc { font-size: 1.01rem; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: .95rem; color: var(--brand); }
.service-link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.service-card.is-link:hover .service-link svg { transform: translateX(4px); }

/* ----- 11. Why grid --------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-item { padding-top: 28px; border-top: 2px solid var(--ink); }
.why-accent { font-size: 1rem; font-weight: 700; color: var(--brand); letter-spacing: .12em; margin-bottom: 18px; }
.why-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; }
.why-body { color: var(--ink-soft); line-height: 1.65; }
.section--dark .why-item { border-top-color: var(--tint); }
.section--dark .why-body { color: var(--on-dark-soft); }

/* ----- 12. Feature list (about) -------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature-item { background: var(--paper); padding: 36px 34px; display: flex; flex-direction: column; gap: 12px; transition: background var(--dur) var(--ease); }
.feature-item:hover { background: var(--tint-wash); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r); background: var(--brand); color: #fff; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-title { font-size: 1.22rem; font-weight: 700; letter-spacing: -.012em; }
.feature-body { color: var(--ink-soft); line-height: 1.6; }

/* ----- 13. Vision / Mission cards ------------------------------------ */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.vm-card { position: relative; padding: 44px 40px; border-radius: var(--r-lg); overflow: hidden; }
.vm-card--vision { background: var(--navy); color: #fff; background-image: radial-gradient(600px 320px at 90% -20%, rgba(35,35,255,.42), transparent 60%); }
.vm-card--mission { background: var(--paper-2); border: 1px solid var(--line); }
.vm-tag { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; display: block; }
.vm-card--vision .vm-tag { color: var(--tint); }
.vm-card--mission .vm-tag { color: var(--brand); }
.vm-text { font-size: 1.3rem; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.vm-card--mission .vm-text { color: var(--ink); }

/* ----- 14. Generic page hero (inner pages) --------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 104px));
  padding-bottom: clamp(48px, 7vw, 80px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; max-width: 16ch; }
.page-hero p { margin-top: 22px; font-size: 1.18rem; line-height: 1.65; color: var(--ink-soft); max-width: 64ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--grey); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* Dark hero variants — gradient (most inner pages) + photo (About) */
.page-hero--gradient, .page-hero--image { background-color: var(--navy); border-bottom-color: transparent; color: #fff; }
.page-hero--gradient {
  background-image:
    radial-gradient(900px 440px at 82% -25%, rgba(35,35,255,.45), transparent 60%),
    radial-gradient(760px 420px at -5% 120%, rgba(17,17,133,.62), transparent 55%);
}
.page-hero--gradient::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(120% 90% at 75% 18%, #000 28%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 75% 18%, #000 28%, transparent 80%);
}
/* Photographic hero: place a 4K image at assets/img/doha-skyline.jpg.
   If absent, the gradient overlay degrades gracefully to a dark hero. */
.page-hero--image {
  min-height: clamp(420px, 56vh, 600px);
  display: flex; align-items: flex-end;
  background-image:
    linear-gradient(180deg, rgba(2,3,18,.45) 0%, rgba(2,3,18,.82) 100%),
    radial-gradient(820px 380px at 82% -10%, rgba(35,35,255,.30), transparent 60%),
    url("../img/doha-skyline.webp");
  background-size: cover, cover, cover;
  background-position: center, center, center 35%;
  background-repeat: no-repeat;
}
/* Contact photo hero (office towers) — branded navy/blue overlay; glow from the left to differ from About */
.page-hero--image-contact {
  background-image:
    linear-gradient(180deg, rgba(3,4,26,.58) 0%, rgba(3,4,26,.88) 100%),
    radial-gradient(820px 380px at 16% -10%, rgba(35,35,255,.42), transparent 60%),
    url("../img/contact-towers.jpg");
  background-position: center, center, center 32%;
}

/* Services photo hero (glass towers) — branded navy/blue overlay; glow from the right */
.page-hero--image-services {
  background-image:
    linear-gradient(180deg, rgba(3,4,26,.55) 0%, rgba(3,4,26,.86) 100%),
    radial-gradient(820px 380px at 84% -10%, rgba(35,35,255,.42), transparent 60%),
    url("../img/services.jpg");
  background-position: center, center, center 30%;
}

/* Industries photo hero — image is already brand-toned, so NO dark overlay.
   Text sits over the darker top of the image; text-shadow keeps it legible. */
.page-hero--image-industries {
  align-items: flex-start;
  background-image:
    linear-gradient(180deg, rgba(2,3,20,.82) 0%, rgba(2,3,20,.42) 48%, rgba(2,3,20,.66) 100%),
    radial-gradient(820px 360px at 82% -10%, rgba(35,35,255,.30), transparent 60%),
    url("../img/industries.jpg");
  background-position: center, center, center top;
}
.page-hero--image-industries .breadcrumb,
.page-hero--image-industries .eyebrow,
.page-hero--image-industries h1,
.page-hero--image-industries p { text-shadow: 0 2px 16px rgba(0,0,18,.62); }

/* Who We Serve globe hero — recoloured to brand blue via background-blend-mode.
   The solid #2323FF layer (blend: color) forces the photo's hue to the brand,
   regardless of the source image's blue. Globe sits right; text over dark left. */
.page-hero--image-globe {
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(0,0,28,.94) 0%, rgba(0,0,28,.55) 44%, rgba(0,0,28,.12) 72%, rgba(0,0,28,.34) 100%),
    linear-gradient(#2323FF, #2323FF),
    url("../img/who-we-serve-globe.jpg");
  background-blend-mode: normal, color, normal;
  background-position: center, center, right center;
}

/* Investor onboarding embed (iframe) */
.kyc-embed { background: var(--navy); padding: 0; }
.kyc-frame { width: 100%; border: 0; display: block; height: calc(100vh - var(--nav-h)); min-height: 860px; background: var(--navy); }
/* Light text for dark heroes */
.page-hero--gradient .eyebrow, .page-hero--image .eyebrow { color: var(--tint); }
.page-hero--gradient .eyebrow::before, .page-hero--image .eyebrow::before { background: var(--tint); }
.page-hero--gradient h1, .page-hero--image h1 { color: #fff; }
.page-hero--gradient p, .page-hero--image p { color: var(--on-dark-soft); }
.page-hero--gradient .breadcrumb, .page-hero--image .breadcrumb { color: var(--on-dark-faint); }
.page-hero--gradient .breadcrumb a, .page-hero--image .breadcrumb a { color: var(--on-dark-soft); }
.page-hero--gradient .breadcrumb a:hover, .page-hero--image .breadcrumb a:hover { color: var(--tint); }
.page-hero--gradient .breadcrumb span, .page-hero--image .breadcrumb span { color: #fff; }

/* ----- 15. Accordion (services) -------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-h { margin: 0; font: inherit; }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 24px; padding: 30px 8px; text-align: left;
  transition: padding-left var(--dur) var(--ease);
}
.acc-head:hover { padding-left: 16px; }
.acc-num { font-size: .85rem; font-weight: 700; color: var(--brand); letter-spacing: .1em; min-width: 34px; }
.acc-title { flex: 1; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; }
.acc-lead-inline { display: block; font-size: .98rem; font-weight: 500; color: var(--grey); margin-top: 4px; letter-spacing: 0; }
.acc-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.acc-icon svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.acc-item.open .acc-icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.acc-item.open .acc-icon svg { transform: rotate(45deg); }
.acc-panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease); }
.acc-body { padding: 0 8px 38px 58px; max-width: 900px; }
.acc-body > p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; margin-bottom: 24px; }
.acc-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.acc-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 13px; color: var(--ink-soft); line-height: 1.55; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  background: var(--brand); -webkit-mask: var(--tick) center/contain no-repeat; mask: var(--tick) center/contain no-repeat;
}

/* ----- 16. Sector grid ------------------------------------------------ */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector-card {
  display: flex; flex-direction: column; gap: 16px; padding: 26px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.sector-ic { width: 46px; height: 46px; border-radius: var(--r); background: var(--tint-soft); color: var(--brand); display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.sector-card:hover .sector-ic { background: var(--brand); color: #fff; }
.sector-ic svg { width: 24px; height: 24px; }
.sector-name { font-size: 1.04rem; font-weight: 600; letter-spacing: -.01em; }

/* ----- 17. Client cards ---------------------------------------------- */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.client-card { padding: 34px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.client-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.client-ic { width: 50px; height: 50px; border-radius: var(--r); background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.client-ic svg { width: 26px; height: 26px; }
.client-name { font-size: 1.28rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; }
.client-desc { color: var(--ink-soft); line-height: 1.6; }

/* ----- 18. Approach steps -------------------------------------------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 36px; padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; color: var(--brand); line-height: 1; opacity: .9; }
.step-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.step-body { color: var(--ink-soft); line-height: 1.65; max-width: 60ch; }

/* ----- 19. World map (geographies) ----------------------------------- */
.map-wrap { position: relative; background: var(--navy); border-radius: var(--r-lg); overflow: hidden; padding: clamp(20px, 4vw, 44px); background-image: radial-gradient(700px 360px at 80% 0, rgba(35,35,255,.3), transparent 60%); }
.map-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.map-stage { position: relative; width: 100%; }
.map-base { width: 100%; height: auto; opacity: .9; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-marker { cursor: pointer; }
.map-marker .dot { fill: var(--tint); transition: fill .2s var(--ease); }
.map-marker.is-hq .dot { fill: var(--brand); }
.map-marker.active .dot, .map-marker:hover .dot { fill: #fff; }
.map-pulse { fill: var(--brand); transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%,100% { transform: scale(3.4); opacity: 0; } }
.geo-list { display: flex; flex-direction: column; gap: 4px; }
.geo-region {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r);
  color: #fff; cursor: pointer; transition: background var(--dur) var(--ease);
  border: 1px solid transparent; text-align: left; width: 100%;
}
.geo-region:hover, .geo-region.active { background: rgba(255,255,255,.07); border-color: var(--line-dark); }
.geo-region .geo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tint); flex-shrink: 0; }
.geo-region.is-hq .geo-dot { background: var(--brand); box-shadow: 0 0 10px 2px rgba(35,35,255,.8); }
.geo-region .geo-name { font-weight: 600; font-size: 1.05rem; }
.geo-region .geo-meta { margin-left: auto; font-size: .82rem; color: var(--on-dark-faint); }
.map-tooltip {
  position: absolute; z-index: 5; transform: translate(-50%, -130%); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: var(--r); font-size: .85rem; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .18s var(--ease);
}
.map-tooltip.show { opacity: 1; }
.map-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: #fff; }

/* ----- 20. Contact ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: 14px 16px; min-height: 52px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(35,35,255,.14); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field-error { font-size: .85rem; color: var(--red); display: none; }
.field.invalid .field-error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-success {
  display: none; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--r);
  background: var(--tint-soft); color: var(--brand-deep); font-weight: 600;
}
.form-success.show { display: flex; }
.form-success svg { width: 24px; height: 24px; flex-shrink: 0; }
/* Contact Form 7 — inherit Layal field styling */
.wpcf7-form-control-wrap { display: block; }
.wpcf7-form-control-wrap input, .wpcf7-form-control-wrap textarea, .wpcf7-form-control-wrap select { width: 100%; }
.wpcf7-not-valid-tip { font-size: .85rem; color: var(--red); display: block; margin-top: 6px; }
.wpcf7-response-output { margin: 18px 0 0 !important; padding: 16px 20px !important; border: 0 !important; border-radius: var(--r) !important; font-weight: 600; background: var(--tint-soft); color: var(--brand-deep); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: rgba(227,0,0,.08); color: var(--red); }
.wpcf7-spinner { display: none; }
.contact-panel { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 4vw, 48px); background-image: radial-gradient(500px 300px at 100% 0, rgba(35,35,255,.4), transparent 60%); }
.contact-panel h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 28px; }
.contact-detail { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.contact-detail:first-of-type { border-top: 0; padding-top: 0; }
.contact-detail .cd-ic { width: 42px; height: 42px; border-radius: var(--r); background: rgba(255,255,255,.1); display: grid; place-items: center; flex-shrink: 0; }
.contact-detail .cd-ic svg { width: 20px; height: 20px; }
.contact-detail .cd-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-faint); margin-bottom: 4px; }
.contact-detail .cd-value { font-weight: 600; line-height: 1.45; }
.contact-detail .cd-value a:hover { color: var(--tint); }

/* ----- 21. CTA band --------------------------------------------------- */
.cta-band { position: relative; padding-block: clamp(72px, 10vw, 130px); background: var(--navy); color: #fff; overflow: hidden; text-align: center; }
.cta-band-bg { position: absolute; inset: 0; background-image: radial-gradient(700px 400px at 50% 0, rgba(35,35,255,.42), transparent 60%), radial-gradient(600px 360px at 50% 120%, rgba(17,17,133,.5), transparent 60%); }
.cta-band-content { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.cta-band-headline { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.cta-band-body { margin-top: 20px; font-size: 1.18rem; color: var(--on-dark-soft); }
.cta-band .btn-white { margin-top: 36px; }

/* ----- 22. Footer ----------------------------------------------------- */
#footer { background: #06061f; color: var(--on-dark-soft); border-top: 3px solid var(--brand); padding-block: clamp(56px, 7vw, 84px) 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.02em; }
.footer-logo .square { color: var(--brand); font-size: .7em; }
.footer-logo .logo-img { height: 36px; width: auto; display: block; }
.footer-tagline { margin-top: 18px; line-height: 1.6; max-width: 34ch; }
.footer-nav-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--on-dark-faint); margin-bottom: 18px; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a, .footer-contact a { transition: color var(--dur) var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { margin-bottom: 10px; }
.footer-bottom { padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.footer-entity { font-size: .86rem; color: var(--on-dark-soft); max-width: 90ch; }
.footer-disclaimer { font-size: .8rem; color: var(--on-dark-faint); max-width: 100ch; line-height: 1.6; }
.footer-copy { font-size: .82rem; color: var(--on-dark-faint); }

/* ----- 23. Back to top ------------------------------------------------ */
#back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 800; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-brand);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
#back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--brand-bright); }
#back-to-top svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ----- 24. Scroll reveal / load animation ---------------------------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }
.fade-up-delay-1 { transition-delay: .08s; }
.fade-up-delay-2 { transition-delay: .16s; }
.fade-up-delay-3 { transition-delay: .24s; }

/* ----- 25. Responsive ------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid, .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .stat-item { border-left: 0; padding: 0; }
  .why-grid { grid-template-columns: 1fr; gap: 8px; }
  .why-item { padding-block: 24px; }
  .feature-grid, .vm-grid { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .acc-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .services-grid, .client-grid, .sector-grid { grid-template-columns: 1fr; }
  .sector-grid { gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step-num { font-size: 2.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { justify-content: center; }
  .acc-body { padding-left: 8px; }
  .section-header--split { align-items: flex-start; }
}

/* ----- 26. Reduced motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fade-up { opacity: 1; transform: none; }
  .map-pulse { display: none; }
}
