/* Shared homepage design, with responsive layouts below. */
.home-page {
  --font-body: "Mulish", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: var(--font-body);
  --font: var(--font-heading);
  --home-section-space: clamp(56px, 6.25vw, 88px);
  --home-grid-gap: clamp(20px, 2vw, 28px);
  font-size: 16px;
  line-height: 1.65;
}

.home-page .topbar {
  display: none;
}


.home-page .site-header {
  background: #fff;
  box-shadow: none;
}

.home-page .header__inner {
  width: min(1320px, calc(100% - 32px));
  min-height: 70px;
  gap: 22px;
}

.home-page .site-header .logo-brand img {
  width: clamp(230px, 21vw, 285px);
}

.home-page .primary-nav {
  gap: clamp(12px, 1.7vw, 28px);
  font-family: "Mulish", sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.home-page .primary-nav .nav-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
}

.home-page .btn--header {
  min-height: 48px;
  padding: 12px 24px;
  gap: 10px;
  flex-shrink: 0;
  font: 800 19px/1 "Mulish", sans-serif;
  background: #ed0011;
}

.home-page .header-phone-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.home-page .hero {
  --home-hero-height: 540px;
  --home-content-width: min(1320px, calc(100% - 32px));
  --home-content-gutter: max(16px, calc((100% - 1320px) / 2));
  width: 100%;
  margin: 0;
  min-height: 0;
  padding: 0 0 24px;
  background: #faf9f7;
}

.home-page .hero__media {
  position: absolute;
  inset: 0 0 0 calc(var(--home-content-gutter) + var(--home-content-width) * .467);
  height: auto;
  border-radius: 0;
  overflow: hidden;
  z-index: 0;
}

.home-page .hero__media::before {
  display: none;
  background: none;
}

.home-page .hero__media img {
  /* Crop excess sky while continuing the photo behind the floating panels. */
  height: calc(100% + 180px);
  transform: translateY(-180px);
  object-position: center bottom;
}

.home-page .hero__inner {
  width: var(--home-content-width);
  max-width: none;
  background: transparent;
}

.home-page .hero__content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: var(--home-hero-height);
  width: calc(46.7% - 20px);
  max-width: none;
  margin: 0;
  padding: 48px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  font-family: "Mulish", sans-serif;
}

.home-page .hero-review {
  gap: 10px;
  margin: 0;
  color: #15191e;
  font-size: 15px;
  font-weight: 800;
}

.home-page .hero-review__stars {
  gap: 1px;
}

.home-page .hero p.hero-review-note {
  margin: 8px 0 32px;
  color: #454b53;
  font-size: 16px;
  font-weight: 600;
}

.home-page .hero h1 {
  font-family: "Mulish", sans-serif;
  font-size: clamp(48px, 4.25vw, 56px);
  line-height: 1.1;
  letter-spacing: -2.4px;
  font-weight: 900;
  color: #10151b;
}

.home-page .home-headline-line {
  display: block;
}

.home-page .home-headline-accent {
  color: #ed0011;
}

.home-page .hero p.home-hero-description {
  max-width: 620px;
  margin: 24px 0 30px;
  color: #454b53;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
}

.home-page .home-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-page .home-hero-actions .btn {
  min-height: 58px;
  padding: 15px 18px;
  gap: 10px;
  border-radius: 10px;
  white-space: nowrap;
  font: 800 clamp(14px, 1.25vw, 16px)/1 "Mulish", sans-serif;
}

.home-page .home-hero-actions svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.home-page .home-hero-actions .btn--primary {
  background: #ed0011;
}

.home-page .home-hero-actions .btn--primary > span {
  font-size: 25px;
  font-weight: 500;
}

.home-page .home-call-button {
  color: #15191e;
  border: 2px solid #454b53;
  background: transparent;
}

.home-page .btn--header:hover,
.home-page .home-hero-actions .btn--primary:hover {
  background: var(--brand-red-dark);
}

.home-page .home-call-button:hover {
  background: #fff;
}

