/* ═══════════════════════════════════════════════════
   CRASSUS PARTNERS — Main Stylesheet
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --navy:       #1A2E6C;
  --navy-dk:    #0E1D48;
  --navy-mid:   #1D3278;
  --white:      #FFFFFF;
  --fog:        #F3F5F9;
  --fog-2:      #E8ECF4;
  --text:       #111827;
  --muted:      #5C6B80;
  --rule:       #D8DCE8;
  --rule-dk:    rgba(255,255,255,0.10);
  --nav-h:      68px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── PAGE LOAD FADE ── */
body { animation: pageFade 0.5s var(--ease) both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* ════════════════════════════════
   NAV
════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 40px;
  transition: box-shadow 0.3s var(--ease);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(14,29,72,0.08); }

.nav-logo { flex-shrink: 0; text-decoration: none; }
.nav-logo img { height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

/* Regular link */
.nav-links > li > a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--navy);
  transition: width 0.25s var(--ease);
}
.nav-links > li > a:hover { color: var(--navy); }
.nav-links > li > a:hover::after,
.nav-links > li.active > a::after { width: 100%; }
.nav-links > li.active > a { color: var(--navy); }

/* Dropdown chevron */
.nav-chevron {
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.2s var(--ease), opacity 0.2s;
  display: inline-block;
}
.has-dropdown:hover .nav-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

/* Dropdown panel */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: -24px;
  background: var(--white);
  border-top: 2px solid var(--navy);
  box-shadow: 0 16px 48px rgba(14,29,72,0.13);
  min-width: 260px;
  padding: 10px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 28px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  border-left: 2px solid transparent;
}
.dropdown a:hover {
  background: var(--fog);
  color: var(--navy);
  padding-left: 32px;
  border-left-color: var(--navy);
}

/* Mega-menu (wider, grouped) */
.dropdown-mega {
  width: 500px;
  padding: 20px 0 16px;
}
.dropdown-group-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0 28px 6px;
  margin-top: 4px;
  opacity: 0.7;
}
.dropdown-sub a {
  padding: 9px 28px 9px 40px;
  font-size: 12px;
  color: var(--muted);
  border-left: none;
}
.dropdown-sub a:hover {
  color: var(--navy);
  padding-left: 46px;
  border-left: none;
  background: var(--fog);
}
.dropdown-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 10px 28px;
}
.dropdown-main-link {
  font-weight: 500 !important;
  color: var(--navy-dk) !important;
}
.dropdown-main-link:hover {
  color: var(--navy) !important;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-login {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1.5px solid rgba(17,24,39,0.35);
  border-radius: 100px;
  padding: 7px 18px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-login:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.nav-search-btn {
  width: 34px; height: 34px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.nav-search-btn:hover { background: var(--navy-dk); transform: scale(1.05); }
.nav-search-btn svg { width: 14px; height: 14px; }

/* ════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.fade-in.in-view { opacity: 1; }

/* ════════════════════════════════
   SHARED TYPOGRAPHY
════════════════════════════════ */
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow-light { color: rgba(255,255,255,0.38); }

.sh {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 2.6vw, 42px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--navy-dk);
  letter-spacing: -0.01em;
}
.sh em { font-style: italic; }
.sh-light { color: var(--white); }

.bc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.82;
  color: var(--muted);
}
.bc-light { color: rgba(255,255,255,0.50); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}
.tlink::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--navy);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.tlink:hover::after { transform: scaleX(0); transform-origin: left; }
.tlink-light { color: rgba(255,255,255,0.7); }
.tlink-light::after { background: rgba(255,255,255,0.7); }

/* ════════════════════════════════
   LAYOUT UTILITIES
════════════════════════════════ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 60px; }
.section { padding: 100px 0; }
.section-sm { padding: 72px 0; }

/* ════════════════════════════════
   INNER PAGE HERO (subpages)
════════════════════════════════ */
.page-hero {
  margin-top: var(--nav-h);
  background: var(--navy-dk);
  padding: 80px 60px 88px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../Logos and Branding/CRASSUS PARNERS BACKGROUND BLUE A.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }
.page-hero .eyebrow { color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.12;
  max-width: 720px;
  letter-spacing: -0.01em;
}
.page-hero p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  max-width: 580px;
  line-height: 1.75;
  margin-top: 20px;
}

