:root {
  --navy: #061d38;
  --navy-2: #02152a;
  --orange: #df633b;
  --orange-2: #ee7b55;
  --ink: #071a35;
  --muted: #46505f;
  --line: #d6d9dd;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f4f6f7;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.has-modal {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1256px, calc(100% - 64px));
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, #04172f 0%, #062143 55%, #061a32 100%);
  color: #fff;
  font-size: 14px;
  transition: min-height .25s ease, transform .25s ease;
}

.topbar__inner {
  width: min(1256px, calc(100% - 64px));
  min-height: 39px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  gap: 22px;
}

.topbar b {
  color: var(--orange);
  margin-right: 8px;
}

.topbar a {
  justify-self: end;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
}

.nav {
  min-height: 108px;
  padding: 0 min(6vw, 74px);
  display: flex;
  align-items: center;
  overflow: visible;
  gap: 38px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 16px rgba(1, 20, 39, .08);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: min-height .25s ease, box-shadow .25s ease, background .25s ease;
}

.site-header {
  position: relative;
  z-index: 20;
}

.nav.is-scrolled {
  min-height: 84px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 30px rgba(3, 18, 36, .15);
}

.nav.is-scrolled .brand {
  transform: scale(1);
  transform-origin: left center;
}

.brand {
  width: 230px;
  display: grid;
  justify-items: left;
  text-transform: uppercase;
  flex: 0 0 auto;
  transition: transform .25s ease;
}

.brand__mark {
  width: 120px;
  height: 38px;
  position: relative;
  display: block;
}

.roof {
  position: absolute;
  bottom: 0;
  width: 58px;
  height: 34px;
  border-top: 9px solid;
  border-left: 9px solid;
  transform: rotate(45deg) skew(-7deg, -7deg);
}

.roof--navy {
  left: 13px;
  border-color: var(--navy);
}

.roof--orange {
  left: 62px;
  border-color: var(--orange);
}

.chimney {
  position: absolute;
  left: 54px;
  top: 24px;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--orange), var(--orange)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 10px 0 / 6px 6px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 0 10px / 6px 6px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 10px 10px / 6px 6px no-repeat;
}

.brand__name {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: .95;
}

.brand__rule {
  width: 172px;
  height: 2px;
  margin: 6px 0 4px;
  background: linear-gradient(90deg, var(--orange) 0 43%, transparent 43% 57%, var(--orange) 57% 100%);
}

.brand__sub {
  color: var(--orange);
  font-size: 20px;
  letter-spacing: 10px;
  font-weight: 700;
  transform: translateX(5px);
}