.home-page .highlights {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  width: 80%;
  max-width: none;
  min-height: 108px;
  margin: 0 auto 16px 0;
  padding: 20px 24px 20px 0;
  gap: 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 8px 24px rgba(16, 21, 27, .1);
}

.home-page .highlights::before {
  display: block;
}

.home-page .highlights li {
  min-height: 68px;
  gap: 14px;
  padding-inline: 18px 14px;
  border-left: 1px solid #d9dce1;
}

.home-page .highlights li:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-page .hero .highlights p {
  font-family: "Mulish", sans-serif;
  font-size: 16px;
  line-height: 1.25;
}

.home-page .home-trust-copy strong {
  display: block;
  font-weight: 900;
}

.home-page .badge-icon {
  width: 56px;
  height: 62px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-page .badge-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.home-page .home-trust-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  flex: 0 0 auto;
  color: #10151b;
}

.home-page .home-trust-icon svg {
  width: 44px;
  height: 44px;
}

.home-page .badge-icon--gaf {
  width: 60px;
  height: 60px;
}

.home-page .badge-icon--gaf img {
  width: 60px;
  height: 60px;
}

.home-page .quote-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 16px var(--home-content-gutter);
  border-radius: 0;
  background: #1b2329;
  box-shadow: 0 12px 28px rgba(16, 21, 27, .12);
  scroll-margin-top: 86px;
}

.home-page .quote-strip::after {
  display: none;
}

.home-page .quote-strip h3 {
  font: 900 28px/1.2 "Mulish", sans-serif;
}

.home-page .hero p.home-service-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #e4e6e8;
  font: 500 13px/1.3 "Mulish", sans-serif;
}

.home-page .home-service-area svg {
  width: 18px;
  height: 18px;
}

.home-page .quote-strip form {
  grid-column: 1 / -1;
  grid-template-columns: 1.25fr 1.35fr 1fr .88fr .82fr 1.08fr;
  gap: 6px 12px;
}

.home-page .quote-strip input {
  height: 36px;
  min-width: 0;
  border: 1px solid #d9dce1;
  border-radius: 7px;
  font-family: "Mulish", sans-serif;
}

.home-page .quote-strip .btn {
  min-height: 38px;
  padding: 8px 14px;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #ed0011;
  font: 800 15px/1.2 "Mulish", sans-serif;
}

.home-page .quote-strip .btn::after {
  content: "→";
  font-size: 22px;
  line-height: 1;
}

.home-page .quote-strip .btn:hover {
  background: var(--brand-red-dark);
}

.home-page .hero .quote-strip .form-status {
  max-width: none;
  margin: 4px 0;
  color: #fff;
}

.home-page .hero .quote-strip .form-status--success {
  color: #14532d;
}

.home-page .hero .quote-strip .form-status--error {
  color: #7f1d1d;
}