/* ════════════════════════════════
   SERVICE / CONTENT CARDS
════════════════════════════════ */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
}
.card {
  background: var(--white);
  padding: 40px 32px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: default;
}
.card:hover { background: var(--fog); }
.card-fog { background: var(--fog); }
.card-fog:hover { background: var(--white); }

.card-num {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--navy);
  opacity: 0.4;
  margin-bottom: 14px;
}
.card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-dk);
  margin-bottom: 10px;
  line-height: 1.35;
}
.card-body {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

/* ════════════════════════════════
   SERVICE ROWS (hover slide)
════════════════════════════════ */
.svc-list { border-top: 1px solid var(--rule); }
.svc-row {
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  gap: 20px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: padding-left 0.2s var(--ease), background 0.15s;
}
.svc-row:hover { padding-left: 8px; }
.svc-i { font-size: 11px; font-weight: 300; color: var(--muted); padding-top: 3px; opacity: 0.6; }
.svc-name { font-size: 16px; font-weight: 400; color: var(--text); margin-bottom: 5px; }
.svc-desc { font-size: 13px; font-weight: 300; line-height: 1.65; color: var(--muted); }
.svc-arr {
  font-size: 16px; color: var(--rule); padding-top: 3px;
  transition: color 0.2s, transform 0.2s var(--ease);
}
.svc-row:hover .svc-arr { color: var(--navy); transform: translateX(5px); }

/* ════════════════════════════════
   STATS ROW
════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 44px 48px;
  border-right: 1px solid var(--rule);
  transition: background 0.2s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--fog); }
.stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-l {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ════════════════════════════════
   SPLIT SECTION (text + full-bleed image)
════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.split-content {
  padding: 100px 72px 100px 60px;
  max-width: 620px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-content-right {
  padding: 100px 60px 100px 72px;
  max-width: 620px;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 2;
}
.split-img {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.split:hover .split-img img { transform: scale(1.03); }

/* ════════════════════════════════
   STEP LIST
════════════════════════════════ */
.step-list { margin-top: 40px; }
.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  transition: padding-left 0.2s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step:hover { padding-left: 6px; }
.step-n { font-size: 11px; font-weight: 300; color: var(--muted); padding-top: 3px; opacity: 0.6; }
.step-n-light { color: rgba(255,255,255,0.3); }
.step-title { font-size: 14px; font-weight: 500; color: var(--navy-dk); margin-bottom: 7px; }
.step-title-light { color: var(--white); }
.step-body { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--muted); }
.step-body-light { color: rgba(255,255,255,0.45); }
.step-rule { border-color: rgba(255,255,255,0.1); }
.step-rule:last-child { border-bottom-color: rgba(255,255,255,0.1); }

/* ════════════════════════════════
   CRITERIA / DARK BAND
════════════════════════════════ */
.dark-band { background: var(--navy-dk); }
.dark-band-mid { background: var(--navy); }
.crit-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule-dk);
}
.crit-nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.crit-cell {
  padding: 48px 0 48px 48px;
  border-right: 1px solid var(--rule-dk);
  transition: background 0.2s;
}
.crit-cell:first-child { padding-left: 0; }
.crit-cell:last-child { border-right: none; }
.crit-cell:hover { background: rgba(255,255,255,0.03); }
.crit-v {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}
.crit-l {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
}

/* ════════════════════════════════
   TRANSACTION CARDS
════════════════════════════════ */
.tx-card {
  background: var(--white);
  padding: 40px 32px;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.tx-card:hover { background: var(--fog); border-bottom-color: var(--navy); transform: translateY(-2px); }
.tx-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
}
.tx-co { font-size: 18px; font-weight: 400; color: var(--text); margin-bottom: 8px; }
.tx-desc { font-size: 13px; font-weight: 300; line-height: 1.65; color: var(--muted); margin-bottom: 20px; }
.tx-detail {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px;
}

