*,
::after,
::before {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Titillium Web", "Arial", "sans-serif";
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  text-rendering: optimizeSpeed;
  line-height: 140%;
  color: hsl(var(--clr-base));
}

.page-wrapper {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  padding-right: 20px;
  padding-left: 20px;
  margin: 0 auto;
}

.header {
  position: relative;
}

.header-top {
  position: relative;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  background: hsla(var(--clr-white), 0.9);
}
.header-top .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 45px;
  padding-bottom: 50px;
}

.site-logo {
  position: absolute;
  top: 12px;
  left: 20px;
}
.site-logo img {
  width: 180px;
}

.header-banner {
  position: relative;
  width: 100%;
  max-height: 100vh;
  color: hsl(var(--clr-white));
  text-shadow: 0 3px 4px hsla(var(--clr-black), 0.05);
}
.header-banner img {
  width: 100%;
  max-width: none;
  max-height: 100vh;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.header-banner a,
.header-banner a:visited {
  color: hsl(var(--clr-white));
}
.header-banner__content {
  padding: 15px 20px;
  background: hsl(var(--clr-spot-1));
}
.header-banner__content a,
.header-banner__content a:visited {
  white-space: nowrap;
  text-decoration-color: transparent;
}
.header-banner__content a:hover {
  white-space: nowrap;
  text-decoration-color: hsl(var(--clr-white));
}
.header-banner__roadworks {
  display: flex;
  padding: 15px 20px;
  background: hsl(var(--clr-base));
  font-weight: 600;
}
.header-banner__roadworks::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 3px 8px 0 0;
  background: url('../images/triangle-exclamation.svg') no-repeat;
  background-size: 100%;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 35px 0;
  padding: 50px 0;
}
.content-section.has-bg {
  position: relative;
}
.content-section.has-bg::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  margin-left: calc((-100vw + 100%) / 2);
  background: hsl(var(--clr-off-white));
}

.treatment__list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 35px;
}
.treatment__image {
  margin-bottom: 25px;
}
.treatment__image img {
  border-radius: 5px;
}


.team__list {
  display: flex;
  flex-direction: column;
  gap: 35px 0;
}
.about {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 35px;
}
.about__image img {
  border-radius: 5px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 35px;
}
.contact__map iframe {
  width: 100%;
}

.roadworks {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 35px;
}
.roadworks__image img {
  border-radius: 5px;
}

footer {
  font-size: 16px;
  line-height: 140%;
  background: hsl(var(--clr-spot-1));
  color: hsl(var(--clr-white));
}
footer .container {
  padding-top: 10px;
  padding-bottom: 10px;
}


@media only screen and (min-width: 768px) {

  .header-banner {
    aspect-ratio: 16/9;
  }
  .header-banner img {
    aspect-ratio: 16/9;
  }

  .treatment__list {
    flex-direction: row;
  }
  .treatment__item {
    flex: 0 0 calc(50% - (35px / 2));
  }

  .about {
    flex-direction: row;
    align-items: center;
  }
  .about--reversed {
    flex-direction: row-reverse;
  }
  .about__image {
    flex: 0 0 calc(50% - (35px / 2));
  }
  .about__content {
    flex: 0 0 calc(50% - (35px / 2));
  }

  .contact {
    flex-direction: row-reverse;
  }
  .contact__content {
    flex: 0 0 calc(30% - (35px / 2));
  }
  .contact__map {
    flex: 0 0 calc(70% - (35px / 2));
  }
}


@media only screen and (min-width: 940px)  {

  .site-logo img {
    width: 220px;
  }

  .header-top {
    position: fixed;
    box-shadow: 0 3px 4px hsla(var(--clr-black), 0.05);
  }
  .header-top .container {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .header-banner__content {
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: 30px;
    padding: 30px 40px;
    font-size: 22px;
    line-height: 160%;
    transform: translateY(-50%);
  }
  .header-banner__roadworks {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 20px 25px;
  }

  .content-section {
    gap: 50px 0;
    padding: 100px 0;
  }

  .treatment__item {
    flex: 0 0 calc((100% / 3) - (35px * 2/3));
  }

  .team__list {
    gap: 50px 0;
  }
  .about__image {
    flex: 0 0 calc((100% * 0.4) - (35px / 2));
  }
  .about__content {
    flex: 0 0 calc((100% * 0.6) - (35px / 2));
  }

}


@media only screen and (min-width: 1920px) {

  .header-banner {
    max-height: 850px;
  }
  .header-banner img {
    width: 100%;
    max-width: none;
    max-height: 850px;
  }

}
