/* =========================================================
   TRIMWORKS OF MICHIGAN
   RESIDENTIAL CONSTRUCTION HUB
   Page: /residential-construction/
   ========================================================= */

.tw-residential-page {
  --twr-navy: var(--trim-navy, #061728);
  --twr-navy-2: var(--trim-navy-2, #0b2238);
  --twr-red: var(--trim-red, #e30620);
  --twr-off-white: var(--trim-off-white, #f2f5f7);
  --twr-gray-100: var(--trim-gray-100, #e8edf1);
  --twr-gray-300: var(--trim-gray-300, #c9cfd4);
  --twr-gray-600: var(--trim-gray-600, #69737c);
  --twr-charcoal: var(--trim-charcoal, #20262b);
  --twr-heading: var(--trim-heading, "Oswald", Arial, sans-serif);
  --twr-body: var(--trim-body, "Helvetica Neue", Helvetica, Arial, sans-serif);
  color: var(--twr-charcoal);
  font-family: var(--twr-body);
  overflow: hidden;
}

.tw-residential-page *,
.tw-residential-page *::before,
.tw-residential-page *::after {
  box-sizing: border-box;
}

.tw-residential-container {
  width: min(calc(100% - 96px), 1240px);
  margin-inline: auto;
}

.tw-residential-section {
  padding: clamp(84px, 9vw, 138px) 0;
}

.tw-residential-kicker {
  margin: 0 0 18px;
  color: var(--twr-red);
  font: 600 .82rem/1 var(--twr-heading);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tw-residential-page h1,
.tw-residential-page h2,
.tw-residential-page h3 {
  font-family: var(--twr-heading);
  text-transform: uppercase;
}

.tw-residential-page h2 {
  margin: 0;
  color: var(--twr-navy);
  font-size: clamp(2.7rem, 5vw, 5.15rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.028em;
}

.tw-residential-page p {
  line-height: 1.68;
}

.tw-residential-lead {
  margin-top: 0;
  color: var(--twr-charcoal);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55 !important;
}

.tw-residential-text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  color: var(--twr-navy);
  font: 600 .96rem/1 var(--twr-heading);
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.tw-residential-text-link span {
  color: var(--twr-red);
  transition: transform .2s ease;
}

.tw-residential-text-link:hover span {
  transform: translateX(5px);
}

.tw-residential-text-link--light {
  color: #fff;
}


/* =========================================================
   HERO
   ========================================================= */

.tw-residential-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 760px;
  background: var(--twr-navy);
  color: #fff;
}

.tw-residential-hero__content {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tw-residential-hero__content .tw-residential-container {
  width: min(calc(100% - 96px), 620px);
  margin-left: max(48px, calc((100vw - 1240px) / 2));
  margin-right: 48px;
}

.tw-residential-hero__copy {
  padding: 180px 0 110px;
}

.tw-residential-hero .tw-residential-kicker {
  color: #fff;
  opacity: .76;
}

.tw-residential-hero h1 {
  max-width: 730px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.55rem, 5.5vw, 6.6rem);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.04em;
}

.tw-residential-hero__lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.03rem, 1.3vw, 1.18rem);
}

.tw-residential-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.tw-residential-hero__image {
  min-height: 760px;
  border-left: 1px solid rgba(255,255,255,.1);
  background-color: #394958;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}


/* =========================================================
   PROOF RAIL
   ========================================================= */

.tw-residential-proof {
  position: relative;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--twr-gray-100);
  box-shadow: 0 14px 40px rgba(6,23,40,.07);
}

.tw-residential-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tw-residential-proof__grid > div {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 32px;
  border-right: 1px solid var(--twr-gray-100);
}

.tw-residential-proof__grid > div:first-child {
  padding-left: 0;
}

.tw-residential-proof__grid > div:last-child {
  border-right: 0;
}

.tw-residential-proof strong {
  color: var(--twr-navy);
  font: 600 1.65rem/1 var(--twr-heading);
  text-transform: uppercase;
}

.tw-residential-proof span {
  margin-top: 8px;
  color: var(--twr-gray-600);
  font-size: .9rem;
}


/* =========================================================
   INTRO
   ========================================================= */

.tw-residential-intro {
  position: relative;
  background:
    linear-gradient(
      rgba(255, 255, 255, .62),
      rgba(255, 255, 255, .72)
    ),
    url("https://trimworks.wpenginepowered.com/wp-content/uploads/2026/07/blueprint-backgroundv2.webp")
    center center / cover no-repeat;
}

.tw-residential-intro__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(60px, 9vw, 130px);
  align-items: start;
}

.tw-residential-intro__heading {
  position: sticky;
  top: 150px;
}

.tw-residential-intro__copy {
  max-width: 700px;
}

.tw-residential-intro__copy p:not(.tw-residential-lead) {
  color: var(--twr-gray-600);
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.tw-residential-section-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 58px;
}

.tw-residential-section-heading > p {
  max-width: 540px;
  margin: 0 0 6px;
  color: var(--twr-gray-600);
}

.tw-residential-section-heading--compact {
  grid-template-columns: minmax(0, 900px);
}


/* =========================================================
   SERVICE CARDS
   ========================================================= */

.tw-residential-services {
  position: relative;
  background: var(--twr-off-white);
}

.tw-residential-services::before {
  content: "";
  position: absolute;
  top: -210px;
  right: -190px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(6,23,40,.07);
  transform: rotate(45deg);
  pointer-events: none;
}

.tw-residential-services .tw-residential-container {
  position: relative;
  z-index: 1;
}

.tw-residential-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.tw-residential-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(6,23,40,.07);
  box-shadow: 0 16px 42px rgba(6,23,40,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tw-residential-service-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  border-right: 3px solid var(--twr-red);
  border-bottom: 3px solid var(--twr-red);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.tw-residential-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(6,23,40,.13);
}

.tw-residential-service-card:hover::after {
  opacity: 1;
}

.tw-residential-service-card__image {
  display: block;
  min-height: 230px;
  background-color: #53616e;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  text-decoration: none;
}

.tw-residential-service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 30px;
}

.tw-residential-service-card__number {
  color: var(--twr-red);
  font: 600 .82rem/1 var(--twr-heading);
  letter-spacing: .08em;
}

.tw-residential-service-card h3 {
  margin: 16px 0 14px;
  color: var(--twr-navy);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
}

.tw-residential-service-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tw-residential-service-card p {
  margin: 0;
  color: var(--twr-gray-600);
  font-size: .96rem;
}

.tw-residential-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 25px;
  color: var(--twr-navy);
  font: 600 .85rem/1 var(--twr-heading);
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.tw-residential-card-link span {
  color: var(--twr-red);
  font-size: 1.15rem;
  transition: transform .2s ease;
}

.tw-residential-card-link:hover span {
  transform: translateX(5px);
}


/* =========================================================
   HOME IMPROVEMENT POSITIONING
   ========================================================= */

.tw-residential-home {
  background: var(--twr-navy);
  color: #fff;
}

.tw-residential-home__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 9vw, 130px);
  align-items: start;
}

.tw-residential-home__copy {
  position: sticky;
  top: 150px;
}

.tw-residential-home h2 {
  color: #fff;
}

.tw-residential-home__copy .tw-residential-lead {
  margin-top: 28px;
  color: rgba(255,255,255,.88);
}

.tw-residential-home__copy p:not(.tw-residential-kicker):not(.tw-residential-lead) {
  color: rgba(255,255,255,.64);
}

.tw-residential-home__features {
  border-top: 1px solid rgba(255,255,255,.18);
}

.tw-residential-home__features > div {
  display: grid;
  grid-template-columns: 54px minmax(160px, .7fr) 1fr;
  gap: 20px;
  align-items: center;
  min-height: 104px;
  padding: 23px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.tw-residential-home__features span {
  color: var(--twr-red);
  font: 600 .8rem/1 var(--twr-heading);
}

.tw-residential-home__features strong {
  color: #fff;
  font: 600 clamp(1.3rem, 2vw, 1.8rem)/1 var(--twr-heading);
  text-transform: uppercase;
}

.tw-residential-home__features p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: .92rem;
}


/* =========================================================
   WHY TRIMWORKS
   ========================================================= */

.tw-residential-why {
  background: #fff;
}

.tw-residential-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.tw-residential-why article {
  position: relative;
  min-height: 310px;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--twr-gray-100);
  box-shadow: 0 16px 40px rgba(6,23,40,.06);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.tw-residential-why article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 4px;
  background: var(--twr-red);
  transition: width .25s ease;
}

.tw-residential-why article:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(6,23,40,.11);
}

.tw-residential-why article:hover::before {
  width: 100%;
}

.tw-residential-why article > span {
  color: var(--twr-red);
  font: 600 .86rem/1 var(--twr-heading);
}

.tw-residential-why h3 {
  margin: 48px 0 14px;
  color: var(--twr-navy);
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
}

.tw-residential-why article p {
  margin: 0;
  color: var(--twr-gray-600);
  font-size: .96rem;
}


/* =========================================================
   PROCESS
   ========================================================= */

.tw-residential-process {
  background: #e9edf0;
}

.tw-residential-process__heading {
  max-width: 840px;
  margin-bottom: 58px;
}

.tw-residential-process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid #c7d0d7;
  border-bottom: 1px solid #c7d0d7;
}

