/* Wide-screen page framing shared by the homepage and every service page. */
@media (min-width: 901px) {
  body {
    padding-inline: 16px;
  }

  .shell {
    width: 100%;
    max-width: none;
  }

  .site-header {
    margin-top: 14px;
    height: 114px;
    gap: clamp(20px, 2vw, 34px);
    padding-inline: max(16px, calc((100% - 1600px) / 2));
  }

  .site-header .brand {
    width: clamp(170px, 12vw, 200px);
    height: clamp(62px, 4.6vw, 72px);
    padding: 10px 17px;
    display: grid;
    place-items: center;
  }

  .site-header .brand img {
    width: clamp(135px, 9.5vw, 155px);
    max-height: 48px;
    object-fit: contain;
  }

  .main-nav {
    gap: clamp(7px, .7vw, 12px);
  }

  .main-nav a {
    font-size: 17px;
    white-space: nowrap;
  }

  .phone-btn {
    width: clamp(160px, 11vw, 180px);
    height: 56px;
  }

  .hero,
  .service-hero {
    padding-inline: max(36px, calc((100% - 1400px) / 2));
  }

  .hero .glass-form {
    max-width: 580px;
  }

  .process { padding-inline: max(18px, calc((100% - 1400px) / 2)); }
  .about { padding-inline: max(18px, calc((100% - 1400px) / 2)); }
  .featured { padding-inline: max(18px, calc((100% - 1400px) / 2)); }
  .projects { padding-inline: max(40px, calc((100% - 1400px) / 2)); }
  .faq { padding-inline: max(18px, calc((100% - 1400px) / 2)); }
  .testimonials { padding-inline: max(18px, calc((100% - 1400px) / 2)); }
  .rating { padding-inline: max(60px, calc((100% - 1400px) / 2)); }
  .quote-section { padding-inline: max(68px, calc((100% - 1400px) / 2)); }

  .site-footer > .footer-grid,
  .site-footer > .footer-contact,
  .site-footer > .copyright {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1200px) {
  .main-nav a br {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1320px) {
  .site-header {
    height: 82px;
  }

  .site-header .brand {
    width: 140px;
    height: 52px;
    padding: 8px 15px;
  }

  .site-header .brand img {
    width: 104px;
  }

  .menu-toggle {
    display: flex;
    width: 45px;
    height: 45px;
    border: 0;
    background: var(--red);
    border-radius: 8px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 90px;
    padding: 20px;
    background: var(--navy);
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header.menu-open .main-nav {
    display: flex;
  }

  .phone-btn {
    display: none;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }
}

/* Navigation experience: desktop mega panels and full-screen mobile menu. */
.mobile-nav-head,
.mobile-nav-info {
  display: none;
}

@media (min-width: 1321px) {
  .mega-panel {
    position: fixed;
    top: 132px;
    left: 50%;
    right: auto;
    width: min(1180px, calc(100vw - 48px));
    max-height: calc(100vh - 150px);
    padding: 0;
    transform: translateX(-50%);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255,255,255,.13);
    border-top: 0;
    border-radius: 20px;
    background: linear-gradient(145deg,#11133e 0%,#171b4f 70%,#20275d 100%);
    color: #fff;
    box-shadow: 0 30px 80px rgba(4,7,28,.38);
  }

  .nav-mega:hover > .mega-panel,
  .nav-mega.is-open > .mega-panel {
    display: block;
  }

  .nav-mega::after {
    height: 54px;
  }

  .industries-mega {
    width: min(980px, calc(100vw - 48px));
  }

  .materials-mega {
    width: min(820px, calc(100vw - 48px));
  }

  .locations-mega {
    width: min(900px, calc(100vw - 48px));
  }
}

.mega-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(7,9,34,.46);
}

.mega-panel-head small {
  color: #ff7780;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mega-panel-head h2 {
  max-width: 620px;
  margin: 5px 0 0;
  color: #fff;
  font: 800 25px/1.15 Raleway,sans-serif;
  letter-spacing: -.02em;
}

.main-nav .mega-panel-head > a {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 13px;
}

.main-nav .mega-panel-head > a span {
  color: #ff626d;
  font-size: 18px;
}

.main-nav .mega-panel-head > a:hover,
.main-nav .mega-panel-head > a:focus-visible {
  border-color: #c72734;
  background: #c72734;
  color: #fff;
}

.mega-featured-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  padding: 26px 20px;
}

.mega-featured-grid.mega-three {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.mega-panel .mega-featured-grid section {
  position: relative;
  min-width: 0;
  padding: 10px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.mega-panel .mega-featured-grid section:last-child {
  border-right: 0;
}

.mega-number {
  position: absolute;
  top: 3px;
  right: 17px;
  color: transparent;
  font: 800 34px Raleway,sans-serif;
  -webkit-text-stroke: 1px rgba(255,255,255,.2);
}

.mega-panel .mega-featured-grid h3,
.location-menu-grid h3 {
  margin: 0 0 13px;
  color: #ff707a;
  font: 800 13px Raleway,sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.main-nav .mega-featured-grid a,
.main-nav .location-menu-grid > div a {
  position: relative;
  display: block;
  padding: 7px 24px 7px 0;
  border-radius: 0;
  color: #e8ebf5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.main-nav .mega-featured-grid a::after,
.main-nav .location-menu-grid > div a::after {
  content: "→";
  position: absolute;
  right: 4px;
  color: #ff626d;
  opacity: 0;
  transform: translateX(-6px);
  transition: .2s ease;
}

.main-nav .mega-featured-grid a:hover,
.main-nav .mega-featured-grid a:focus-visible,
.main-nav .location-menu-grid > div a:hover,
.main-nav .location-menu-grid > div a:focus-visible {
  background: transparent;
  color: #fff;
}

.main-nav .mega-featured-grid a:hover::after,
.main-nav .mega-featured-grid a:focus-visible::after,
.main-nav .location-menu-grid > div a:hover::after,
.main-nav .location-menu-grid > div a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.all-services-disclosure {
  margin: 0 20px 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  overflow: hidden;
}

.all-services-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
}

.all-services-disclosure summary::-webkit-details-marker {
  display: none;
}

.all-services-disclosure summary > span {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.all-services-disclosure summary b {
  color: #fff;
  font: 800 15px Raleway,sans-serif;
}

.all-services-disclosure summary small {
  color: #aeb5cb;
  font-size: 12px;
}

.all-services-disclosure summary i {
  width: 10px;
  height: 10px;
  border-right: 2px solid #ff707a;
  border-bottom: 2px solid #ff707a;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.all-services-disclosure[open] summary i {
  transform: rotate(225deg);
}

.all-services-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 6px;
  max-height: 275px;
  padding: 5px 14px 18px;
  overflow-y: auto;
  scrollbar-color: #c72734 rgba(255,255,255,.08);
}

.main-nav .all-services-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #dfe3f0;
  font-size: 12px;
  font-weight: 700;
}

.main-nav .all-services-grid a span {
  color: #ff6670;
  opacity: 0;
  transition: opacity .2s ease;
}

.main-nav .all-services-grid a:hover,
.main-nav .all-services-grid a:focus-visible {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.main-nav .all-services-grid a:hover span,
.main-nav .all-services-grid a:focus-visible span {
  opacity: 1;
}

.material-links {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  padding: 24px;
}

.main-nav .material-links a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #fff;
}

.main-nav .material-links a b {
  font: 800 16px Raleway,sans-serif;
}

.main-nav .material-links a span {
  color: #b9bfd0;
  font-size: 11px;
}

.main-nav .material-links a:hover,
.main-nav .material-links a:focus-visible {
  border-color: #c72734;
  background: rgba(199,39,52,.18);
  color: #fff;
  transform: translateY(-2px);
}

.location-menu-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr .9fr;
  gap: 18px;
  padding: 24px;
}

.main-nav .primary-location {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 205px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: linear-gradient(0deg,rgba(10,12,44,.94),rgba(10,12,44,.32)),url("assets/hero.jpg") center/cover;
  color: #fff;
}

.primary-location span {
  color: #ff707a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.primary-location b {
  margin-top: 5px;
  font: 800 34px Raleway,sans-serif;
}

.primary-location small {
  color: #d8dbea;
}

.location-menu-grid > div {
  padding: 12px 14px;
}

@media (max-width: 1320px) {
  body.nav-open {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .site-header.menu-open .main-nav {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 2000;
    width: 100%;
    height: 100dvh;
    padding: 0 20px 38px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    background: linear-gradient(165deg,#0c0d31 0%,#13164a 62%,#1c245b 100%);
    align-items: stretch;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: #c72734 #0d0f35;
  }

  .main-nav::-webkit-scrollbar { width: 8px; }
  .main-nav::-webkit-scrollbar-track { background: #0d0f35; }
  .main-nav::-webkit-scrollbar-thumb {
    border: 2px solid #0d0f35;
    border-radius: 999px;
    background: #c72734;
  }

  .mobile-nav-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 94px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: #0d0f35;
  }

  .mobile-nav-brand {
    display: grid;
    place-items: center;
    width: 164px;
    height: 60px;
    padding: 8px 16px;
    border-radius: 14px;
    background: #fff;
  }

  .mobile-nav-brand img {
    width: 132px;
    max-height: 44px;
    object-fit: contain;
  }

  .mobile-nav-close {
    position: relative;
    width: 48px;
    height: 48px;
    flex: none;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    background: #c72734;
    cursor: pointer;
  }

  .mobile-nav-close span {
    position: absolute;
    top: 23px;
    left: 13px;
    width: 22px;
    height: 2px;
    background: #fff;
  }

  .mobile-nav-close span:first-child { transform: rotate(45deg); }
  .mobile-nav-close span:last-child { transform: rotate(-45deg); }

  .main-nav > a,
  .mega-trigger {
    min-height: 60px;
    padding: 17px 4px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font: 800 18px/1.2 Raleway,sans-serif;
  }

  .mega-trigger > span {
    width: 11px;
    height: 11px;
    margin-right: 5px;
  }

  .nav-mega.is-open > .mega-trigger {
    color: #ff7a83;
  }

  .mega-panel,
  .services-mega,
  .industries-mega,
  .materials-mega,
  .locations-mega {
    position: static;
    width: 100%;
    max-height: none;
    padding: 0;
    transform: none;
    overflow: visible;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 0 0 14px 14px;
    background: rgba(255,255,255,.045);
    box-shadow: none;
  }

  .nav-mega:hover > .mega-panel { display: none; }
  .nav-mega.is-open > .mega-panel { display: block; }

  .mega-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding: 22px 18px;
  }

  .mega-panel-head h2 {
    font-size: 22px;
  }

  .main-nav .mega-panel-head > a {
    width: 100%;
    justify-content: space-between;
  }

  .mega-featured-grid,
  .mega-featured-grid.mega-three {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }

  .mega-panel .mega-featured-grid section {
    padding: 18px;
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .all-services-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-height: none;
    overflow: visible;
  }

  .material-links {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .location-menu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .primary-location {
    grid-column: 1/-1;
  }

  .mobile-nav-info {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.14);
  }

  .mobile-nav-info > a,
  .mobile-nav-info > div {
    min-height: 76px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 13px;
    background: rgba(255,255,255,.06);
  }

  .mobile-nav-info small {
    display: block;
    margin-bottom: 3px;
    color: #aeb6ce;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-nav-info b {
    color: #fff;
    font: 800 18px Raleway,sans-serif;
  }

  .mobile-phone {
    border-color: rgba(255,112,122,.35)!important;
    background: rgba(199,39,52,.2)!important;
  }

  .mobile-map {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .mobile-map > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #c72734;
    color: #fff;
    font-size: 21px;
  }

  .mobile-map i {
    color: #ff717b;
    font-style: normal;
    font-size: 20px;
  }
}

@media (max-width: 700px) {
  .mega-featured-grid,
  .mega-featured-grid.mega-three,
  .all-services-grid,
  .material-links,
  .location-menu-grid {
    grid-template-columns: 1fr;
  }

  .mega-panel .mega-featured-grid section {
    border-right: 0;
  }

  .all-services-disclosure {
    margin: 10px 10px 16px;
  }

  .all-services-disclosure summary > span {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .primary-location {
    grid-column: auto;
  }
}
