:root {
  --ink: #16202a;
  --muted: #5b6773;
  --line: #d9e1e8;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --navy: #08243d;
  --navy-2: #123a5a;
  --red: #c9473d;
  --red-dark: #a7342d;
  --green: #4f7665;
  --shadow: 0 18px 48px rgba(11, 31, 48, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: rgba(8, 36, 61, 0.56);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(8, 36, 61, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.brand {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 7px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  padding: 130px 0 72px;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 22, 38, 0.86), rgba(8, 36, 61, 0.58) 48%, rgba(8, 36, 61, 0.2)),
    linear-gradient(0deg, rgba(4, 22, 38, 0.7), rgba(4, 22, 38, 0.02) 45%);
}

.hero-content {
  position: relative;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb0a8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  line-height: 1.16;
}

.hero-subtitle {
  max-width: 670px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.18rem, 2.3vw, 1.7rem);
  line-height: 1.35;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--red);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.section {
  scroll-margin-top: 96px;
  padding: 92px 0;
}

.intro-band {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.copy p:last-child {
  margin-bottom: 0;
}

.stats {
  padding: 26px 0;
  background: var(--navy);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat {
  min-height: 128px;
  padding: 24px;
  color: #fff;
  background: var(--navy);
}

.stat strong {
  display: block;
  color: #ffb0a8;
  font-size: 2.2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.service-grid,
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 236px;
  padding: 30px;
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 31, 48, 0.05);
  cursor: default;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 58, 90, 0.22);
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: 0 18px 44px rgba(11, 31, 48, 0.1);
}

.service-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
  border: 1px solid rgba(18, 58, 90, 0.16);
  border-radius: 999px;
  color: var(--navy-2);
  background: #f7faf8;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: transform 180ms ease, stroke 180ms ease;
}

.service-mark svg *,
.service-mark::before {
  transform-box: fill-box;
  transform-origin: center;
}

.service-card:hover .service-mark {
  transform: none;
  border-color: rgba(18, 58, 90, 0.16);
  background: #f7faf8;
}

.service-card:hover .service-mark svg {
  transform: none;
}

.lighthouse-beam,
.calculator-dots,
.printed-receipt,
.human-figure {
  transition: opacity 180ms ease, transform 180ms ease;
}

.printed-receipt {
  fill: none;
  transform-box: fill-box;
  transform-origin: 50% 0%;
}

.receipt-sheet {
  transform: none;
  transform-box: view-box;
  transform-origin: center;
}

.receipt-outline {
  stroke-width: 1.75;
}

.receipt-line {
  stroke-opacity: 0.58;
}

.receipt-total {
  stroke-width: 1.95;
  stroke-opacity: 0.72;
}

.lighthouse-beam {
  stroke-width: 1.9;
  opacity: 0.58;
  transform: none;
}

.service-card[data-service="leadership"]:hover .beam-top {
  animation: lighthouse-shine-top 700ms ease-out;
}

.service-card[data-service="leadership"]:hover .beam-left {
  animation: lighthouse-shine-left 700ms ease-out;
}

.service-card[data-service="leadership"]:hover .beam-right {
  animation: lighthouse-shine-right 700ms ease-out;
}

.calculator-display {
  fill: currentColor;
  fill-opacity: 0.18;
  stroke: currentColor;
  stroke-width: 1.6;
}

.calculator-dots,
.calculator-digits {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
}

.calculator-dots .key {
  fill-opacity: 0.18;
  stroke-opacity: 0.65;
}

.calculator-digits {
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  stroke-width: 3;
  stroke-opacity: 0.42;
}

.service-card[data-service="finance"]:hover .calculator-display {
  animation: calc-screen-hold 650ms ease-out;
}

.service-card[data-service="finance"]:hover .calculator-digits {
  animation: digits-right-left 650ms ease-out;
}

.service-card[data-service="finance"]:hover .key {
  animation: key-random-press 650ms ease-out;
}

.service-card[data-service="finance"]:hover .key-two {
  animation-delay: 70ms;
}

.service-card[data-service="finance"]:hover .key-six {
  animation-delay: 120ms;
}

.service-card[data-service="finance"]:hover .key-four {
  animation-delay: 190ms;
}

.service-card[data-service="finance"]:hover .key-eight {
  animation-delay: 260ms;
}

.service-card[data-service="reimbursement"] .service-mark svg {
  overflow: hidden;
}

.service-card[data-service="reimbursement"]:hover .receipt-sheet {
  animation: receipt-sheet-print 820ms cubic-bezier(0.18, 0.72, 0.18, 1);
}

.service-card[data-service="reimbursement"]:hover .service-mark svg {
  transform: none;
}

.audit-check {
  stroke-dasharray: 12;
  stroke-dashoffset: 0;
  stroke-width: 1.75;
}

