/* Reset */
:root {
  --bs-primary: #436163;
  --bs-primary-rgb: 67, 97, 99;
  --secondary-color: #A7AC90;
  --accent-color: #7AC7EF;
  --highlight-color: #F47D4A;
  --light-color: #FFFFFF;
}

/* تغيير لون الأزرار */
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-primary:hover {
  background-color: #53b0e0;
  border-color: #53b0e0;
}

.btn-outline-primary {
  color: #FFF;
  border-color: var(--accent-color);
}

.btn-outline-primary:hover {
  background-color: #53b0e0;
  border-color: #53b0e0;
  color: #FFF;
}

/* تغيير لون حقول الإدخال */
.form-control:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25) !important;
}

body {
  font-family: 'Changa', sans-serif;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

.head-section {
  margin-block-end: 2rem;
  padding-block-end: 1rem;
  position: relative;
}

.head-section::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  height: 2px;
  width: 40px;
  background: var(--highlight-color);
  margin-inline: auto;
  bottom: 0;
}

.head-section:is(.text-center)::after {
  inset-inline-end: 0;
  margin: auto;
}

.btn {
  padding: 11px 55px;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: #A7AC90;
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
}

/* عند تحديد الصفحة النشطة */
.swiper-pagination-bullet-active {
  background-color: #436163;
  opacity: 1;
  transform: scale(1.2);
}

.swiper-pagination {
  bottom: -8px !important;
}

/* Header */
#masthead {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #FFF;
  box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
}

button.menu-toggle {
  display: none;
}

#masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .5rem;
}

#primary-menu {
  margin: 0;
  display: flex;
  gap: 2rem;
}

#primary-menu li {
  position: relative;
}

#primary-menu li a {
  color: #111;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
  position: relative;
}

#primary-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--highlight-color);
  transition: width 0.3s ease-in-out;
}

#primary-menu li a:hover::after {
  width: 100%;
}

#primary-menu li a[aria-current="page"]::after {
  width: 100%;
}

#primary-menu li a[aria-current="page"] {
  color: var(--highlight-color);
}


#primary-menu li a:hover {
  color: var(--highlight-color);
}

#primary-menu li:last-child a {
  background-color: var(--accent-color);
  color: #FFF;
  padding: 5px 32px;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

#primary-menu li:last-child a::after {
  display: none;
}

#primary-menu li:last-child a:hover {
  background-color: #53b0e0;
  color: #FFF;
}

a.custom-logo-link img {
  max-width: 80px;
  height: auto;
}

/* Slider */
#slider .item {
  height: 710px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-color: hsl(0deg 0% 0% / 60%);
  background-blend-mode: multiply;
}

#slider .item .swiper-caption {
  height: 100%;
  display: grid;
  place-content: center;
  grid-template-columns: 100%;
}

#slider .item .swiper-caption .caption {
  color: #FFF;
  width: min(600px, 100%);
  display: grid;
  gap: 22px;
}

#slider .item .swiper-caption .caption h2,
#slider .item .swiper-caption .caption p {
  margin: 0;
}

#slider .item .swiper-caption .caption h2 {
  font-size: 60px;
}

#slider .item .swiper-caption .caption span {
  font-size: 32px;
  display: block;
  margin-block-start: 15px;
  font-weight: 400;
}

/* About */
#about-us .inner-content {
  padding-inline-end: 80px;
  text-align: justify;
  line-height: 1.8;
}

#about-us .inner-content h1 {
  font-size: 26px;
  border-inline-start: 3px solid var(--highlight-color);
  padding-inline-start: 10px;
  margin-block-end: 25px;
}

#about-us .inner-content a {
  margin-block-start: 20px;
}

#about-us figure {
  margin: 0;
  overflow: hidden;
  height: 690px;
}

#about-us figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about-us .image {
  position: relative;
  padding: 20px;
  padding-block: 20px;
}

#about-us .image::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 100%;
  border: 5px solid #F47D4A;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: -1;
}

#about-us .box {
  margin-block-end: 30px;
}

#about-us .box ul {
  list-style: none;
  padding: 0;
}

#about-us .box ul li {
  display: flex;
  align-items: center;
  margin-block-end: 10px;
}

#about-us .box ul li::before {
  content: '';
  height: 2px;
  width: 10px;
  background: var(--accent-color);
  margin-inline-end: 10px;
}

#about-us .box h3 {
  font-size: 25px;
  margin-bottom: 15px;
  color: #F47D4A;
}

