/* The introduction and all six services share one image and one bottom fade. */
.home-page { --navy-deep: var(--navy); --section-heading-size: clamp(33px, 2.95vw, 42px); }
.calendar-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.home-page .container { width: min(1180px, calc(100% - 64px)); }
.home-opening { --opening-hero-height: clamp(280px, calc(100svh - 620px), 520px); position: relative; isolation: isolate; overflow: hidden; padding-bottom: 20px; background: var(--navy-deep); }
.opening-background {
  position: absolute; z-index: -3; inset: 0 0 auto auto;
  width: calc((var(--opening-hero-height) + 70px) * 1500 / 844); max-width: 100%; height: auto;
  object-fit: contain; object-position: right top;
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%), linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.home-opening::before { position: absolute; z-index: -2; inset: 0; content: ''; background: linear-gradient(90deg, rgb(3 45 101 / 98%) 0%, rgb(3 45 101 / 94%) 34%, rgb(3 45 101 / 35%) 52%, rgb(3 45 101 / 8%) 68%, transparent 82%); }
.home-opening::after { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(180deg, transparent 0, transparent var(--opening-hero-height), rgb(114 149 197 / 14%) calc(var(--opening-hero-height) + 80px), var(--blue) 74%, var(--blue-soft) 96%, var(--paper) 100%); }
.home-page .hero { overflow: visible; background: transparent; }
.home-page .hero::before, .home-page .hero::after { display: none; }
.home-page .hero-grid { display: flex; min-height: 230px; align-items: center; padding: 15px 0 17px; }
.home-page .hero-copy { width: 790px; max-width: 72%; }
.home-page .hero .eyebrow { margin-bottom: 8px; font-size: 10px; letter-spacing: .17em; }
.home-page .hero h1 { max-width: none; font-size: var(--section-heading-size); line-height: 1.1; letter-spacing: -.025em; }
.home-page .hero h1 em { font-style: normal; color: inherit; }
.home-page .hero-text { max-width: 650px; margin-top: 12px; color: rgb(255 255 255 / 94%); font-size: 16px; line-height: 1.4; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.home-page .hero-actions .button { gap: 14px; min-height: 42px; margin-top: 0; padding: 0 18px; font-size: 14px; }
.button-secondary { justify-content: center; background: var(--white); color: var(--navy); border: 1px solid rgb(255 255 255 / 70%); }
.button-secondary:hover { background: var(--blue-soft); }
.home-page .services-priority { position: relative; padding: 14px 0 0; background: transparent; }
.home-page .services-priority .section-heading { margin-bottom: 16px; }
.home-page .services-priority h2 { max-width: none; color: var(--white); font-size: 29px; line-height: 1.15; letter-spacing: -.025em; text-shadow: 0 1px 12px rgb(3 45 101 / 30%); }
.home-page .services-priority .section-heading::after { display: block; width: 48px; height: 3px; margin-top: 10px; background: #a7c68b; content: ''; }
.home-page .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border: 0; }
.home-page .service-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); min-height: 156px; border: 1px solid var(--line); border-radius: 6px; background: rgb(255 255 255 / 98%); box-shadow: 0 5px 18px rgb(3 45 101 / 12%); }
.home-page .service-card::after { display: none; }
.home-page .service-card-primary { border-bottom: 3px solid var(--green); }
.home-page .service-card-secondary { border-bottom: 3px solid var(--blue); }
.home-page .service-image { align-self: center; width: calc(100% - 12px); height: auto; aspect-ratio: 1 / 1; margin: 12px 0 12px 12px; border-radius: 3px; background: transparent; }
.home-page .service-image img { object-fit: contain; object-position: center; }
.home-page .service-image::after { display: none; }
.home-page .service-content { display: flex; flex-direction: column; min-height: 0; padding: 12px 13px 10px; }
.home-page .service-card h3 { max-width: none; min-height: 0; margin: 0 0 7px; font-family: var(--sans); font-size: 17px; font-weight: 650; letter-spacing: -.015em; line-height: 1.18; overflow-wrap: normal; }
.home-page .service-card h3 a::after { position: absolute; inset: 0; content: ''; }
.home-page .service-content > p { color: var(--ink); font-size: 13px; line-height: 1.35; }
.home-page .service-content > .service-more { align-self: flex-end; gap: 9px; margin-top: auto; padding-top: 7px; color: var(--navy); font-size: 11px; line-height: 1.25; }
.service-more span { font-size: 22px; line-height: 14px; color: var(--green); }
.home-page .service-card:hover { box-shadow: 0 10px 26px rgb(3 45 101 / 18%); transform: translateY(-2px); }
.home-page .service-card:hover .service-image img { transform: none; }
.service-card:focus-within { outline: 2px solid var(--green); outline-offset: 4px; }
[id] { scroll-margin-top: 110px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }

