:root {
  --navy: #10233f;
  --navy-2: #163960;
  --emerald: #15976a;
  --emerald-2: #0f7a58;
  --emerald-soft: #e6f6ef;
  --ink: #172033;
  --muted: #647084;
  --line: #dfe7ef;
  --soft: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(16, 35, 63, 0.14);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link,
.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;
}

.skip-link:focus {
  z-index: 999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--navy);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(223, 231, 239, 0.8);
  backdrop-filter: blur(16px);
}

.topbar {
  color: var(--white);
  background: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 18px;
}

.topbar a {
  color: var(--white);
}

.topbar span {
  color: #b9c9d8;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 84px;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--emerald));
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  color: var(--navy);
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
  color: #314158;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding-block: 31px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--emerald-2);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  transform: scaleX(1);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-cta,
.btn-primary {
  color: var(--white);
  background: var(--emerald);
  box-shadow: 0 14px 30px rgba(21, 151, 106, 0.25);
}

.header-cta:hover,
.btn-primary:hover {
  background: var(--emerald-2);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--emerald);
  transform: translateY(-1px);
}

.btn-secondary-dark {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-light {
  color: var(--navy);
  background: var(--white);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background: var(--white);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  content: "";
  background: var(--emerald);
}

.hero-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 62px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.55rem, 5.4vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: #43516a;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.hero-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(370px, calc(100% - 44px));
  padding: 22px;
  color: var(--white);
  background: rgba(16, 35, 63, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.hero-card span {
  display: block;
  margin-bottom: 5px;
  color: #9fe4c8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  line-height: 1.35;
}

.service-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: 0 22px 52px rgba(16, 35, 63, 0.1);
}

.service-rail a {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 28px;
  background: var(--white);
  border-right: 1px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.service-rail a:last-child {
  border-right: 0;
}

.service-rail a:hover,
.service-rail a:focus {
  color: var(--white);
  background: var(--navy);
}

.service-rail span {
  color: var(--emerald-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-rail a:hover span,
.service-rail a:focus span,
.service-rail a:hover small,
.service-rail a:focus small {
  color: #9fe4c8;
}

.service-rail strong {
  color: inherit;
  font-size: 1.42rem;
  line-height: 1.08;
}

.service-rail small {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.page-hero {
  padding: 74px 0;
  background: linear-gradient(115deg, var(--white) 0%, var(--soft) 100%);
}

.page-hero-dark {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 35, 63, 0.98), rgba(16, 35, 63, 0.9)),
    url("rc-accounting-hero.png") center / cover;
}

.page-hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 56px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 4.7vw, 4.75rem);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-hero-dark h1,
.page-hero-dark p,
.page-hero-dark .eyebrow {
  color: var(--white);
}

.page-hero-dark .eyebrow {
  color: #9fe4c8;
}

.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  font-size: 1.8rem;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.section {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading p,
.about-panel p,
.why p,
.area p,
.faq p,
.cta p {
  color: var(--muted);
}

.section-heading.split {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 32px;
}

.benefits,
.process,
.faq {
  background: var(--soft);
}

.benefit-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.benefit-item {
  position: relative;
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.benefit-item::before {
  position: absolute;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 5px;
  content: "";
  background: var(--emerald);
}

.icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--emerald-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.benefit-item p,
.service-card p,
.process-steps p,
.why-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.insight-grid .benefit-item {
  display: flex;
  flex-direction: column;
  min-height: 310px;
}

.insight-grid .benefit-item h3 {
  font-size: 1.24rem;
}

.insight-grid .benefit-item p {
  margin-bottom: 22px;
}

.insight-grid .benefit-item a {
  display: inline-flex;
  margin-top: auto;
  color: var(--navy);
  font-weight: 800;
}

.insight-grid .benefit-item a::after {
  margin-left: 8px;
  content: ">";
  color: var(--emerald);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 310px;
  padding: 34px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.service-card-accent {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.service-card-accent h3,
.service-card-accent p {
  color: var(--white);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--emerald);
  background: var(--emerald-soft);
  border-radius: 8px;
}

.service-card-accent .service-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.medical {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 35, 63, 0.98) 0%, rgba(16, 35, 63, 0.92) 52%, rgba(18, 63, 93, 0.84) 100%),
    url("rc-accounting-hero.png") center / cover;
}

.medical-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
}

.medical h2,
.medical .eyebrow,
.medical p {
  color: var(--white);
}

.medical .eyebrow {
  color: #9fe4c8;
}

.medical-copy {
  padding-left: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.about-grid,
.why-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 40px;
}

.about-panel {
  padding: 42px;
  background: var(--navy);
  border-radius: var(--radius);
}

.about-panel h2,
.about-panel p {
  color: var(--white);
}

.about-panel .eyebrow {
  color: #9fe4c8;
}

.values-panel {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.values-panel li,
.why-list div {
  position: relative;
  padding: 18px 18px 18px 46px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.values-panel li::before,
.why-list div::before {
  position: absolute;
  top: 19px;
  left: 18px;
  width: 14px;
  height: 14px;
  content: "";
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #d9f3ea;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-steps article {
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-steps span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
}

.why-list h3 {
  margin-bottom: 6px;
}

.area-card {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 360px;
  gap: 42px;
  padding: 42px;
  background: linear-gradient(135deg, #f4f8fb, var(--emerald-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

address {
  display: grid;
  gap: 8px;
  padding: 28px;
  color: var(--navy);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(16, 35, 63, 0.1);
  font-style: normal;
  font-weight: 600;
}

address a {
  color: var(--emerald-2);
}

.faq-list {
  display: grid;
  gap: 12px;
}

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

summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--navy);
  font-weight: 800;
}

details p {
  padding: 0 22px 20px;
  margin-bottom: 0;
}

.cta {
  padding: 86px 0;
  color: var(--white);
  background: var(--navy);
}

.cta-inner {
  max-width: 820px;
  text-align: center;
}

.cta h2,
.cta p,
.cta .eyebrow {
  color: var(--white);
}

.cta .eyebrow {
  color: #9fe4c8;
}

.cta .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.site-footer {
  padding: 52px 0 24px;
  color: #d9e5ef;
  background: #071527;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-brand .brand-text span,
.site-footer p,
.site-footer span {
  color: #aebdca;
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: #9fe4c8;
}

.footer-bottom {
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    margin-left: auto;
    place-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: var(--navy);
  }

  .site-nav {
    position: absolute;
    top: 110px;
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding-block: 10px;
  }

  .site-nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .page-hero-grid,
  .medical-grid,
  .about-grid,
  .why-grid,
  .faq-grid,
  .area-card,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

  .benefit-grid,
  .insight-grid,
  .service-grid,
  .process-steps,
  .service-rail,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-media img {
    min-height: 420px;
  }

  .page-hero {
    padding: 58px 0;
  }

  .medical-copy {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .brand-text span {
    max-width: 170px;
  }

  .hero {
    padding: 42px 0 0;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section,
  .cta {
    padding: 58px 0;
  }

  .benefit-grid,
  .insight-grid,
  .service-grid,
  .process-steps,
  .service-rail,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-rail {
    margin-top: 34px;
  }

  .service-rail a {
    min-height: auto;
  }

  .topbar-inner {
    display: grid;
    justify-content: start;
    padding-block: 8px;
  }

  .site-nav {
    top: 126px;
  }

  .hero-media img {
    min-height: 320px;
  }

  .page-hero-grid {
    gap: 28px;
  }

  .contact-panel {
    padding: 24px;
  }

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

  .hero-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .about-panel,
  .values-panel,
  .area-card {
    padding: 26px;
  }
}
