/* ============================================================
   CONSAL — Consulting Sales
   Shared design system
   Brand navy sampled from logo: #001f48
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Hanken+Grotesk:ital,wght@0,300..800;1,400&display=swap');

:root{
  /* Brand */
  --navy:        #0c2350;   /* primary brand navy */
  --navy-700:    #173a72;   /* lighter steel-navy */
  --navy-900:    #061633;   /* deepest — hero / footer */
  --navy-ink:    #0a1b3a;   /* headings on light */
  --steel:       #8595af;   /* silver-blue from emblem */
  --steel-soft:  #b9c3d6;
  --steel-line:  #d7deea;

  /* Neutrals (cool-tinted) */
  --paper:   #f4f6fa;
  --paper-2: #eef1f7;
  --white:   #ffffff;
  --ink:     #111a2b;
  --muted:   #5a6680;
  --muted-2: #7d879c;

  /* Accent — refined steel azure, used sparingly */
  --accent:  oklch(0.58 0.10 250);

  /* Type */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* Metrics */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(8,22,51,.06), 0 2px 8px rgba(8,22,51,.05);
  --shadow-md: 0 8px 30px rgba(8,22,51,.10);
  --shadow-lg: 0 24px 60px rgba(8,22,51,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

/* ---------- Layout primitives ---------- */
.container{ width:100%; max-width: var(--maxw); margin:0 auto; padding-inline: var(--gutter); }
.container--wide{ max-width: 1340px; }
.section{ padding-block: clamp(64px, 9vw, 130px); }
.section--tight{ padding-block: clamp(48px, 6vw, 80px); }

.eyebrow{
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.eyebrow::before{
  content:"";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow--center{ justify-content:center; }

h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 400; color: var(--navy-ink); line-height: 1.08; letter-spacing: -0.01em; }
.display{ font-size: clamp(40px, 6.5vw, 78px); line-height: 1.02; }
h2.title{ font-size: clamp(30px, 4.6vw, 50px); margin: 0 0 20px; }
h3{ font-size: clamp(20px, 2.4vw, 26px); }
.lede{ font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
p{ text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s, box-shadow .35s var(--ease), border-color .25s;
  white-space: nowrap;
}
.btn .arr{ transition: transform .35s var(--ease); }
.btn:hover .arr{ transform: translateX(4px); }
.btn--primary{ background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover{ background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost{ background: transparent; color: var(--navy-ink); border-color: var(--steel-line); }
.btn--ghost:hover{ border-color: var(--navy); transform: translateY(-2px); }
.btn--light{ background: #fff; color: var(--navy); }
.btn--light:hover{ background: var(--paper); transform: translateY(-2px); }
.btn--onnavy-ghost{ background: transparent; color:#fff; border-color: rgba(255,255,255,.32); }
.btn--onnavy-ghost:hover{ border-color:#fff; background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn--lg{ padding: 17px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled{ border-bottom-color: var(--steel-line); box-shadow: 0 1px 0 rgba(8,22,51,.02); }
.nav{
  display:flex; align-items:center; gap: 28px;
  height: 78px;
}
.brand{ display:flex; align-items:center; margin-right: auto; }
.brand img{ height: 58px; width:auto; border-radius: 6px; }
.nav-links{ display:flex; align-items:center; gap: 4px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 8px 14px; border-radius: var(--radius);
  position: relative; transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover{ color: var(--navy); }
.nav-links a.active{ color: var(--navy); font-weight:600; }
.nav-links a.active::after{
  content:""; position:absolute; left:14px; right:14px; bottom: 1px;
  height:2px; background: var(--navy); border-radius: 2px;
}
.nav-tools{ display:flex; align-items:center; gap: 14px; }

/* Language toggle */
.lang{
  display:inline-flex; align-items:center; gap:0;
  border:1px solid var(--steel-line); border-radius: 100px;
  overflow:hidden; background:#fff;
}
.lang button{
  border:none; background:transparent; cursor:pointer;
  font-size: 12.5px; font-weight: 700; letter-spacing:.04em;
  color: var(--muted-2); padding: 6px 12px; transition: all .2s;
}
.lang button.active{ background: var(--navy); color:#fff; }

/* Hamburger */
.hamburger{ display:none; width:44px; height:44px; border:1px solid var(--steel-line); border-radius: var(--radius); background:#fff; cursor:pointer; padding:0; position:relative; }
.hamburger span{ position:absolute; left:11px; right:11px; height:2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.hamburger span:nth-child(1){ top:14px; }
.hamburger span:nth-child(2){ top:21px; }
.hamburger span:nth-child(3){ top:28px; }
.hamburger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity:0; }
.hamburger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-900); color: rgba(255,255,255,.72); padding-block: clamp(56px,7vw,84px) 36px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-word{ font-family: var(--font-display); color:#fff; font-size: 30px; letter-spacing:.06em; }
.footer-word small{ display:block; font-family: var(--font-sans); font-size: 11px; letter-spacing: .34em; color: var(--steel-soft); margin-top: 6px; font-weight:500; }
.footer-col h4{ color:#fff; font-family: var(--font-sans); font-size: 12.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; margin:0 0 18px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:grid; gap: 11px; }
.footer-col a:hover{ color:#fff; }
.footer-col p{ margin:0 0 11px; }
.footer-bottom{ margin-top: 52px; padding-top: 24px; border-top:1px solid rgba(255,255,255,.12); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size: 13.5px; color: rgba(255,255,255,.5); }

/* ---------- Reveal animation (JS-driven, see site.js) ---------- */
.reveal{ opacity:0; }
.reveal.in{ opacity:1; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; }
  html{ scroll-behavior:auto; }
}

/* ============================================================
   Sections / components
   ============================================================ */

/* Hero */
.hero{ position:relative; background: var(--navy-900); color:#fff; overflow:hidden; }
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(58,96,168,.40), transparent 55%),
    radial-gradient(80% 70% at 0% 110%, rgba(23,58,114,.45), transparent 60%);
  pointer-events:none;
}
.hero-lines{ position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.hero .container{ position:relative; }
.hero-inner{ padding-block: clamp(90px, 13vw, 160px); max-width: 940px; }
.hero h1{ color:#fff; }
.hero .eyebrow{ color: var(--steel-soft); }
.hero-lede{ color: rgba(255,255,255,.78); font-size: clamp(18px,1.8vw,22px); max-width: 56ch; margin: 26px 0 0; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 40px; }
.hero-meta{ display:flex; gap: clamp(28px,5vw,64px); margin-top: 64px; flex-wrap:wrap; }
.hero-meta .stat .n{ font-family: var(--font-display); font-size: clamp(34px,4vw,46px); color:#fff; line-height:1; }
.hero-meta .stat .l{ font-size: 13.5px; color: var(--steel-soft); margin-top:8px; letter-spacing:.03em; }
.hero-meta .stat{ position:relative; padding-left: 22px; }
.hero-meta .stat::before{ content:""; position:absolute; left:0; top:4px; bottom:4px; width:2px; background: linear-gradient(var(--steel), transparent); }

/* page hero (smaller, for inner pages) */
.pagehero{ background: var(--navy-900); color:#fff; position:relative; overflow:hidden; }
.pagehero::before{ content:""; position:absolute; inset:0; background: radial-gradient(100% 120% at 90% -20%, rgba(58,96,168,.35), transparent 55%); }
.pagehero .container{ position:relative; }
.pagehero-inner{ padding-block: clamp(72px,9vw,120px); max-width: 820px; }
.pagehero h1{ color:#fff; font-size: clamp(38px,5.2vw,64px); }
.pagehero .eyebrow{ color: var(--steel-soft); }
.pagehero p{ color: rgba(255,255,255,.78); font-size: clamp(17px,1.6vw,20px); max-width: 54ch; margin: 22px 0 0; }
.breadcrumb{ font-size:13px; color: var(--steel-soft); letter-spacing:.04em; margin-bottom: 26px; display:flex; gap:8px; align-items:center; }
.breadcrumb a:hover{ color:#fff; }
.breadcrumb span{ opacity:.5; }

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

/* Service / feature card */
.card{
  background:#fff; border:1px solid var(--steel-line); border-radius: var(--radius);
  padding: 34px 32px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--steel-soft); }
.card .idx{ font-family: var(--font-display); font-size: 15px; color: var(--steel); letter-spacing:.1em; }
.card h3{ margin: 18px 0 12px; }
.card p{ color: var(--muted); margin:0; font-size: 16px; }
.card-mark{ width:46px; height:46px; border-radius: 50%; border:1px solid var(--steel-line); display:grid; place-items:center; color: var(--navy); margin-bottom: 22px; }
.card-mark svg{ width:22px; height:22px; }

/* Split layout */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); align-items:center; }
.split--start{ align-items:start; }

/* Stat row */
.stats{ display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--steel-line); border:1px solid var(--steel-line); border-radius: var(--radius); overflow:hidden; }
.stats .stat{ background:#fff; padding: 34px 28px; }
.stats .n{ font-family: var(--font-display); font-size: clamp(34px,4vw,48px); color: var(--navy); line-height:1; }
.stats .l{ color: var(--muted); font-size: 14.5px; margin-top: 12px; }

/* Quote / band */
.band{ background: var(--paper); }
.band-navy{ background: var(--navy-900); color:#fff; }
.band-navy h2{ color:#fff; }

/* List with ticks */
.ticks{ list-style:none; margin:0; padding:0; display:grid; gap: 16px; }
.ticks li{ display:flex; gap:14px; align-items:flex-start; font-size: 16.5px; color: var(--ink); }
.ticks .tk{ flex:none; width:24px; height:24px; border-radius:50%; background: var(--navy); color:#fff; display:grid; place-items:center; margin-top:2px; }
.ticks .tk svg{ width:12px; height:12px; }

/* Partner carousel */
.marquee{ overflow:hidden; position:relative; padding-block: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track{ display:flex; gap: 18px; width:max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{ to{ transform: translateX(-50%); } }
.logo-pill{
  flex:none; height: 104px; width: 196px;
  background:#fff; border:1px solid var(--steel-line); border-radius: var(--radius);
  display:grid; place-items:center; padding: 22px;
}
.logo-pill img{ max-height: 60px; max-width: 100%; object-fit:contain; }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; flex-wrap:wrap; width:auto; justify-content:center; } }

/* Logo wall */
.logo-wall{ display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--steel-line); border:1px solid var(--steel-line); border-radius: var(--radius); overflow:hidden; }
.logo-wall .cell{ background:#fff; aspect-ratio: 16/10; display:grid; place-items:center; padding: 30px; transition: background .3s; }
.logo-wall .cell:hover{ background: var(--paper); }
.logo-wall .cell img{ max-height: 64px; max-width: 78%; object-fit:contain; }

/* Process steps */
.steps{ display:grid; gap: 0; }
.step{ display:grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 28px 0; border-top:1px solid var(--steel-line); }
.step:last-child{ border-bottom:1px solid var(--steel-line); }
.step .num{ font-family: var(--font-display); font-size: 30px; color: var(--steel); }
.step h3{ margin:0 0 8px; }
.step p{ margin:0; color: var(--muted); }

/* CTA band */
.cta-band{ background: var(--navy); color:#fff; border-radius: 6px; padding: clamp(40px,5vw,68px); display:flex; align-items:center; justify-content:space-between; gap: 36px; flex-wrap:wrap; position:relative; overflow:hidden; }
.cta-band::before{ content:""; position:absolute; inset:0; background: radial-gradient(90% 140% at 100% 0%, rgba(58,96,168,.45), transparent 55%); }
.cta-band > *{ position:relative; }
.cta-band h2{ color:#fff; margin:0; font-size: clamp(26px,3.4vw,40px); }
.cta-band p{ color: rgba(255,255,255,.78); margin: 12px 0 0; max-width: 46ch; }

/* ---------- Forms ---------- */
.tabs{ display:inline-flex; gap:6px; background: var(--paper-2); padding:6px; border-radius: 100px; margin-bottom: 36px; }
.tabs button{ border:none; background:transparent; cursor:pointer; font-size: 15px; font-weight:600; color: var(--muted); padding: 11px 26px; border-radius: 100px; transition: all .25s var(--ease); white-space: nowrap; }
.tabs button.active{ background:#fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.form-panel{ display:none; }
.form-panel.active{ display:block; animation: fade .4s var(--ease); }
@keyframes fade{ from{ opacity:0; transform: translateY(8px);} to{opacity:1; transform:none;} }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom: 20px; }
.field label{ font-size: 13.5px; font-weight:600; color: var(--navy-ink); letter-spacing:.01em; }
.field label .req{ color: var(--accent); }
.field input, .field textarea, .field select{
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border:1px solid var(--steel-line); border-radius: var(--radius);
  background:#fff; transition: border-color .2s, box-shadow .2s; width:100%;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12,35,80,.10); }
.field textarea{ resize: vertical; min-height: 130px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap: 20px; }
.form-note{ font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.form-success{ display:none; background: var(--paper); border:1px solid var(--steel-line); border-left:3px solid var(--navy); border-radius: var(--radius); padding: 22px 24px; }
.form-success.show{ display:block; animation: fade .4s var(--ease); }
.form-success strong{ color: var(--navy-ink); display:block; font-size:17px; margin-bottom:4px; font-family:var(--font-display); }

/* Info card (contact) */
.info-card{ background: var(--navy-900); color:#fff; border-radius:6px; padding: 38px 34px; position:relative; overflow:hidden; }
.info-card::before{ content:""; position:absolute; inset:0; background: radial-gradient(80% 100% at 100% 0%, rgba(58,96,168,.4), transparent 55%); }
.info-card > *{ position:relative; }
.info-card h3{ color:#fff; }
.info-item{ display:flex; gap:16px; padding: 18px 0; border-top:1px solid rgba(255,255,255,.12); }
.info-item:first-of-type{ border-top:none; }
.info-item .ic{ flex:none; width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.25); display:grid; place-items:center; }
.info-item .ic svg{ width:18px; height:18px; }
.info-item .k{ font-size: 12px; letter-spacing:.14em; text-transform:uppercase; color: var(--steel-soft); }
.info-item .v{ color:#fff; font-size: 16px; margin-top:3px; }

/* Founders */
.founder{ background:#fff; border:1px solid var(--steel-line); border-radius: var(--radius); padding: 30px; }
.founder .avatar{ width:64px; height:64px; border-radius:50%; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color:#fff; display:grid; place-items:center; font-family:var(--font-display); font-size:24px; letter-spacing:.04em; margin-bottom:20px; }
.founder h3{ margin:0 0 4px; }
.founder .role{ color: var(--steel); font-size: 14px; letter-spacing:.04em; font-weight:600; }
.founder p{ color: var(--muted); margin: 16px 0 0; font-size: 15.5px; }

/* Pull quote */
.pull{ font-family: var(--font-display); font-size: clamp(26px,3.6vw,42px); line-height:1.22; color: var(--navy-ink); max-width: 22ch; }
.pull--light{ color:#fff; max-width: 26ch; }

/* Utilities */
.center{ text-align:center; }
.mt-s{ margin-top: 18px; } .mt-m{ margin-top: 32px; } .mt-l{ margin-top: 56px; }
.maxw-2{ max-width: 720px; } .mx-auto{ margin-inline:auto; }
.muted{ color: var(--muted); }
.divider{ height:1px; background: var(--steel-line); border:none; margin:0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px){
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .stats{ grid-template-columns: repeat(2,1fr); }
  .logo-wall{ grid-template-columns: repeat(3,1fr); }
  .split{ grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px){
  body{ font-size: 16px; }
  .nav-links, .nav-tools .desktop-cta{ display:none; }
  .hamburger{ display:block; }
  .mobile-menu .nav-links{ display:flex; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .field-row{ grid-template-columns: 1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; }
  .logo-wall{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
  .stats{ grid-template-columns: 1fr 1fr; }
}

/* Mobile menu */
.mobile-menu{
  position: fixed; inset: 78px 0 auto 0; z-index: 99;
  background:#fff; border-bottom:1px solid var(--steel-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-12px); opacity:0; visibility:hidden;
  transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
.mobile-menu.open{ transform:none; opacity:1; visibility:visible; }
.mobile-menu .nav-links{ flex-direction:column; align-items:stretch; padding: 16px var(--gutter) 24px; gap: 4px; }
.mobile-menu .nav-links a{ padding: 14px; font-size: 17px; border-bottom:1px solid var(--paper-2); }
.mobile-menu .nav-links a.active::after{ display:none; }
.mobile-menu .btn{ margin: 14px var(--gutter) 4px; justify-content:center; }