#about-us .box figure {
  height: 30px;
  width: 30px;
}

#about-us .box figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

#about-us .box .d-flex {
  margin-block-end: 20px;
  position: relative;
}


#about-us .box p {
  margin: 0;
}

/* service */
.service-box {
  border: 1px solid #f0f0f0;
  padding: 40px 24px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
  background: #fff;
  margin-block-end: 40px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.service-box::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 1%;
  background: var(--highlight-color);
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  left: 0;
  right: 0;
  margin: auto;
  transform: translateY(50%);
}

.service-box:hover::before {
  height: 100%;
  width: 100%;
  transform: translateY(0);
}

.service-box:hover {
  box-shadow: 0px 8px 15px rgba(67, 97, 99, 0.3);
  color: #FFF;
}

.service-box img {
  width: 50px;
  height: 50px;
  object-fit: scale-down;
  margin-block-end: 20px;
  transition: filter 0.3s ease-in-out;
}

.service-box:hover img {
  filter: brightness(0)invert(1);
}

.service-box p {
  margin: 0;
  font-weight: 300;
  position: relative;
}

.service-box h3 {
  font-size: 19px;
  margin-block-end: 16px;
  font-weight: 600;
  position: relative;
}

.service-box figure {
  height: 120px;
  overflow: hidden;
}

.service-box figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

/* our-values */

#our-values {
  background-color: #222126;
  color: #FFF;
  position: relative;
}

#our-values .inner-content ul {
  padding: 0;
  display: grid;
  gap: 1rem;
}

#our-values .inner-content ul li {
  counter-increment: num;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
}

#our-values .inner-content ul li::before {
  content: counter(num, decimal-leading-zero) ".";
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--highlight-color);
  place-content: center;
}

/* client */
#map {
  height: 350px;
}

#map iframe {
  height: 100%;
  width: 100%;
}

/* Contact  */
#contact {
  background-image: url(../images/contact-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #FFF;
}

#contact .head-section {
  color: #FFF;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgb(0 15 16 / 76%);
}

#contact .container {
  position: relative;
  z-index: 1;
}

.box-contact {
  box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
  padding: 54px 40px;
  background: #FFF;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.box-contact:hover {
  box-shadow: 0px 8px 15px rgba(67, 97, 99, 0.3);
}

#contact h5 {
  text-align: center;
}

.contact-info {
  padding-inline-end: 200px;
  line-height: 1.8;
}

.box-contact h4 {
  margin-block-end: 20px;
}

#contact h4 {
  font-size: 19px;
  font-weight: 600;
}

textarea.wpcf7-form-control.wpcf7-textarea.form-control {
  height: 150px;
}

/* article */
.article-box {
  box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
  transition: all 0.3s ease-in-out;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.article-box:hover {
  box-shadow: 0px 8px 15px rgba(67, 97, 99, 0.3);
}

.article-box>a {
  position: absolute;
  inset: 0;
}

.article-box figure {
  height: 250px;
  overflow: hidden;
  margin: 0;
}

.article-box figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-box .caption {
  padding: 20px;
  line-height: 1.8;
}

.article-box .caption p {
  margin: 0;
  font-size: 15px;
  opacity: 83%;
}

.article-box .caption h3 {
  font-size: 18px;
  font-weight: 600;
}

footer .top {
  background-color: #436164;
  color: #FFF;
  padding-block: 55px;
  font-size: 14px;
}

footer figure {
  height: 100px;
  width: 100px;
  margin-block-end: 20px;
  margin-inline: auto;
}

footer figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

footer .top h3 {
  font-size: 18px;
  font-weight: 600;
  margin-block-end: 24px;
}

footer .top p {
  font-size: 15px;
  opacity: 83%;
}

footer .top .social-icons a:hover {
  color: var(--accent-color);
}

footer .top ul {
  list-style: none;
  padding: 0;
}

footer .top ul li {
  display: block;
  margin-block-end: 8px;
}

footer .top ul li a {
  color: #FFF;
  transition: color 0.3s ease-in-out;
}

footer .top ul li a:hover {
  color: var(--highlight-color);
}

footer .copyright {
  padding-block: 20px;
  font-size: 15px;
  background-color: #436164;
  color: #FFF;
  border-block-start: 1px solid #ffffff45;
}

footer .copyright p {
  margin: 0;
}

#logo-close-container {
  display: none;
}