.nav__links {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
  flex: 1;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav__toggle {
  width: 44px;
  height: 40px;
  border: 1px solid rgba(6, 29, 56, .16);
  border-radius: 3px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  cursor: pointer;
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__link {
  padding: 45px 0 35px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__link span {
  margin-left: 5px;
  transition: transform .2s ease;
}

.nav__links .is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 2px;
  background: var(--orange);
}

.nav__dropdown {
  min-width: 244px;
  position: absolute;
  top: calc(100% - 12px);
  left: 50%;
  z-index: 30;
  display: grid;
  padding: 12px 0;
  background: #fff;
  border-top: 3px solid var(--orange);
  box-shadow: 0 18px 38px rgba(3, 18, 36, .2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}

.nav__dropdown a {
  padding: 12px 18px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__dropdown a:hover,
.nav__dropdown a:focus-visible {
  color: #08172b;
  background: rgba(231, 166, 51, .16);
}

.nav__item--has-menu:hover .nav__dropdown,
.nav__item--has-menu:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__item--has-menu:hover .nav__link span,
.nav__item--has-menu:focus-within .nav__link span {
  transform: rotate(180deg);
}

.button {
  min-height: 41px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15px;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--orange {
  color: #fff;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 8px 16px rgba(230, 166, 51, .24);
}

.button--orange:hover {
  box-shadow: 0 12px 24px rgba(230, 166, 51, .32);
}

.button span {
  margin-left: 8px;
}

.button--ghost {
  color: #fff;
  min-width: 176px;
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(1, 16, 32, .18);
}

.button--navy {
  color: #fff;
  background: var(--navy);
  min-width: 196px;
}

.nav__cta {
  flex-shrink: 1;
  max-width: 100%;
  white-space: nowrap;
}

.hero {
  min-height: 680px;
  position: relative;
  isolation: isolate;
  color: #fff;
  background: url("assets/hero_roofing.webp") center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 18, 35, .96) 0%, rgba(2, 18, 35, .74) 28%, rgba(2, 18, 35, .18) 54%, rgba(2, 18, 35, .08) 100%),
    linear-gradient(180deg, rgba(4, 15, 27, .2), rgba(4, 15, 27, .18));
}

.hero__content {
  padding: 76px 0 150px;
}

.hero h1 {
  margin: 0;
  max-width: 670px;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(55px, 5.4vw, 73px);
  line-height: .94;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, .28);
}

.hero h1 span {
  color: var(--orange-2);
  white-space: nowrap;
}

.accent-line {
  width: 43px;
  height: 3px;
  margin: 19px 0 17px;
  background: var(--orange-2);
}

.hero__copy {
  max-width: 400px;
  margin: 0 0 25px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}

.hero__actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero__actions .button {
  min-width: 200px;
  min-height: 40px;
}

.services-shell {
  position: relative;
  z-index: 3;
  margin-top: -180px;
  padding-bottom: 64px;
}

.services-card {
  min-height: 214px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0 10px;
  align-items: stretch;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 6px;
  box-shadow: 0 14px 26px rgba(7, 23, 43, .16);
  overflow: hidden;
}

.service-item {
  padding: 32px 28px 29px;
  text-align: center;
  position: relative;
}

.service-item + .service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 54px;
  bottom: 48px;
  width: 1px;
  background: var(--line);
}

.service-item h2 {
  margin: 13px 0 12px;
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
}

.service-item p {
  margin: 0 auto;
  max-width: 172px;
  font-size: 13px;
  line-height: 1.45;
  color: #111;
}

.icon {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: var(--navy);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, rgba(231, 166, 51, .72), rgba(6, 29, 56, .16)) border-box;
  border: 1px solid transparent;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(6, 29, 56, .08);
}

.icon svg {
  width: 42px;
  height: 42px;
  display: block;
  overflow: visible;
}

.icon path,
.icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .icon__accent {
  stroke: var(--orange);
}

.trust {
  min-height: 414px;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(420px, 48%);
  background: #fff;
}

.trust__copy {
  padding: 21px 0 16px;
}

.trust__inner {
  width: min(676px, calc(100% - 74px));
  margin-left: max(74px, calc((100vw - 1256px) / 2));
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .25px;
}

.section-kicker::after {
  content: "";
  display: inline-block;
  width: 41px;
  height: 2px;
  margin-left: 13px;
  vertical-align: middle;
  background: var(--orange);
}

.trust h2 {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: clamp(31px, 3.1vw, 43px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.trust__lead {
  max-width: 565px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #0e1621;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 19px;
}

.stats article {
  min-height: 119px;
  padding-right: 17px;
  position: relative;
}

.stats article + article {
  padding-left: 28px;
}

.stats article + article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  bottom: 7px;
  width: 1px;
  background: var(--line);
}

.stat-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 13px;
  box-shadow: inset 0 0 0 2px rgba(231, 166, 51, .35);
}

.stats strong {
  color: var(--orange);
  display: block;
  font-size: 35px;
  line-height: .9;
}

.stats h3 {
  margin: 8px 0 4px;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
}

.stats p {
  margin: 0;
  font-size: 12px;
  line-height: 1.36;
}

.trust__image {
  min-height: 414px;
  position: relative;
  background: url("assets/section_one.webp") center / cover no-repeat;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  border-left: 2px solid var(--orange);
}

.review-bar {
  background: linear-gradient(90deg, #041b35, #05264a);
  color: #fff;
}

.review-bar__inner {
  width: min(1150px, calc(100% - 64px));
  min-height: 43px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  white-space: nowrap;
}

.review-bar strong {
  font-size: 15px;
  text-transform: uppercase;
}

.review-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  opacity: .66;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}

.review-bar span.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.review-bar span b {
  font-size: 20px;
}

.review-bar em {
  color: var(--orange);
  font-style: normal;
  letter-spacing: 2px;
}