.tw-residential-process__steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  min-height: 240px;
  padding: 34px 28px;
  border-right: 1px solid #c7d0d7;
}

.tw-residential-process__steps li:last-child {
  border-right: 0;
}

.tw-residential-process__steps li > span {
  color: var(--twr-red);
  font: 600 .8rem/1 var(--twr-heading);
}

.tw-residential-process h3 {
  margin: 0 0 13px;
  color: var(--twr-navy);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}

.tw-residential-process li p {
  margin: 0;
  color: var(--twr-gray-600);
  font-size: .92rem;
}


/* =========================================================
   SERVICE AREA
   ========================================================= */

.tw-residential-area {
  background: #fff;
}

.tw-residential-area__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(60px, 9vw, 130px);
  align-items: start;
}

.tw-residential-area__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.tw-residential-area__cities a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  color: var(--twr-navy);
  background: var(--twr-off-white);
  border: 1px solid var(--twr-gray-100);
  font: 600 .78rem/1 var(--twr-heading);
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tw-residential-area__cities a:hover {
  color: #fff;
  background: var(--twr-navy);
  border-color: var(--twr-navy);
}


/* =========================================================
   FAQ
   ========================================================= */

.tw-residential-faq {
  background: #f7f9fb;
}

.tw-residential-faq__heading {
  max-width: 920px;
  margin-bottom: 52px;
}

