@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');
:root {
  --header-height: 4rem;
  --primary-color: #fa4b0c;
  --primary-color-dark: #e0430a;
  --body-color: hsl(207, 4%, 99%);
  --container-color: #FFF1DB;
  --container-color-alt: #816854;
  --text-dark: #333333;
  --text-dark-alt:hsl(207, 4%, 95%);
  --extra-light: #f3f4f6;
  --text-light: #767268;
  --golden-light:#ffb536;
  --bagelight:#FFF1DB;
  --bagedark:#816854;

  --white: #ffffff;
  --max-width: 1200px;
  --mb-1-5: 1.5rem;

  /* fonts */
  --body-font: Cairo;
  /* imgs */
  --img-transition: .3s;
  --img-hidden: hidden;
  --img-scale: scale(1.1);

}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --text-dark: hsl(207, 4%, 95%);
  --text-dark-alt: #333333;
  --text-light: #333333;
  --body-color: hsl(207, 4%, 10%);
  --container-color:#816854;
  --container-color-alt: #FFF1DB;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: cairo;
  background-color: var(--body-color);
}

.grid {
  display: grid;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 6rem 1.5rem;
}

.container {
  max-width: 1040px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}
.title {
  text-align: center;
  margin-bottom: 4rem;
}

.section__title {
  font-family: var(--second-font);
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 3.5rem;
  margin-bottom: 1rem;
}

.section__title::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 67px;
  height: 2px;
  background-color: var(--primary-color-dark);
}
.section__subtitle {
  font-size: 15px;
  color: #767268;
}
/* --------------button---------------- */


.button{
  display: inline-block;
  background-color: var(--container-color);
  border: 5px solid var(--container-color-alt);
  color: var(--text-dark);
  padding: .6rem 1rem;
  border-radius: 4rem;
  transition: box-shadow .4s;
}

.button:hover{
  background-color: var(--container-color-alt);
  border-color: var(--container-color);
  box-shadow: 0 8px 24px hsla(22,100%,8%,.2);
}
.button:hover{
  color: var(--text-dark-alt);
}

/* .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  outline: none;
  border: none;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.btn__primary {
  background-color: var(--bagedark);
  border: 2px solid var(--bagelight);
}
.btn__primary a {
  color: white;
  font-weight: 400;
  font-size: 20px;
}

.btn__primary:hover  {
  background-color: var(--bagelight);
  border-color: var(--bagedark);
}
 .btn__primary:hover a {
  color: black;
 } */
/* ----------------------------------- */
img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}


main {
  overflow: hidden;
}

/************************** top__bar ************************ */
.top__bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  height: 2rem;
  background-color: var(--container-color);
}

.top__bar .left__content a {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dark);
}
.top__bar .left__content i {
  color: green;
  margin-right: 2px;
}

/*=============== HEADER & NAV ===============*/

.header {
  width: 100%;
  background-color: var(--body-color);
  position: fixed;
  z-index: 100;
  /*For animation dark mode*/
  transition: 0.4s;
}

.nav {
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  align-items: center;
}

.nav__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
}

.nav__toggle,
.nav__theme {
  color: var(--text-dark);
  font-size: 1.7rem;
  cursor: pointer;
}
.nav__close i {
  color: black;
  font-size: 2rem;
  background-color: gold;
}

.nav__logo img {
  width: 50px;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--container-color-alt);
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    padding: 9rem 2rem 3rem;
    transition: right 0.5s;
    box-shadow: 2px 15px 16px hsla(22, 34%, 55%, 0.2);
  }
  .nav__item a {
    color: var(--text-dark-alt);
  }
  .bg-header {
    top: 0;
    left: 0;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 2rem;
}

.nav__link {
  position: relative;
  color: rgb(0, 0, 0);
  text-transform: uppercase;
  font-size: 1.5rem;
  transition: 0.3s;
}
.nav__link::after {
  content: "";
  width: 0;
  height: 3px;
  background-color: rgb(0, 0, 0);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
}
.nav__link:hover::after {
  width: 70%;
}
.nav__link:hover {
  color:var(--golden-light);
}

.nav__close {
  font-size: 2rem;
  position: absolute;
  top: 0.9rem;
  right: 1.25rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  right: 0;
}

.bg-header {
  background-color: var(--container-color);
  box-shadow: 0 8px 16px hsla(24, 2%, 43%, 0.2);
  top: 0;
  left: 0;
}

