:root {
  --navy: #0f2d52;
  --navy-2: #173b66;
  --gold: #c9a227;
  --gold-dark: #9b7b16;
  --white: #ffffff;
  --soft: #f5f7fa;
  --border: #d9e1ec;
  --text: #1f2937;
  --muted: #5b6575;
  --shadow: 0 18px 45px rgba(15, 45, 82, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(201, 162, 39, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--gold);
  color: var(--navy);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.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(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(calc(100% - 2rem), 1220px);
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  color: var(--navy);
  line-height: 1.05;
  flex-shrink: 0;
}

.brand-main {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.brand-main span {
  color: var(--gold);
}

.brand-sub {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 1.15rem);
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-menu a[aria-current="page"] {
  color: var(--gold-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 10px 22px rgba(201, 162, 39, 0.22);
}

.btn:hover {
  background: #d8b13a;
  color: var(--navy);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.btn-small {
  min-height: 40px;
  padding: 0.62rem 0.9rem;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 78px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

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

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 45, 82, 0.98) 0%, rgba(15, 45, 82, 0.87) 38%, rgba(15, 45, 82, 0.28) 72%, rgba(15, 45, 82, 0.16) 100%),
    linear-gradient(0deg, rgba(15, 45, 82, 0.22), rgba(15, 45, 82, 0));
}

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

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  max-width: 760px;
  justify-self: start;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 760px;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  margin-top: 1.2rem;
}

.hero-content > p:not(.eyebrow):not(.lead) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: clamp(3.2rem, 7vw, 6rem) 0;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.section-head-simple {
  display: block;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--white);
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

.text-link {
  color: var(--navy);
  font-weight: 900;
  white-space: nowrap;
  border-bottom: 2px solid var(--gold);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.split p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.local-identity {
  border-bottom: 1px solid var(--border);
}

.trust-bar {
  background: var(--navy);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.trust-grid span {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.trust-grid span:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.card-grid,
.pricing-grid,
.add-on-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.price-card,
.resource-card,
.add-on-grid article,
.industry-detail {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.1rem, 2.3vw, 1.55rem);
}

.service-card p,
.price-card p,
.resource-card p,
.industry-detail p {
  color: var(--muted);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.13);
  color: var(--gold-dark);
  font-weight: 900;
  font-size: 0.84rem;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.industry-grid a {
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
}

.industry-grid a:hover {
  border-color: var(--gold);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.price-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-0.35rem);
}

.price {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.badge {
  align-self: flex-start;
  margin: 0;
  padding: 0.3rem 0.58rem;
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-dark) !important;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.community-band {
  background: var(--navy);
  color: var(--white);
}

.community-band h2 {
  color: var(--white);
}

.community-band .split p:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.final-cta {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.final-cta h2 {
  color: var(--white);
  max-width: 760px;
  margin-inline: auto;
}

.final-cta p {
  max-width: 620px;
  margin: 1rem auto 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.page-hero {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  background:
    linear-gradient(135deg, rgba(15, 45, 82, 0.96), rgba(23, 59, 102, 0.9)),
    url("assets/780-bookkeeping-hero.png") center right / cover;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  max-width: 900px;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.86);
}

.services-list,
.industry-list,
.faq-list {
  display: grid;
  gap: 1rem;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.detail-card p {
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.16rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7);
  content: "";
}

.industry-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.industry-detail .check-list {
  margin-top: 1rem;
}

.pricing-grid-full {
  align-items: stretch;
}

.pricing-grid-full .price-card .btn {
  margin-top: auto;
}

.best-for {
  min-height: 4.7rem;
}

.add-on-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.add-on-grid article p {
  margin: 0;
  color: var(--gold-dark);
  font-weight: 900;
}

.faq-list {
  max-width: 860px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem 1.15rem;
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

summary::marker {
  color: var(--gold);
}

details p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.story-grid,
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.copy-stack p {
  color: var(--muted);
  font-size: 1.05rem;
}

.mission-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
  min-height: 220px;
}

.contact-section {
  background: var(--soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 1.2rem;
  align-items: start;
}

.contact-card,
.contact-info {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.form-head {
  margin-bottom: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--navy);
  font-weight: 800;
}

label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  padding: 0.78rem 0.85rem;
}

textarea {
  resize: vertical;
}

.form-status {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.contact-card p,
.contact-info p {
  color: var(--muted);
}

.direct-contact-list {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0 0;
}

.direct-contact-list div {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--soft);
}

.direct-contact-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.direct-contact-list dd {
  margin: 0.2rem 0 0;
  color: var(--navy);
  font-weight: 900;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  overflow-wrap: anywhere;
}

.contact-actions {
  margin-top: 1.4rem;
}

.contact-info dl {
  display: grid;
  gap: 1rem;
  margin: 1.3rem 0 0;
}

.contact-info dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-info dd {
  margin: 0.15rem 0 0;
  color: var(--navy);
  font-weight: 900;
}

.site-footer {
  background: #0b223f;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.4fr) minmax(220px, 0.5fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: 3rem 0;
}

.brand-footer .brand-main,
.site-footer h2 {
  color: var(--white);
}

.brand-footer .brand-sub {
  color: rgba(255, 255, 255, 0.64);
}

.site-footer h2 {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-footer a {
  display: block;
  margin-bottom: 0.45rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer p {
  max-width: 430px;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
}

.footer-bottom p {
  width: min(calc(100% - 2rem), var(--max));
  max-width: none;
  margin: 0 auto;
  font-size: 0.9rem;
  text-align: left;
}

@media (max-width: 980px) {
  .nav-wrap {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.8rem 0.75rem;
    border-radius: var(--radius);
  }

  .nav-menu .btn {
    margin-top: 0.4rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(15, 45, 82, 0.98) 0%, rgba(15, 45, 82, 0.86) 100%),
      linear-gradient(0deg, rgba(15, 45, 82, 0.25), rgba(15, 45, 82, 0));
  }

  .hero-media img {
    opacity: 0.42;
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-head,
  .split,
  .detail-card,
  .story-grid,
  .mission-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .card-grid,
  .pricing-grid,
  .card-grid.four,
  .industry-grid,
  .add-on-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card.featured {
    transform: none;
  }

  .best-for {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .container,
  .nav-wrap,
  .hero-content {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .hero-content {
    padding: 3.6rem 0;
  }

  .hero h1,
  .page-hero h1 {
    line-height: 1.04;
  }

  .hero-actions,
  .hero-actions .btn,
  .final-cta .btn,
  .contact-card .btn {
    width: 100%;
  }

  .trust-grid,
  .card-grid,
  .pricing-grid,
  .card-grid.four,
  .industry-grid,
  .industry-list,
  .add-on-grid,
  .resource-grid,
  .form-grid,
  .mission-list {
    grid-template-columns: 1fr;
  }

  .trust-grid span {
    min-height: 56px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    justify-content: flex-start;
  }

  .page-hero {
    padding: 3.8rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 2.4rem 0;
  }

  .footer-bottom p {
    width: min(calc(100% - 1.25rem), var(--max));
  }
}