@media (max-width: 1180px) {
  .home-page .header__inner {
    gap: 12px;
  }

  .home-page .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .home-page .nav-toggle:focus-visible + .nav-button {
    outline: 3px solid var(--brand-red);
    outline-offset: 4px;
  }

  .home-page .site-header .logo-brand img {
    width: clamp(190px, 40vw, 285px);
  }

  .home-page .primary-nav {
    gap: 4px;
    white-space: normal;
  }

  .home-page .hero {
    --home-hero-height: 560px;
  }

  .home-page .hero__media {
    /* Keep the house in view beside the taller, two-column tablet layout. */
    bottom: auto;
    height: calc(var(--home-hero-height) + 120px);
  }

  .home-page .hero__media img {
    height: 100%;
    transform: none;
    object-position: center 40%;
  }

  .home-page .hero__content {
    padding-block: 36px;
  }

  .home-page .hero-review {
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 13px;
    white-space: normal;
  }

  .home-page .hero-review__stars svg {
    width: 18px;
    height: 18px;
  }

  .home-page .hero p.hero-review-note {
    margin: 8px 0 24px;
    font-size: 14px;
  }

  .home-page .hero h1 {
    font-size: clamp(32px, 4.25vw, 48px);
    letter-spacing: -1.5px;
  }

  .home-page .hero p.home-hero-description {
    margin: 20px 0 24px;
    font-size: 16px;
  }

  .home-page .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    gap: 10px;
  }

  .home-page .home-hero-actions .btn {
    min-height: 52px;
    font-size: 15px;
  }

  .home-page .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-height: 228px;
    padding: 16px 0;
  }

  .home-page .highlights li,
  .home-page .highlights li:first-child {
    padding: 16px 24px;
  }

  .home-page .highlights li:nth-child(odd) {
    border-left: 0;
  }

  .home-page .highlights li:nth-child(-n+2) {
    border-bottom: 1px solid #d9dce1;
  }

  .home-page .quote-strip form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .home-page .quote-strip input,
  .home-page .quote-strip .btn {
    min-height: 48px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .home-page .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 24px;
  }

  .home-page .hero__inner {
    display: contents;
  }

  .home-page .hero__content {
    order: 2;
    width: min(1320px, calc(100% - 32px));
    min-height: 0;
    margin-inline: auto;
    padding: 32px 0 12px;
  }

  .home-page .hero h1 {
    font-size: clamp(30px, 8.5vw, 48px);
    letter-spacing: -1.2px;
  }

  .home-page .hero p.hero-review-note {
    margin-bottom: 24px;
  }

  .home-page .home-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .home-page .hero__media {
    order: 1;
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(240px, 65vw, 360px);
  }

  .home-page .hero__media img {
    object-position: center 50%;
  }

  .home-page .highlights {
    order: 3;
    width: min(1320px, calc(100% - 32px));
    min-height: 331px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: none;
  }

  .home-page .highlights::before {
    display: none;
  }

  .home-page .highlights li,
  .home-page .highlights li:first-child {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px 8px;
    text-align: center;
  }

  .home-page .hero .highlights p {
    font-size: 14px;
  }

  .home-page .home-trust-icon,
  .home-page .home-trust-icon svg {
    width: 44px;
    height: 52px;
  }

  .home-page .badge-icon--gaf,
  .home-page .badge-icon--gaf img {
    width: 60px;
    height: 60px;
  }

  .home-page .quote-strip {
    order: 4;
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px;
    gap: 12px;
  }

  .home-page .quote-strip h3 {
    font-size: 26px;
  }

  .home-page .hero p.home-service-area {
    font-size: 12px;
  }

  .home-page .home-service-area svg {
    flex-shrink: 0;
  }

  .home-page .quote-strip form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .mobile-sticky-bar a {
    font-family: "Mulish", sans-serif;
    font-weight: 800;
  }
}

@media (max-width: 599px) {
  .home-page .quote-strip form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  .home-page .home-hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .hero-review {
    font-size: 12px;
  }

  .home-page .hero-review__stars svg {
    width: 16px;
    height: 16px;
  }
}

/* Homepage services and credentials share the hero's typography and palette. */
.home-page .services,
.home-page .trust {
  background: #faf9f7;
  font-family: "Mulish", sans-serif;
}

.home-page .services {
  padding: 56px 0 36px;
}

.home-page .home-section-heading {
  margin-bottom: 28px;
}

.home-page .home-section-heading::before {
  content: "";
  display: block;
  width: 60px;
  height: 5px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: #ed0011;
}

.home-page .home-section-heading h2 {
  color: #10151b;
  font: 900 clamp(32px, 4.2vw, 56px)/1.12 "Mulish", sans-serif;
  letter-spacing: -1.5px;
}

.home-page .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-page .service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e8e6e3;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(16, 21, 27, .035);
}

.home-page .service-card img {
  height: auto;
  aspect-ratio: 1.64;
  object-fit: cover;
}

.home-page .service-card > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px;
}

.home-page .service-card h3 {
  color: #10151b;
  font: 900 26px/1.2 "Mulish", sans-serif;
  letter-spacing: -.6px;
}

.home-page .service-card p {
  margin-top: 10px;
  color: #555c66;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.home-page .service-card__link {
  gap: 12px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 18px;
  color: #ed0011;
  font: 800 17px/1.2 "Mulish", sans-serif;
}

