:root {
  --header-bg: rgba(15, 18, 33, 0.75); /* color when scrolled */
  --header-bg-top: transparent; /* color at top */
  --blur: 10px;
  --white-blue: #eaf2f9;
  --blue: #78d1ff;
}

html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

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

a:visited {
  color: inherit;
}

a:hover,
a:focus,
a:active {
  color: inherit;
  text-decoration: none;
  outline: none;
}

html {
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Helvetica Neue", Helvetica, sans-serif;
}

h1,
h2,
h3,
p {
  margin: 0 !important;
}

body {
  margin: 0 !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 2rem 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.5s ease;
}

.scrolled {
  background-color: rgba(13, 66, 93, 1);
  padding: 1rem 2rem !important;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.side-menu.active {
  pointer-events: all;
}

.side-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.side-menu.active .side-menu-overlay {
  opacity: 1;
  pointer-events: all;
}

.side-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  max-width: 80vw;
  height: 100%;
  background-color: rgba(13, 66, 93, 1);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  overflow-y: auto;
  padding: 60px 30px 30px;
}

.side-menu.active .side-menu-content {
  transform: translateX(0);
}

.close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
}

.close-menu:hover {
  opacity: 0.7;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list > li {
  margin-bottom: 10px;
}

.menu-list a {
  color: white;
  text-decoration: none;
  font-size: 28px;
  display: block;
  padding: 12px 0;
  transition: opacity 0.5s ease;
}

.menu-list a:hover {
  opacity: 0.7;
}

.submenu {
  list-style: none;
  padding-left: 20px;
  margin: 5px 0 0 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.has-submenu.active .submenu {
  max-height: 300px;
}

.submenu li {
  margin-bottom: 5px;
}

.submenu a {
  font-size: 26px;
  padding: 8px 0;
  opacity: 0.9;
  transition: 0.5s ease;
}

.submenu a:hover {
  opacity: 0.7;
}

.button {
  cursor: pointer;
}

.logo-link {
  position: absolute;
  right: 50%;
  width: 80px;
  height: 50px;
  z-index: 2;
  cursor: pointer;
}

.logo {
  position: absolute;
  right: 50%;
}

.header-button {
  background-color: rgba(176, 223, 247, 0.4);
  border: none;
  height: 60px;
  border-radius: 50px;
  color: white !important;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  transition: 0.5s ease;
}

.header-button:hover {
  background-color: rgba(176, 223, 247, 0.7);
}

.header-button img {
  width: 25px;
}

.down-button {
  position: absolute;
  bottom: 10%;
  left: 50%;
  border-radius: 100%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, 50%);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.contact-hero {
  position: relative;
  height: 50vh;
  height: 50dvh;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/PlumberOnPhone.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1px);
  transform: scale(1.05);
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/HeroImage.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1px);
  transform: scale(1.05);
  z-index: -1;
}

.about-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/PlumberFixing.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1px);
  transform: scale(1.05);
  z-index: -1;
}

.blur-dark-container,
.blue-overlay-container,
.hero-container {
  position: absolute;
  inset: 0;
}

.blur-dark-container {
  opacity: 25%;
  background-color: black;
}

