/* Shared header layout for the top page and all inner pages. */
.navigation-toggle {
  display: none;
}

.works-header {
  width: 100%;
  container-type: inline-size;
  height: 183px;
  background: #fff;
}

.works-utility {
  position: relative;
  height: 60px;
  background: #f8f8f8;
  border-bottom: 1px solid #e0e7e2;
}

.works-utility p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}

.works-tel {
  white-space: nowrap;
  font-size: 17px;
  line-height: 30px;
}

.works-tel strong {
  font-size: 26px;
}

.works-hours {
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.works-utility button, .works-utility > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 59px;
  border: 0;
  color: white;
  font-size: 17px;
  font-weight: 700;
  padding: 0;
}

.works-contact {
  width: 200px;
  background: var(--blue);
}

.works-estimate {
  width: 270px;
  background: var(--orange);
}

.works-utility i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  font-style: normal;
  margin-left: 8px;
}

.works-header-main {
  position: relative;
  height: 123px;
}

.works-brand {
  width: 375px;
  height: 80px;
}

.works-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.works-area {
  width: 249.6px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a8bfdd;
  border-radius: 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.works-header-main nav {
  width: 950px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  line-height: 34px;
  font-weight: 700;
  white-space: nowrap;
}

/* Desktop header uses normal flow so its content can share available space. */
@media (min-width: 1200px) {
  .works-header { height: auto; }
  .works-utility {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: clamp(24px, 4.166667vw, 80px);
  }
  .works-utility > p {
    min-width: 0;
    margin-right: auto;
  }
  .works-tel, .works-hours, .works-utility > a {
    flex-shrink: 0;
  }
  .works-tel {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .works-utility > a { align-self: stretch; height: auto; }
  .works-contact { margin-left: 24px; }
  .works-estimate { margin-left: -23px; }
  .works-header-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    height: auto;
    min-height: 123px;
    padding: 20px clamp(24px, 2.395833vw, 46px) 23px clamp(24px, 4.166667vw, 80px);
  }
  .works-brand, .works-area { flex-shrink: 0; }
  .works-brand img { display: block; }
  .works-header-main nav {
    flex: 0 1 950px;
    min-width: 0;
    margin-left: auto;
  }
}

@media (max-width: 1199px) {
  .works-header {
    position: relative;
    z-index: 50;
    height: auto;
  }
  .works-utility {
    height: auto;
    min-height: 48px;
    border-bottom-width: 1px;
  }
  .works-utility > p, .works-hours {
    display: none;
  }
  .works-tel {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.4;
  }
  .works-tel strong {
    font-size: 20px;
  }
  .works-utility {
    display: flex;
    justify-content: flex-end;
  }
  .works-utility > a {
    position: static;
    flex: 0 1 220px;
    width: auto;
    height: auto;
    min-height: 48px;
    padding: 8px 12px;
    gap: 8px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }
  .works-utility i {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
  }
  .works-header-main {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    min-height: 100px;
    padding: 20px 24px;
  }
  .works-brand {
    position: static;
    flex: 0 1 282.8571429px;
    width: 282.8571429px;
    height: auto;
  }
  .works-brand img {
    display: block;
    width: 100%;
    height: auto;
  }
  .works-area {
    position: static;
    width: auto;
    height: auto;
    min-height: 28px;
    padding: 3px 8px;
    border-width: 1px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
  }
  .navigation-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: auto;
    min-width: 96px;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
  }
  .works-header-main .compact-navigation {
    position: static;
    display: none;
    flex: 0 0 100%;
    width: 100%;
    padding-top: 12px;
    margin: 0;
    gap: 8px;
    white-space: normal;
  }
  .works-header-main .compact-navigation.navigation-open {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .compact-navigation a, .compact-navigation > span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f7f9f9;
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (max-width: 767px) {
  .works-utility {
    justify-content: center;
    flex-wrap: wrap;
  }
  .works-tel {
    flex: 0 0 100%;
    min-height: 38px;
    padding: 6px 12px;
  }
  .works-utility > a {
    flex: 1 1 50%;
    min-height: 44px;
    font-size: 12px;
    padding: 8px;
  }
  .works-header-main {
    padding: 16px;
    gap: 10px;
    min-height: 88px;
  }
  .works-brand {
    flex: 0 1 calc(100% - 134px);
    width: auto;
    max-width: 266.2857143px;
  }
  .works-area {
    order: 3;
    font-size: 10px;
    min-height: 24px;
  }
  .navigation-toggle {
    flex-shrink: 0;
    min-width: 124px;
    min-height: 56px;
    padding: 12px 16px;
    font-size: 16px;
    white-space: nowrap;
  }
  .works-header-main .compact-navigation {
    order: 4;
  }
  .works-header-main .compact-navigation.navigation-open {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .compact-navigation a, .compact-navigation > span {
    font-size: 14px;
  }
}

