/* ==========================================================================
   QuickBizFi — main.css
   Token system, base styles, layout primitives, shared components.
   Mobile-first. Base targets 360px; layer up with min-width queries.
   ========================================================================== */

:root {
  /* Color */
  --brand: #2f9968;
  --ink: #0e2e4c;
  --brand-dark: #237a52;
  --brand-tint: #e8f4ee;
  --ink-soft: #1c4266;
  --paper: #ffffff;
  --muted: #5b6b7a;
  --line: #dfe6ec;

  /* Shadows — soft, navy-tinted, two levels max */
  --shadow-sm: 0 2px 8px rgba(14, 46, 76, .08);
  --shadow-md: 0 12px 32px rgba(14, 46, 76, .12);

  /* Radius */
  --radius-card: 12px;
  --radius-input: 8px;
  --radius-pill: 999px;

  /* Spacing scale (8px base) */
  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 2.5rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-10: 5rem;
  --sp-12: 6rem;

  /* Gutters / container */
  --gutter: 24px;
  --container-max: 1200px;

  /* Breakpoints (for reference in comments; media queries hardcode px) */
  --bp-sm: 600px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;

  /* Type scale — fluid, clamp-based */
  --fs-xs: clamp(.75rem, .72rem + .15vw, .8125rem);
  --fs-sm: clamp(.875rem, .84rem + .18vw, .9375rem);
  --fs-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.08rem + .25vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.7rem + 2.7vw, 3.5rem);
  --fs-4xl: clamp(2.75rem, 1.9rem + 4vw, 4.5rem);

  --font-display: 'Archivo', 'Familjen Grotesk', sans-serif;
  --font-body: 'Inter', 'Public Sans', sans-serif;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

/* ---- Reset --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
.fs-2xl { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-md); }

p { color: var(--muted); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Tabular figures for money/stats */
.tnum { font-variant-numeric: tabular-nums; }

/* ---- Layout primitives ---------------------------------------------- */

.container {
  width: min(100% - var(--gutter) * 2, var(--container-max));
  margin-inline: auto;
}

.section { padding-block: clamp(var(--sp-6), 6vw, var(--sp-12)); }
.section--tint { background: var(--brand-tint); }
.section--navy { background: var(--ink); color: var(--paper); }
.section--navy p { color: rgba(255, 255, 255, .78); }
.section--navy h2, .section--navy h3 { color: var(--paper); }

.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: var(--sp-1);
}
.section--navy .eyebrow { color: #7fd8ac; }
.eyebrow--pill {
  background: var(--brand-tint);
  border: 1px solid var(--brand);
  border-radius: var(--radius-pill);
  padding: .35rem 1rem;
  margin-bottom: var(--sp-2);
}

.eyebrow--dark-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(47, 153, 104, .12);
  border: 1px solid rgba(47, 153, 104, .4);
  border-radius: var(--radius-pill);
  padding: .3rem .9rem;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--brand);
}
.eyebrow--dark-pill .eyebrow__icon { width: 18px; height: 18px; flex-shrink: 0; }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-3);
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: 44px;
  padding: .75rem 1.5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 2px solid transparent;
  border-radius: var(--radius-input);
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
}
.btn--pill { border-radius: var(--radius-pill); }
.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--on-navy { background: var(--paper); color: var(--ink); }
.btn--on-navy:hover { background: var(--brand-tint); }
.btn--block { width: 100%; }

