:root {
  --green: #a6ce39;
  --navy: #0e1c2b;
  --cyan: #09b0d5;
  --navy-mid: #04182d;
  --white: #ffffff;
  --text: #434649;
  --font: "Poppins", sans-serif;
  --radius: 6px;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 15px 10px 15px;
}

.site-header .container {
  max-width: 1140px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.header-logo img {
  height: 64px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover {
  color: var(--green);
}
.header-nav a.active-nav {
  background: var(--cyan);
  color: var(--white);
  border-radius: 5px;
  padding: 6px 16px;
  font-weight: 600;
}
.header-nav a.active-nav:hover {
  color: var(--white);
}

/* ── Mega menu ────────────────────────────────────────── */
.has-mega-menu {
  position: static;
}

.mega-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  cursor: default;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.mega-trigger:hover,
.has-mega-menu.open .mega-trigger {
  color: var(--green);
}

.mega-trigger::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 50px;
  pointer-events: auto;
}

.mega-trigger svg {
  width: 11px;
  height: 11px;
  transition: transform 0.2s;
}
.has-mega-menu.open .mega-trigger svg {
  transform: rotate(180deg);
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 200;
  border-top: 3px solid var(--green);
}
.has-mega-menu.open .mega-menu {
  display: flex;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  min-height: 380px;
}

.mega-list {
  border-right: 1px solid #eee;
  padding: 24px 0;
}

.mega-list-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  padding: 0 20px 12px;
}

.mega-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-list li a {
  display: block;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
  cursor: pointer;
}
.mega-list li a:hover,
.mega-list li.active a {
  color: var(--green);
  border-left-color: var(--green);
  background: #f7fbef;
}

.mega-detail {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mega-detail-pane {
  display: none;
}
.mega-detail-pane.active {
  display: block;
}

.mega-detail-pane h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.mega-detail-pane p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.mega-detail-pane .learn-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--navy);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition:
    background 0.2s,
    color 0.2s;
}
.mega-detail-pane .learn-link:hover {
  background: var(--navy);
  color: var(--white);
}

.mega-cta {
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  text-align: center;
}

.mega-cta-inner p {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 20px;
}

.mega-cta .btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 14px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  text-transform: uppercase;
  text-decoration: none;
}
.mega-cta .btn:hover {
  background: #92b830;
  transform: translateY(-1px);
}

.mega-cta .btn.btn-teal {
  background: var(--cyan);
  margin-top: 10px;
}

.mega-cta .btn.btn-teal:hover {
  background: #078da8;
}

.mega-cta-inner .btn {
  display: block;
  width: 100%;
  text-align: center;
}

/* ── Mobile industries accordion ─────────────────────── */
.mobile-industries-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}
.mobile-industries-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.mobile-industries-toggle.open svg {
  transform: rotate(180deg);
}

.mobile-industry-list {
  display: none;
  padding: 4px 0 8px 16px;
}
.mobile-industry-list.open {
  display: block;
}
.mobile-industry-list a {
  font-size: 14px !important;
  padding: 7px 0 !important;
  color: var(--text) !important;
  text-decoration: none;
}

/* ── Header actions ──────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.header-account:hover {
  color: var(--green);
}
.header-account svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ── Hamburger ───────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Mobile nav ──────────────────────────────────────── */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 16px 24px;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy-mid);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
  background-image: url(https://www.instantrecordcheck.ca/wp-content/uploads/2022/11/footer-bg-min.jpg);
  background-position: 0px 45%;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-footer .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
}
.footer-logo img {
  height: 52px;
  width: auto;
}

.footer-address {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 14px;
  color: #337ab7;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #337ab7;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.2s;
}
.social-link:hover {
  background: var(--green);
}
.social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

.footer-bottom {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-brand-logos {
  max-width: 160px !important;
}

/* ── Responsive: tablet ─────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Responsive: mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav,
  .header-account,
  .header-actions {
    display: none;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 0;
    height: auto;
    min-height: 60px;
  }
  .hamburger {
    display: flex;
    grid-column: 1;
    justify-self: start;
    align-self: center;
  }
  .header-logo {
    grid-column: 2;
    justify-self: center;
    align-self: center;
  }

  .footer-brand-logos {
    max-width: 160px;
  }

  .footer-logo,
  .footer-address,
  .footer-brand-logos,
  .footer-quick-links,
  .footer-support {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-address {
    line-height: 2.8;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-grid > :first-child,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .footer-grid > :last-child {
    text-align: center;
  }

  .footer-grid > :last-child .social-links {
    justify-content: center;
    gap: 28px;
    margin-top: 8px;
  }

  .footer-grid > :last-child .footer-desc {
    max-width: 680px;
    margin: 24px auto 0;
    padding: 24px;
  }
}