/* ════════════════════════════════
   PE SIGNUP FORM
════════════════════════════════ */
.form-fields { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 12px; }
.field {
  flex: 1; width: 100%;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.field:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,46,108,0.08);
}
.field::placeholder { color: #b0b8c8; }
textarea.field { resize: vertical; min-height: 120px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.2s var(--ease);
  padding: 14px 28px;
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,29,72,0.2); }
.btn-navy:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 100px;
  padding: 12px 28px;
}
.btn-outline:hover { background: var(--white); color: var(--navy-dk); border-color: var(--white); }
.btn-outline-dk {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 100px;
  padding: 12px 28px;
}
.btn-outline-dk:hover { background: var(--navy); color: var(--white); }
.btn-pill-white {
  background: var(--white);
  color: var(--navy-dk);
  border: 1.5px solid var(--white);
  border-radius: 100px;
  padding: 12px 28px;
}
.btn-pill-white:hover { background: transparent; color: var(--white); }

.form-note {
  font-size: 11.5px; font-weight: 300;
  color: var(--muted); line-height: 1.65;
}

/* ════════════════════════════════
   INSIGHTS CARDS
════════════════════════════════ */
.insight-card {
  background: var(--white);
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(14,29,72,0.10); }
.insight-img {
  height: 200px; overflow: hidden; background: var(--fog-2);
}
.insight-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.insight-card:hover .insight-img img { transform: scale(1.04); }
.insight-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.insight-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 12px;
}
.insight-title { font-size: 16px; font-weight: 400; color: var(--text); line-height: 1.45; margin-bottom: 10px; }
.insight-excerpt { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--muted); flex: 1; }
.insight-date {
  font-size: 11px; font-weight: 400; color: var(--muted);
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule);
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer-top {
  background: var(--navy-dk);
  padding: 64px 60px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 72px;
  align-items: start;
}
.footer-logo-img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  margin-bottom: 18px;
}
.footer-tagline {
  font-size: 12.5px; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.22); line-height: 1.65;
}
.fcol-title {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); margin-bottom: 18px;
}
.fcol-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.fcol-links a {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.42); text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.fcol-links a:hover { color: rgba(255,255,255,0.85); padding-left: 4px; }

.footer-bottom {
  background: var(--navy-dk);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 60px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-legal {
  font-size: 10.5px; font-weight: 300;
  color: rgba(255,255,255,0.18); line-height: 1.7; max-width: 860px;
}
.footer-offices {
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.18); white-space: nowrap;
}

/* ════════════════════════════════════════════════════
   MOBILE & RESPONSIVE
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
════════════════════════════════════════════════════ */

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  transform-origin: center;
}
.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 nav drawer ── */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--rule);
  box-shadow: 0 8px 32px rgba(14,29,72,0.12);
  z-index: 350;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  padding: 16px 0 32px;
}
.nav-mobile-drawer.open { display: block; }

.nav-mobile-item {
  display: block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--fog);
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-item:hover { background: var(--fog); color: var(--navy); }
.nav-mobile-item.active { color: var(--navy); }

