/* ==========================================================================
   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: var(--svc-hero-h, 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: var(--svc-hero-h, 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; }

/* Scroll cue: the desktop hero fills the screen, so this hints at the copy below. */
.svc-scroll {
  position: absolute; left: 50%; top: calc(var(--svc-hero-h, 1018px) - 106px); z-index: 6; width: 26px; height: 42px;
  transform: translateX(-50%); border: 1.5px solid rgba(255,255,255,.55); border-radius: 16px;
  pointer-events: none; transition: opacity 400ms var(--ease, ease);
}
.svc-scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: rgba(255,255,255,.85);
  animation: svc-scroll-hint 1.9s var(--ease-out, ease) infinite;
}
.svc-scroll.is-hidden { opacity: 0; }
@keyframes svc-scroll-hint {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  75% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(16px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .svc-scroll::after { animation: none; } }

/* Copy grows with the saved content. */
.svc-copy { position: relative; isolation: isolate; width: 1219px; margin-left: 76px; padding: calc(var(--svc-hero-h, 1018px) + 66px) 0 80px; color: var(--black); }
/* Full-width text background behind the copy, starting under the hero photograph. */
.svc-copy__wash { left: -76px; top: var(--svc-hero-h, 1018px); width: 1440px; }
.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; text-align: justify; hyphens: auto; }
.svc-copy__intro { margin-top: 28px; font-size: 18px; line-height: 24px; opacity: .76; white-space: pre-line; text-align: justify; hyphens: auto; }
.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; text-align: justify; hyphens: auto; }
.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; }
  /* The hero sits in the flow and takes the photograph's own height, so no image is
     cropped and none is letterboxed, whatever its proportions. */
  .svc-hero { position: relative; left: auto; top: auto; width: 100%; height: auto; transform: none; }
  .svc-hero img { display: block; width: 100%; height: auto; object-fit: fill; }
  .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: 0; width: 100%; height: 100%; opacity: .08; }
  .svc-tagline { position: absolute; left: 0; top: 68px; 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: 28px 0 80px; }   /* the hero is in the flow above it */
  .svc-copy__wash { left: -24px; top: 0; width: 402px; }
  .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 */
