/* =========================================================
   Ignitist — site styles
   ========================================================= */

:root {
  /* Brand palette */
  --orange-deep: #ee4e1b;
  --orange: #f15a22;
  --orange-light: #f7941d;
  --amber: #fba919;
  --teal: #199c98;
  --teal-dark: #157f7c;
  --teal-soft: #bfe6e4;
  --blue: #1f4fa3;
  --blue-soft: #c6d3ec;
  --pink-soft: #f6c9c3;
  --peach-soft: #fbe0c8;
  --cyan: #18c6dd;
  --brown: #8a3a1d;

  /* Text + surface */
  --ink: #16263f;        /* body navy */
  --ink-strong: #101820; /* headings near-black */
  --muted: #5d6b7d;
  --line: #ececec;
  --bg: #ffffff;
  --bg-band: #f5f6f7;
  --footer-muted: #9aa6b8;

  /* Type */
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gut: 24px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(16, 24, 32, 0.08);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink-strong);
  line-height: 1.15;
  margin: 0 0 .5em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.section { padding: 72px 0; }
.section--band { background: var(--bg-band); }
.section--tight { padding: 44px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  color: #fff;
  background: var(--orange);
  border: none;
  padding: 13px 30px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(238,78,27,.28); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn--teal { background: var(--teal); }
.btn--teal:hover { background: var(--teal-dark); box-shadow: 0 8px 18px rgba(25,156,152,.28); }
.btn--amber { background: var(--orange-light); }
.btn--amber:hover { background: var(--orange-deep); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: 1px;
  color: var(--ink-strong);
}
.brand .flame { width: 22px; height: 30px; flex: 0 0 auto; }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-brand .brand-logo { height: 30px; }
@media (max-width: 560px) { .brand-logo { height: 28px; } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink-strong);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span + span { margin-top: 5px; }

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu > li { position: relative; }
.menu a, .menu .menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-strong);
  text-decoration: none;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}
.menu a:hover, .menu .menu-trigger:hover { color: var(--orange); }
.menu a.is-active { color: var(--orange); box-shadow: inset 0 -2px 0 var(--orange); }
.menu .caret { width: 9px; height: 9px; transition: transform .2s ease; }

.has-dropdown .submenu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .submenu,
.has-dropdown:focus-within .submenu,
.has-dropdown.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown:hover .caret,
.has-dropdown.open .caret { transform: rotate(180deg); }
.submenu a { display: block; padding: 9px 14px; border-radius: 7px; font-weight: 500; }
.submenu a:hover { background: #fdf1ea; color: var(--orange); }

/* ---------- Hero banner (interior pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(101deg,
              var(--orange-deep) 0%,
              var(--orange-deep) 46%,
              var(--orange-light) 46%,
              var(--amber) 100%);
  color: #fff;
  text-align: center;
  padding: 58px 24px;
  overflow: hidden;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* ---------- Home hero (split) ---------- */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  align-items: stretch;
}
.home-hero__media {
  position: relative;
  background-image: url('../img/vitaly-gariev-K3ipNkH5GSg-unsplash copy.webp');
  background-size: cover;
  background-position: center;
  background-color: #dcecfb;
}
.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
}
.home-hero__panel {
  background: var(--orange);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
}
.home-hero__panel h1 { color: #fff; font-size: clamp(34px, 4vw, 48px); font-weight: 800; }
.home-hero__panel p { font-size: 18px; max-width: 520px; margin: 0; }

/* ---------- Generic two-column row ---------- */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.row--narrow { gap: 40px; }
.row + .row { margin-top: 72px; }
.row__text h2 { font-size: clamp(24px, 3vw, 34px); }
.row__text .eyebrow { font-family: var(--display); font-weight: 700; }

/* ---------- Offset photo card (signature element) ---------- */
.framed {
  position: relative;
  display: inline-block;
  width: 100%;
}
.framed > .ph {
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
}
.framed::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  z-index: 1;
}
.framed--peach::before { background: var(--peach-soft); transform: translate(16px, -16px); }
.framed--teal::before  { background: var(--teal-soft);  transform: translate(16px, 16px); }
.framed--pink::before  { background: var(--pink-soft);  transform: translate(-16px, 16px); }
.framed--blue::before  { background: var(--blue-soft);  transform: translate(16px, -16px); }

