/* Site Navigation — shared across all marketing pages
   Two variants: .site-nav--dark (white bg pages) and .site-nav--light (dark bg pages)
   Matches the help-header layout from the help centre pages */

/* Prevent horizontal overflow pushing viewport wider on mobile */
html, body { overflow-x: hidden; }

.site-nav {
  position: relative;
  z-index: 100;
}

.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.site-nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-nav-logo img {
  display: block;
}

/* Nav links row */
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.site-nav-links > a {
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}

/* More dropdown */
.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.6;
}

.site-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 272px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  padding: 8px 0;
  margin-top: 8px;
  z-index: 200;
}

.site-nav-dropdown:hover .site-nav-dropdown-menu {
  display: block;
}

.site-nav-dropdown--left .site-nav-dropdown-menu {
  left: 0;
  transform: none;
}

.site-nav-dropdown--right .site-nav-dropdown-menu {
  left: auto;
  right: 0;
  transform: none;
}

/* Invisible hover bridge so menu stays open when moving cursor down */
.site-nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.site-nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  transition: background 0.12s;
}

.site-nav-dropdown-menu a:hover {
  background: #f4f6f8;
  color: #111;
}

.site-nav-dropdown-footer {
  border-top: 1px solid #eee;
  margin-top: 4px;
  padding-top: 4px;
}

.site-nav-dropdown-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: #0fbf95;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Actions: login + CTA */
.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.site-nav-login {
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}

.site-nav-cta {
  padding: 8px 20px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

/* ─── Dark variant (for light/white background pages) ─── */
.site-nav--dark {
  background: transparent;
}

.site-nav--dark .site-nav-links > a {
  color: rgba(0,0,0,0.65);
}

.site-nav--dark .site-nav-links > a:hover {
  color: #111;
}

.site-nav--dark .site-nav-dropdown-toggle {
  color: rgba(0,0,0,0.65);
}

.site-nav--dark .site-nav-dropdown-toggle:hover {
  color: #111;
}

.site-nav--dark .site-nav-login {
  color: rgba(0,0,0,0.65);
}

.site-nav--dark .site-nav-login:hover {
  color: #111;
}

.site-nav--dark .site-nav-cta {
  background: #3b7af6;
  color: #fff;
  border: 1.5px solid #3b7af6;
}

.site-nav--dark .site-nav-cta:hover {
  background: #356edd;
  border-color: #356edd;
}

/* ─── Light variant (for dark background pages) ─── */
.site-nav--light {
  background: #273244;
}

.site-nav--light .site-nav-links > a {
  color: rgba(255,255,255,0.75);
}

.site-nav--light .site-nav-links > a:hover {
  color: #fff;
}

.site-nav--light .site-nav-dropdown-toggle {
  color: rgba(255,255,255,0.75);
}

.site-nav--light .site-nav-dropdown-toggle:hover {
  color: #fff;
}

.site-nav--light .site-nav-login {
  color: rgba(255,255,255,0.75);
}

.site-nav--light .site-nav-login:hover {
  color: #fff;
}

.site-nav--light .site-nav-cta {
  padding: 8px 20px;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
}

.site-nav--light .site-nav-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ─── Hamburger button (hidden by default) ─── */
.site-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.site-nav-hamburger svg { display: block; }
.site-nav-drawer-close { display: none; }
.site-nav-drawer-actions { display: none; }

/* ─── Drawer overlay ─── */
.site-nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}
.site-nav-drawer-overlay.is-open { display: block; }

.testimonial-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #3b7af6;
  text-decoration: none;
}

.testimonial-link:hover {
  text-decoration: underline;
}