/* ---- Site header -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 64px;
}
.site-header__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--ink);
  display: flex;
  align-items: center;
}
.site-header__logo img { height: 32px; width: auto; }
.mobile-drawer__head .site-header__logo img { height: 28px; }
.site-nav { display: none; }
.site-nav__list { display: flex; gap: var(--sp-4); }
.site-nav__link { font-weight: 500; font-size: var(--fs-sm); color: var(--ink-soft); padding: .5rem 0; position: relative; }
.site-nav__link.is-active,
.site-nav__link:hover { color: var(--brand-dark); }
.site-nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  border-radius: var(--radius-pill);
}

.site-header__actions { display: flex; align-items: center; gap: var(--sp-2); }
.site-header__phone { display: none; align-items: center; gap: .4rem; font-weight: 600; font-size: var(--fs-sm); min-height: 44px; }
.site-header__cta { display: none; min-height: 38px; padding: .5rem 1.25rem; }

.site-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: var(--radius-input);
}
.site-header__burger:hover { background: var(--brand-tint); }
.site-header__burger span { width: 22px; height: 2px; background: var(--ink); margin-inline: auto; border-radius: 2px; }

@media (min-width: 1024px) {
  .site-nav { display: block; }
  .site-header__phone { display: inline-flex; }
  .site-header__cta { display: inline-flex; }
  .site-header__burger { display: none; }
}

/* ---- Mobile drawer -------------------------------------------------- */

.mobile-drawer[hidden] { display: none; }
.mobile-drawer { position: fixed; inset: 0; z-index: 60; }
.mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(14, 46, 76, .5); }
.mobile-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--paper);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: var(--shadow-md);
  animation: drawer-in .25s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-drawer__close { width: 44px; height: 44px; font-size: 1.5rem; background: none; border: none; border-radius: var(--radius-input); }
.mobile-drawer__close:hover { background: var(--brand-tint); }
.mobile-drawer__list { display: flex; flex-direction: column; gap: var(--sp-1); }
.mobile-drawer__link { display: block; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: var(--fs-md); border-bottom: 1px solid var(--line); }
.mobile-drawer__cta { margin-top: auto; }
.mobile-drawer__phone { text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--brand-dark); }

@media (min-width: 1024px) {
  .mobile-drawer { display: none !important; }
}

/* ---- Sticky mobile CTA ---------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 -4px 16px rgba(14, 46, 76, .12);
}
.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 52px;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.sticky-cta__call { background: var(--paper); color: var(--ink); }
.sticky-cta__apply { background: var(--brand); color: #fff; }

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* Reserve space so sticky CTA never covers the last field/footer */
body { padding-bottom: 52px; }
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

/* ---- Footer ----------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: var(--sp-8) var(--sp-4); border-top: 3px solid var(--brand); }
.site-footer__grid {
  display: grid;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
}
.site-footer__logo-tile { display: inline-flex; background: var(--paper); border-radius: var(--radius-input); padding: var(--sp-1) var(--sp-2); margin-bottom: var(--sp-2); }
.site-footer__logo { height: 32px; width: auto; }
.site-footer__tagline { color: rgba(255, 255, 255, .6); }

.site-footer__heading { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; color: #fff; margin-bottom: var(--sp-2); }
.site-footer__list { display: flex; flex-direction: column; gap: .2rem; }
.site-footer__list a { min-height: 44px; display: flex; align-items: center; color: rgba(255, 255, 255, .7); }
.site-footer__list a:hover { color: var(--brand); }

.site-footer__contact { display: flex; flex-direction: column; gap: var(--sp-1); }
.site-footer__contact li, .site-footer__contact a { display: flex; align-items: flex-start; gap: .6rem; color: rgba(255, 255, 255, .7); min-height: 24px; }
.site-footer__contact a { min-height: 44px; align-items: center; }
.site-footer__contact a:hover { color: var(--brand); }
.site-footer__contact-icon { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: .1rem; }
.site-footer__contact a .site-footer__contact-icon { margin-top: 0; }

.site-footer__disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: var(--sp-3); }
.site-footer__disclaimer p { font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); width: 100%; }
.site-footer__bottom {
  margin-top: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: var(--sp-3);
}
.site-footer__bottom p { font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }
.site-footer__bottom-links { display: flex; gap: var(--sp-3); }
.site-footer__bottom a { color: rgba(255, 255, 255, .6); }
.site-footer__bottom a:hover { color: var(--brand); }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* ---- Hero -------------------------------------------------------------- */