.nav-mobile-section {
  padding: 18px 28px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-mobile-sub {
  display: block;
  padding: 11px 28px 11px 40px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--fog);
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-sub:hover { background: var(--fog); color: var(--navy); }
.nav-mobile-login {
  display: block;
  margin: 20px 28px 0;
  padding: 12px 24px;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
}

/* ══════════════════════════════════
   TABLET (≤1100px) — tighten spacing
══════════════════════════════════ */
@media (max-width: 1100px) {
  .nav { padding: 0 32px; gap: 24px; }
  .nav-links { gap: 20px; }
  .nav-links > li > a { font-size: 11px; letter-spacing: 0.06em; }
  .wrap { padding: 0 40px; }
  .section { padding: 80px 0; }
  .two-col,
  .services-grid,
  .sectors-grid,
  .ind-grid,
  .pe-grid { grid-template-columns: 280px 1fr; gap: 56px; }
  .split-content { padding: 80px 56px 80px 40px; }
  .stats-row .stat { padding: 36px 32px; }
  .stat-n { font-size: 34px; }
  .footer-top { grid-template-columns: 1fr auto auto; gap: 48px; }
  .footer-top > div:last-child { display: none; } /* hide 4th col */
}

/* ══════════════════════════════════
   MOBILE (≤900px) — hamburger nav
══════════════════════════════════ */
@media (max-width: 900px) {
  /* Hide desktop nav links and right */
  .nav-links,
  .nav-right { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 24px; justify-content: space-between; }

  /* Hero */
  .hero-panel {
    left: 24px;
    right: 24px;
    bottom: 40px;
    max-width: none;
    padding: 32px 28px 36px;
  }
  .hero-h1 { font-size: clamp(22px, 5vw, 34px); margin-bottom: 24px; }
  .hero-btns { gap: 10px; }
  .btn { font-size: 11px; padding: 11px 22px; }

  /* Stats — 2 columns */
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(3) { border-top: 1px solid var(--rule); }
  .stat:nth-child(2) { border-right: none; }
  .stat { padding: 32px 24px; }
  .stat-n { font-size: 32px; }

  /* All two-column layouts → single column */
  .two-col,
  .services-grid,
  .sectors-grid,
  .ind-grid,
  .pe-grid,
  .process-grid,
  .about-layout,
  .crit-top,
  .tx-header { grid-template-columns: 1fr !important; gap: 40px !important; }

  /* Split sections — stack */
  .split { grid-template-columns: 1fr !important; }
  .split-img { min-height: 280px; order: -1 !important; }
  .split-content,
  .split-content-right {
    padding: 60px 24px !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .about-content {
    padding: 60px 24px !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .about-img { min-height: 260px; }

  /* Process section */
  .process-section { grid-template-columns: 1fr !important; }
  .process-content { padding: 60px 24px !important; max-width: none !important; margin: 0 !important; }
  .process-img-panel { min-height: 260px; }

  /* Criteria grid — 2 cols */
  .crit-grid,
  .crit-nums { grid-template-columns: 1fr 1fr !important; }
  .crit-cell { padding: 32px 0 32px 24px !important; }
  .crit-cell:nth-child(2) { border-right: none !important; }
  .crit-cell:nth-child(3) { border-right: 1px solid var(--rule-dk) !important; border-top: 1px solid var(--rule-dk) !important; }
  .crit-cell:nth-child(4) { border-top: 1px solid var(--rule-dk) !important; }
  .crit-top { padding: 60px 0 48px !important; }
  .crit-v { font-size: 30px; }

  /* Card grids — 1 column on mobile */
  .card-grid-3 { grid-template-columns: 1fr !important; }
  .card-grid-2 { grid-template-columns: 1fr !important; }

  /* Sector cards */
  .ind-cards { grid-template-columns: 1fr 1fr !important; }

  /* Transaction grid */
  .tx-full { grid-template-columns: 1fr !important; }

  /* Insights grid */
  .insights-grid { grid-template-columns: 1fr !important; }
  .featured-insight { grid-template-columns: 1fr !important; }
  .featured-img { height: 240px !important; }
  .featured-body { padding: 32px 24px !important; }

  /* Forms */
  .form-row { flex-direction: column !important; gap: 10px !important; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    padding: 48px 24px !important;
  }
  .footer-bottom { padding: 20px 24px !important; flex-direction: column; gap: 8px; }
  .footer-offices { display: none; }

  /* Page hero */
  .page-hero { padding: 60px 24px 72px !important; }
  .page-hero h1 { font-size: clamp(28px, 6vw, 44px) !important; }

  /* Sections */
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .wrap { padding: 0 24px; }

  /* Statement bands */
  .statement-band,
  .newsletter-band,
  .dark-band { padding: 64px 24px !important; }
  .newsletter-band { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Criteria section */
  .criteria-section { padding: 0 !important; }
  .crit-inner { padding: 0 24px !important; }

  /* Services list on M&A page */
  .svc-list .svc-row { grid-template-columns: 24px 1fr 16px; gap: 12px; }

  /* Login page */
  .login-box { padding: 36px 28px 40px; }

  /* Filter buttons */
  .filter-row { gap: 8px; }
  .f-btn { padding: 6px 12px; font-size: 10px; }
}

/* ══════════════════════════════════
   SMALL MOBILE (≤480px)
══════════════════════════════════ */
@media (max-width: 480px) {
  /* Stats — 1 column */
  .stats-row { grid-template-columns: 1fr !important; }
  .stat { border-right: none !important; border-top: 1px solid var(--rule); }
  .stat:first-child { border-top: none; }

  /* Criteria — 1 column */
  .crit-grid,
  .crit-nums { grid-template-columns: 1fr !important; }
  .crit-cell { border-right: none !important; border-top: 1px solid var(--rule-dk) !important; }
  .crit-cell:first-child { border-top: none !important; padding-left: 0 !important; }

  /* Industry grid — 1 column */
  .ind-cards { grid-template-columns: 1fr !important; }

  /* Footer — 1 column */
  .footer-top { grid-template-columns: 1fr !important; }
  .footer-top > div:nth-child(3) { display: none; }

  /* Hero panel — tighter */
  .hero-panel { left: 16px; right: 16px; bottom: 24px; padding: 24px 20px 28px; }
  .hero-h1 { font-size: 20px; }

  .sh { font-size: clamp(22px, 5vw, 32px); }
  .bc { font-size: 14px; }
}

/* ════════════════════════════════════════════════════
   CROSS-BROWSER COMPATIBILITY
   Chrome · Firefox · Safari · Edge · IE11 fallbacks
════════════════════════════════════════════════════ */

/* ── Safari: -webkit prefix requirements ── */

/* Backdrop filter (nav panel, hero overlay) */
.hero-panel,
.nav { -webkit-backdrop-filter: blur(3px); }

/* Smooth scroll */
html { -webkit-overflow-scrolling: touch; }

/* Font smoothing (Safari/Mac) */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Tap highlight on mobile Safari */
a, button { -webkit-tap-highlight-color: transparent; }

/* Prevent text resize on orientation change (iOS Safari) */
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

/* Input/button appearance reset (Safari adds default styles) */
input, button, select, textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
button { cursor: pointer; }

/* Safari: fix flex gap on older versions (<14.1) using margin fallback */
/* Critical areas where gap is used on flex containers */
.hero-btns { gap: 14px; }
@supports not (gap: 14px) {
  .hero-btns > * + * { margin-left: 14px; }
}
.hero-ctas { gap: 36px; }
@supports not (gap: 36px) {
  .hero-ctas > * + * { margin-left: 36px; }
}
.nav-right { gap: 12px; }
@supports not (gap: 12px) {
  .nav-right > * + * { margin-left: 12px; }
}
.form-row { gap: 12px; }
@supports not (gap: 12px) {
  .form-row > * + * { margin-left: 12px; }
}

/* Safari: fix position:sticky interactions */
.nav { -webkit-transform: translateZ(0); transform: translateZ(0); }

/* ── Firefox: scrollbar styling ── */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--navy) var(--fog);
}
/* Chrome/Edge/Safari scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--fog); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-mid); }

/* Firefox: outline on focused elements */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Firefox: font rendering ── */
@-moz-document url-prefix() {
  body { font-weight: 300; }
  .bc, .section-body { font-weight: 300; }
}

/* ── IE11 fallbacks (where practical) ── */
/* IE doesn't support CSS custom properties — provide px fallbacks */
.nav         { height: 68px; }
.page-hero   { padding-top: 68px; }
.stat-n      { font-size: 38px; }
.sh          { font-size: 38px; }
.hero-h1     { font-size: 38px; }
/* IE doesn't support object-fit on img */
.team-photo  { font-family: 'object-fit: cover'; } /* polyfill hook */
/* IE doesn't support grid gap — use margins */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .stats-row  { display: -ms-flexbox; display: flex; }
  .stat       { -ms-flex: 1; flex: 1; }
  .nav-links  { display: -ms-flexbox; display: flex; }
  .nav        { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; }
  .dropdown   { display: none; position: absolute; }
  .has-dropdown:hover .dropdown { display: block; }
  /* Show all animated elements immediately in IE */
  .fade-up, .fade-in { opacity: 1; -ms-transform: none; transform: none; }
  .card-grid-3 { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
  .card-grid-3 > * { -ms-flex: 0 0 33.33%; flex: 0 0 33.33%; }
}

/* ── Edge (Legacy, pre-Chromium): minor fixes ── */
@supports (-ms-ime-align: auto) {
  .fade-up, .fade-in { opacity: 1; transform: none; }
}

/* ── All browsers: safe font stack fallbacks ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;
}
.sh, .hero-h1, .stat-n, .crit-v, .tx-val, .footer-tagline {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', Times, serif;
}

/* ── Print styles ── */
@media print {
  .nav, .nav-hamburger, .nav-mobile-drawer,
  .hero-btns, .btn, .form-fields, footer { display: none !important; }
  .page-hero { margin-top: 0; background: #fff !important; color: #000 !important; }
  .sh, .section-title { color: #000 !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
