/* ═══════════════════════════════════════════════════════════════
   KLARIAN SOLUTIONS INC. — SHARED STYLESHEET
   styles.css · Used by all EN and FR pages
   EN pages:  href="styles.css"
   FR pages:  href="../styles.css"
═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --blue:      #012555;
  --blue-dk:   #010E21;
  --blue-md:   #013A7A;
  --blue-lt:   #012F6B;
  --cyan:      #00BCD4;
  --gold:      #D4A017;
  --white:     #FFFFFF;
  --offwhite:  #F7F8FA;
  --slate:     #4B5563;
  --mgray:     #6B7280;
  --lgray:     #9CA3AF;
  --section-pad-v: clamp(3.5rem, 8vw, 7rem);
  --section-pad-h: clamp(1.25rem, 6vw, 8vw);
  --nav-h: 68px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--slate);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--section-pad-h);
  background: rgba(1,37,85,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,188,212,0.15);
}
.nav-logo {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600; color: var(--white);
  letter-spacing: 0.1em; text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem);
  list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-lang {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(0,188,212,0.4);
  padding: 0.28rem 0.7rem; cursor: pointer;
  transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.nav-lang:hover { background: var(--cyan); color: var(--blue); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: block; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(1,37,85,0.99);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,188,212,0.15);
  padding: 1.5rem var(--section-pad-h) 2rem;
  z-index: 999;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; }
.nav-drawer ul li a {
  display: block; padding: 0.85rem 0;
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); text-decoration: none;
  border-bottom: 1px solid rgba(0,188,212,0.08);
  transition: color 0.2s;
}
.nav-drawer ul li:last-child a { border-bottom: none; }
.nav-drawer ul li a:hover { color: var(--cyan); }
.nav-drawer-lang {
  display: inline-block; margin-top: 1.25rem;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(0,188,212,0.4);
  padding: 0.35rem 0.85rem; text-decoration: none;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; padding: 0.8rem 1.75rem;
  background: var(--cyan); color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.65rem, 1.2vw, 0.72rem); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.25s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-primary.dark { background: var(--blue); color: var(--white); }
.btn-primary.dark:hover { background: var(--blue-md); }
.btn-ghost {
  display: inline-block; padding: 0.8rem 1.75rem;
  background: transparent; color: rgba(255,255,255,0.65);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.65rem, 1.2vw, 0.72rem); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.text-link {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.2s;
}
.text-link:hover { gap: 0.85rem; }

/* ── SHARED SECTION UTILITIES ───────────────────────────────── */
.section-eyebrow {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 0.75rem;
}
.section-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 300;
  color: var(--blue); line-height: 1.1; margin-bottom: 0.75rem;
}
.section-header p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.75; color: var(--lgray); max-width: 560px;
}

/* ── PAGE HERO BANNER (inner pages) ────────────────────────── */
.page-hero {
  padding-top: var(--nav-h);
  background: var(--blue-dk);
  position: relative; overflow: hidden;
  min-height: clamp(260px, 38vw, 420px);
  display: flex; align-items: flex-end;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,188,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,188,212,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}
.ph-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.ph-orb-1 {
  width: clamp(200px,30vw,400px); height: clamp(200px,30vw,400px);
  background: radial-gradient(circle, rgba(0,188,212,0.12) 0%, transparent 70%);
  top: -60px; right: 8%;
}
.ph-orb-2 {
  width: clamp(150px,20vw,280px); height: clamp(150px,20vw,280px);
  background: radial-gradient(circle, rgba(1,62,122,0.4) 0%, transparent 70%);
  bottom: 0; left: 5%;
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: clamp(2.5rem,5vw,4rem) var(--section-pad-h) clamp(3rem,5vw,4.5rem);
  width: 100%;
}
.ph-eyebrow {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s;
}
.ph-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--cyan); flex-shrink: 0;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem,5vw,4.5rem); font-weight: 300;
  color: var(--white); line-height: 1.08; margin-bottom: 0.75rem;
  opacity: 0; animation: fadeUp 0.9s ease forwards 0.35s;
}
.page-hero h1 em { font-style: italic; color: var(--cyan); }
.page-hero-sub {
  font-size: clamp(0.85rem,1.5vw,1rem); font-weight: 300;
  color: rgba(255,255,255,0.5); max-width: 560px; line-height: 1.75;
  opacity: 0; animation: fadeUp 0.9s ease forwards 0.5s;
}
.ph-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--blue-dk) 0%, var(--cyan) 40%, var(--gold) 70%, var(--blue-dk) 100%);
}

