/**
 * Pathway spatial theme — Home Services / Rental Operators
 * Apple-like: wide desktop flow, left-aligned heads, distinct color codes.
 * Fonts & copy unchanged; layout + theme only.
 */

body.theme-home,
body.theme-rent {
  --u-max: min(92rem, calc(100vw - 2 * var(--u-gutter)));
}

body.theme-home,
body.theme-rent {
  background: #fff !important;
}

/* Wider, breathing wraps — still stacked on mobile */
body.theme-home .obs-wrap,
body.theme-rent .obs-wrap,
body.theme-home .hero__stage,
body.theme-rent .hero__stage,
body.theme-home .platform-shell,
body.theme-rent .platform-shell {
  max-width: var(--u-max) !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.25rem, 4vw, 3.5rem) !important;
  padding-right: clamp(1.25rem, 4vw, 3.5rem) !important;
}

/* Section rhythm — sections flow into each other */
body.theme-home .sec.obs-sec,
body.theme-rent .sec.obs-sec,
body.theme-home .home-panel--landing,
body.theme-rent .home-panel--landing,
body.theme-home .home-panel--platform,
body.theme-rent .home-panel--platform {
  padding-top: clamp(3.5rem, 8vh, 6.5rem) !important;
  padding-bottom: clamp(3.5rem, 8vh, 6.5rem) !important;
}

body.theme-home .home-panel--landing,
body.theme-rent .home-panel--landing {
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem) !important;
}

body.theme-home #coverage,
body.theme-rent #coverage {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-home #seo,
body.theme-rent #seo {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent 8rem),
    #fff !important;
}

body.theme-home #america-250,
body.theme-rent #america-250 {
  padding-top: clamp(1.5rem, 3vh, 2.25rem) !important;
  padding-bottom: clamp(1.5rem, 3vh, 2.25rem) !important;
}

/* Heads: centered with the pathway layout */
body.theme-home .sec-head,
body.theme-rent .sec-head,
body.theme-home .gw-sec-head,
body.theme-rent .gw-sec-head,
body.theme-home .home-panel--platform .sec-head,
body.theme-rent .home-panel--platform .sec-head {
  text-align: center !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 40rem;
}

body.theme-home .sec-head__title,
body.theme-rent .sec-head__title,
body.theme-home .sec-head__lead,
body.theme-rent .sec-head__lead,
body.theme-home .sec-head__eyebrow,
body.theme-rent .sec-head__eyebrow,
body.theme-home .home-panel--platform .sec-head__title,
body.theme-rent .home-panel--platform .sec-head__title,
body.theme-home .home-panel--platform .sec-head__lead,
body.theme-rent .home-panel--platform .sec-head__lead,
body.theme-home .home-panel--platform .sec-head__eyebrow,
body.theme-rent .home-panel--platform .sec-head__eyebrow {
  text-align: center !important;
}

/* Hero — left-anchored, more air (non-photo heroes only) */
body.theme-home .hero--obsidian:not(.pathway-hero),
body.theme-rent .hero--obsidian:not(.pathway-hero) {
  min-height: min(78vh, 46rem);
  display: flex;
  align-items: flex-end;
  background: transparent !important;
}

body.theme-home .hero__stage,
body.theme-rent .hero__stage {
  width: 100%;
  padding-top: calc(var(--u-nav-h) + clamp(3rem, 10vh, 7rem)) !important;
  padding-bottom: clamp(2rem, 6vh, 4rem) !important;
}

body.theme-home .hero__copy,
body.theme-rent .hero__copy {
  max-width: 40rem;
  text-align: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}

body.theme-home .hero__h,
body.theme-rent .hero__h,
body.theme-home .hero__brief,
body.theme-rent .hero__brief,
body.theme-home .hero__cta,
body.theme-rent .hero__cta {
  text-align: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.theme-home .pathway-badge,
body.theme-rent .pathway-badge {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  letter-spacing: 0.04em;
  font-weight: 650 !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 999px !important;
}

body.theme-home .pathway-badge--home {
  background: var(--uai-home-grad) !important;
}

body.theme-rent .pathway-badge--rent {
  background: var(--uai-rent-grad) !important;
}

body.theme-home .hero__h-accent {
  color: var(--uai-home-deep) !important;
}

body.theme-rent .hero__h-accent {
  color: var(--uai-rent) !important;
}

/* Coverage walkthrough — horizontal on desktop */
body.theme-home .job-track,
body.theme-rent .job-track {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (min-width: 900px) {
  body.theme-home .job-track,
  body.theme-rent .job-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    position: relative;
  }

  body.theme-home .job-track::before,
  body.theme-rent .job-track::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 1.35rem;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
  }
}

