/* ==========================================================================
   Service detail pages — desktop (1440 x 2718) and mobile (402 x 2488)
   Shared by database-backed service detail pages.
   ========================================================================== */

.page--service { height: auto; background: #f5f5f5; }

/* Hero photograph */
.svc-hero { position: absolute; left: 0; top: 0; width: 1440px; height: 1018px; overflow: hidden; }
.svc-hero img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 1343.4px 949.74px at 720px 509px, rgba(0,0,0,0) 40%, rgba(0,0,0,.24) 100%), rgba(9,29,81,var(--tint, .12));
}
.svc-hero__grain { position: absolute; left: 0; top: 0; width: 1440px; height: 1018px; opacity: .22; }

/* White nav variant of the NavBar component */
.nav--light { color: var(--white); }
.nav--light .nav__link { top: 52px; line-height: 16px; text-transform: none; }
.nav--light .nav__link--about { left: 72px; }
.nav--light .nav__link--how { left: 318px; }
.nav--light .nav__link--careers { left: 1076px; top: 56px; }
.nav--light .nav__contact { top: 56px; right: 72px; padding: 4px 0; line-height: 16px; text-transform: none; }
.nav--light .nav__logo { left: 618px; top: 54px; }
.nav--light .nav__tagline { left: 643px; top: 90px; }

/* Copy grows with the saved content. */
.svc-copy { position: relative; width: 1219px; margin-left: 76px; padding: 1084px 0 80px; color: var(--black); }
.svc-copy__title { font-size: 40px; line-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.svc-copy__lead { margin-top: 16px; font-size: 18px; line-height: 24px; opacity: .76; }
.svc-copy__intro { margin-top: 28px; font-size: 18px; line-height: 24px; opacity: .76; white-space: pre-line; }
.svc-copy__section { margin-top: 32px; }
.svc-copy__heading { margin-bottom: 12px; font-size: 28px; line-height: 40px; font-weight: 600; overflow-wrap: anywhere; }
.svc-copy__text, .svc-copy__list { font-size: 18px; line-height: 24px; opacity: .76; overflow-wrap: anywhere; }
.svc-copy__text { white-space: pre-line; }
.svc-copy__text + .svc-copy__list { margin-top: 16px; }
.svc-copy__list li { padding-left: 21px; text-indent: -21px; }
.svc-copy__list li::before { content: "•\00a0\00a0\00a0"; }
.svc-copy__back { display: inline-block; margin-top: 40px; color: var(--navy); text-decoration: underline; }
.page--service .footer { position: relative; bottom: auto; height: 658px; }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 899px) {
  .page--service { height: auto; }
  .svc-hero { left: 50%; width: 402px; height: 640px; transform: translateX(-50%); }
  .svc-hero img { height: 640px; width: 100%; object-fit: cover; }
  .svc-hero::after { left: 0; width: 100%; background: radial-gradient(ellipse 845.25px 597.09px at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,.24) 100%), rgba(9,29,81,var(--tint, .12)); }
  .svc-hero__grain { left: calc(50% - 201px + var(--grain-left, 0px)); width: 402px; height: 640px; opacity: .08; }
  .svc-tagline { position: absolute; left: 0; top: 104px; width: 100%; font-size: 12px; line-height: 16px; text-align: center; text-transform: capitalize; color: var(--white); white-space: nowrap; z-index: 6; }

  .svc-copy { width: 354px; margin: 0 auto; padding: 668px 0 80px; }
  .svc-copy__title { width: 354px; font-size: 24px; line-height: 28px; white-space: normal; }
  .svc-copy__lead { width: 354px; font-size: 14px; line-height: 20px; white-space: normal; }
  .svc-copy__intro { width: 354px; font-size: 14px; line-height: 20px; }
  .svc-copy__heading { font-size: 20px; line-height: 24px; }
  .svc-copy__text { width: 354px; font-size: 14px; line-height: 20px; }
  .svc-copy__list { width: 354px; font-size: 14px; line-height: 20px; }
  .svc-copy__list li { padding-left: 17px; text-indent: -17px; }
  .page--service .footer-m { position: relative; left: auto; bottom: auto; margin: 0 auto; }
}

/* Design: footer starts 6px lower than the previous 80px */
.svc-copy { padding-bottom: 86px; }
@media (max-width: 899px) { .svc-copy { padding-bottom: 40px; } }   /* footer lands at the Figma offset */
