:root {
  --navy: #203366;
  --navy-deep: #152449;
  --orange: #f37321;
  --orange-dark: #c95817;
  --sky: #47b3e6;
  --light-blue: #d2dfea;
  --pale: #f5f9fd;
  --ink: #182238;
  --muted: #5a6578;
  --line: #dbe5ef;
  --white: #fff;
  --green: #267a58;
  --shadow: 0 22px 65px rgba(32, 51, 102, .14);
  --max: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { left: -999px; position: absolute; top: 10px; z-index: 100; }
.skip-link:focus { background: #fff; left: 10px; padding: 10px 14px; }

.site-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(219,229,239,.9);
  position: sticky;
  top: 0;
  z-index: 50;
}
.utility, .nav, .section-inner, .hero-inner, .footer-inner {
  margin-inline: auto;
  width: min(var(--max), calc(100% - 40px));
}
.utility {
  align-items: center;
  display: flex;
  font-size: .82rem;
  font-weight: 800;
  gap: 16px;
  justify-content: flex-end;
  min-height: 32px;
}
.utility a, .nav-links a, .footer-links a { text-decoration: none; }
.nav {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  min-height: 70px;
}
.brand img { height: auto; width: 138px; }
.nav-links { align-items: center; display: flex; font-size: .93rem; font-weight: 750; gap: 22px; }
.nav-links a:hover, .footer-links a:hover { color: var(--orange); }
.button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: .95rem;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--orange); color: #fff; box-shadow: 0 12px 28px rgba(243,115,33,.24); }
.button.primary:hover { background: var(--orange-dark); }
.button.secondary { background: #fff; border-color: var(--navy); color: var(--navy); }
.button.light { background: #fff; color: var(--navy); }

.hero { overflow: hidden; position: relative; }
.hero-inner { align-items: center; display: grid; gap: 54px; grid-template-columns: 1.04fr .96fr; min-height: 660px; padding-block: 72px; }
.eyebrow, .kicker {
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(2.5rem, 5vw, 4.65rem); letter-spacing: -.045em; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: -.035em; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.28rem); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.proof-line { color: var(--muted); font-size: .88rem; font-weight: 750; margin-top: 24px; }
.proof-line strong { color: var(--navy); }

section { padding-block: 84px; }
section.soft { background: var(--pale); }
section.navy { background: var(--navy); color: #fff; }
section.navy h2, section.navy h3 { color: #fff; }
section.navy .lead { color: #dce8f6; }
.section-head { margin-bottom: 38px; max-width: 800px; }
.section-head.center { margin-inline: auto; text-align: center; }
.quick-answer {
  background: linear-gradient(135deg, #eef7ff, #fff);
  border-left: 6px solid var(--orange);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(32,51,102,.08);
  padding: 28px 30px;
}
.quick-answer p:last-child { margin-bottom: 0; }
.grid-2 { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(32,51,102,.07);
  padding: 28px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.icon {
  align-items: center;
  background: #edf6ff;
  border-radius: 12px;
  color: var(--navy);
  display: inline-flex;
  font-size: 1.35rem;
  height: 46px;
  justify-content: center;
  margin-bottom: 18px;
  width: 46px;
}
.clean-list { list-style: none; margin: 18px 0 0; padding: 0; }
.clean-list li { margin: 10px 0; padding-left: 26px; position: relative; }
.clean-list li::before { color: var(--orange); content: "✓"; font-weight: 900; left: 0; position: absolute; }

.steps { counter-reset: step; }
.step { position: relative; }
.step::before {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: #fff;
  content: counter(step);
  counter-increment: step;
  display: flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 18px;
  width: 42px;
}
.step strong { color: var(--navy); display: block; font-size: 1.05rem; margin-bottom: 6px; }

.table-wrap { border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 17px 18px; text-align: left; vertical-align: top; }
th { background: var(--navy); color: #fff; font-size: .83rem; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--navy); font-weight: 800; }
.yes { color: var(--green); font-weight: 850; }

.price-feature {
  align-items: start;
  background: linear-gradient(145deg, var(--navy), #294b89);
  border-radius: 24px;
  color: #fff;
  display: grid;
  gap: 44px;
  grid-template-columns: .85fr 1.15fr;
  padding: 46px;
}
.price-feature h2, .price-feature h3 { color: #fff; }
.price { color: #fff; font-size: clamp(2.5rem,5vw,4.2rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.price small { font-size: .9rem; font-weight: 700; letter-spacing: 0; }
.adjacent { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 22px; }
.adjacent .card { box-shadow: none; padding: 22px; }

.quote {
  background: #fff;
  border-left: 6px solid var(--orange);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: clamp(1.3rem,2.5vw,2rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  padding: 36px;
}
.quote cite { color: var(--muted); display: block; font-size: .9rem; font-style: normal; margin-top: 18px; }
.fact-row { display: grid; gap: 18px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.fact { border-right: 1px solid rgba(255,255,255,.22); padding-right: 16px; }
.fact:last-child { border-right: 0; }
.fact strong { color: #fff; display: block; font-size: 1.9rem; }
.fact span { color: #dce8f6; font-size: .9rem; }

.faq { border-top: 1px solid var(--line); padding-block: 22px; }
.faq h3 { font-size: 1.12rem; margin-bottom: 8px; }
.faq p { color: var(--muted); margin: 0; }
.cta {
  align-items: center;
  background: linear-gradient(135deg, #eef7ff, #fff4eb);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr auto;
  padding: 44px;
}

.site-footer { background: var(--navy-deep); color: #fff; padding-block: 42px; }
.footer-inner { align-items: center; display: flex; gap: 30px; justify-content: space-between; }
.footer-inner img { width: 145px; }
.footer-inner p { color: #dce8f6; font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 750; }

/* Variation A: operational clarity */
.variant-a .hero { background: linear-gradient(145deg,#f7fbff 0%,#edf6ff 62%,#fff 100%); }
.variant-a .hero-visual {
  background: #dff1fb;
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
}
.variant-a .hero-visual img { aspect-ratio: 16/11; border-radius: 16px; object-fit: cover; }
.handoff {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 38px rgba(32,51,102,.13);
  margin: -48px 20px 0;
  padding: 22px;
  position: relative;
}
.handoff strong { color: var(--navy); display: block; }
.handoff span { color: var(--muted); font-size: .9rem; }

/* Variation B: outcome and continuity */
.variant-b .hero {
  background:
    linear-gradient(90deg,rgba(21,36,73,.96) 0%,rgba(21,36,73,.88) 48%,rgba(21,36,73,.28) 100%),
    url("/wp-content/uploads/2026/07/managed-payroll-services-interior.webp") center / cover no-repeat;
  color: #fff;
}
.variant-b .hero-inner { grid-template-columns: minmax(0,720px) 1fr; min-height: 690px; }
.variant-b .hero h1 { color: #fff; }
.variant-b .hero .lead { color: #e5edf8; }
.variant-b .hero .proof-line { color: #dce8f6; }
.variant-b .hero .proof-line strong { color: #fff; }
.promise-panel {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 22px;
  color: var(--ink);
  padding: 30px;
}
.promise-panel h2 { font-size: 1.55rem; }
.before-after { display: grid; gap: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.before, .after { border-radius: 20px; padding: 34px; }
.before { background: #fff4ed; border: 1px solid #ffd9c0; }
.after { background: #edf8f2; border: 1px solid #cde9da; }
.before h3 { color: #9b4312; }
.after h3 { color: #216848; }
.timeline { border-left: 3px solid var(--light-blue); margin-left: 14px; padding-left: 34px; }
.timeline-item { margin-bottom: 30px; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  background: var(--orange);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--orange);
  content: "";
  height: 12px;
  left: -42px;
  position: absolute;
  top: 6px;
  width: 12px;
}
.timeline-item strong { color: var(--navy); display: block; font-size: 1.1rem; }

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-inner, .price-feature, .cta { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; }
  .grid-4, .fact-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .variant-b .hero-inner { grid-template-columns: 1fr; }
  .variant-b .promise-panel { max-width: 560px; }
}

@media (max-width: 640px) {
  .utility { min-height: 28px; }
  .nav { min-height: 62px; }
  .brand img { width: 116px; }
  .nav-links { gap: 8px; }
  .nav-cta { min-height: 42px; padding: 9px 15px; }
  .hero-inner { gap: 34px; padding-block: 52px; }
  .variant-b .hero { background-position: 64% center; }
  .variant-b .hero-inner { min-height: 680px; }
  h1 { font-size: clamp(2.25rem,11vw,3.25rem); }
  section { padding-block: 60px; }
  .grid-2, .grid-3, .grid-4, .adjacent, .before-after, .fact-row { grid-template-columns: 1fr; }
  .card, .quick-answer, .quote { padding: 23px; }
  .price-feature, .cta { padding: 28px 23px; }
  .fact { border-bottom: 1px solid rgba(255,255,255,.2); border-right: 0; padding: 0 0 16px; }
  .fact:last-child { border-bottom: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
