/* ValueLab Shared Design System — offer.valuelab.ca */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
}

:root {
  --forest: #1A382F;
  --forest-deep: #102620;
  --mint: #2EBD6B;
  --cream: #F9F9F7;
  --ink: #1A1A1A;
  --muted: #6B7280;
  --border: #E5E7EB;
  --surface: #FAFAFA;
  --serif: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

/* ── GLOBAL NAV ─────────────────────────────────────────────── */
.vl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(249, 249, 247, 0.96);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.vl-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
}

.vl-nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  margin-right: auto;
}

.vl-nav-logo img {
  height: 28px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.vl-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 20px;
}

@media (max-width: 768px) {
  .vl-nav-links { display: none; }
  .vl-nav-inner { padding: 0 20px; }
  .vl-subnav-inner { padding: 0 20px; }
}

.vl-nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.vl-nav-link:hover, .vl-nav-link.active {
  color: var(--forest);
  background: rgba(26, 56, 47, 0.05);
}

/* Dropdown chevron */
.vl-nav-link .vl-chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* ── DROPDOWN ────────────────────────────────────────────────── */
.vl-dropdown {
  position: relative;
}

.vl-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(26, 56, 47, 0.1);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vl-dropdown.open .vl-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.vl-dropdown.open .vl-chevron {
  transform: rotate(180deg);
}

.vl-dropdown-item {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.vl-dropdown-item:hover {
  background: rgba(26, 56, 47, 0.06);
  color: var(--forest);
}

.vl-dropdown-item .vl-item-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

/* ── CTA BUTTON ──────────────────────────────────────────────── */
.vl-btn-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: var(--forest);
  border: none;
  border-radius: 4px;
  padding: 9px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.vl-btn-cta:hover {
  background: var(--forest-deep);
  color: var(--cream);
}

/* ── HAMBURGER ───────────────────────────────────────────────── */
.vl-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  gap: 4px;
  margin-left: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .vl-hamburger { display: flex; }
  .vl-btn-cta { display: none; }
}

.vl-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.vl-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.vl-hamburger.open span:nth-child(2) { opacity: 0; }
.vl-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.vl-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 199;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.vl-mobile-menu.open { display: block; }

.vl-mobile-link {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.15s;
}

.vl-mobile-link:hover { color: var(--forest); }

.vl-mobile-section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 0 6px;
}

.vl-mobile-sub-link {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  padding: 10px 0 10px 12px;
  border-bottom: 1px solid rgba(229,231,235,0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.vl-mobile-sub-link:hover { color: var(--forest); }

.vl-mobile-cta {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  background: var(--forest);
  padding: 14px 20px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}

/* ── SUBNAV ──────────────────────────────────────────────────── */
.vl-subnav {
  position: sticky;
  top: 64px;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  background: rgba(249,249,247,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.vl-subnav::-webkit-scrollbar { display: none; }

.vl-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 0;
  align-items: center;
}

.vl-subnav-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 14px 16px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.vl-subnav-link:hover {
  color: var(--forest);
}

.vl-subnav-link.active {
  color: var(--forest);
  border-bottom-color: var(--mint);
}

/* ── NAV SPACER ──────────────────────────────────────────────── */
.vl-nav-spacer {
  height: 64px;
}

.vl-nav-spacer-with-subnav {
  height: 64px; /* subnav is sticky so no extra space needed */
}

/* ── MOBILE PERFORMANCE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .vl-nav,
  .vl-subnav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(249,249,247,0.98);
  }
}
