/* ============================================================
   Rank Business Digital — Global Styles
   Navy Blue + Canada Red design system
   ============================================================ */

:root {
  --navy-900: #0a1533;
  --navy-800: #0e1e4b;
  --navy-700: #14265e;
  --navy-600: #1c357f;
  --navy-500: #294bab;
  --red:      #d8232a;   /* Canada flag red */
  --red-600:  #b71c22;
  --red-tint: #fbeaea;

  --ink:      #0c1430;
  --slate:    #4a5675;
  --muted:    #7a86a3;
  --line:     #e6e9f2;
  --paper:    #ffffff;
  --paper-2:  #f5f7fc;
  --paper-3:  #eef2fa;

  --radius:   16px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 18px rgba(14,30,75,.06);
  --shadow-md: 0 18px 44px rgba(14,30,75,.10);
  --shadow-lg: 0 32px 70px rgba(14,30,75,.16);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display {
  font-family: var(--font-head);
  color: var(--navy-800);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
}

a { text-decoration: none; color: inherit; }

.container-x { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }
.section-sm { padding: 60px 0; }
@media (max-width: 767px){ .section { padding: 64px 0; } }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
  padding: 7px 14px; border-radius: 40px;
  background: var(--red-tint);
}
.eyebrow.on-dark { background: rgba(255,255,255,.08); color: #fff; }
.eyebrow::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--red); }

.lead { font-size: 1.12rem; color: var(--slate); }
.text-navy { color: var(--navy-800); }
.text-red { color: var(--red); }
.text-muted-x { color: var(--muted); }

.h-underline { position: relative; display: inline; }
.h-underline::after{
  content:""; position:absolute; left:0; right:0; bottom:.08em; height:.32em;
  background: var(--red); opacity:.16; z-index:-1; border-radius:3px;
}

