/* Services page: a scrolling page that reuses the header, menu and type from styles.css. */

html.scroll-page,
html.scroll-page body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

html.scroll-page {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

/* Same looping video as the home page, pinned behind the scrolling content.
   A soft scrim keeps long-form text readable over the bright parts of the video. */
.bg--fixed {
  position: fixed;
  z-index: 0;
}

.bg--fixed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

main,
.s-footer {
  position: relative;
  z-index: 1;
}

.services-top {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px) 0;
}

main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

/* ---------- Hero ---------- */
.s-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 11vh, 120px) 0 clamp(48px, 8vh, 88px);
}

.s-eyebrow {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: 13px;
  font-weight: 500;
}

.s-title,
.s-final-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5.4vw, 66px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-top: 22px;
}

.s-lede {
  max-width: 520px;
  margin-top: 18px;
  color: #d0d0d0;
  opacity: 0.8;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
}

.s-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.s-jump a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e6e6e6;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.s-jump a:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* ---------- Service blocks ---------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service--flagship {
  padding: clamp(32px, 4.5vw, 48px);
  margin-bottom: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    rgba(12, 12, 13, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.service-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.service-glyph {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  color: #fff;
  margin-top: 4px;
}

.service-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.service-name {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.service-promise {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.service-copy {
  color: #d6d6d6;
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.65;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-n {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
}

.steps strong {
  font-size: 15px;
  font-weight: 600;
}

.steps li > span:last-child {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.includes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-top: 24px;
}

.includes li {
  position: relative;
  padding-left: 22px;
  color: #e4e4e4;
  font-size: 14.5px;
  line-height: 1.5;
}

/* Three-dot bullet, echoing the active-link indicator in the nav */
.includes li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.68em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: -5px 0 0 #fff, 5px 0 0 #fff;
}

.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-for {
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.5;
}

.service-for span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.service-cta:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-1px);
}

.service--flagship .service-cta {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.25);
}

/* ---------- Final CTA ---------- */
.s-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(64px, 10vw, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.s-final-title {
  margin-top: 0;
  font-size: clamp(28px, 4.4vw, 54px);
}

.s-final .cta {
  margin-top: 28px;
}

.s-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 40px) max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 13px;
}

.s-footer a:hover {
  color: #fff;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .service {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .services-top .header {
    max-width: none;
  }

  .includes {
    grid-template-columns: 1fr;
  }

  .service-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .service-cta {
    justify-content: center;
    height: 50px;
  }

  .service--flagship {
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 22px;
  }

  .s-footer {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