.tw-residential-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tw-residential-faq details {
  position: relative;
  align-self: start;
  background: #fff;
  border: 1px solid var(--twr-gray-100);
  box-shadow: 0 12px 35px rgba(6,23,40,.05);
  overflow: hidden;
}

.tw-residential-faq details::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--twr-red);
  transform: scaleY(.28);
  transform-origin: top;
  transition: transform .2s ease;
}

.tw-residential-faq details[open]::before,
.tw-residential-faq details:hover::before {
  transform: scaleY(1);
}

.tw-residential-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 23px 74px 23px 26px;
  color: var(--twr-navy);
  font: 600 1.08rem/1.25 var(--twr-heading);
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.tw-residential-faq summary::-webkit-details-marker {
  display: none;
}

.tw-residential-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--twr-navy);
  font: 400 1.45rem/1 var(--twr-body);
  transform: translateY(-50%);
  transition: background .2s ease;
}

.tw-residential-faq details[open] summary::after {
  content: "−";
  background: var(--twr-red);
}

.tw-residential-faq details > div {
  padding: 0 26px 25px;
}

.tw-residential-faq details p {
  margin: 0;
  color: var(--twr-gray-600);
  font-size: .95rem;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.tw-residential-cta {
  position: relative;
  padding: clamp(100px, 11vw, 165px) 0;
  background: var(--twr-navy);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.tw-residential-cta::before,
.tw-residential-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20vw;
  height: 1px;
  background: rgba(255,255,255,.14);
}

.tw-residential-cta::before {
  left: 0;
}

.tw-residential-cta::after {
  right: 0;
}

.tw-residential-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.tw-residential-cta .tw-residential-kicker {
  color: var(--twr-red);
}

.tw-residential-cta h2 {
  color: #fff;
}

.tw-residential-cta p:not(.tw-residential-kicker) {
  max-width: 690px;
  margin: 24px auto 30px;
  color: rgba(255,255,255,.76);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .tw-residential-services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tw-residential-why__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tw-residential-process__steps {
    grid-template-columns: 1fr 1fr;
  }

  .tw-residential-process__steps li:nth-child(2) {
    border-right: 0;
  }

  .tw-residential-process__steps li:nth-child(-n+2) {
    border-bottom: 1px solid #c7d0d7;
  }
}

@media (max-width: 1000px) {

  .tw-residential-container {
    width: min(calc(100% - 64px), 1240px);
  }

  .tw-residential-hero {
    grid-template-columns: 1fr;
  }

  .tw-residential-hero__content .tw-residential-container {
    width: min(calc(100% - 64px), 1240px);
    margin-inline: auto;
  }

  .tw-residential-hero__copy {
    padding: 190px 0 90px;
  }

  .tw-residential-hero__image {
    min-height: 520px;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  .tw-residential-proof__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tw-residential-proof__grid > div,
  .tw-residential-proof__grid > div:first-child {
    padding-left: 24px;
    border-bottom: 1px solid var(--twr-gray-100);
  }

  .tw-residential-proof__grid > div:nth-child(2) {
    border-right: 0;
  }

  .tw-residential-proof__grid > div:nth-child(n+3) {
    border-bottom: 0;
  }

  .tw-residential-intro__grid,
  .tw-residential-section-heading,
  .tw-residential-home__grid,
  .tw-residential-area__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .tw-residential-intro__heading,
  .tw-residential-home__copy {
    position: static;
  }

  .tw-residential-section-heading {
    align-items: start;
  }

  .tw-residential-section-heading > p {
    max-width: 720px;
  }
}

@media (max-width: 760px) {

  .tw-residential-container,
  .tw-residential-hero__content .tw-residential-container {
    width: min(calc(100% - 36px), 1240px);
  }

  .tw-residential-section {
    padding: 76px 0;
  }

  .tw-residential-hero {
    min-height: 0;
  }

  .tw-residential-hero__copy {
    padding: 168px 0 72px;
  }

  .tw-residential-hero h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .tw-residential-hero__lead {
    font-size: 1rem;
  }

  .tw-residential-hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .tw-residential-hero__image {
    min-height: 390px;
  }

  .tw-residential-proof__grid {
    grid-template-columns: 1fr;
  }

  .tw-residential-proof__grid > div,
  .tw-residential-proof__grid > div:first-child,
  .tw-residential-proof__grid > div:nth-child(n+3) {
    min-height: 88px;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--twr-gray-100);
  }

  .tw-residential-proof__grid > div:last-child {
    border-bottom: 0;
  }

  .tw-residential-services__grid,
  .tw-residential-why__grid,
  .tw-residential-process__steps,
  .tw-residential-faq__grid {
    grid-template-columns: 1fr;
  }

  .tw-residential-service-card__image {
    min-height: 245px;
  }

  .tw-residential-home__features > div {
    grid-template-columns: 42px 1fr;
  }

  .tw-residential-home__features p {
    grid-column: 2;
  }

  .tw-residential-why article {
    min-height: 0;
  }

  .tw-residential-process__steps li,
  .tw-residential-process__steps li:nth-child(2),
  .tw-residential-process__steps li:nth-child(-n+2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #c7d0d7;
  }

  .tw-residential-process__steps li:last-child {
    border-bottom: 0;
  }

  .tw-residential-cta::before,
  .tw-residential-cta::after {
    display: none;
  }
}

@media (max-width: 480px) {

  .tw-residential-service-card__body {
    padding: 25px 22px 27px;
  }

  .tw-residential-faq summary {
    min-height: 78px;
    padding: 20px 66px 20px 22px;
    font-size: 1rem;
  }

  .tw-residential-faq details > div {
    padding: 0 22px 23px;
  }
}