/* Active link */
.active-link {
  color: rgb(0, 0, 0);
}

.active-link::after {
  width: 60%;
}

/* ----------------home-------------- */
.home {
  margin-top :var(--header-height);
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/assets/img/Electrician-1-qrsih2mhbaqj7rz8aijllzfswb4s90zlqh1xoqidm8.webp");
  background-size: cover;
  background-position: center center ;
  background-repeat: no-repeat;
  height: 500px;
}

.home__container {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  row-gap: 4.5rem;
  padding-block: 8rem 10rem;
}


.home__container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.home__container p {
  margin-top: 10px;
  font-size: 1.2rem;
  color: var(--white);
}

.home__btns a {
  font-size: 1.4rem;
  font-weight: bold;
}
/* --------------------- banner ----------------------- */
.banner__container {
  gap: 1.5rem;
}

.banner__card {
  padding: 1rem 0.5rem;
  text-align: center;
  background-color: var(--container-color);
  border-radius: 2rem;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.banner__card i{
  font-size: 2.5rem;
  color: black;
}
.banner__card h4 {
  font-size: 1.4rem;
  color: var(--text-dark);
}

.banner__card p {
  color: var(--text-dark);
}
.banner__card:hover{
  box-shadow: 0 8px 16px hsla(23, 31%, 43%, 0.2);
}

/*---------------------------- services----------------------------------------*/

.services__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.services__card {
  background-color: var(--container-color);
  padding-top: 1rem ;
  width: 88%;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
.services__content{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  row-gap: 10px;
}
.services__content i{
  font-size: 50px;
  color: black;
}
.services__content img {
  width: 50px;
}
.services__card:hover {
  background-color: var(--container-color-alt);
  box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.1);
}
.services__card:hover h4{
  color:var(--text-dark-alt);
}
.services__card h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--text-dark);
}



.section__tit{
  font-family: var(--second-font);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 3.5rem;
  margin-bottom: 1rem;
}
.section__tit::before {
  content:" ";
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 67px;
  height: 2px;
  background-color: black;
}
.section__sub{
  font-size: 15px;
  color: #767268;
}

.content{
  display: none;
}
.main__content{
  display: block;
}
/*------------------------- plumber ---------------------- */
.plumber__container {
  gap: 2rem;
}
.plumber__card {
  background-color: var(--container-color);
  padding: 1rem 1.5rem 0;
  text-align: center;
  transition: 0.3s;
  border-radius: 1rem;
  color: var(--text-dark);
}
.plumber__card .plumper__img{
  overflow: var(--img-hidden);
  border-radius: 1rem;
}
.plumber__card img:hover{
  transform: var(--img-scale);
}
.plumber__card:hover {
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}
.plumber__title {
  margin-top: 10px;
}
.plumber__description {
  margin-top: 5px;
}
.btn__card {
  margin-top: 7px;
}

.btn__card {
  transition: transform 0.4s;
}
.btn__card a {
  font-size: 35px;
  font-weight: 400;
  color: rgb(74, 134, 6);
}
.btn__card:hover {
  transform: translateX(-0.25rem);
}

/* electric */
.electric__container {
  padding-top: 0;
}

.app__grid {
  max-width: 1024px;
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  overflow: hidden;
}
.app__image{
  overflow: hidden;
  transition: var(--img-transition);
  border-radius: 1rem;
}
.app__image img {
  max-width: 500px;
  margin-inline: auto;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.1));
}
.app__image img:hover {
  transform: var(--img-scale);;
}

.app__card {
  padding: 20px 15px;
  background-color: var(--container-color);
  text-align: center;
  color: var(--text-dark);
}
.app__card ul {
  display: grid;
  row-gap: 10px;
}

.faq {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/assets/img/Digitisation-and-construction.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.faq__container {
  text-align: center;
}

.faq__container .section__header {
  margin-bottom: 1rem;
  color: var(--white);
}

.faq__container p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--white);
}

.faq__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ---------------------------------------------works---------------- */
.works{
  background-color: var(--container-color);
  margin-top: 6rem;
}
.card__link{
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.168);
}

.card__link img{
  width: 100%;
  height:100%;
  border-radius: 10px;
  object-fit: cover;
}
.card__img{
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
}
.card__list img:hover{
  transform: var(--img-scale);
}

.card__list h1{
  color: black;
  font-size: 1.5rem;
  display: inline-block;
  border-radius: 50px;
}
.card__list p{
  font-size: 1rem;
  color: #424040;
}