/* ─── Tablet / small desktop ─── */
@media (max-width: 1180px) {
  .site-nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 88vw;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 28px;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .site-nav-links.is-open { display: flex; }

  /* Close button */
  .site-nav-drawer-close {
    display: flex;
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-bottom: 8px;
    color: #64748b;
  }
  .site-nav-drawer-close:hover { color: #111; }

  /* Section labels in drawer */
  .site-nav-links > a {
    padding: 14px 0 !important;
    font-size: 16px !important;
    font-weight: 500;
    color: #111 !important;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    text-align: left;
    text-decoration: none;
  }
  .site-nav-dropdown-toggle {
    padding: 14px 0 !important;
    font-size: 13px !important;
    font-weight: 600;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: none;
    width: 100%;
    text-align: left;
    cursor: default;
    margin-top: 8px;
  }
  .site-nav-dropdown { width: 100%; }
  .site-nav-dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column;
  }
  .site-nav-dropdown-menu a {
    padding: 12px 0 !important;
    font-size: 15px !important;
    font-weight: 500;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
  }
  .site-nav-dropdown-footer { display: none; }
  .site-nav-hamburger { display: block; }
  .site-nav-actions { display: none; }
  .site-nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
  }
  .site-nav-drawer-actions a {
    display: block;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
  }
  .site-nav-drawer-actions .drawer-login {
    color: #334155;
    background: #f1f5f9;
  }
  .site-nav-drawer-actions .drawer-cta {
    color: #fff;
    background: #3b7af6;
  }

  /* Light variant drawer */
  .site-nav--light .site-nav-links { background: #1e293b; }
  .site-nav--light .site-nav-links > a { color: #e2e8f0 !important; border-bottom-color: rgba(255,255,255,0.08); }
  .site-nav--light .site-nav-dropdown-toggle { color: #64748b !important; }
  .site-nav--light .site-nav-dropdown-menu a { color: #cbd5e1 !important; border-bottom-color: rgba(255,255,255,0.06); }
  .site-nav--light .site-nav-drawer-close { color: #94a3b8; }
  .site-nav--light .site-nav-drawer-close:hover { color: #fff; }
  .site-nav--light .site-nav-drawer-actions { border-top-color: rgba(255,255,255,0.08); }
  .site-nav--light .site-nav-drawer-actions .drawer-login { color: #e2e8f0; background: rgba(255,255,255,0.08); }
}

/* ── Footer ── */

/* Hide old Webflow divider arrows between sections and footer */
/* Global heading font — override Webflow's Rubik/Nunito with DM Sans */
.section-title h2,
.section-title .section-subtitle,
.h1-heading,
.medium-heading,
.large-heading,
.subheading-bold {
  font-family: 'DM Sans', sans-serif;
}

/* ─── Responsive heading scale ─── */
/* ─── 991px: tablet ─── */
@media (max-width: 991px) {
  .medium-heading { font-size: 32px; line-height: 40px; }
  .h1-heading    { font-size: 36px; }
  .fe-hero { padding: 48px 0 40px !important; }
  .fe-hero h1 { font-size: 36px !important; }
  /* Stack all 2-col pair layouts */
  .fe-hero-layout,
  .fe-pair { grid-template-columns: 1fr !important; }
  /* 3+ col grids → 2 col */
  .fe-grid-6,
  .fe-crosslinks,
  .doc-type-grid,
  .about-team-grid,
  .about-stats,
  .careers-what-grid,
  .cornerstone-grid,
  .more-features-grid,
  .fe-panels-grid,
  .field-items,
  .value-stats,
  .wai-cap-grid,
  .calc-province-grid,
  .trust-proof-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Data tables → 2 col on tablet */
  .data-extract-table { grid-template-columns: 1.4fr 1fr 1fr !important; }
  .fe-checklist-grid { grid-template-columns: 1fr !important; }
  .section { padding-top: 56px !important; padding-bottom: 64px !important; }
  .section.no-bottom-space { padding-bottom: 0 !important; }
  .section.no-top-space { padding-top: 0 !important; }
}
/* ─── 767px: large phone ─── */
@media (max-width: 767px) {
  .medium-heading { font-size: 28px; line-height: 36px; }
  .large-heading  { font-size: 32px; line-height: 40px; }
  .h1-heading    { font-size: 32px; }
  .fe-hero h1 { font-size: 32px !important; }
  .section { padding-top: 48px !important; padding-bottom: 56px !important; }
  .section.no-bottom-space { padding-bottom: 0 !important; }
  .section.no-top-space { padding-top: 0 !important; }
}
/* ─── 479px: small phone ─── */
@media (max-width: 479px) {
  .medium-heading { font-size: 24px; line-height: 32px; }
  .large-heading  { font-size: 28px; line-height: 36px; }
  .h1-heading    { font-size: 28px; }
  .fe-hero { padding: 40px 0 32px !important; }
  .fe-hero h1 { font-size: 28px !important; }
  .fe-hero p { font-size: 16px !important; }
  .section { padding-top: 40px !important; padding-bottom: 48px !important; }
  .section.no-bottom-space { padding-bottom: 0 !important; }
  .section.no-top-space { padding-top: 0 !important; }
  .container { padding-left: 20px !important; padding-right: 20px !important; }
  /* All multi-col grids → 1 col */
  .fe-grid-6,
  .fe-crosslinks,
  .doc-type-grid,
  .about-team-grid,
  .about-stats,
  .careers-what-grid,
  .cornerstone-grid,
  .more-features-grid,
  .fe-panels-grid,
  .field-items,
  .value-stats,
  .wai-cap-grid,
  .calc-province-grid,
  .trust-proof-grid { grid-template-columns: 1fr !important; }
  .data-extract-table { grid-template-columns: 1fr 1fr !important; }
  .fd-status-table { grid-template-columns: 2fr 1fr 1fr !important; font-size: 12px !important; }
}

img.divider.divider-bottom { display: none; }
/* The hidden divider used to provide bottom spacing on sections above the footer.
   Add padding-bottom to any no-bottom-space dark CTA that precedes the footer. */
img.divider.divider-bottom + .ft-footer { margin-top: 0; }
.section.no-bottom-space.bg-primary-3 { padding-bottom: 64px; }

.ft-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 72px 0 0;
  font-family: 'DM Sans', sans-serif;
}
.ft-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.ft-top {
  display: grid;
  grid-template-columns: 1fr 3.2fr;
  gap: 56px;
  padding-bottom: 56px;
}
.ft-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ft-logo-link {
  display: inline-block;
}
.ft-logo-link img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}
.ft-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
}
.ft-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.ft-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.ft-social-link:hover {
  background: rgba(255,255,255,0.12);
}
.ft-social-link img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.ft-social-link:hover img {
  opacity: 1;
}
.ft-menus {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.ft-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e2e8f0;
  margin: 0 0 16px;
}
.ft-heading.ft-heading-second {
  margin-top: 28px;
}
.ft-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ft-links li {
  margin-bottom: 10px;
}
.ft-links a {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}
.ft-links a:hover {
  color: #fff;
}
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ft-copyright {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ft-flag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  position: relative;
  top: -1px;
}
.ft-bottom-links {
  display: flex;
  gap: 24px;
}
.ft-bottom-links a {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}
.ft-bottom-links a:hover {
  color: #94a3b8;
}

@media (max-width: 991px) {
  .ft-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ft-menus {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 479px) {
  .ft-footer {
    padding: 48px 0 0;
  }
  .ft-menus {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ft-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