.home-page .service-card__link svg {
  width: 20px;
  height: 20px;
}

.home-page .service-card:hover,
.home-page .service-card:focus-visible {
  box-shadow: 0 12px 28px rgba(16, 21, 27, .1);
}

.home-page .service-card:focus-visible {
  outline: 3px solid #d90000;
  outline-offset: 4px;
}

.home-page .trust {
  padding: 24px 0 36px;
  border-top: 0;
}

.home-page .trust .home-section-heading {
  margin-bottom: 16px;
}

.home-page .trust .home-section-heading::before {
  width: 56px;
  margin-bottom: 10px;
}

.home-page .trust h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -.7px;
}

.home-page .trust__row {
  display: grid;
  grid-template-columns: 1.2fr .9fr repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-page .trust-logo {
  min-width: 0;
  height: 96px;
  padding: 12px;
  border: 1px solid #e8e6e3;
  border-radius: 8px;
  background: #fff;
}

.home-page .trust-logo img {
  width: auto;
  max-width: 100%;
  max-height: 72px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-page .service-grid {
    gap: 16px;
  }

  .home-page .service-card > div {
    padding: 18px 16px;
  }

  .home-page .service-card h3 {
    font-size: 22px;
  }

  .home-page .service-card p {
    font-size: 15px;
  }
}

@media (max-width: 1023px) {
  .home-page .trust__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-page .services {
    padding: 40px 0 28px;
  }

  .home-page .home-section-heading {
    margin-bottom: 24px;
  }

  .home-page .home-section-heading h2 {
    letter-spacing: -.8px;
  }

  .home-page .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .home-page .service-card h3 {
    font-size: 24px;
  }

  .home-page .trust {
    padding-bottom: 28px;
  }
}

@media (max-width: 599px) {
  .home-page .trust__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-page .trust-logo {
    height: 88px;
    padding: 10px;
  }

  .home-page .trust-logo img {
    max-height: 66px;
  }
}

/* Full-width introduction with the same typography as the homepage hero. */
.home-page .intro-video {
  display: grid;
  align-items: center;
  min-height: clamp(600px, 51.5vw, 740px);
  padding: 88px 0;
  color: #fff;
  font-family: "Mulish", sans-serif;
  scroll-margin-top: 70px;
}

.home-page .intro-video__bg {
  background-image:
    linear-gradient(180deg, rgba(5, 10, 16, .42), rgba(5, 10, 16, .56) 48%, rgba(5, 10, 16, .8)),
    url("https://images.unsplash.com/photo-1643225523483-e2c434191bba?auto=format&fit=crop&w=1600&q=82");
  background-position: center;
  background-size: cover;
}

.home-page .intro-video__inner {
  max-width: 1040px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.home-page .intro-video .ratings {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 34px;
  margin-bottom: 28px;
}

.home-page .intro-video .rating {
  gap: 9px;
  white-space: nowrap;
}

.home-page .intro-video .rating strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2px;
}

.home-page .intro-video .rating__logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
}

.home-page .intro-video .rating__logo img {
  width: 28px;
  height: 28px;
}

.home-page .intro-video .rating__logo--facebook img {
  width: 17px;
  height: 30px;
}

.home-page .intro-video .stars {
  color: #fbbc04;
  font-size: 16px;
}

.home-page .intro-video h2 {
  margin: 0;
  color: #fff;
  font: 900 clamp(34px, 3.75vw, 50px)/1.08 "Mulish", sans-serif;
  letter-spacing: -.8px;
}

.home-page .intro-video h2 > span {
  display: block;
}

.home-page .intro-video h2::after {
  content: "";
  display: block;
  width: 150px;
  height: 4px;
  margin: 24px auto 26px;
  background: #ed0011;
}