.hero { padding-block: clamp(var(--sp-6), 8vw, var(--sp-12)) var(--sp-6); }
.hero h1 { font-size: var(--fs-3xl); }
.hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
.hero__lede { font-size: var(--fs-md); max-width: 52ch; margin-top: var(--sp-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.hero__actions .btn { text-transform: uppercase; letter-spacing: .03em; }
.hero__art img { border-radius: var(--radius-card); }
.hero__art--form {
  background: linear-gradient(160deg, var(--brand-tint) 0%, var(--paper) 42%);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--sp-3);
  min-height: 412px;
  position: relative;
}
.hero__art--form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  border-top: 4px solid var(--brand);
  pointer-events: none;
}
.hero__form-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: var(--sp-1);
}
.hero__form-heading { font-size: var(--fs-lg); margin-bottom: .25rem; }
.hero__form-sub { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; }
}

/* ---- Ticker marquee ------------------------------------------------------ */

.ticker { background: var(--ink); color: #fff; overflow: hidden; padding-block: var(--sp-3); }
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 28s linear infinite; }
.ticker__row { display: flex; align-items: center; gap: var(--sp-6); white-space: nowrap; font-weight: 700; font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; padding-right: var(--sp-6); }
.ticker__item { white-space: nowrap; }
.ticker__sep { color: var(--brand); font-size: 1.2em; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; overflow-x: auto; }
}

/* ---- About -------------------------------------------------------------- */

.about__grid { display: grid; gap: var(--sp-5); }
.about__art img { border-radius: var(--radius-card); }
.about__body p { margin: var(--sp-2) 0; }
.about__cta { margin-top: var(--sp-2); gap: .6rem; }
.about__cta-icon { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; font-weight: 600; color: var(--brand-dark); min-height: 44px; }
.link-arrow:hover { color: var(--brand); }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---- Cards (services, features, industries) --------------------------- */

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature-card__icon { color: var(--brand-dark); margin-bottom: var(--sp-2); width: 32px; height: 32px; }
.feature-card h3 { margin-bottom: var(--sp-1); }
.feature-card p a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; }

.industries-grid .grid-auto {
  grid-template-columns: repeat(2, 286px);
  justify-content: center;
}
@media (min-width: 700px) {
  .industries-grid .grid-auto { grid-template-columns: repeat(3, 286px); }
}
@media (min-width: 1024px) {
  .industries-grid .grid-auto { grid-template-columns: repeat(4, 286px); }
}
.industry-card {
  width: 286px;
  height: 227px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.industry-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f1f3f5;
  border-radius: var(--radius-input);
  margin-bottom: var(--sp-3);
  transition: background .2s var(--ease);
}
.industry-card:hover .industry-card__icon-wrap { background: var(--brand-tint); }
.industry-card__icon { color: var(--ink); width: 22px; height: 22px; transition: color .2s var(--ease); }
.industry-card:hover .industry-card__icon { color: var(--brand-dark); }
.industries-grid .container { max-width: 1440px; }
.industry-card__body h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: var(--sp-1); transition: color .2s var(--ease); }
.industry-card:hover .industry-card__body h3 { color: var(--brand-dark); }
.industry-card__body p {
  font-size: .875rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-card p a:hover { color: var(--brand); }

.services-grid { background: #f5f8fb; }
.services-grid__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.services-grid__head .section-head { margin-bottom: 0; max-width: 640px; }
.services-grid__head .section-head h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.services-grid__head .section-head p { font-size: var(--fs-base); }
.services-grid__view-all {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
}
.services-grid__view-all:hover { color: var(--brand); }
.services-grid__view-all-icon { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .services-grid__head { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card__icon { color: var(--brand); width: 40px; height: 40px; margin-bottom: var(--sp-3); }
.service-card__body { display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.service-card__desc {
  flex: 1;
  margin-bottom: var(--sp-1);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card__bullets { margin: 0 0 var(--sp-3); display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.service-card__bullets li { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.service-card__check { color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; margin-top: .2rem; }
.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  min-height: 44px;
  font-weight: 600;
  color: var(--brand-dark);
}
.service-card__cta:hover { color: var(--brand); }
.service-card__cta-icon { width: 18px; height: 18px; }

.services-grid__cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 768px) {
  .services-grid__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid__cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Process rail (signature element) ---------------------------------- */

.process__card {
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: clamp(var(--sp-5), 5vw, var(--sp-8)) var(--sp-4);
}

.process__rail {
  display: grid;
  gap: var(--sp-6);
  counter-reset: step;
  position: relative;
  text-align: center;
}
.process__step { position: relative; padding-left: 0; }
.process__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--ink);
  -webkit-text-stroke: 1px var(--ink);
  margin-bottom: var(--sp-3);
}
.process__dot {
  display: none;
}
.process__step h3 { font-size: var(--fs-md); margin-bottom: .5rem; color: var(--ink); }

@media (min-width: 768px) {
  .process__rail {
    grid-template-columns: repeat(4, 1fr);
  }
  .process__rail::before {
    content: '';
    position: absolute;
    top: calc(clamp(2.5rem, 5vw, 3.25rem) + var(--sp-3) + 6px);
    left: 12.5%;
    right: 12.5%;
    height: 0;
    border-top: 2px dashed var(--line);
    z-index: 0;
  }
  .process__dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    margin: 0 auto var(--sp-3);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--brand-tint);
  }
}

/* ---- Track record (stats + franchise brands, no third-party logos) ------- */

.track-record__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
  max-width: 720px;
  margin: 0 auto var(--sp-6);
}
.track-record__stat {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-3);
}
.track-record__stat-value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; color: var(--brand); margin-bottom: var(--sp-1); }
.track-record__stat h3 { font-size: var(--fs-md); margin-bottom: .25rem; }
.track-record__stat-note { font-size: var(--fs-sm); color: var(--muted); }

