:root {
  --atom: #2B81D3;
  --ignite: #FA9B15;
  --pelocity: #5BA746;
  --slate: #4B5563;
  --ink: #1f2937;
  --bg: #ffffff;
  --bg-tint: #f6f9fe;
  --ring: rgba(43, 129, 211, .25);
  --qh-blue: #386FA8;
  --qh-orange: #FA9B15;
  --qh-green: #5BA746;
  --muted: #6c757d;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(43, 129, 211, .06), transparent 60%),
    linear-gradient(#fff, #fff);
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  scroll-behavior: smooth;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(56, 111, 168, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 111, 168, 0.06), transparent 60%),
    linear-gradient(180deg, #f8f9fb, #ffffff);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/qubithr-atomic-grid.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.section {
  padding: 3rem 0;
}

@media (min-width:992px) {
  .section {
    padding: 3.5rem 0;
  }
}

.section--tint {
  background: var(--bg-tint);
}

.section--band {
  background: var(--atom);
  color: #fff;
}

.section--band a {
  color: #111;
  text-decoration: none
}

.section--band a.btn-ignite {
  color: #111
}

.hero {
  background: linear-gradient(180deg, rgba(43, 129, 211, .08), transparent 55%),
    linear-gradient(180deg, #ffffff, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.hero .display-5,
.hero h1 {
  color: var(--ink);
}

.hero .lead {
  color: #334155
}

.card {
  border: 1px solid rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
  background: #fff;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 129, 211, .10);
  border-color: var(--ring);
}

.btn-atom {
  background: var(--atom);
  color: #fff;
  border: 0;
}

.btn-atom:hover {
  filter: brightness(.95);
  color: #fff;
}

.btn-ignite {
  background: var(--ignite);
  color: #111;
  border: 0;
}

.btn-ignite:hover {
  filter: brightness(.95);
  color: #111;
}

.btn-outline-atom {
  border: 1px solid var(--atom);
  color: var(--atom);
  background: transparent;
}

.btn-outline-atom:hover {
  background: rgba(43, 129, 211, .08);
  color: var(--atom);
}

.kicker {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--atom);
  font-weight: 600;
}

.divider {
  height: 3px;
  width: 88px;
  background: linear-gradient(90deg, var(--atom), var(--ignite));
  border-radius: 999px;
  margin: 1rem 0 1.25rem;
}

.navbar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .075)
}

.navbar .nav-link {
  position: relative;
  padding-bottom: .35rem;
  font-weight: 600;
}

.navbar .nav-link:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .1rem;
  height: 2px;
  background: var(--atom);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}

.navbar .nav-link:hover:after {
  transform: scaleX(1);
}

/* MEGA MENU */
.dropdown-mega.position-static .dropdown-menu {
  left: 0;
  right: 0;
  margin-top: 0;
  border: 0;
  border-radius: 0 0 .75rem .75rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  padding: 2rem 0;
  background: #fff;
}

@media (min-width:992px) {
  .dropdown-mega:hover>.dropdown-menu {
    display: block;
  }
}

.mega-item {
  --brand-underline: var(--atom);
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
  color: var(--ink);
}

.mega-item:hover {
  background: #f8f9fa;
  color: var(--ink);
  transform: translateY(-1px);
}

/* SOLUTIONS & INDUSTRIES: Lucide icons (Atom -> Ignite on hover) */
.mega-icon-img {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.mega-icon-img i,
.mega-icon-img svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  color: var(--atom);
}

.mega-item:hover .mega-icon-img i,
.mega-item:hover .mega-icon-img svg {
  color: var(--ignite);
}

.mega-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
}

.mega-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--brand-underline);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease-out, opacity .22s ease-out;
  opacity: 0;
}

.mega-item:hover .mega-title::after,
.mega-item:focus-within .mega-title::after {
  transform: scaleX(1);
  opacity: 1;
}

.mega-desc {
  margin: .25rem 0 0;
  color: #6b7280;
  font-size: .9375rem;
  line-height: 1.35;
}

