/* ==========================================================================
   Innovative AI Labs — Core Design System
   Overrides Bootstrap 5 utilities/grid; do not restyle Bootstrap's own JS.
   ========================================================================== */

:root {
  /* Palette adapted from innovativeais.com (used as a visual/brand reference
     only — layout, copy and components below remain original). */
  --color-primary: #085E9D;
  --color-primary-dark: #064A7D;
  --color-dark: #06193C;
  --color-deep: #051531;
  --color-light: #F8FAFC;
  --color-white: #FFFFFF;
  --color-text: #1E293B;
  --color-muted: #64748B;
  --color-accent: #38BDF8;
  --color-border: #E2E8F0;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(6, 25, 60, 0.06), 0 1px 3px rgba(6, 25, 60, 0.08);
  --shadow-md: 0 8px 24px rgba(6, 25, 60, 0.10);
  --shadow-lg: 0 24px 64px rgba(6, 25, 60, 0.16);

  --font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 76px;
  --container-max: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

.container { max-width: var(--container-max); }

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

section { padding: 5rem 0; }
@media (max-width: 991px) { section { padding: 3.5rem 0; } }

.section--dark {
  background: var(--color-deep);
  color: #C4D3EC;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--light { background: var(--color-light); }
.section--muted { background: #FAFBFF; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline-light {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: transparent;
}
.btn-outline-light:hover, .btn-outline-light:focus-visible {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--color-dark);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.site-navbar { padding: 1rem 0; }
.site-logo { height: 100%; width: 100%; display: block; object-fit: contain; }

/* The real logo has dark navy wordmark text baked in, so it needs a light
   backing plate to stay legible on the dark header/footer/sidebar — the
   badge is sized around the (roughly square, transparent-background) mark. */
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-badge--lg { width: 60px; height: 60px; padding: 6px; }

.main-nav { gap: 0.25rem; }
.main-nav .nav-link {
  color: #E7ECF7;
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.main-nav .nav-link:hover,
.main-nav .nav-link:focus-visible { color: #fff; background: rgba(255,255,255,0.08); }
.main-nav .dropdown-toggle::after { display: none; }

.nav-cta { margin-left: 1rem; white-space: nowrap; }

.navbar-toggler {
  border: none;
  color: #fff;
  padding: 0.4rem;
}
.navbar-toggler:focus { box-shadow: none; }
.icon.navbar-toggler-icon-custom { width: 26px; height: 26px; color: #fff; }

/* Mega menu */
.mega-nav-item { position: static; }
.mega-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  margin-top: 0.75rem;
  background: #fff;
  width: min(920px, 92vw);
  left: 50%;
  transform: translateX(-50%);
}
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.mega-menu__grid--industries { grid-template-columns: repeat(2, 1fr); }
.mega-menu__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}
.mega-menu__link {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.mega-menu__link:hover { background: var(--color-light); color: var(--color-text); }
.mega-menu__icon { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; margin-top: 0.15rem; }
.mega-menu__link-title { display: block; font-weight: 600; font-size: 0.92rem; }
.mega-menu__link-desc { display: block; font-size: 0.8rem; color: var(--color-muted); }
.mega-menu__all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}
.mega-menu__col--feature {
  background: var(--color-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #fff;
}
.mega-menu__col--feature .mega-menu__col-title { color: #9FB3D9; }
.mega-menu__feature-icon { color: var(--color-accent); width: 26px; height: 26px; }
.mega-menu__feature-title { font-weight: 700; margin: 0.5rem 0 0.25rem; }
.mega-menu__feature-desc { font-size: 0.85rem; color: #C4D3EC; margin-bottom: 0.75rem; }
.mega-menu__cta { width: 100%; justify-content: center; margin-top: 0.75rem; }

/* Mobile offcanvas */
.mobile-nav .offcanvas-header,
.mobile-nav .offcanvas-body { background: var(--color-dark); color: #fff; }
.mobile-nav { background: var(--color-dark); }
.mobile-nav .offcanvas-title { font-weight: 700; }
.btn-close-custom { background: none; border: none; color: #fff; padding: 0.25rem; }
.mobile-nav__accordion .accordion-item { background: transparent; border-color: rgba(255,255,255,0.12); }
.mobile-nav__accordion .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
.mobile-nav__accordion .accordion-button::after { filter: invert(1); }
.mobile-nav__accordion .accordion-button:not(.collapsed) { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-nav__link, .mobile-nav__top-link {
  display: block;
  padding: 0.6rem 0;
  color: #C4D3EC;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav__top-link { font-weight: 600; color: #fff; }
.mobile-nav__link--all { color: var(--color-accent); font-weight: 600; }

.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1040;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
  }
}

/* ---------- Hero ---------- */
.hero { padding: 6rem 0; overflow: hidden; }
.hero--dark {
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-deep) 100%);
  color: #C4D3EC;
}
.hero--dark h1 { color: #fff; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hero__title { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1.25rem; }
.hero__subtitle { font-size: 1.15rem; max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual-svg { width: 100%; height: auto; }
.hero__visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(3, 12, 33, 0.6);
}

/* ---------- Section heading ---------- */
.section-heading { max-width: 720px; margin-bottom: 3rem; }
.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}
.section-heading__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.75rem; }
.section-heading__subtitle { color: var(--color-muted); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-deep); color: #A9BADA; padding: 4.5rem 0 2rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__tagline { color: #fff; font-weight: 600; margin-top: 1rem; }
.site-footer__desc { font-size: 0.92rem; margin-top: 0.5rem; }
.site-footer__social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.site-footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: #C4D3EC;
}
.site-footer__social .icon { width: 18px; height: 18px; }
.site-footer__col-title { color: #fff; font-weight: 700; font-size: 0.92rem; margin-bottom: 1rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 0.6rem; }
.site-footer__col a { color: #A9BADA; font-size: 0.92rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}
.site-footer__legal { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; }
.site-footer__legal a { color: #A9BADA; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--color-light); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 0.4rem; font-size: 0.85rem; }
.breadcrumbs__item { display: flex; align-items: center; gap: 0.4rem; color: var(--color-muted); }
.breadcrumbs__item a { color: var(--color-muted); }
.breadcrumbs__item a:hover { color: var(--color-primary); }

/* ---------- CTA band ---------- */
.cta-band { padding: 4rem 0; }
.cta-band--dark { background: var(--color-dark); color: #fff; }
.cta-band--light { background: var(--color-light); }
.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.5rem; }
.cta-band--dark .cta-band__title { color: #fff; }
.cta-band__subtitle { color: var(--color-muted); max-width: 50ch; }
.cta-band--dark .cta-band__subtitle { color: #C4D3EC; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