.track-record__label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.franchise-brands__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  max-width: 1200px;
  margin: 0 auto var(--sp-4);
}
.franchise-brands__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 145px;
  margin-inline: auto;
  padding: var(--sp-4);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--paper);
}
.franchise-brands__item img { width: 100%; height: 100%; object-fit: contain; }
.franchise-brands__item--travelodge img { transform: scale(1.35); }

.track-record__disclaimer { font-size: var(--fs-xs); color: var(--muted); text-align: center; max-width: 720px; margin-inline: auto; }

@media (min-width: 460px) {
  .franchise-brands__list { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
}
@media (min-width: 600px) {
  .franchise-brands__list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .franchise-brands__list { grid-template-columns: repeat(6, 1fr); }
}

/* ---- Stats -------------------------------------------------------------- */

.stats { background: #f5f8fb; }
.stats__heading { font-size: var(--fs-2xl); white-space: nowrap; }
.stats .section-head { margin-bottom: var(--sp-8); }
.stats .section-head p { margin-top: var(--sp-3); }
.stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.stat-card {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--brand-tint);
  border-radius: var(--radius-input);
  margin-bottom: var(--sp-3);
}
.stat-card__icon { width: 28px; height: 28px; color: var(--brand-dark); }
.stat-card__value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; color: var(--brand); margin-bottom: var(--sp-1); }
.stat-card__label { font-size: var(--fs-md); color: var(--ink); margin-bottom: var(--sp-1); }
.stat-card__note { font-size: var(--fs-sm); color: var(--muted); }

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Reviews slider ------------------------------------------------------ */

.reviews__track {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2);
  -webkit-overflow-scrolling: touch;
}
.review-card {
  scroll-snap-align: start;
  flex: 0 0 min(85vw, 340px);
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.review-card__stars { display: flex; gap: 2px; margin-bottom: var(--sp-1); }
.review-card__star { width: 16px; height: 16px; color: var(--line); }
.review-card__star.is-filled { color: #f2ad3d; fill: #f2ad3d; }
.review-card__quote { color: var(--ink); margin-bottom: var(--sp-2); }
.review-card__meta { font-size: var(--fs-sm); }
@media (min-width: 1024px) {
  .review-card { flex-basis: calc(33.333% - var(--sp-3) * 2 / 3); }
}

/* ---- FAQ accordion -------------------------------------------------- */

.faq__layout { display: grid; gap: var(--sp-4); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) 0;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-md);
}
.accordion__chevron { transition: transform .2s var(--ease); flex-shrink: 0; }
.accordion__trigger[aria-expanded="true"] .accordion__chevron { transform: rotate(180deg); }
.accordion__panel { overflow: hidden; padding-bottom: var(--sp-2); }
.accordion__panel[hidden] { display: none; }
@media (min-width: 1024px) {
  .faq__layout { grid-template-columns: .8fr 1.2fr; }
}