.service-card[data-service="audit"]:hover .audit-check {
  animation: check-draw 620ms ease-out;
}

.service-card[data-service="human"]:hover .human-figure {
  animation: user-fade 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.human-figure {
  opacity: 1;
  transform: none;
  transform-box: fill-box;
  transform-origin: center;
}

.human-back {
  opacity: 0.52;
  stroke-width: 1.55;
}

.human-front {
  opacity: 1;
  stroke-width: 1.75;
}

.revenue-line {
  stroke-dasharray: 22;
  stroke-dashoffset: 0;
  stroke-width: 1.75;
  transform: none;
}

.service-card[data-service="revenue"]:hover .revenue-line {
  animation: revenue-rise 700ms ease-out;
}

@keyframes lighthouse-shine-top {
  0% {
    opacity: 0;
    transform: translateY(2px) scaleY(0.1);
  }
  65% {
    opacity: 0.82;
    transform: translateY(-1px) scaleY(1.15);
  }
  100% {
    opacity: 0.58;
    transform: none;
  }
}

@keyframes lighthouse-shine-left {
  0% {
    opacity: 0;
    transform: translateX(3px) scaleX(0.1);
  }
  65% {
    opacity: 0.82;
    transform: translateX(-1px) scaleX(1.18);
  }
  100% {
    opacity: 0.58;
    transform: none;
  }
}

@keyframes lighthouse-shine-right {
  0% {
    opacity: 0;
    transform: translateX(-3px) scaleX(0.1);
  }
  65% {
    opacity: 0.82;
    transform: translateX(1px) scaleX(1.18);
  }
  100% {
    opacity: 0.58;
    transform: none;
  }
}

@keyframes calc-screen-hold {
  0% {
    fill-opacity: 0.18;
  }
  55% {
    fill-opacity: 0.3;
  }
  100% {
    fill-opacity: 0.18;
  }
}

@keyframes digits-right-left {
  0% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
  70% {
    opacity: 1;
    clip-path: inset(0);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes key-random-press {
  0%,
  100% {
    fill-opacity: 0.18;
    stroke-opacity: 0.65;
  }
  45% {
    fill-opacity: 0.95;
    stroke-opacity: 1;
  }
}

@keyframes screen-flash {
  0% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes receipt-sheet-print {
  0% {
    transform: translateY(-14.2px);
  }
  30% {
    transform: translateY(-9.4px);
  }
  68% {
    transform: translateY(-2.2px);
  }
  100% {
    transform: none;
  }
}

@keyframes check-draw {
  0% {
    stroke-dashoffset: 12;
  }
  45% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes user-fade {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }
  65% {
    opacity: 0.82;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes revenue-rise {
  0% {
    stroke-dashoffset: 22;
    transform: translateY(5px);
  }
  62% {
    stroke-dashoffset: 0;
    transform: translateY(0);
  }
  100% {
    stroke-dashoffset: 0;
    transform: none;
  }
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.service-card p,
.reason-panel li,
.contact p,
.site-footer {
  color: var(--muted);
}

.parallax-band {
  position: relative;
  scroll-margin-top: 88px;
  min-height: 430px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 36, 61, 0.88), rgba(8, 36, 61, 0.48)),
    url("media/tampa.jpg") center 42% / cover fixed;
  overflow: hidden;
}

.parallax-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 36, 61, 0.28), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.parallax-content {
  position: relative;
  z-index: 1;
}

.parallax-content .eyebrow {
  color: #ffb0a8;
}

.parallax-content h2 {
  max-width: 760px;
  color: #fff;
}

.why {
  background: var(--soft);
}

.reason-grid {
  grid-template-columns: 1fr 1fr;
}

.reason-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reason-panel h3 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.reason-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-panel li {
  position: relative;
  padding-left: 28px;
}

.reason-panel li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--red);
}

.contact {
  color: #fff;
  background: var(--navy);
}

.contact h2 {
  color: #fff;
}

.contact p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 64px;
  align-items: start;
}

.contact .button-secondary {
  color: #fff;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
}

.contact-card strong {
  color: #fff;
}

.contact-card a {
  color: #fff;
  font-weight: 800;
}

.contact-card hr {
  width: 100%;
  margin: 14px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 26px 0;
  background: #f9fbfc;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(8, 36, 61, 0.98);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .split,
  .contact-layout,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
    gap: 28px;
  }

  .stats-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }

  .parallax-band {
    min-height: 320px;
    background-attachment: scroll;
  }
}

@media (max-width: 620px) {
  .container,
  .hero-content {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    min-height: 84svh;
    padding: 112px 0 48px;
  }

  h1 {
    font-size: clamp(3.4rem, 16.8vw, 4.15rem);
  }

  h2 {
    font-size: 2.15rem;
  }

  .section {
    padding: 64px 0;
  }

  .stats-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: auto;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}
