:root {
  --bg: #fdfdfd;
  --ink: #333639;
  --accent: #ffc85e;
  --surface: #f4f7f5;
  --white-60:  rgba(253, 253, 253, 0.6);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', sans-serif;
  line-height: normal;
  overflow-x: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 40px;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}

.btn-dark {
  background: var(--ink);
  color: #fdfdfd;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  position: relative;
  padding: 0 14px 0 12px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: #6f7378;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
}

.section-tag::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 0;
  width: 15px;
  height: 40px;
  background: inherit;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hero {
  position: relative;
  padding: 240px 0 289px;
  background:
    linear-gradient(rgba(51, 54, 57, 0.35), rgba(51, 54, 57, 0.35)),
    url('../../images/pages/services/hero.webp') center 36%/cover no-repeat;
  color: #fdfdfd;
  overflow: hidden;
}

.hero-main {
  width: 920px;
  max-width: 100%;
  margin: 0 auto 67px;
  text-align: center;
}

.hero h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 61px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 18px;
}

.hero p {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  line-height: normal;
  font-weight: 400;
}

.hero-pills {
  display: flex;
  justify-content: center;
  gap: 27px;
  flex-wrap: nowrap;
}

.service-pill {
  height: 80px;
  position: relative;
  padding: 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #f4f7f5;
  color: #333639;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.services-group {
  padding-top: 160px;
}

.services-group:last-of-type {
  padding-bottom: 160px;
}

.group-intro {
  max-width: 920px;
  margin: 0 auto 40px;
  text-align: center;
}

.group-intro h2 {
  margin-top: 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 49px;
  font-weight: 700;
  line-height: normal;
}

.service-card {
  height: 400px;
  position: relative;
  margin-bottom: 80px;
}

.service-card:last-child { margin-bottom: 0; }

.service-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 960px;
  max-width: 68.571%;
  height: 100%;
  background-position: center;
  background-size: cover;
}

#asphalt-metal .service-card:nth-of-type(1) .service-image { background-image: url('../../images/pages/services/service-1.webp'); }
#asphalt-metal .service-card:nth-of-type(2) .service-image { background-image: url('../../images/pages/services/service-2.webp'); }
#siding-trim .service-card:nth-of-type(1) .service-image { background-image: url('../../images/pages/services/service-3.webp'); }
#siding-trim .service-card:nth-of-type(2) .service-image { background-image: url('../../images/pages/services/service-4.webp'); }
#gutter-systems .service-card:nth-of-type(1) .service-image { background-image: url('../../images/pages/services/service-5.webp'); }
#gutter-systems .service-card:nth-of-type(2) .service-image { background-image: url('../../images/pages/services/service-6.webp'); }
#expert-repairs .service-card:nth-of-type(1) .service-image { background-image: url('../../images/pages/services/service-7.webp'); }
#expert-repairs .service-card:nth-of-type(2) .service-image { background-image: url('../../images/pages/services/service-8.webp'); }

.service-content {
  position: absolute;
  top: 57px;
  right: 0;
  width: 560px;
  max-width: 40%;
  min-height: 287px;
  padding: 40px;
  background: var(--surface);
}

.service-content::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  width: 40px;
  height: 287px;
  background: var(--surface);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.service-card.reverse .service-image {
  left: auto;
  right: 0;
}

.service-card.reverse .service-content {
  left: 0;
  right: auto;
}

.service-card.reverse .service-content::before {
  left: auto;
  right: -40px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.service-content h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 20px;
}

.service-content p {
  font-family: 'Onest', sans-serif;
  color: var(--black-70);
  font-size: 20px;
  line-height: normal;
  margin-bottom: 20px;
  font-weight: 400;
  max-width: 480px;
}