.blue-overlay-container {
  background-color: #25a3e2;
  opacity: 33%;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text-containter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-text-containter h1,
h3 {
  font-size: 100px;
  text-align: center;
  color: white;
}

.hero-text-containter p {
  color: white;
  font-weight: 200;
  font-size: 30px;
  text-align: center;
}

.section-container {
  position: relative;
  padding: 100px 20px;
}

.services,
.info {
  background-color: var(--white-blue);
}

.section-text-container {
  display: flex;
  flex-direction: row;
  padding: 0px 60px;
}

.section-text-about {
  width: 40%;
}

.section-main-text-container {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sub-title {
  font-size: 60px;
}

.sub-description {
  font-size: 30px;
  font-weight: 200;
}

.sub-legend {
  font-size: 30px;
  font-weight: 400;
}

.title-light-background {
  color: #2a3132;
}

.text-light-background {
  color: #5f6a6c;
}

.title-dark-background {
  color: white;
}

.text-dark-background {
  color: #c2c2c2;
}

.services-content {
  display: flex;
  flex-direction: row;
  margin-top: 60px;
}

.services-content-image {
  width: 50%;
  position: relative;
  min-height: 400px;
}

.blue-circle {
  background-color: rgba(120, 209, 255, 0.4);
  width: 100vw;
  height: 100vw;
  max-width: 1000px;
  max-height: 1000px;
  border-radius: 100%;
  position: absolute;
  left: -40%;
  top: 5%;
}

.floor-heating {
  position: absolute;
  left: -60%;
  top: 15%;
  width: 150vw;
  width: 1500px;
}

.services-content-list {
  padding: 0px 60px;
  width: 50%;
  display: grid;
  grid-template-columns: var(--icon) 1fr;
  column-gap: var(--gap);
  row-gap: 50px;
  --icon: 100px;
  --gap: 50px;
  --line-w: 280px;
}

.list-item {
  display: contents;
}

.list-item img {
  width: var(--icon);
  display: block;
  align-self: start;
}

.list-item h3 {
  margin: 0;
  text-align: left;
  align-self: center;
}

.blue-line {
  background-color: var(--blue);
  height: 4px;
  width: var(--line-w);
  grid-column: 1 / -1;
  justify-self: center;
}

.area {
  background-color: #426678;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.card-container {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.card {
  background-color: #5891ae;
  padding: 30px 25px;
  border-radius: 8px;
  flex: 1;
  position: relative;
  color: white;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  --card-title-size: 18px;
  --card-description-size: 22px;
  --card-subtitle-size: 30px;

  opacity: 0;
  transform: rotateY(-180deg) scale(0.8);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.card.flip-in {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}

.card:nth-child(1) {
  transition-delay: 0s;
}

.card:nth-child(2) {
  transition-delay: 0.2s;
}

.card:nth-child(3) {
  transition-delay: 0.4s;
}

.card-text {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-number {
  font-size: var(--card-title-size);
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.8;
}

.card-title {
  font-size: var(--card-title-size);
  font-weight: 300;
  letter-spacing: 1px;
}

.card-header {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.card-button-container {
  display: flex;
  justify-content: flex-end;
}

.card-icon {
  margin-bottom: 20px;
}

.circle-icon {
  width: 30px;
  height: 30px;
  background-color: white;
  border-radius: 50%;
}

.triangle-icon {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid white;
}

.diamond-icon {
  width: 20px;
  height: 20px;
  background-color: white;
  transform: rotate(45deg);
  border: 2px solid white;
}

.card-subtitle {
  font-size: var(--card-subtitle-size);
}

.card-description {
  font-size: var(--card-description-size);
  font-weight: 200;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

.call-button {
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 4px 5px 5px 20px;
  font-size: 22px;
  cursor: pointer;
  border: 2px solid white;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.5s ease;
}

.call-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.arrow-container {
  background-color: white;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  margin-left: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow {
  color: #5891ae;
}

.area-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.map-icon {
  width: 80px;
}

.locations-container {
  display: flex;
  flex-direction: row;
  gap: 70px;
  align-items: center;
}

.location-text {
  color: white;
  font-size: 26px;
  font-weight: bold;
}

.why-us {
  background-color: var(--white-blue);
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding-bottom: 200px;
}

.features-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 0px 100px;
}

.features-text-container {
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-card {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.features-card-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.features-description {
  font-size: 24px;
}

.features-first-card {
  margin-top: 150px;
}

.features-second-card {
  margin-bottom: 150px;
}

.thin-blue-line {
  background-color: var(--blue);
  height: 3px;
  width: 70%;
}

.blue-vertical-line {
  width: 3px;
  background-color: var(--blue);
}

.middle-line {
  display: none;
}

.about-us-absolute {
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.about-us {
  position: relative;
  overflow: hidden;
}

.about-us-content {
  display: flex;
  flex-direction: row;
  padding: 0px 60px;
  gap: 100px;
}

.about-us-second-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-us-first-container {
  height: 500px;
}

.second-cointainer-card {
  height: 40%;
}

.first-container-content {
  height: 100%;
}

.about-us-container {
  background-color: rgba(176, 223, 247, 0.4);
  display: flex;
  border-radius: 50px;
  padding: 30px;
  flex-direction: column;
  justify-content: space-between;
}

.about-us-heading {
  color: white;
  font-size: 36px;
  text-align: left !important;
}

.about-us-description {
  color: white;
  font-size: 26px;
}

.site-footer {
  display: flex;
  flex-direction: column;
}

.footer-main {
  background-color: #264757;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 0px;
  gap: 30px;
}

.footer-main h2 {
  color: white;
  font-size: 30px;
  font-weight: 400;
  text-align: center;
}

.footer-main img {
  width: 60px;
}

.footer-link-container {
  display: flex;
  flex-direction: row;
  gap: 50px;
  color: #78d1ff;
  font-size: 20px;
}

.footer-link-container a {
  transition: 0.5s ease;
  cursor: pointer;
}

.footer-link-container a:hover {
  color: #3a91bd;
}

.footer-copyright {
  background-color: #78d1ff;
  text-align: center;
  padding: 20px 0;
}

.footer-coyright-text {
  font-size: 20px;
}

.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 200px;
  margin: 0 auto;
}

.info-container-holder {
  display: contents;
}

.info-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid gray;
  padding-bottom: 30px;
}

.info-container:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.info-image-container {
  background-color: #c8e9fb;
  width: 100px;
  height: 100px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-text-container h3 {
  color: black;
  font-size: 40px;
  text-align: left;
}

.info-text-container p {
  color: #5f6a6c;
  font-size: 30px;
  text-align: left;
}

.info-image-container img {
  width: 60px;
  height: 60px;
}

@media (max-width: 1700px) {
  .blue-circle {
    left: -60%;
  }

  .floor-heating {
    left: -80%;
  }
}

@media (max-width: 1500px){
  .blue-circle {
    left: -100%;
  }

  .floor-heating {
    left: -140%;
  }
}

@media (max-width: 1200px){
  .blue-circle {
    left: -100%;
  }

  .floor-heating {
    left: -170%;
  }
}

@media (max-width: 1000px) {
  .hero-text-containter {
    gap: 16px;
    padding-inline: 10px;
  }

  .hero-text-containter h1,
  h3 {
    font-size: 30px;
    line-height: 1.15;
    text-wrap: balance;
  }

  .hero-text-containter p {
    font-size: 18px;
    line-height: 1.4;
  }

  .down-button {
    width: 52px !important;
    height: 52px !important;
    transform: translateX(-50%);
  }

  .logo {
    transform: translate(-50%);
    left: 50%;
    width: 60px;
  }

  .logo-link {
    transform: translate(-50%);
    left: 50%;
    width: 60px;
    z-index: 3;
  }

  .header-button {
    height: 44px;
    padding: 8px 12px;
    gap: 8px;
  }

  .header-button img {
    width: 22px;
    height: 22px;
  }

  .header-button p {
    display: none;
  }

  .phone-button {
    display: none;
  }

  .section-text-container {
    display: flex;
    flex-direction: column;
    padding: 0px 20px;
    gap: 40px;
  }

  .services {
    padding: 100px 20px 0px 20px !important;
  }

  .section-container {
    padding: 100px 20px 100px 20px;
    overflow: hidden;
  }

  .section-text-about {
    width: 100%;
  }

  .section-main-text-container {
    width: 100%;
    gap: 5px;
  }

  .sub-title {
    font-size: 30px;
  }

  .sub-description {
    font-size: 18px;
  }

  .sub-legend {
    font-size: 20px;
  }

  .services-content {
    display: flex;
    flex-direction: column-reverse;
  }

  .services-content-list {
    width: 100%;
    padding: 0px 20px;
    --icon: 55px;
    --gap: 30px;
    --line-w: 200px;
  }

  .services-content-image {
    width: 100%;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .blue-circle {
    width: 420px;
    height: 420px;
    left: 50%;
    bottom: -20%;
    transform: translate(-50%, 20%);
  }

  .floor-heating {
    width: 120vw;
    max-width: 700px;
    left: 50%;
    bottom: -30%;
    transform: translate(-50%, 30%);
  }

  .card-container {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .card {
    min-height: 350px;
    padding: 25px 20px;
    --card-title-size: 14px;
    --card-description-size: 16px;
    --card-subtitle-size: 22px;
  }

  .call-button {
    font-size: 15px;
  }

  .arrow-container {
    width: 30px;
    height: 30px;
  }

  .location-text {
    font-size: 16px;
    text-align: center;
  }

  .locations-container {
    gap: 10px;
  }

  .map-icon {
    width: 60px;
  }

  .features-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0px 10px;
    gap: 50px;
    align-items: center;
  }

  .features-container {
    flex-direction: column;
  }

  .blue-vertical-line {
    display: none;
  }

  .middle-line {
    display: block;
  }

  .features-description {
    font-size: 16px;
  }

  .features-first-card {
    margin-top: 0px;
  }

  .features-second-card {
    margin-bottom: 0px;
  }

  .features-img {
    width: 90px;
  }

  .why-us {
    gap: 80px;
  }

  .about-us {
    position: relative;
    overflow: hidden;
  }

  .about-us-content {
    display: flex;
    flex-direction: column;
    padding: 0px 10px;
    gap: 20px;
  }

  .about-us-second-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .about-us-first-container {
    height: auto;
  }

  .second-cointainer-card {
    height: 40%;
  }

  .first-container-content {
    height: 100%;
  }

  .about-us-absolute {
    gap: 40px;
  }

  .about-us-container {
    background-color: rgba(176, 223, 247, 0.4);
    display: flex;
    border-radius: 50px;
    padding: 30px;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
  }

  .about-us-heading {
    font-size: 26px;
  }

  .about-us-description {
    font-size: 16px;
  }

  .footer-main h2 {
    font-size: 16px;
  }

  .footer-link-container a {
    font-size: 16px;
  }

  .footer-main img {
    width: 50px;
  }

  .footer-main {
    padding: 30px 20px;
    gap: 30px;
  }

  .footer-coyright-text {
    font-size: 14px;
  }

  .info {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }

  .info-container:last-child {
    justify-self: auto;
    border-bottom: none;
  }

  .info-image-container {
    width: 60px;
    height: 60px;
  }

  .info-text-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .info-text-container h3 {
    color: black;
    font-size: 24px;
    text-align: left;
  }

  .info-text-container p {
    color: #5f6a6c;
    font-size: 16px;
    text-align: left;
  }

  .info-image-container img {
    width: 30px;
    height: 30px;
  }
}
