/* Imports */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500&display=swap');

/* Reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
  letter-spacing: 1px;
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  resize: none;
}

button {
  padding: 10px;
  font-weight: 500;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Global Variables */

:root {
  --dark_blue: rgb(26, 85, 150);
  --light_blue: rgb(36, 135, 198);
  --body_padding: 6rem 10rem;
  --mobile_padding: 0rem;
}

/* Styling */

.nav {
  /* make it fixed */
  position: fixed;
  position: -webkit-fixed;
  top: 0;
  /* in front of all other elements */
  z-index: 99;
  width: 100%;
  display: flex;
  padding-left: 10rem;
  padding-right: 10rem;
  align-items: center;
  justify-content: space-between;
  background-image: url(/images/nav_bar.jpg);
  background-size: cover;
  background-position: center;
  /* display: none; */
}

img.logo {
  height: 50px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

ul.links {
  display: inline-block;
  list-style: none;
  color: white;
}

.nav-li {
  display: inline-block;
  margin-right: 0.75rem;
  font-size: 0.80rem;
}

.nav_link {
  text-decoration: none;
  color: white;
  cursor: pointer;

  &:hover {
    color: black;
    font-weight: 500;
  }
}

.lang {
  text-decoration: underline;
  font-weight: 500;
  font-size: 1rem;
}

.home {
  min-height: 100dvh;
  width: 100%;
  position: relative;
  background-color: black;
}

.arrow {
  position: absolute;
  top: 50%;
  z-index: 100;
  padding: 1rem;
  background-color: rgba(80, 80, 80, 0.7);
  border-radius: 20%;
  cursor: pointer;
}

.arrow:hover {
  background-color: rgba(80, 80, 80, 0.8);
  transform: scale(1.2);
}

.arrow img {
  width: 1rem;
}

.previous_arrow {
  left: 1rem;
}

.next_arrow {
  right: 1rem;
}

.slider {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-right: 10rem;
  gap: 1rem;
}

.page_1 {
  background: url(/images/home_slider_1.jpg);
  background-size: cover;
  background-position: center;
}

.page_2 {
  background: url(/images/home_slider_2.jpg);
  background-size: cover;
  background-position: center;
}

.page_3 {
  background: url(/images/home_slider_3.jpg);
  background-size: cover;
  background-position: center;
}

.page_4 {
  background: url(/images/home_slider_4.jpg);
  background-size: cover;
  background-position: center;
}

.slider div {
  margin-top: auto;
}

.slider p {
  color: white;
}

.fade {
  animation-name: fade;
  animation-duration: 2s;
}

@keyframes fade {
  from {opacity: .5;}
  to {opacity: 1;}
}

.text_anim_line_1 {
  animation-name: text_anim_line_1;
  animation-duration: 2s;
}

@keyframes text_anim_line_1 {
  from {transform: translate(20%);}
  to {transform: translate(0%)};
}

.text_anim_line_2 {
  animation-name: text_anim_line_2;
  animation-duration: 2s;
}

@keyframes text_anim_line_2 {
  from {transform: translate(-50%);}
  to {transform: translate(0%)};
}

.line_1 {
  font-size: 2rem;
  font-weight: 400;
}

.line_2 {
  font-size: 3rem;
  font-weight: 700;
}

.slider a {
  margin-bottom: auto;
}

.business_now {
  max-height: fit-content;
  max-width: fit-content;
  padding: 1rem 2rem;
  background-color: var(--light_blue);
  color: white;
  border-radius: 1rem;
  font-weight: 500;
}

.services {
  padding: var(--body_padding);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 25rem;
  gap: 1rem;
}

.mechanical {
  background-image: url(/images/mechanical_services.jpg);
  background-size: cover;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease-in-out;

  &:hover {
    transform: scale(1.02);
  }
}

.mechanical p {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
}

.electrical {
  background-image: url(/images/electrical_services.jpg);
  background-size: cover;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease-in-out;

  &:hover {
    transform: scale(1.02);
  }
}

.electrical p {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
}

.elv {
  background-image: url(/images/lowcurrent_services.jpg);
  background-size: cover;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease-in-out;

  &:hover {
    transform: scale(1.02);
  }
}

.elv p {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
}

/* MODAL ---- Start */

.modal {
  height: 100dvh;
  max-height: 100dvh;
  background-color: rgba(233, 219, 219, 0.8);
  border: 1px solid rgba(233, 219, 219, 0.2);
  position: fixed;
  top: 0;
  left:0;
  z-index: 120;
  align-items: center;
  display: none;
  padding: 1rem;
  overflow: hidden;
}

.mechanical_modal,
.electrical_modal,
.elv_modal {
  background-color: white;
  display: grid;
  grid-template-rows: 2fr 4fr 1fr;
  position: relative;
}
.close {
  position: absolute;
  color: white;
  top: 0;
  left: 3%;
  margin-top: 3%;
  font-size: 4rem;
  cursor: pointer;

  &:hover,
  &:focus {
    color: red;
    scale: 1.1;
  }
}

.mechanical_modal_header {
  background: url(/images/mechanical_modal_header.jpg);
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 6rem;
}

.electrical_modal_header {
  background: url(/images/electrical_modal_header.jpg);
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 6rem;
}

.elv_modal_header {
  background: url(/images/elv_modal_header.jpg);
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 6rem;
}

.mechanical_modal_header div,
.electrical_modal_header div,
.elv_modal_header div {
  margin-top: 2%;
}

.mechanical_modal_header p,
.electrical_modal_header p,
.elv_modal_header p {
  color: white;
  font-size: 3rem;

  &:nth-child(2) {
    font-weight: 700;
  }
}

.modal_content {
  padding: 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
}

.modal_content_three_column {
  padding: 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  align-items: top;
}

.modal_content p,
.modal_content_three_column p {
  font-size: 1.25rem;
  color: var(--light_blue);
  font-style: italic;
}
.items_row {
  display: flex;
  justify-items: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.items_row p {
  font-size: 1rem;
  font-style: normal;
  color: black;
}

.mechanical_modal_footer {
  background: url(/images/mechanical_modal_footer.jpg);
  background-position: center;
  background-size: cover;
}

.electrical_modal_footer {
  background: url(/images/electrical_modal_footer.jpg);
  background-position: center;
  background-size: cover;
}

.elv_modal_footer {
  background: url(/images/elv_modal_footer.jpg);
  background-position: center;
  background-size: cover;
}

.items_row img {
  width: 4rem;
}

/* MODAL ---- End */

.banner-after-services {
  min-height: 25rem;
  background-image: url(/images/banner_after_services.jpg);
  background-size: cover;
}

/* ABOUT US Block ---- Start */

.about-us {
  padding: var(--body_padding);
}

.divider-line {
  min-height: 0.3rem;
  width: 8rem;
  background-color: var(--light_blue);
}

.about-us h1 {
  margin-top: 0.5rem;
  color: var(--dark_blue);
}

.about-us p span,
.about-us h1 span {
  font-weight: 700;
}

.about-us p {
  margin-top: 1rem;
  line-height: 1.5rem;
  text-align: justify;
}

/* ABOUT US Block ---- End */

/* VISION ---- Start */

.vision_block {
  padding: var(--body_padding);
  background-color: var(--light_blue);
  position: relative;
}

.vision_block_strip {
  position: absolute;
  bottom: 0;
  right: 0;
}

.statement {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.statement img {
  width: 15rem;
  margin-left: 10rem;
}

.statement p {
  font-size: 1.75rem;
  color: white;
  font-style: italic;
}

.vision_mission_values {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 6rem;
}

.vision_mission_values div {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
}

.vision_mission_values div img {
  height: 6rem;
}

.vision_mission_values div h2 {
  color: white;
}

.vision_mission_values div p {
  color: white;
  line-height: 1.4rem;
}

/* VISION ---- End */

/* WHY US ---- Start */

.why_us {
  padding: var(--body_padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 2rem;
  column-gap: 8rem;
}

.row {
  display: flex;
  align-items: center;
}

.heading {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--dark_blue);
}

.heading span {
  font-weight: 300;
}

.sub_heading {
  font-size: 2rem;
  color: var(--dark_blue);
}

.row {
  margin-bottom: 2rem;
}

.row img {
  width: 6rem;
  height: 6rem;
}

.column_2 .row img {
  width: 4rem;
  height: 4rem;
}

.row p {
  margin-right: 2rem;
  line-height: 1.2rem;
}

/* WHY US ---- End */

/* FOOTER ---- Start */

.contact_us {
  padding: var(--body_padding);
  padding-bottom: 2rem;
  background-color: var(--dark_blue);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 4rem;
}

.contact_us_heading p {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1rem;
  color: white;
}

.contact_form {
  padding-top: 1rem;
}

.contact_input {
  width: 100%;
  height: 40px;
  margin-top: 1rem;
  padding-right: 0.5rem;
}

.contact_textarea {
  width: 100%;
  height: 125px;
  margin-top: 1rem;
  padding-right: 0.5rem;
  padding-top: 0.5rem;
}

.contact_button {
  margin-top: 1rem;
}

.contact_message {
  margin-top: 0.5rem;
  color: white;
}

.quick_links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quick_links_heading p {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1rem;
  color: white;
}

.quick_links_content ul {
  list-style-position: inside;
  color: white;
  list-style-type: " <";
}

.quick_links_content ul li {
  margin-bottom: 1rem;
}

.contact_info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact_info_heading p {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.contact_info_row {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1rem;
}

.contact_info_row img {
  width: 1rem;
}

.contact_info_row p {
  color: white;
}

.footer_banner {
  min-height: 10rem;
  background-image: url(/images/footer_banner_400px_height.jpg);
  background-size: cover;
}

.footer {
  padding: 1rem 10rem;
  display: flex;
  background-color: var(--dark_blue);
  color: white;
  gap: 1rem;
  align-items: center;
}

.footer p {
  flex: 1;
}

.footer img {
  width: 2rem;
}

/* FOOTER ---- End */

@media only screen and (max-width: 600px) {
  .nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-show {
    display: none;
  }

  .slider {
    padding-right: 1rem;
  }

  .services {
    padding: var(--mobile_padding);
    padding-top: 1rem;
    padding-bottom: 1rem;
    grid-template-columns: 1fr;
    grid-template-rows: 300px 300px 300px;
    gap: 0.5rem;
  }

  .modal {
    overflow: scroll;
    padding: 0;
    right: 0;
  }

  .elv_modal,
  .mechanical_modal,
  .electrical_modal {
    display: flex;
    flex-direction: column;
  }

  .mechanical_modal_header,
  .electrical_modal_header,
  .elv_modal_header {
    padding: 1rem;
  }

  .mechanical_modal_header p,
  .electrical_modal_header p,
  .elv_modal_header p {
    color: white;
    font-size: 2rem;
  }

  .modal_content_three_column {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .modal_content p,
  .modal_content_three_column p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .items_row img {
    width: 3rem;
  }

  .banner-after-services {
    display: none;
  }

  .about-us {
    padding: var(--mobile_padding);
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .vision_block {
    padding: var(--mobile_padding);
  }

  .statement {
    padding: 2rem;
  }

  .statement img {
    display: none;
  }

  .statement p {
    font-size: 1.2rem;
  }

  .vision_mission_values {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    padding: 2rem;
    margin-top: 2rem;
  }

  .why_us {
    padding: var(--mobile_padding);
    padding: 2rem;
    display: flex;
    flex-direction: column;
  }

  .why_us .caption_1 {
    order: 0;
  }

  .why_us .column_1 {
    order: 1;
  }

  .why_us .caption_2 {
    order: 2;
  }

  .why_us .column_2 {
    order: 3;
  }

  .footer_banner {
    display: none;
  }

  .contact_us {
    padding: var(--mobile_padding);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact_info_row p {
    text-decoration: none;
  }

  .footer {
    padding: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .footer p{
    flex: 0 0 100%;
  }
}

/* MEDIA QUERY ---- Mobile */