/* ---------- Buttons ---------- */
.btn-x {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 15px 28px; border-radius: 40px; border: 0; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-red { background: var(--red); color:#fff; box-shadow: 0 12px 26px rgba(216,35,42,.28); }
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(216,35,42,.36); color:#fff; }
.btn-navy { background: var(--navy-800); color:#fff; }
.btn-navy:hover { transform: translateY(-3px); background: var(--navy-700); color:#fff; }
.btn-ghost { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy-800); transform: translateY(-3px); }
.btn-ghost.on-dark { color:#fff; border-color: rgba(255,255,255,.25); }
.btn-ghost.on-dark:hover { border-color:#fff; background: rgba(255,255,255,.06); }
.btn-x .arw { transition: transform .25s ease; }
.btn-x:hover .arw { transform: translateX(4px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav-x {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.nav-x.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 68px; display:block; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-link {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy-800);
  padding: 10px 16px; border-radius: 10px; display: inline-flex; align-items:center; gap:6px;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-bottom: 3px; transition: transform .25s ease; opacity:.6; }
.nav-menu > li:hover .caret { transform: rotate(-135deg); margin-top:3px; }

/* Dropdown */
.dropdown-x {
  position: absolute; top: calc(100% + 10px); left: 0;
  display: grid; grid-template-columns: repeat(2, minmax(268px, 1fr)); gap: 2px;
  background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  padding: 12px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-menu > li:hover .dropdown-x { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-item { display: flex; gap: 13px; padding: 12px 14px; border-radius: 12px; transition: background .2s ease; }
.drop-item:hover { background: var(--paper-2); }
.drop-ico {
  flex: 0 0 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--navy-800); color:#fff; font-size: 1rem;
}
.drop-item:hover .drop-ico { background: var(--red); }
.drop-title { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy-800); line-height:1.2; }
.drop-sub { font-size: .8rem; color: var(--muted); line-height:1.35; margin-top:2px; }

.nav-cta { display:flex; align-items:center; gap: 18px; }
.nav-phone { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-head); font-weight:600; font-size:.92rem; color: var(--navy-800); }
.nav-phone .ph-ico { width:34px; height:34px; border-radius:50%; background: var(--red-tint); color: var(--red); display:grid; place-items:center; }

.nav-toggle { display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
.nav-toggle span { width:24px; height:2px; background: var(--navy-800); border-radius:2px; transition:.3s; }

@media (max-width: 991px){
  .nav-menu, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 76px; left:0; right:0; bottom:0;
    background:#fff; padding: 20px; overflow-y:auto; border-top:1px solid var(--line);
  }
  .nav-menu.open > li { width:100%; }
  .nav-menu.open .dropdown-x { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; min-width:0; padding:0 0 8px 12px; grid-template-columns: 1fr; }
  .nav-menu.open .nav-link { font-size:1.05rem; padding: 14px 10px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 150px 0 90px; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(41,75,171,.16), transparent 60%),
    radial-gradient(700px 500px at 5% 20%, rgba(216,35,42,.08), transparent 55%),
    var(--navy-900);
  color: #fff;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.hero .lead { color: rgba(255,255,255,.72); font-size: 1.18rem; max-width: 540px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 991px){ .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-stats { display:flex; gap: 40px; margin-top: 38px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color:#fff; }
.hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.6); letter-spacing:.04em; }

/* Hero visual — animated */
.hero-visual { position: relative; height: 460px; }
.hero-card {
  position: absolute; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
  padding: 18px 20px; color:#fff;
}
.blob { position:absolute; border-radius:50%; filter: blur(2px); }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px){ .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card-x {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.card-x:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-ico {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); color:#fff; font-size: 1.5rem;
  margin-bottom: 22px;
}
.card-x.accent .card-ico { background: linear-gradient(135deg, var(--red), var(--red-600)); }
.card-x h3 { font-size: 1.28rem; margin: 0 0 10px; }
.card-x p { color: var(--slate); margin: 0; font-size: .96rem; }
.card-tag { display:inline-block; margin-top:16px; font-family:var(--font-head); font-weight:600; font-size:.85rem; color: var(--red); }

.chip { display:inline-block; padding:6px 13px; border-radius:30px; background: var(--paper-3); color: var(--navy-700); font-family:var(--font-head); font-weight:600; font-size:.8rem; margin:4px 4px 0 0; }

/* Image placeholder */
.img-ph {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 14px, var(--paper-3) 14px, var(--paper-3) 28px);
  border: 1px solid var(--line);
  display: grid; place-items: center; min-height: 260px;
}
.img-ph span {
  font-family: ui-monospace, monospace; font-size: .8rem; color: var(--muted);
  background: #fff; padding: 7px 14px; border-radius: 30px; box-shadow: var(--shadow-sm);
}
.img-ph.dark {
  background: repeating-linear-gradient(135deg, #16224d, #16224d 14px, #1b2a5c 14px, #1b2a5c 28px);
  border-color: rgba(255,255,255,.08);
}
.img-ph.dark span { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); box-shadow:none; }

/* ============================================================
   Process (timeline)
   ============================================================ */
.process-track { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; position: relative; }
@media (max-width: 991px){ .process-track { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .process-track { grid-template-columns: 1fr; } }
.proc-step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background:#fff; border:1px solid var(--line); }
.proc-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color:#fff;
  width: 44px; height: 44px; border-radius: 13px; display:grid; place-items:center;
  background: var(--navy-800); margin-bottom: 18px;
}
.proc-step:nth-child(even) .proc-num { background: var(--red); }
.proc-step h4 { font-size: 1.12rem; margin: 0 0 8px; }
.proc-step p { color: var(--slate); font-size: .92rem; margin:0; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden; border-radius: 34px;
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(216,35,42,.35), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color:#fff; padding: 70px 60px;
}
@media (max-width:767px){ .cta-band { padding: 50px 28px; } }
.cta-band h2 { color:#fff; font-size: clamp(2rem,4vw,2.9rem); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-x { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 76px 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-x h5 { color:#fff; font-size: .82rem; letter-spacing:.14em; text-transform:uppercase; margin:0 0 20px; }
.footer-x a { color: rgba(255,255,255,.72); transition: color .2s; display:inline-block; }
.footer-x a:hover { color:#fff; }
.footer-x ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; font-size:.94rem; }
.footer-logo { background:#fff; padding:10px 14px; border-radius:12px; display:inline-block; }
.footer-logo img { height:34px; display:block; }
.footer-contact li { display:flex; gap:12px; align-items:flex-start; }
.footer-contact .fi { color: var(--red); flex:0 0 20px; margin-top:2px; }
.footer-social { display:flex; gap:10px; margin-top:20px; }
.footer-social a { width:40px; height:40px; border-radius:11px; background: rgba(255,255,255,.07); display:grid; place-items:center; color:#fff; }
.footer-social a:hover { background: var(--red); transform: translateY(-3px); }
.footer-bottom { margin-top:56px; padding-top:26px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.86rem; color: rgba(255,255,255,.5); }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  padding: 150px 0 70px; position: relative; overflow: hidden;
  background:
    radial-gradient(800px 500px at 90% -20%, rgba(41,75,171,.2), transparent 60%),
    var(--navy-900);
  color:#fff; text-align:center;
}
.page-hero h1 { color:#fff; font-size: clamp(2.2rem,4.5vw,3.4rem); }
.page-hero .lead { color: rgba(255,255,255,.72); max-width: 640px; margin: 18px auto 0; }
.breadcrumb-x { display:inline-flex; gap:8px; font-family:var(--font-head); font-size:.85rem; color: rgba(255,255,255,.55); margin-bottom:20px; }
.breadcrumb-x a:hover { color:#fff; }

/* ============================================================
   Real images
   ============================================================ */
.img-real {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  box-shadow: var(--shadow-md); min-height: 260px;
}
.img-real img { width: 100%; height: 100%; object-fit: cover; display: block; position:absolute; inset:0; }
.img-real .cap {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(10,21,51,.62); backdrop-filter: blur(6px); color:#fff;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: 8px 14px; border-radius: 30px; display:inline-flex; align-items:center; gap:8px;
}
.img-real::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, transparent 55%, rgba(10,21,51,.35)); }
.ratio-16-11 { aspect-ratio: 16/11; min-height: 0; }
.ratio-4-3 { aspect-ratio: 4/3; min-height: 0; }

/* floating decorative vectors */
.deco { position:absolute; z-index:0; pointer-events:none; }
.deco-ring { border: 2px dashed rgba(255,255,255,.16); border-radius: 50%; }
.deco-dot { background: var(--red); border-radius:50%; }
.deco-plus { color: rgba(255,255,255,.18); font-family: var(--font-head); }

/* auto vector accents on dark bands */
.page-hero::before, .hero::before {
  content:""; position:absolute; width:300px; height:300px; z-index:0;
  border:2px dashed rgba(255,255,255,.12); border-radius:50%;
  top:-130px; left:-90px; animation: spinSlow 40s linear infinite;
}
.page-hero::after {
  content:""; position:absolute; width:170px; height:170px; z-index:0;
  border:2px dashed rgba(216,35,42,.35); border-radius:50%;
  bottom:-70px; right:8%; animation: floaty 8s ease-in-out infinite;
}
.cta-band::before {
  content:""; position:absolute; width:220px; height:220px; z-index:0;
  border:2px dashed rgba(255,255,255,.16); border-radius:50%;
  top:-90px; right:-40px; animation: spinSlow 34s linear infinite;
}
.cta-band > * { position:relative; z-index:1; }
.page-hero > .container-x, .hero > .container-x { position:relative; z-index:1; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-18px); } }
@keyframes floaty2 { 0%,100%{ transform: translateY(0) rotate(0); } 50%{ transform: translateY(-24px) rotate(4deg); } }
@keyframes pulseRing { 0%{ transform: scale(.85); opacity:.6; } 100%{ transform: scale(1.5); opacity:0; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes barGrow { from { height: 8%; } }

.float { animation: floaty 6s ease-in-out infinite; }
.float2 { animation: floaty2 7s ease-in-out infinite; }
.spin-slow { animation: spinSlow 24s linear infinite; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* Marquee logos */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display:flex; gap: 64px; width: max-content; animation: marq 26s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--muted); opacity:.7; white-space:nowrap; }

/* Animated SVG blob */
.blob-svg { position:absolute; z-index:0; opacity:.5; }

/* helper */
.mb-eyebrow { margin-bottom: 18px; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin: 0 0 16px; }
.dots-bg { position:absolute; inset:0; background-image: radial-gradient(var(--line) 1.3px, transparent 1.3px); background-size: 26px 26px; opacity:.5; z-index:0; }