/* Placeholder media block (swap for real photos) */
.ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e9edf2, #dde3ea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb0c2;
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph svg { width: 46px; height: 46px; opacity: .6; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }

/* ---------- Feature grid (icon + label) ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; gap: 36px; } }

.intro-line { text-align: center; font-size: 20px; font-weight: 600; font-family: var(--display); color: var(--ink-strong); margin-bottom: 36px; }
.features {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}
.feature__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature__icon svg { width: 30px; height: 30px; fill: #fff; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- Callout boxes ---------- */
.callout {
  border-radius: 4px;
  padding: 34px 40px;
}
.callout--teal { background: var(--teal); color: #fff; }
.callout--teal h2, .callout--teal p { color: #fff; }
.callout--peach { background: var(--peach-soft); }
.callout--center { text-align: center; }
.callout--shadowed { position: relative; }
.callout--shadowed::after {
  content: ""; position: absolute; inset: 0;
  background: var(--teal-soft); border-radius: 4px;
  transform: translate(-14px, 14px); z-index: -1;
}
.callout p:last-child { margin-bottom: 0; }

.fact-rule {
  border-top: 3px solid var(--orange-deep);
  border-bottom: 3px solid var(--orange-deep);
  position: relative;
  text-align: center;
  color: var(--orange-deep);
  padding: 34px 24px;
  margin: 16px 0;
}
.fact-rule .fact-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #e8908b;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--display);
}
.fact-rule p { margin: 0; font-size: 16px; }

/* ---------- Centered statement ---------- */
.statement {
  text-align: center;
  font-size: clamp(19px, 2.4vw, 26px);
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink-strong);
  max-width: 920px;
  margin: 0 auto;
  line-height: 1.35;
}

/* ---------- Partner logo strip ---------- */
.partner-grid {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  text-align: center;
  align-items: start;
}
.partner-grid figcaption { font-family: var(--display); font-weight: 700; margin-top: 12px; font-size: 15px; }

/* ---------- Carrier logo carousel ---------- */
.carrier-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto;
}
.carrier-viewport {
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.carrier-viewport::-webkit-scrollbar { display: none; }
.carrier-track {
  display: flex;
  align-items: center;
  width: max-content;
}
.carrier-slot {
  flex: 0 0 auto;
  width: 190px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}
.carrier-slot img {
  max-width: 150px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
  user-select: none;
}
.carrier-slot img:hover { opacity: 1; transform: scale(1.04); }
.carrier-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-strong);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.carrier-nav:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-1px); }
.carrier-nav:active { transform: translateY(0); }
.carrier-nav:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

@media (max-width: 560px) {
  .carrier-carousel { gap: 6px; }
  .carrier-slot { width: 148px; height: 74px; padding: 0 10px; }
  .carrier-slot img { max-width: 120px; max-height: 40px; }
  .carrier-nav { width: 38px; height: 38px; font-size: 20px; }
}

/* ---------- "What We Do" stacked color cards ---------- */
.wwd-card { border-radius: 4px; position: relative; aspect-ratio: 16/9; }
.wwd-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 4px; z-index: -1;
  transform: translate(14px, 14px);
}
.wwd-card .badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.wwd-card .badge svg { width: 38px; height: 38px; }
.wwd-orange { background: var(--orange-light); }
.wwd-orange::after { background: var(--peach-soft); }
.wwd-teal { background: var(--teal); }
.wwd-teal::after { background: var(--teal-soft); }
.wwd-deep { background: var(--orange); }
.wwd-deep::after { background: var(--peach-soft); }
.wwd-blue { background: var(--blue); }
.wwd-blue::after { background: var(--blue-soft); }
.h-orange { color: var(--orange-light); }
.h-teal { color: var(--teal); }
.h-deep { color: var(--orange); }
.h-blue { color: var(--blue); }