.card__wrapper{
  max-width: 1100px;
  margin: 0 30px 20px;
  padding: 20px 20px;
  overflow: hidden;
}
.swiper-pagination-bullet{
  height: 13px;
  width: 13px;
  opacity: 0.5;
  background: black;
}
.swiper-pagination-bullet-active{
  opacity: 1;
}
.swiper-button-prev,
.swiper-button-next{
  color: black;
}
/*---------------------- footer------------------------------------- */
.footer__container {
  display: grid;
  gap: 2rem;
}
.footer__col {
  display: flex;
  flex-direction: column;
  row-gap: 5px;
}
.footer__col i {
  margin-right: 4px;
}
.footer__col h5 a {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--second-font);
  color: var(--text-dark);
}

.footer__col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
}
.footer__col p {
  color: var(--text-dark);
}
.footer__col a {
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.footer__col a:hover {
  color: var(--primary-color);
}

.footer__col form {
  margin-bottom: 2rem;
  padding: 10px;
  display: flex;
  align-items: center;
  border: 1px solid var(--text-light);
  border-radius: 5px;
}

.footer__col input {
  background-color: var(--container-color);
  color: var(--text-dark);
  width: 100%;
  outline: none;
  border: none;
  font-size: 1rem;
}

.footer__col button {
  outline: none;
  border: none;
  font-size: 1.25rem;
  color: var(--primary-color);
  background-color: transparent;
  cursor: pointer;
}

.footer__socials h4 {
  margin-bottom: 5px;
  color: var(--text-dark);
}

.footer__socials div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  font-size: 1.75rem;
  color: var(--text-dark);
}

.footer__socials a:hover {
  color: var(--primary-color);
}
iframe{
  width: 350px;
  height: 300px;
}
.footer__bar {
  padding: 1rem;
  font-size: 1rem;
  color: var(--text-dark);
  text-align: center;
}
.footer__bar a {
  color: var(--primary-color);
}

/*===============  contact__icon ===============*/
.contact__icon {
  position: fixed;
  font-size: 40px;
  color: green;
  right: 1.4rem;
  border-radius: 50%;
  bottom: 4.5rem;
  background-color:var(--white) ;
  box-shadow: 0 4px 12px hsla(0, 0%, 20%, 0.1);
  display: inline-flex;
  padding: 0.25rem;
  z-index: 100;
  opacity: 0.8;
  transition: 0.4s;
}

.contact__icon:hover {
  opacity: 1;
}




/* break pointes */

@media (width > 540px) {
  .plumber__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .banner__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .services__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  .top__bar {
    height: 2.5rem;
  }

  .top__bar .left__content {
    font-size: 20px;
    font-weight: bold;
  }
  .top__bar .left__content i {
    font-size: 25px;
  }
  /* .top__bar .right__content a {
    font-size: 25px;
  } */

  body.dark-theme {
    --text-dark: hsl(207, 4%, 95%);
  }
  .nav__link,
  .nav__theme {
    color: var(--text-dark);
  }
  .nav {
    display: flex;
    justify-content: space-between;
    height: 5rem;
  }
  .nav__menu {
    background-color: transparent;
  }
  .nav__logo img {
    width: 60px;
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 2.5rem;
  }
  .nav__link {
    text-transform: initial;
    font-size: 1.3rem;
  }
  .link__line{
    position: relative;
  } 
  
   .link__line::before{
    content: '';
    position: absolute;
    width: 1px;
    background-color: rgba(79, 80, 81, 0.504);
    right: -15px;
    top: 0;
    bottom: 0;
    margin: auto 0;
  } 

  .home {
    margin-top: 80px;
  }
  .home__container {
    padding-top: 5rem;
  }

  .banner__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .plumber__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .services__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .app__grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .app__card {
    text-align: center;
  }

  .app__card:nth-child(4) {
    grid-area: 2/1/3/2;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 5rem;
  }
  .footer__col .contact__title{
    font-size: 1.6rem;
  }
  .footer__col .contact__title i{
    font-size: 1.7rem;
    color: var(--primary-color);
  }
  .contact__icon{
    right: 1.5rem;
  }
  iframe{
    width: 500px;
    height: 350px;
  }
  .swiper-pagination-bullet{
    margin-bottom: -5px;
    width: 15px;
    height: 15px;
  }
}

@media screen and (min-width: 1050px) {
  .header__container {
    margin-left: auto;
    margin-right: auto;
  }
}
