/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1);
}
.site-nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(13,38,93,.06), 0 4px 20px rgba(13,38,93,.04);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
body.nav-lock { overflow: hidden; }

/* Logo */
.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: 52px; width: auto;
  transition: filter .4s, opacity .3s;
  opacity: .92;
}
.nav-logo:hover img { opacity: 1; }
.site-nav.scrolled .nav-logo img {
  filter: brightness(0) saturate(100%) invert(12%) sepia(60%) saturate(2000%) hue-rotate(210deg) brightness(70%);
}

/* Links */
.nav-links {
  display: flex; gap: 0; list-style: none; align-items: center;
  margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  font-size: .85rem; font-weight: 450; letter-spacing: .02em;
  color: rgba(255,255,255,.75);
  padding: 8px 24px;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links > li > a:hover { color: var(--white); }
.site-nav.scrolled .nav-links > li > a { color: var(--text-muted); }
.site-nav.scrolled .nav-links > li > a:hover { color: var(--navy); }

/* Chevron */
.chevron { transition: transform .25s ease; margin-left: 2px; }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

/* CTA button */
.nav-cta {
  font-size: .78rem !important; font-weight: 600 !important;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 32px !important;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white) !important;
  transition: all .25s ease;
  margin-left: 8px;
}
.nav-cta:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.35);
}
.site-nav.scrolled .nav-cta {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: var(--white) !important;
}
.site-nav.scrolled .nav-cta:hover {
  background: var(--navy-light) !important;
  border-color: var(--navy-light) !important;
}

/* ── DROPDOWN ────────────────────────────────────────────── */
.dropdown {
  position: absolute;
  top: 100%;
  right: -120px;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  padding-top: 12px;
  width: max-content;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 25px 80px rgba(13,38,93,.14), 0 1px 3px rgba(13,38,93,.06);
  border: 1px solid rgba(13,38,93,.06);
  overflow: hidden;
  min-width: 860px;
  width: max-content;
  max-width: 960px;
}
.dropdown-col {
  padding: 32px 36px;
}
.dropdown-col + .dropdown-col {
  border-left: 1px solid var(--border);
}
.dropdown-label {
  display: block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dropdown-col a {
  display: block;
  font-size: .88rem; font-weight: 450;
  color: var(--text);
  padding: 9px 0;
  transition: color .15s, padding-left .15s;
  line-height: 1.4;
}
.dropdown-col a:hover {
  color: var(--navy);
  padding-left: 4px;
}
.dropdown-col .link-desc {
  display: block;
  font-size: .73rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

/* Featured card in dropdown */
.dropdown-featured {
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  padding: 28px 28px !important;
}
.dropdown-featured .dropdown-label {
  margin-bottom: 16px;
}
.dropdown-card {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  padding: 0 !important;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
  flex: 1;
  overflow: hidden;
}
.dropdown-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(13,38,93,.08);
  padding-left: 0 !important;
}
.dropdown-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.dropdown-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.dropdown-card-title {
  font-size: .95rem; font-weight: 600;
  color: var(--navy);
}
.dropdown-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.dropdown-card-link {
  font-size: .75rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: .03em;
  margin-top: auto;
  padding-top: 4px;
}

/* ── MOBILE NAV ──────────────────────────────────────────── */
.nav-mobile {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 10px; z-index: 1002;
  position: relative;
}
.nav-mobile span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  margin: 5px 0;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  border-radius: 1px;
}
.site-nav.scrolled .nav-mobile span { background: var(--navy); }

/* Hamburger to X animation */
.site-nav.mobile-open .nav-mobile span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.site-nav.mobile-open .nav-mobile span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.site-nav.mobile-open .nav-mobile span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }
.site-nav.mobile-open .nav-mobile span { background: var(--navy); }
.site-nav.mobile-open { background: var(--white) !important; z-index: 1002; }
.site-nav.mobile-open .nav-logo img {
  filter: brightness(0) saturate(100%) invert(12%) sepia(60%) saturate(2000%) hue-rotate(210deg) brightness(70%);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  z-index: 1001;
  overflow-y: auto;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu-inner {
  padding: 108px 36px 48px;
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: flex-start;
}
.mobile-menu-inner > a,
.mobile-menu-inner > button.mobile-accordion {
  font-size: 1.15rem; font-weight: 450;
  color: var(--text);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-menu-inner > a:hover {
  color: var(--navy);
}

/* Services accordion */
.mobile-accordion {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; border-bottom: 1px solid var(--border);
  cursor: pointer; font-family: inherit;
}
.mobile-accordion-chevron {
  transition: transform .25s ease;
  color: var(--text-muted);
}
.mobile-accordion[aria-expanded="true"] .mobile-accordion-chevron {
  transform: rotate(180deg);
}
.mobile-accordion-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.22,1,.36,1);
}
.mobile-accordion-panel.open {
  max-height: 600px;
}
.mobile-accordion-panel a {
  display: block;
  font-size: .9rem; font-weight: 400;
  color: var(--text-muted);
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-accordion-panel a:last-child {
  border-bottom: none;
}
.mobile-accordion-panel a:hover {
  color: var(--navy);
}

.mobile-divider {
  height: 0;
  margin: 8px 0;
}
.mobile-phone {
  text-align: center !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px;
  padding: 14px !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  letter-spacing: .04em;
  color: var(--navy) !important;
  border-bottom: 1.5px solid var(--border) !important;
  margin-top: 4px;
}
.mobile-phone:hover {
  border-color: var(--navy) !important;
}
.mobile-cta {
  margin-top: 8px;
  text-align: center !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: 8px;
  padding: 16px !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  letter-spacing: .04em;
  border-bottom: none !important;
}
.mobile-cta:hover {
  background: var(--navy-light) !important;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