.entry-header {
  position: relative;
  color: #fff;
  padding: 50px 0;
  margin-bottom: 30px;
}

.entry-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.entry-header .entry-title {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  text-align: center;
  margin: 0;
}

.entry-header .entry-title:after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: #fff;
  margin: 20px auto 0;
}

.entry-header .entry-title:before {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: #fff;
  margin: 0 auto 20px;
}

.entry-header .entry-title:after,
.entry-header .entry-title:before {
  position: relative;
  z-index: 1;
}

.entry-header .entry-title:after {
  margin-top: 20px;
}

.entry-header .entry-title:before {
  margin-bottom: 20px;
}

.entry-header .entry-title:after,
.entry-header .entry-title:before {
  width: 50px;
  height: 4px;
  background-color: #fff;
  margin: 0 auto;
}

.entry-content {
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: -50px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.entry-content h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.entry-content h4 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.entry-content ul {
  list-style: none;
  padding: 0;
}

.entry-content ul li {
  margin-bottom: 10px;
}

.entry-content ul li strong {
  font-weight: bold;
}

.entry-content .project-info {
  margin-bottom: 20px;
}

.entry-content .project-info ul {
  list-style: none;
  padding: 0;
}

.entry-content .project-info ul li {
  margin-bottom: 10px;
}

.entry-content .project-info ul li strong {
  font-weight: bold;
}

.entry-content .project-map {
  margin-top: 20px;
}

.entry-content .project-map iframe {
  border: 0;
  border-radius: 5px;
}

.entry-content .project-map h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.entry-content .project-images {
  margin-bottom: 20px;
}

.entry-content .project-images h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.entry-content .project-images .swiper {
  width: 100%;
  height: 450px;
}

.entry-content .project-images .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.entry-content .project-images .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.entry-content .swiper-button-next,
.entry-content .swiper-button-prev {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.entry-content .swiper-button-next:after,
.entry-content .swiper-button-prev:after {
  font-size: 20px;
  color: #fff;
}

.entry-content .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.7;
}

.entry-content .swiper-pagination-bullet-active {
  background: #007bff;
}

.entry-content .swiper-pagination {
  bottom: 10px;
}

.entry-content .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #fff;
  opacity: 0.7;
}

.entry-content .swiper-pagination-bullet-active {
  background: #007bff;
}

.entry-content .swiper-pagination {
  bottom: 10px;
}

#footer-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

#about-us .inner-content ul {
  display: grid;
  padding: 0;
  gap: 10px;
}

@media (max-width:992px) {
  #primary-menu {
    position: fixed;
    background: #fff;
    height: 100vh;
    inset-inline-start: 0;
    width: 250px;
    flex-direction: column;
    top: 0;
    padding-block-start: 40px;
    padding-inline: 25px;
    z-index: 9999;
    transform: translateX(250px);
    transition: 300ms;
  }

  #primary-menu.active {
    transform: translateX(0);
  }

  #logo-close-container {
    display: flex;
    justify-content: space-between;
  }

  #logo {
    background-image: url(../images/Logo.png);
    width: 60px;
    height: 85px;
    background-size: contain;
    background-repeat: no-repeat;
  }

  #closeButton {
    border: 0;
    background: transparent;
    font-size: 20px;
  }

  button.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    font-size: 20px;
  }

  #slider .item {
    height: 450px;
  }

  #slider .item .swiper-caption {
    text-align: center;
    font-size: 15px;
  }

  #slider .item .swiper-caption .d-flex {
    justify-content: center;
  }

  #slider .item .swiper-caption .caption h2 {
    font-size: 40px;
  }

  #slider .item .swiper-caption .caption span {
    font-size: 18px;
  }

  #about-us figure {
    height: 300px;
  }

  #about-us .inner-content {
    padding-inline-end: 0;
    margin-block-end: 30px;
  }

  #our-values {
    padding: 40px 0;
  }

  .service-box {
    margin-block-end: 30px;
  }

  .contact-info {
    padding-inline-end: 0;
  }

  .box-contact {
    padding: 28px;
    margin-block-start: 40px;
  }

  footer .top {
    text-align: center;
    font-size: 14px;
  }

  footer .top .social-icons {
    justify-content: center;
    margin-block-end: 30px;
  }

  footer .copyright p {
    font-size: 11px;
  }

  #about-us .inner-content h1 {
    border: none;
  }

  #about-us .box {
    margin-block-end: 30px;
  }
}