.review-bar a {
  min-height: 32px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.quote-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 14, 28, .72);
  backdrop-filter: blur(5px);
}

.quote-modal__panel {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  position: relative;
  padding: 34px;
  background: #fff;
  border-top: 4px solid var(--orange);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
}

.quote-modal.is-open .quote-modal__panel {
  transform: translateY(0) scale(1);
}

.quote-modal__close {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 15px;
  right: 15px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.quote-modal h2 {
  margin: 0 42px 22px 0;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.08;
  text-transform: uppercase;
}

.quote-form {
  display: grid;
  gap: 14px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #cfd4dc;
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.quote-form textarea {
  min-height: 104px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(231, 166, 51, .42);
  border-color: var(--orange);
}

@media (max-width: 1120px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 32px;
    gap: 18px 30px;
  }

  .nav__links {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .nav__link {
    padding: 16px 0;
  }

  .nav__dropdown {
    top: calc(100% - 2px);
    left: 0;
    transform: translateY(8px);
  }

  .nav__item--has-menu:hover .nav__dropdown,
  .nav__item--has-menu:focus-within .nav__dropdown {
    transform: translateY(0);
  }

  .nav__links .is-active::after {
    bottom: 10px;
  }

  .services-card {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .service-item:nth-child(4)::before {
    display: none;
  }

  .trust {
    grid-template-columns: 1fr;
  }

  .trust__inner {
    width: min(860px, calc(100% - 64px));
    margin: 0 auto;
  }

  .trust__image {
    clip-path: none;
    border-left: 0;
    border-top: 2px solid var(--orange);
  }
}

@media (max-width: 760px) {
  .container,
  .topbar__inner,
  .review-bar__inner {
    width: min(100% - 34px, 1256px);
  }

  .topbar__inner {
    min-height: 74px;
    grid-template-columns: 1fr 1fr;
    font-size: 12px;
  }

  .topbar a {
    justify-self: start;
    font-size: 14px;
  }

  .brand {
    width: 190px;
  }

  .nav.is-scrolled .brand {
    transform: scale(.92);
  }

  .nav {
    justify-content: space-between;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    order: 4;
    flex-basis: 100%;
    padding: 9px 0 2px;
    overflow: visible;
    white-space: normal;
  }

  .nav.is-open .nav__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nav__link {
    padding: 13px 0;
    border-top: 1px solid rgba(6, 29, 56, .1);
  }

  .nav__links .is-active::after {
    display: none;
  }

  .brand__name {
    font-size: 30px;
  }

  .brand__sub {
    font-size: 11px;
  }

  .nav__cta {
    min-width: 0;
    width: calc(100% - 56px);
    margin-left: auto;
  }

  .hero {
    min-height: 570px;
    background-position: 62% center;
  }

  .hero__content {
    padding-top: 62px;
    padding-bottom: 130px;
  }

  .hero__copy {
    font-size: 15px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .services-shell {
    margin-top: -58px;
    padding-bottom: 54px;
  }

  .services-card {
    grid-template-columns: 1fr;
  }

  .service-item + .service-item::before {
    top: 0;
    right: 32px;
    bottom: auto;
    left: 32px;
    width: auto;
    height: 1px;
  }

  .service-item {
    padding: 34px 28px 31px;
  }

  .nav__item {
    display: grid;
  }

  .nav__dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 8px 14px;
    border-top: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
  }

  .nav__dropdown a {
    padding: 8px 0;
    border-top: 0;
    color: var(--muted);
    font-size: 11px;
  }

  .nav__item--has-menu:hover .nav__dropdown,
  .nav__item--has-menu:focus-within .nav__dropdown {
    transform: none;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
  }

  .stats article:nth-child(3) {
    padding-left: 0;
  }

  .stats article:nth-child(3)::before {
    display: none;
  }

  .trust__image {
    min-height: 320px;
  }

  .review-bar__inner {
    padding: 14px 0;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  .quote-modal__panel {
    padding: 28px 22px 24px;
  }

  .quote-modal h2 {
    font-size: 25px;
  }
}

@media (max-width: 500px) {
  .topbar__inner {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 16px 18px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats article,
  .stats article + article,
  .stats article:nth-child(3) {
    padding-left: 0;
  }

  .stats article + article::before {
    display: none;
  }
}