/* ── FOUNDING CLIENT PROGRAM (shared) ──────────────────────── */
.fcp {
  padding: var(--section-pad-v) var(--section-pad-h);
  background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem,5vw,6rem); align-items: center;
}
.fcp-left h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem,3.5vw,3rem); font-weight: 300;
  color: var(--blue); line-height: 1.1; margin-bottom: 1.25rem;
}
.fcp-left h2 em { font-style: italic; color: var(--cyan); }
.fcp-left > p {
  font-size: clamp(0.85rem,1.4vw,0.95rem);
  line-height: 1.8; color: var(--slate); margin-bottom: 1.75rem;
}
.fcp-list { list-style: none; margin-bottom: 2rem; }
.fcp-list li {
  display: flex; align-items: flex-start; gap: 0.9rem;
  font-size: clamp(0.82rem,1.3vw,0.9rem); color: var(--slate);
  padding: 0.55rem 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.fcp-list li::before {
  content: '✦'; color: var(--gold);
  flex-shrink: 0; margin-top: 2px; font-size: 0.65rem;
}
.fcp-right {
  background: var(--blue);
  padding: clamp(2rem,4vw,3.5rem);
  position: relative; overflow: hidden;
}
.fcp-right::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,212,0.12) 0%, transparent 70%);
}
.fcp-badge {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(212,160,23,0.35);
  padding: 0.28rem 0.8rem; display: inline-block; margin-bottom: 1.25rem;
}
.fcp-right h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 300;
  color: var(--white); margin-bottom: 0.9rem; line-height: 1.25;
}
.fcp-right > p {
  font-size: clamp(0.82rem,1.3vw,0.88rem);
  line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 1.75rem;
}
.fcp-pulse {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.fcp-pulse::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite; flex-shrink: 0;
}

/* ── FOOTER CTA (shared) ────────────────────────────────────── */
.footer-cta {
  background: var(--blue-dk);
  padding: var(--section-pad-v) var(--section-pad-h);
  text-align: center; position: relative; overflow: hidden;
}
.footer-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,188,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,188,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.footer-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem,5vw,4.5rem); font-weight: 300;
  color: var(--white); position: relative; margin-bottom: 1rem; line-height: 1.05;
}
.footer-cta h2 em { color: var(--cyan); font-style: italic; }
.footer-cta p {
  font-size: clamp(0.85rem,1.5vw,0.95rem);
  color: rgba(255,255,255,0.45); max-width: 500px;
  margin: 0 auto 2.25rem; line-height: 1.8; position: relative;
}
.footer-cta .btn-primary { position: relative; }