@media (min-width: 821px) and (max-width: 1190px) {
  .home-page .service-card { grid-template-columns: 104px minmax(0, 1fr); }
  .home-page .service-card h3 { font-size: 16px; }
  .home-page .service-content { padding-inline: 10px; }
  .home-page .hero-copy { max-width: 78%; }
}
@media (min-width: 821px) and (max-height: 820px) {
  .home-page .hero-grid { min-height: 220px; padding-top: 12px; padding-bottom: 12px; }
  .home-page .hero h1 { font-size: var(--section-heading-size); }
  .home-page .services-priority { padding-top: 8px; }
  .home-page .services-priority .section-heading { margin-bottom: 12px; }
  .home-page .services-priority h2 { font-size: 27px; }
  .home-opening { padding-bottom: 26px; }
}
@media (max-width: 820px) {
  .home-page .container { width: calc(100% - 36px); }
  .home-page .hero-grid { min-height: 300px; padding: 26px 0; }
  .home-page .hero-copy { max-width: 100%; }
  .home-page .hero h1 { font-size: var(--section-heading-size); }
  .home-page .hero-text { max-width: 560px; font-size: 16px; }
  .home-page .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .service-card { grid-template-columns: 104px minmax(0, 1fr); }
  .home-page .service-card h3 { font-size: 17px; }
  .opening-background { object-position: 63% top; }
}
@media (max-width: 520px) {
  .home-page .hero-grid { min-height: 400px; padding-top: 100px; }
  .home-page .hero h1 { font-size: var(--section-heading-size); }
  .home-page .hero-text { font-size: 15px; line-height: 1.5; }
  .hero-actions { gap: 10px; }
  .home-page .hero-actions .button { flex: 1 0 100%; justify-content: center; min-height: 44px; }
  .home-page .services-priority h2 { font-size: 27px; }
  .home-page .services-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-page .service-card { grid-template-columns: 112px minmax(0, 1fr); }
  .home-page .service-card h3 { font-size: 18px; }
  .home-page .service-content > p { font-size: 14px; }
  .opening-background { object-position: 62% top; }
  [id] { scroll-margin-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page .service-card, .home-page .service-image img, .button { transition: none; }
  .home-page .service-card:hover, .button:hover { transform: none; }
}

/* Keep both service rows in the desktop viewport with readable copy. */
.home-page .hero-grid, .home-page .services-priority .container { width: min(1460px, calc(100% - 64px)); }
.home-page .service-card { grid-template-columns: 132px minmax(0, 1fr); min-height: 190px; }
.home-page .service-content { min-width: 0; }
.home-page .service-content > p { font-size: 16px; line-height: 1.45; }
.home-page .service-content > .service-more { font-size: 13px; }
.home-page .service-card h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 821px) {
  .home-page .hero-grid { min-height: var(--opening-hero-height); }
}
/* Shared section typography follows the approved hero size. */
.home-page h2 {
  font-family: var(--serif);
  font-size: var(--section-heading-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
}
@media (min-width: 821px) and (max-height: 820px) {
  .home-page { --section-heading-size: 36px; }
}
@media (max-width: 820px) {
  .home-page { --section-heading-size: 35px; }
}
@media (max-width: 520px) {
  .home-page { --section-heading-size: 31px; }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .site-header .header-inner { min-height: 76px; }
  .site-header .brand-logo { width: 215px; height: 64px; }
  .home-opening { --opening-hero-height: 190px; padding-bottom: 10px; }
  .home-page .services-grid { gap: 14px; }
  .home-page .service-card { grid-template-columns: 120px minmax(0, 1fr); min-height: 175px; }
  .home-page .service-content { padding: 10px 12px; }
}
@media (max-width: 1100px) {
  .site-header .desktop-nav, .site-header .header-cta { display: none; }
  .site-header .mobile-menu { display: block; }
  .home-page .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .hero-copy { max-width: 65%; }
}
@media (max-width: 820px) {
  .home-page .hero-grid, .home-page .services-priority .container { width: calc(100% - 36px); }
  .home-page .hero-grid { padding-top: clamp(220px, 35vw, 300px); }
  .home-page .hero-copy { max-width: 100%; }
  .home-opening::before { background: linear-gradient(180deg, transparent 0, transparent 120px, rgb(3 45 101 / 80%) 240px, var(--navy-deep) 400px); }
  .opening-background { width: 100%; mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
  .home-page .service-card { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .home-page .hero-grid { padding-top: 220px; }
  .home-page .services-grid { grid-template-columns: minmax(0, 1fr); }
  .home-page .service-card { grid-template-columns: 112px minmax(0, 1fr); }
  .home-page .service-card h3 { font-size: 16px; }
  .home-page .service-content { padding-inline: 10px; }
}

/* Use the same RENMEN blue on the homepage's dark section surfaces. */
.home-page .process-section, .home-page .contact, .home-page ~ footer { background: var(--navy); }