.home-page .intro-video p {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .home-page .intro-video {
    min-height: 0;
    padding: 64px 0;
  }

  .home-page .intro-video__bg {
    background-image:
      linear-gradient(180deg, rgba(5, 10, 16, .6), rgba(5, 10, 16, .82)),
      url("https://images.unsplash.com/photo-1643225523483-e2c434191bba?auto=format&fit=crop&w=1600&q=82");
    background-position: 60% center;
  }

  .home-page .intro-video .ratings {
    gap: 14px 24px;
    margin-bottom: 26px;
  }

  .home-page .intro-video h2 {
    font-size: clamp(30px, 5vw, 34px);
    line-height: 1.12;
    letter-spacing: -.5px;
  }

  .home-page .intro-video h2::after {
    width: 100px;
    margin: 24px auto;
  }

  .home-page .intro-video p {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Carry the hero typography and spacing through the rest of the homepage. */
.home-page :is(input, select, textarea, button) {
  font-family: var(--font-body);
}

.home-page main > :is(.expansion, .reviews, .partner, .process, .inspection, .projects, .areas, .faq, .articles) {
  padding-block: var(--home-section-space);
}

.home-page main > section[id] {
  scroll-margin-top: 86px;
}

.home-page :is(.expansion, .partner, .faq) {
  background: #faf9f7;
}

.home-page :is(.section-heading, .expansion, .partner, .inspection, .areas, .faq, .final-cta) h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.9px;
  text-wrap: balance;
}

.home-page :is(.review-card, .article-grid, .process-grid, .report-card, .footer__grid) h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.35px;
}

.home-page .eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .08em;
}

.home-page :is(.expansion__content, .partner__text, .inspection__copy, .areas__copy) h2 + p {
  margin-top: 24px;
}

.home-page :is(.expansion__content, .partner__text, .inspection__copy, .areas__copy) p:not(.eyebrow) {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.7;
}

.home-page .section-heading {
  margin-bottom: 36px;
}

.home-page .section-heading--split {
  display: flex;
  gap: 24px 40px;
}

.home-page .section-heading--split > div {
  max-width: 820px;
}

.home-page .section-heading--split > .btn {
  flex-shrink: 0;
}

.home-page .section-heading--center {
  gap: 0;
}

.home-page .section-heading--center h2 {
  max-width: 840px;
}

.home-page .section-heading--center .btn {
  margin-top: 24px;
}

.home-page :is(.expansion__grid, .partner__layout, .areas__grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.home-page .expansion__image {
  width: 100%;
  margin: 0;
}

.home-page .expansion__image img {
  height: auto;
  aspect-ratio: 6 / 5;
  box-shadow: none;
}

.home-page .expansion__panel {
  padding: 0;
  background: transparent;
}

.home-page .expansion__content {
  display: block;
  justify-items: start;
}

.home-page .expansion__content > * {
  max-width: none;
}

.home-page .expansion p:not(.eyebrow) {
  margin-bottom: 28px;
}

.home-page :is(.review-grid, .article-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--home-grid-gap);
}

.home-page :is(.review-card, .article-grid article, .google-map-card, .faq details) {
  border: 1px solid #e8e6e3;
  box-shadow: 0 6px 20px rgba(16, 21, 27, .035);
}

.home-page .review-card {
  padding: clamp(20px, 2.2vw, 30px);
}

.home-page .review-card__top {
  gap: 14px;
}

.home-page .review-card h3 {
  font-size: 20px;
}

.home-page .avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  font-size: 18px;
}

.home-page .review-card > p {
  margin-top: 22px;
}

.home-page .partner {
  display: block;
  min-height: 0;
  overflow-x: clip;
}

.home-page .partner__image {
  position: relative;
  inset: auto;
  order: 2;
  width: 100%;
  margin: 0;
  aspect-ratio: 6 / 5;
}

.home-page .partner__image img {
  position: absolute;
  inset: 0;
  width: calc(100% + max(16px, (100vw - 1320px) / 2));
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 8px 0 0 8px;
}

.home-page .partner__text {
  max-width: none;
}

.home-page .partner .btn {
  margin-top: 28px;
}