/* brand underlines per product */
.mega-item.headlinenews,
.mega-item.ignite,
.mega-item.maxxattain,
.mega-item.peoplelab {
  --brand-underline: var(--ignite);
}

.mega-item.pelocity {
  --brand-underline: var(--pelocity);
}

.mega-item.qubithr {
  --brand-underline: var(--atom);
}

/* PRODUCTS: original image icons with constant faint glow, stronger on hover */
.dropdown-mega .mega-item .mega-icon-img img {
  width: 48px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 3px rgba(43, 129, 211, .18));
  transition: filter .25s ease, transform .25s ease;
}

.dropdown-mega .mega-item:hover .mega-icon-img img {
  filter: drop-shadow(0 0 8px rgba(43, 129, 211, .45));
  transform: translateY(-2px);
}

/* badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
}

.badge-ignite {
  background: rgba(250, 155, 21, .12);
  color: var(--ignite);
}

.badge-pelocity {
  background: rgba(91, 167, 70, .12);
  color: var(--pelocity);
}

.badge-atom {
  background: rgba(43, 129, 211, .12);
  color: var(--atom);
}

/* PAGE-SPECIFIC STYLES */

/* Sticky in-page navigation (products, industries, solutions pages) */
.page-subnav {
  position: sticky;
  top: 76px;
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.page-subnav .nav-link {
  padding: .75rem 1rem;
  color: #6b7280;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}

.page-subnav .nav-link:hover {
  color: var(--qh-blue);
  background: #f8f9fa;
}

.page-subnav .nav-link.active {
  color: var(--qh-blue);
  border-bottom-color: var(--qh-blue);
  font-weight: 600;
  background: #f8f9fa;
}

/* Product sections */
.product-section,
.industry-section,
.solution-section {
  scroll-margin-top: 140px;
  padding: 4rem 0;
}

.product-section:nth-child(even),
.industry-section:nth-child(even),
.solution-section:nth-child(even) {
  background: #f8f9fb;
}

.product-header,
.industry-header,
.solution-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Product badges */
.product-badge {
  width: 80px;
  height: 80px;
  background: var(--qh-blue);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-badge img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.product-badge.orange {
  background: var(--qh-orange);
}

.product-badge.green {
  background: var(--qh-green);
}

/* Industry badges (large) */
.industry-badge-lg {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Solution icons */
.solution-icon {
  width: 72px;
  height: 72px;
  background: #f8f9fa;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qh-blue);
  flex-shrink: 0;
}

.solution-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2;
}

/* Feature lists */
.feature-list li {
  margin-bottom: .75rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--qh-blue);
  font-weight: 700;
}

/* CTA boxes */
.cta-box {
  background: linear-gradient(135deg, var(--qh-blue), #2b5f8b);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
}

/* Challenge cards (industries page) */
.challenge-card {
  background: #fff;
  border-left: 4px solid var(--qh-blue);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Solution pills (industries page) */
.solution-pill {
  display: inline-block;
  background: var(--qh-blue);
  color: #fff;
  padding: .375rem .75rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  margin: .25rem;
}

/* Stats boxes (solutions page) */
.stat-box {
  background: linear-gradient(135deg, var(--qh-blue), #2b5f8b);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

/* Process steps (solutions page) */
.process-step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--qh-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

/* Benefit cards (solutions page) */
.benefit-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
}

/* Thank You hero background accent */
.thankyou-atom {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 460px;
  opacity: 0.18;
  pointer-events: none;
}

@media (max-width: 768px) {
  .thankyou-atom {
    width: 320px;
    top: -40px;
    right: -60px;
    opacity: 0.12;
  }
}

/* -------------------------------------------------
   Footer (global)
------------------------------------------------- */

.site-footer {
  color: #8a8f98;
  font-size: 0.85rem;
  line-height: 1.4;
}

.site-footer a {
  color: #8a8f98;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
}