.link-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 820px;
  margin: 28px auto 0;
}
.link-cards a {
  text-align: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  padding: 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.link-cards a:hover { transform: translateY(-3px); filter: brightness(1.05); }

/* ---------- Who We Help: snapshot stat list ---------- */
.snapshot {
  display: grid;
  grid-template-columns: 110px 1fr;
  border: 1px solid var(--line);
}
.snapshot__icons { display: grid; }
.snapshot__icon {
  display: flex; align-items: center; justify-content: center;
  min-height: 96px;
}
.snapshot__icon .dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.snapshot__icon .dot svg { width: 28px; height: 28px; fill: var(--orange); }
.snapshot__rows { display: grid; }
.snapshot__row {
  display: flex; align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.snapshot__row:last-child { border-bottom: none; }
.snapshot__row sup { color: var(--orange); font-weight: 700; }

.eligible-band {
  display: grid; gap: 0;
  grid-template-columns: 1fr 1fr;
}
.eligible-band > div { padding: 26px 30px; }
.eligible-band .left { border: 1px solid var(--orange-light); color: var(--ink); font-size: 15px; }
.eligible-band .right { background: var(--orange-light); color: #fff; font-weight: 600; display: flex; align-items: center; }

.pies { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; justify-items: center; }
.pies figcaption { font-family: var(--display); font-weight: 700; text-decoration: underline; margin-bottom: 14px; text-align: center; }
.legend { font-size: 13px; margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; margin: 2px 8px; }
.legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }

.sources { font-size: 13px; color: var(--muted); }
.sources a { color: var(--orange); word-break: break-all; }

/* ---------- Team ---------- */
.team-member {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 30px 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.team-member:last-child { border-bottom: none; }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.team-avatar svg { width: 46px; height: 46px; fill: #fff; }
.team-member h3 { margin-bottom: 2px; font-size: 21px; }
.team-member .role { font-style: italic; color: var(--muted); margin: 0 0 14px; }
.team-member .bio { margin: 0; }

/* ---------- Careers testimonial ---------- */
.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: #fafbfc;
  border-radius: 8px;
  padding: 40px 44px;
}
.quote p { font-style: italic; font-size: 19px; line-height: 1.6; color: var(--ink); }
.quote .who { font-family: var(--display); font-weight: 700; font-style: normal; margin-top: 18px; }
.quote .who small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal h3 { font-size: 16px; margin-top: 22px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal .pager { display: flex; gap: 10px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal .pager a { color: var(--orange); text-decoration: none; font-family: var(--display); font-weight: 700; }
.legal .pager small { display: block; color: var(--orange-light); font-weight: 600; }

/* ---------- Prose helpers ---------- */
.prose p { margin: 0 0 16px; }
.lead { font-size: 19px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.footer-brand .brand { font-size: 22px; margin-bottom: 14px; }
.footer-brand p { color: var(--footer-muted); max-width: 420px; margin: 0; }
.site-footer h4 { font-size: 19px; margin-bottom: 12px; }
.site-footer address { font-style: normal; color: var(--ink); line-height: 1.9; }
.site-footer address a { color: var(--ink); text-decoration: none; }
.site-footer address a:hover { color: var(--orange); }
.copyright { text-align: center; color: var(--footer-muted); font-size: 13px; margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 12px 16px;
    gap: 0;
    display: none;
  }
  .menu.open { display: flex; }
  .menu > li { width: 100%; }
  .menu a, .menu .menu-trigger { width: 100%; justify-content: space-between; padding: 13px 8px; }
  .menu a.is-active { box-shadow: none; }
  .has-dropdown .submenu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0;
    padding: 0 0 6px 14px;
    display: none;
  }
  .has-dropdown.open .submenu { display: block; }
  .submenu a { padding: 10px 8px; }

  .home-hero { grid-template-columns: 1fr; }
  .home-hero__media { min-height: 240px; }
  .home-hero__panel { padding: 40px 28px; }

  .row, .row--narrow { grid-template-columns: 1fr; gap: 28px; }
  .row + .row { margin-top: 48px; }
  .row__media { order: -1; }
  .row--media-last .row__media { order: 0; }

  .pies { grid-template-columns: 1fr; }
  .eligible-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 52px 0; }

  .team-member { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .team-avatar { margin-bottom: 6px; }

  .snapshot { grid-template-columns: 76px 1fr; }
  .snapshot__icon .dot { width: 44px; height: 44px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .callout { padding: 26px 22px; }
  .quote { padding: 28px 22px; }
  .home-hero__panel { padding: 32px 22px; }
}


/* ---------- Footer legal bar ---------- */
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
}
.footer-links a:hover { color: var(--orange); }
.footer-bottom .copyright { margin-top: 0; }
@media (max-width: 560px) {
  .footer-bottom { justify-content: center; text-align: center; }
}
