/* Orem local roofing landing page. */

.oremHero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.79), rgba(0, 0, 0, 0.48)),
    url("../img/utah-roofing-page.jpg") center/cover;

  .oremHeroShell {
    width: var(--container);
    margin: 0 auto;
    padding: 64px 0 72px;
  }

  .oremHeroContent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    max-width: 44rem;
  }

  .oremHeroEyebrow,
  .oremSectionEyebrow {
    margin: 0;
    color: var(--orange);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .oremHeroTitle {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.75rem, 11vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
  }

  .oremHeroBody {
    max-width: 40rem;
    margin: 0;
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.7;
  }

  .oremHeroActions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .oremHeroPrimary,
  .oremHeroSecondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    width: 100%;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  }

  .oremHeroPrimary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }

  .oremHeroSecondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .oremHeroPrimary:hover,
  .oremHeroSecondary:hover {
    transform: translateY(-2px);
  }
}

.oremServices,
.oremTrust {
  padding: 64px 0;
}

.oremServices {
  background:
    radial-gradient(circle at 10% 25%, rgba(255, 127, 0, 0.1), transparent 20rem),
    #fff;

  .oremServicesShell {
    width: var(--container);
    margin: 0 auto;
  }
}

.oremSectionHeader {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.oremSectionEyebrow {
  margin-bottom: 12px;
}

.oremSectionTitle {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.oremSectionBody {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.oremServicesGrid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.oremServiceCard {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.07);

  .oremServiceImage {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .oremServiceContent {
    padding: 24px;
  }

  .oremServiceTitle {
    margin: 0;
    color: var(--navy);
    font-size: 1.375rem;
    line-height: 1.25;
  }

  .oremServiceBody {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}

.oremTrust {
  overflow: hidden;
  color: #fff;
  background: var(--navy);

  .oremTrustShell {
    width: var(--container);
    margin: 0 auto;
  }

  .oremTrustIntro {
    max-width: 42rem;
  }

  .oremSectionEyebrow {
    color: #fdba74;
  }

  .oremSectionTitle {
    color: #fff;
  }

  .oremSectionBody {
    color: #d1d5dc;
  }

  .oremTrustAction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 28px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .oremTrustAction:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }
}

.oremTrustGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 14px;
  margin-top: 40px;
}

.oremTrustCard {
  height: auto;
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);

  .oremTrustNumber {
    display: block;
    color: #fdba74;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
  }

  .oremTrustCardTitle {
    margin: 16px 0 0;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .oremTrustCardBody {
    margin: 12px 0 0;
    color: #d1d5dc;
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}

.oremTrustCardAccent {
  border-color: rgba(255, 127, 0, 0.42);
  background: rgba(255, 127, 0, 0.12);
}

@media (min-width: 768px) {
  .oremHero {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.08)),
      url("../img/utah-roofing-page.jpg") center/cover;

    .oremHeroShell {
      padding: 96px 0 104px;
    }

    .oremHeroContent {
      gap: 26px;
    }

    .oremHeroTitle {
      font-size: clamp(3.75rem, 7vw, 5rem);
    }

    .oremHeroBody {
      font-size: 1.125rem;
      line-height: 1.65;
    }

    .oremHeroActions {
      flex-direction: row;
      width: auto;
    }

    .oremHeroPrimary,
    .oremHeroSecondary {
      width: auto;
      min-height: 60px;
      padding: 15px 28px;
    }
  }

  .oremServices,
  .oremTrust {
    padding: 80px 0;
  }

  .oremSectionBody {
    font-size: 1.0625rem;
  }

  .oremServicesGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .oremServiceCard {
    .oremServiceImage {
      height: 190px;
    }

    .oremServiceContent {
      padding: 24px 22px 26px;
    }
  }

  .oremTrustGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .oremHero {
    min-height: 720px;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.46) 50%, rgba(0, 0, 0, 0)),
      url("../img/utah-roofing-page.jpg") center/cover;

    .oremHeroShell {
      display: flex;
      align-items: center;
      min-height: 720px;
      padding: 90px 0;
    }
  }

  .oremServices,
  .oremTrust {
    padding: 96px 0;
  }

  .oremServicesGrid {
    gap: 24px;
    margin-top: 48px;
  }

  .oremServiceCard {
    .oremServiceImage {
      height: 220px;
    }

    .oremServiceContent {
      padding: 28px;
    }
  }

  .oremTrustShell {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    align-items: start;
    gap: 72px;
  }

  .oremTrustGrid {
    margin-top: 0;
  }
}