/* Preserve the original large-number process cards; reveal the accent on hover. */
.home-page .process-grid article {
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-page .process-grid span {
  transition: color .25s ease, opacity .25s ease, transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .process-grid article:hover {
    z-index: 2;
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(16, 21, 27, .15);
  }

  .home-page .process-grid article:hover span {
    color: #ed0011;
    opacity: .2;
    transform: translateY(-8px);
  }
}

/* Touch scrolling gives the centered step the same emphasis as a desktop hover. */
@media (max-width: 640px) and (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .home-page .process-grid article {
    transition: transform .35s ease, box-shadow .35s ease;
  }

  .home-page .process-grid span {
    transition: color .35s ease, opacity .35s ease, transform .35s ease;
  }

  .home-page .process-grid article.is-scroll-active {
    transform: translateY(-4px);
    box-shadow: inset 3px 0 #ed0011, 0 18px 40px rgba(16, 21, 27, .13);
  }

  .home-page .process-grid article.is-scroll-active span {
    color: #ed0011;
    opacity: .2;
    transform: translateY(-8px);
  }
}

/* Original circular inspection controls and overlapping report, now real tabs. */
.home-page .inspection-tabs {
  flex-wrap: nowrap;
}

.home-page .inspection-tabs li {
  min-width: 0;
}

.home-page .inspection-tabs button {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 800 14px/1.4 var(--font-body);
  cursor: pointer;
}

.home-page .inspection-tabs span {
  border: 2px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-page .inspection-tabs button:hover span {
  border-color: #ed0011;
  transform: translateY(-3px);
}

.home-page .inspection-tabs button[aria-selected="true"] {
  color: #d90000;
}

.home-page .inspection-tabs button[aria-selected="true"] span {
  border-color: #ed0011;
  box-shadow: 0 8px 24px rgba(217, 0, 0, .12);
}

.home-page .inspection-tabs button:focus-visible,
.home-page .report-card:focus-visible {
  outline: 3px solid #d90000;
  outline-offset: 5px;
}

.home-page .inspection-panels {
  min-width: 0;
}

.home-page .report-card {
  box-shadow: 0 16px 38px rgba(16, 21, 27, .1);
}

.home-page .report-card__caption {
  min-height: 166px;
}

.home-page .report-card p {
  margin-top: 12px;
}

.home-page :is(.report-card--thermal, .report-card--measurements) > img {
  object-fit: contain;
  background: #1b2329;
}

.home-page .report-card .inspection-image-credit {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .95);
  color: #303843;
  font-size: 11px;
  line-height: 1.5;
}

.home-page .inspection-image-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Keep the gallery at its original viewport width, beyond the text container. */
.home-page .projects__inner > .project-grid {
  width: min(1880px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.home-page .city-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 28px;
}

.home-page .city-list li {
  width: fit-content;
  max-width: 100%;
  line-height: 1.4;
  border-bottom-width: 1px;
}

.home-page .google-map-card {
  min-height: 440px;
}

.home-page .google-map-card__bar {
  flex-wrap: wrap;
  padding: 16px;
}

.home-page .google-map-card__bar strong {
  line-height: 1.4;
}

.home-page .google-map-card__bar a {
  padding: 12px 16px;
  line-height: 1.3;
}

.home-page .faq__grid {
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
}

.home-page .faq__heading {
  top: 102px;
}

.home-page .faq details {
  padding: 22px 24px;
}

.home-page .faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  list-style: none;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
}

.home-page .faq summary::-webkit-details-marker {
  display: none;
}

.home-page .faq summary::after {
  content: "+";
  flex: 0 0 18px;
  color: #d90000;
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.home-page .faq details[open] > summary::after {
  content: "−";
}

.home-page .faq summary:focus-visible {
  outline: 2px solid #d90000;
  outline-offset: 6px;
}

.home-page .faq details p {
  margin-top: 16px;
}

.home-page .article-grid article {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-top: 4px solid #ed0011;
}

.home-page .article-grid span {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.home-page .article-grid h3 {
  font-weight: 900;
}

.home-page .article-grid a {
  margin-top: auto;
  padding-top: 24px;
  line-height: 1.4;
  font-weight: 800;
}

.home-page .emblem {
  padding: 0 0 var(--home-section-space);
}

.home-page .emblem__line {
  background: #e8e6e3;
}

.home-page .emblem__mark strong {
  font-weight: 800;
  line-height: 1.3;
}

.home-page .final-cta {
  min-height: 400px;
  padding-block: var(--home-section-space);
}

.home-page .final-cta h2 {
  max-width: 720px;
  font-size: clamp(34px, 4vw, 56px);
}

.home-page .final-cta p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.home-page .footer__grid {
  gap: 36px;
  padding-block: 64px;
}

.home-page .footer__grid > div {
  min-width: 0;
}

.home-page .footer__grid p {
  overflow-wrap: anywhere;
}

.home-page .footer__grid h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.home-page .footer__grid a:not(.brand):not(.btn) {
  margin-top: 0;
  padding-block: 6px;
  line-height: 1.5;
}

.home-page .footer__grid p a:not(.brand):not(.btn) {
  padding: 0;
}

.home-page .footer__grid .btn {
  margin-top: 24px;
}

.home-page .footer__bottom {
  font-size: 14px;
}

@media (max-width: 1023px) {
  .home-page :is(.expansion__grid, .partner__layout, .areas__grid, .faq__grid) {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .home-page :is(.expansion__image, .partner__image) img {
    max-height: 420px;
    aspect-ratio: 16 / 9;
  }

  .home-page .partner__image {
    order: -1;
    width: calc(100% + 32px);
    margin-inline: -16px;
    aspect-ratio: 16 / 9;
    max-height: 420px;
  }

  .home-page .partner__image img {
    width: 100%;
    border-radius: 0;
  }

  .home-page .section-heading--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-page :is(.review-card, .article-grid article) {
    padding: 22px;
  }

  .home-page .review-card__top {
    gap: 10px;
  }

  .home-page .city-list {
    max-width: 600px;
  }

  .home-page .faq__heading {
    position: static;
  }

  .home-page .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .home-page :is(.section-heading, .expansion, .partner, .inspection, .areas, .faq) h2 {
    font-size: 32px;
    letter-spacing: -.6px;
    line-height: 1.17;
  }

  .home-page :is(.expansion__content, .partner__text, .inspection__copy, .areas__copy) p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.65;
  }

  .home-page :is(.expansion__content, .partner__text, .inspection__copy, .areas__copy) h2 + p {
    margin-top: 20px;
  }

  .home-page .section-heading {
    margin-bottom: 28px;
  }

  .home-page :is(.review-grid, .article-grid) {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-page .inspection-tabs {
    gap: 16px;
  }

  .home-page .report-card__caption {
    min-height: 172px;
  }

  .home-page .google-map-card {
    min-height: 340px;
  }

  .home-page .faq details {
    padding: 20px;
  }

  .home-page .faq summary {
    gap: 14px;
    font-size: 17px;
  }

  .home-page .final-cta {
    min-height: 360px;
  }

  .home-page .footer__grid {
    gap: 32px 24px;
    padding-block: 48px;
  }
}

@media (max-width: 599px) {
  .home-page .city-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .footer__grid > div:first-child,
  .home-page .footer__grid > div:last-child {
    grid-column: 1 / -1;
  }

  .home-page .footer__grid {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .home-page .inspection__grid {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .home-page .inspection-tabs {
    justify-content: flex-start;
    gap: 12px;
  }

  .home-page .inspection-tabs li {
    flex: 1;
  }

  .home-page .inspection-tabs button {
    font-size: 12px;
  }

  .home-page .inspection-tabs span {
    width: 72px;
    height: 72px;
  }

  .home-page .report-card__caption {
    min-height: 172px;
  }
}

@media (max-width: 374px) {
  .home-page .report-card__caption {
    min-height: 198px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .process-grid article,
  .home-page .process-grid span,
  .home-page .inspection-tabs span {
    transition: none;
  }

  .home-page .process-grid article:hover,
  .home-page .process-grid article:hover span,
  .home-page .inspection-tabs button:hover span {
    transform: none;
  }
}