/* ---- Get funded CTA band ------------------------------------------------ */

.get-funded__inner { text-align: center; }
.get-funded__inner p { max-width: 48ch; margin-inline: auto; margin-top: var(--sp-1); }
.get-funded__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.get-funded__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; min-height: 44px; color: var(--ink); }
.get-funded__phone:hover { color: var(--brand-dark); }
.get-funded__phone-icon { width: 20px; height: 20px; }

/* ---- Forms (Shform embeds) ------------------------------------------------ */

.contact-form__widget {
  max-width: 640px;
  margin-inline: auto;
  width: 100%;
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-md);
}
.contact-form__widget .formwidget { width: 100%; }

/* ---- Inner-page: breadcrumb, page-hero, service-hero -------------------- */

.breadcrumb { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--sp-2); }
.breadcrumb a:hover { color: var(--brand-dark); }

.page-hero, .service-hero { padding-block: clamp(var(--sp-5), 6vw, var(--sp-8)); background: var(--brand-tint); }
.page-hero__desc, .service-hero__lede { max-width: 60ch; font-size: var(--fs-md); margin-top: var(--sp-2); }

.service-hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 1024px) {
  .service-hero__grid { grid-template-columns: 1.1fr 1fr; }
}

/* ---- Service detail body ------------------------------------------------ */

.service-detail__layout { display: grid; gap: var(--sp-6); }
.service-detail__main > div { margin-bottom: var(--sp-6); }
.service-detail__main h2 { margin-bottom: var(--sp-2); }
.service-detail__main p { margin-bottom: var(--sp-2); }

.check-list { display: flex; flex-direction: column; gap: var(--sp-1); }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list__icon { color: var(--brand); width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; }

.pros-cons { display: grid; gap: var(--sp-3); }
.pros-cons__col ul { display: flex; flex-direction: column; gap: .5rem; margin-top: var(--sp-1); }
.pros-cons__col li { display: flex; gap: .5rem; align-items: flex-start; }
.pros-cons__icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: .15rem; }
.pros-cons__icon--pro { color: var(--brand); }
.pros-cons__icon--con { color: var(--muted); }
@media (min-width: 600px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}

.service-detail__aside { align-self: start; background: var(--brand-tint); border-radius: var(--radius-card); padding: var(--sp-3); }
.mini-service-list { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-2); }
.mini-service-list a { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 600; font-size: var(--fs-sm); }
.mini-service-list a:hover { color: var(--brand-dark); }
.mini-service-list__icon { width: 20px; height: 20px; color: var(--brand-dark); flex-shrink: 0; }

@media (min-width: 1024px) {
  .service-detail__layout { grid-template-columns: 1fr .38fr; align-items: start; }
}

/* ---- Service hero highlights (checkmark list) ---------------------------- */

.service-hero__highlights { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-4); }
.service-hero__highlights li { display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: var(--fs-md); color: var(--ink); }
.service-hero__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
}
.service-hero__check-icon { width: 18px; height: 18px; color: #fff; }

/* ---- Comparison table (funding-services.php) ---------------------------- */

.comparison__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.comparison__table { width: 100%; border-collapse: collapse; background: var(--paper); min-width: 640px; }
.comparison__table th, .comparison__table td { padding: var(--sp-2); text-align: left; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); white-space: nowrap; }
.comparison__table thead th { background: var(--ink); color: #fff; font-weight: 600; white-space: nowrap; }
.comparison__table tbody th { font-weight: 600; }
.comparison__table tbody th a:hover { color: var(--brand-dark); }
.comparison__table tbody tr:last-child td, .comparison__table tbody tr:last-child th { border-bottom: none; }
.comparison__hint { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-1); text-align: center; }

@media (max-width: 767px) {
  .comparison__table th:first-child,
  .comparison__table td:first-child {
    position: sticky;
    left: 0;
    background: var(--paper);
    z-index: 1;
    box-shadow: 2px 0 4px rgba(14, 46, 76, .06);
  }
  .comparison__table thead th:first-child { background: var(--ink); }
}