/* ── GLOBAL FOOTER (shared) ─────────────────────────────────── */
.kf-wrap {
  background: #010E21;
  font-family: 'Montserrat', sans-serif;
  border-top: 1px solid rgba(0,188,212,0.15);
}
.kf-top-bar {
  background: var(--blue);
  padding: clamp(1.75rem,4vw,2.5rem) var(--section-pad-h);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(1.25rem,3vw,2rem); align-items: start;
  border-bottom: 1px solid rgba(0,188,212,0.1);
}
.kf-logo {
  font-size: clamp(1.1rem,2vw,1.3rem); font-weight: 600;
  color: var(--white); letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.kf-logo span { color: var(--cyan); }
.kf-descriptor {
  font-size: 0.63rem; color: rgba(255,255,255,0.35);
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.9;
}
.kf-col-label {
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 0.9rem;
}
.kf-nav-links { display: flex; flex-direction: column; gap: 0.5rem; }
.kf-nav-links a {
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
  text-decoration: none; letter-spacing: 0.04em;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 0.5rem;
}
.kf-nav-links a::before {
  content: ''; display: block; width: 12px; height: 1px;
  background: var(--cyan); opacity: 0.5;
  transition: width 0.2s, opacity 0.2s;
}
.kf-nav-links a:hover { color: var(--cyan); }
.kf-nav-links a:hover::before { width: 20px; opacity: 1; }
.kf-contact-items { display: flex; flex-direction: column; gap: 0.5rem; }
.kf-contact-item {
  font-size: 0.74rem; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 0.6rem;
}
.kf-contact-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
}
.kf-contact-item a {
  color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s;
}
.kf-contact-item a:hover { color: var(--cyan); }
.kf-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,188,212,0.3), rgba(212,160,23,0.3), transparent);
  margin: 0 var(--section-pad-h);
}
.kf-bottom-bar {
  padding: 1.1rem var(--section-pad-h);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}
.kf-tagline {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(0,188,212,0.6);
}
.kf-legal { font-size: 0.62rem; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }
.kf-lang-toggle {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(0,188,212,0.3);
  padding: 0.22rem 0.65rem; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.kf-lang-toggle:hover { background: var(--cyan); color: var(--blue); }
.kf-accent-line {
  height: 3px;
  background: linear-gradient(to right, var(--blue) 0%, var(--cyan) 40%, var(--gold) 70%, var(--blue) 100%);
}

/* ── SCROLL REVEAL & ANIMATIONS ─────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(1.4); }
}

/* ── SHARED RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links      { display: none; }
  .nav-hamburger  { display: flex; }
  .fcp            { grid-template-columns: 1fr; }
  .kf-top-bar     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .kf-top-bar     { grid-template-columns: 1fr; }
  .kf-bottom-bar  { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .btn-primary,
  .btn-ghost      { text-align: center; }
  .kf-bottom-bar  { align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  :root           { --nav-h: 60px; }
  .nav-logo       { font-size: 0.95rem; }
  .page-hero h1   { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .kf-bottom-bar  { flex-direction: column; align-items: center; text-align: center; }
  .nav-drawer     { padding: 1.25rem 1.25rem 1.75rem; }
}

/* ── SHARED JS SNIPPET (reference only — included in each page)
   Copy the hamburger script block into every page's <script> tag:

   const hamburger = document.getElementById('hamburger');
   const drawer    = document.getElementById('navDrawer');
   hamburger.addEventListener('click', () => {
     const isOpen = drawer.classList.toggle('open');
     hamburger.classList.toggle('open', isOpen);
     hamburger.setAttribute('aria-expanded', isOpen);
     drawer.setAttribute('aria-hidden', !isOpen);
     document.body.style.overflow = isOpen ? 'hidden' : '';
   });
   drawer.querySelectorAll('a').forEach(link => {
     link.addEventListener('click', () => {
       drawer.classList.remove('open'); hamburger.classList.remove('open');
       hamburger.setAttribute('aria-expanded','false');
       drawer.setAttribute('aria-hidden','true');
       document.body.style.overflow = '';
     });
   });
   document.addEventListener('click', (e) => {
     if (drawer.classList.contains('open') &&
         !drawer.contains(e.target) && !hamburger.contains(e.target)) {
       drawer.classList.remove('open'); hamburger.classList.remove('open');
       hamburger.setAttribute('aria-expanded','false');
       drawer.setAttribute('aria-hidden','true');
       document.body.style.overflow = '';
     }
   });
── */