body.theme-home .job-track__step,
body.theme-rent .job-track__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

@media (min-width: 900px) {
  body.theme-home .job-track__step,
  body.theme-rent .job-track__step {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1.5rem 0 0;
    border-top: none;
    position: relative;
    z-index: 1;
  }

  body.theme-home .job-track__step:last-child,
  body.theme-rent .job-track__step:last-child {
    padding-right: 0;
  }
}

body.theme-home .job-track__node,
body.theme-rent .job-track__node {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.theme-home .job-track__body,
body.theme-rent .job-track__body,
body.theme-home .job-track__phase,
body.theme-rent .job-track__phase,
body.theme-home .job-track__title,
body.theme-rent .job-track__title,
body.theme-home .job-track__text,
body.theme-rent .job-track__text {
  text-align: left !important;
}

body.theme-home .job-track__phase,
body.theme-rent .job-track__phase {
  color: var(--theme-accent) !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem !important;
}

body.theme-home .job-track__title,
body.theme-rent .job-track__title {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem) !important;
  letter-spacing: -0.025em !important;
}

body.theme-home .job-track__text,
body.theme-rent .job-track__text {
  color: rgba(0, 0, 0, 0.55) !important;
  max-width: 26rem;
}

/* SEO splits — wide two-column desktop */
@media (min-width: 960px) {
  body.theme-home .seo-split,
  body.theme-rent .seo-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) !important;
    gap: clamp(2rem, 4vw, 4rem) !important;
    align-items: center !important;
    max-width: none !important;
  }

  body.theme-home .seo-split--flip,
  body.theme-rent .seo-split--flip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important;
  }

  body.theme-home .seo-split__copy,
  body.theme-rent .seo-split__copy,
  body.theme-home .seo-split__points,
  body.theme-rent .seo-split__points,
  body.theme-home .seo-split__title,
  body.theme-rent .seo-split__title,
  body.theme-home .seo-split__text,
  body.theme-rent .seo-split__text,
  body.theme-home .seo-split__list,
  body.theme-rent .seo-split__list {
    text-align: left !important;
  }
}

body.theme-home .seo-metrics,
body.theme-rent .seo-metrics {
  max-width: none !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

body.theme-home .seo-metric__delta--up,
body.theme-rent .seo-metric__delta--up {
  color: var(--theme-accent) !important;
}

/* Banner CTA — full width band, not a narrow card */
@media (min-width: 900px) {
  body.theme-home .sec-cta.sec-cta--banner,
  body.theme-rent .sec-cta.sec-cta--banner {
    max-width: none !important;
    margin: 2.5rem 0 0 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    padding: 1.75rem 2rem !important;
    border-radius: 1.35rem !important;
    background: var(--theme-grad) !important;
  }

  body.theme-home .sec-cta.sec-cta--banner .sec-cta__copy,
  body.theme-rent .sec-cta.sec-cta--banner .sec-cta__copy {
    text-align: left !important;
  }
}

/* Platform / integrations — centered section head */
body.theme-home .home-panel--platform .sec-head,
body.theme-rent .home-panel--platform .sec-head {
  text-align: center !important;
  max-width: 36rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 960px) {
  body.theme-home .platform-flow,
  body.theme-rent .platform-flow {
    max-width: none !important;
    margin: 1.5rem 0 0 !important;
  }
}

body.theme-home .america-offer--compact,
body.theme-rent .america-offer--compact {
  background: var(--theme-soft) !important;
  border-radius: 1rem !important;
}

/* Soft section separators instead of hard boxes */
body.theme-home .job-track__step:hover,
body.theme-rent .job-track__step:hover {
  background: transparent !important;
  transform: none !important;
}