@media (min-width: 768px) {
  .comparison__hint { display: none; }
}

/* ---- Simple CTA blocks (industries "don't see yours", etc.) -------------- */

.industries-cta { text-align: center; max-width: 640px; margin-inline: auto; }
.industries-cta p { margin: var(--sp-2) auto var(--sp-3); max-width: 52ch; }

/* ---- Apply form (multi-step) ---------------------------------------------- */

.apply__layout { display: grid; gap: var(--sp-4); }

.apply-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.apply-form fieldset { border: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.apply-form fieldset[hidden] { display: none; }
.apply-form legend { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); margin-bottom: var(--sp-2); padding: 0; }

.apply-form__progress { margin-bottom: var(--sp-3); }
.apply-form__progress-label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.apply-form__progress-track { height: 6px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.apply-form__progress-fill { height: 100%; background: var(--brand); border-radius: var(--radius-pill); transition: width .3s var(--ease); }

.apply-form__nav { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.apply-form__nav .btn { flex: 1; }
.apply-form__next { margin-top: var(--sp-2); }

.apply-form__consent { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--fs-sm); }
.apply-form__consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; }
.apply-form__consent a { text-decoration: underline; }

.apply-aside { background: var(--brand-tint); border-radius: var(--radius-card); padding: var(--sp-3); align-self: start; }
.apply-aside h3 { margin-bottom: var(--sp-2); }
.apply-aside__note { font-size: var(--fs-sm); margin-top: var(--sp-2); }
.apply-aside__phone { font-size: var(--fs-sm); margin-top: var(--sp-2); font-weight: 600; }
.apply-aside__phone a { color: var(--brand-dark); }

@media (min-width: 1024px) {
  .apply__layout { grid-template-columns: 1.4fr .8fr; align-items: start; }
}

/* ---- Application page (Shform continuation) ------------------------------ */

.application-form__widget {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-3);
}
.application-form__widget .formwidget { width: 100%; }

/* ---- Careers ------------------------------------------------------------ */

.job-trigger__meta { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); margin-top: .2rem; }
.accordion__panel h4 { margin-bottom: var(--sp-1); margin-top: var(--sp-2); }
.accordion__panel .check-list { margin-bottom: var(--sp-1); }

.career-form { max-width: 720px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-4); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--sp-2); }

/* ---- Legal pages (privacy / terms) --------------------------------------- */

.legal-page__layout { display: grid; gap: var(--sp-4); }
.legal-toc { border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-2); align-self: start; }
.legal-toc__heading { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--sp-1); }
.legal-toc ul { display: flex; flex-direction: column; gap: .2rem; }
.legal-toc a { display: flex; align-items: center; min-height: 40px; font-size: var(--fs-sm); font-weight: 500; }
.legal-toc a:hover { color: var(--brand-dark); }

.legal-body { max-width: 72ch; }
.legal-body__notice { background: var(--brand-tint); border: 1px solid var(--line); border-radius: var(--radius-input); padding: var(--sp-2); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.legal-body h2 { margin-top: var(--sp-5); margin-bottom: var(--sp-1); scroll-margin-top: 96px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { margin-bottom: var(--sp-2); }
.legal-body a { text-decoration: underline; }

@media (min-width: 1024px) {
  .legal-page__layout { grid-template-columns: .3fr 1fr; }
  .legal-toc { position: sticky; top: 88px; }
}

/* ---- Status pages (thank-you, 404) --------------------------------------- */

.status-page { padding-block: clamp(var(--sp-8), 12vw, var(--sp-12)); }
.status-page__inner { max-width: 520px; margin-inline: auto; text-align: center; }
.status-page__icon { width: 56px; height: 56px; color: var(--brand); margin-inline: auto; margin-bottom: var(--sp-2); }
.status-page__code { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: 800; color: var(--brand-dark); line-height: 1; margin-bottom: var(--sp-2); }
.status-page__inner p { margin-top: var(--sp-2); }
.status-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); }
