:root {
  --color-black: #000000;
  --color-brown: #73543b;
  --color-tertiary: #f0f0f0;
  --color-white: #ffffff;
  --color-gray: #666666;
  --color-light: #f9f9f9;
}

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--color-gray);
  line-height: 1.8;
}

a {
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-brown);
}

#page {
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-brown);
  transition: background-color 0.3s ease;
  border-color: var(--color-brown);
  padding: 7px 34px;
}

.btn-primary:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
}

.head-section {
  color: var(--color-brown);
  font-weight: bold;
  margin-bottom: 12px !important;
  font-size: 24px;
}

.head-section:not(.text-center) {
  text-align: start !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-white);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-family: 'swiper-icons';
  font-size: 14px;
  color: var(--color-white);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.8);
}

textarea.form-control {
  height: 130px;
}

::selection {
  background: var(--color-brown);
  color: var(--color-white);
}


.head-section small,
.head-section small h1 {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  color: var(--color-black);
  font-weight: 400;
  margin: 0;
}

.head-section h2 {
  font-weight: 600;
}

.head-section small::after {
  content: '';
  height: 2px;
  width: 30px;
  background: var(--color-brown);
}

/* Header */

#masthead {
  background: var(--color-white);
  padding-block: 10px;
}

.custom-logo-link img {
  max-width: 100px;
  height: auto;
  display: block;
}

#masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#primary-menu {
  position: fixed;
  height: 100vh;
  background: var(--color-white);
  width: 250px;
  inset-inline-start: 0;
  top: 0;
  padding: 20px 30px;
  list-style-type: none;
  box-shadow: 0 1px 5px #00000012;
  transform: translateX(260px);
  transition: all 300ms;
  margin: 0;
  z-index: 10000000;
}

#primary-menu.active {
  transform: translateX(0);
}

#primary-menu li a {
  padding: 5px 0;
  font-size: 16px;
  display: block;
  color: #111;
  font-weight: 500;
}

#primary-menu li.current-menu-item a {
  color: var(--color-brown);
}

#primary-menu li.current-menu-item a::after {
  width: 100%;
}

.menu-toggle {
  border: 0;
  background: transparent;
  padding: 2px 7px;
}


/* home-slider */

#home-slider {
  position: relative;
}

#home-slider .swiper-slide {
  height: 320px;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

#home-slider .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#home-slider .image-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home-slider .slider-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-tertiary);
  z-index: 2;
  text-align: center;
}

#home-slider .slider-caption h5 {
  font-size: 13px;
}

#home-slider .slider-caption span {
  font-weight: 700;
  display: block;
  font-size: 38px;
  margin-top: 12px;
}

#home-slider .slider-caption p {
  font-size: 14px;
}

/* about */

#about-us .box {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 1px 5px #00000012;
  padding: 30px;
}

#about-us .box figure {
  height: 100px;
  width: 100%;
}

#about-us .box figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

#about-us .box h4 {
  color: var(--color-black);
  font-size: 18px;
  font-weight: 600;
}

#about-us .inner-content {
  margin-block-end: 36px;
}

/* offers */
.offer-item {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 1px 5px #00000012;
  overflow: hidden;
}

.offer-item figure {
  height: 260px;
  width: 100%;
  margin: 0;
}

.offer-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-item .offer-content {
  padding: 20px;
}

.offer-item h4 {
  font-size: 18px;
  font-weight: 600;
}

.offer-item h4 a {
  color: var(--color-black);
  text-decoration: none;
}

.offer-item h4 a:hover {
  color: var(--color-brown);
}

.offer-item p {
  font-size: 15px;
}

/* product-item */
.product-item {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 1px 5px #00000012;
}

.product-item .product-content .image {
  display: block;
  height: 250px;
}

.product-item .product-content .image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-item .product-content {
  padding: 20px;
}

.product-item .product-content h4 {
  font-size: 18px;
  font-weight: 600;
}

.product-item .product-content h4 a {
  color: var(--color-black);
  text-decoration: none;
}

.product-item .product-content h4 a:hover {
  color: var(--color-brown);
}

.product-item .product-content p {
  font-size: 15px;
}

.service-item {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 1px 5px #00000012;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid var(--color-brown);
}

.service-item:hover {
  box-shadow: 0 2px 10px #00000020;
  transition: box-shadow 0.3s ease;
}

.service-item figure {
  height: 100px;
  width: 100%;
}

.service-item figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.service-item h4 {
  color: #111;
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
}

.service-item p {
  font-size: 15px;
  margin-top: 10px;
  margin: 0;
}

/* material-item */

.material-item {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 1px 5px #00000012;
  padding: 20px;
  text-align: center;
}

.material-item:hover {
  box-shadow: 0 2px 10px #00000020;
  transition: box-shadow 0.3s ease;
}

.material-item .image {
  display: block;
  height: 200px;
  margin-bottom: 15px;
}

.material-item .image img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.material-item h4 {
  font-size: 18px;
  font-weight: 600;
}

.material-item h4 a {
  color: var(--color-black);
  text-decoration: none;
}

.material-item h4 a:hover {
  color: var(--color-brown);
}

.material-item .material-price {
  font-size: 16px;
  color: var(--color-brown);
  margin: 0;
}

.material-item small {
  display: block;
  font-size: 12px;
  color: var(--color-gray);
}

/* acalat-item */
.acalat-item {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 1px 5px #00000012;
  padding: 20px;
  text-align: center;
}

.acalat-item:hover {
  box-shadow: 0 2px 10px #00000020;
  transition: box-shadow 0.3s ease;
}

.acalat-item .image {
  display: block;
  height: 200px;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 10px;
}

.acalat-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acalat-item h4 {
  font-size: 18px;
  font-weight: 600;
}

.acalat-item h4 a {
  color: var(--color-black);
  text-decoration: none;
}

.acalat-item h4 a:hover {
  color: var(--color-brown);
}

.acalat-item p {
  font-size: 15px;
  margin: 0;
}


/* news */

.news-item {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 5px #00000012;
  margin-bottom: 30px;
  overflow: hidden;
}

.news-item figure {
  height: 200px;
  margin: 0;
}

.news-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item .news-content {
  padding: 20px;
}

.news-item h3 {
  color: #111;
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
}

.news-item p {
  font-size: 15px;
  margin-top: 10px;
}

/* clients */
.box-client {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 5px #00000012;
  padding: 30px;
}

.box-client figure {
  height: 100px;
  width: 100%;
  margin: 0;
}

.box-client figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

/* statistics */

#statistics .head-section small {
  color: #FFF;
}

#statistics .head-section small::after {
  background: #FFF;
}

.stat-box {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 5px #00000012;
  padding: 30px;
  text-align: center;
  color: #111;
}

.stat-box h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.stat-box p {
  font-size: 16px;
  margin: 0;
}

.stat-box i {
  font-size: 40px;
  color: var(--color-brown);
  margin-bottom: 10px;
}

/* testimonials */

#testimonials figure {
  overflow: hidden;
  height: 310px;
  border-radius: 10px;
}

#testimonials figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


#testimonials .testimonial-item p {
  font-size: 17px;
}

#testimonials .testimonial-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 80px;
}

#testimonials .testimonial-item h5 {
  font-size: 20px;
  color: var(--bs-danger-text-emphasis);
  margin: 10px 0;
}

#testimonials .testimonial-item h5 span {
  display: block;
  font-size: 16px;
  margin-top: 5px;
  color: #666;
}

/* contact-form */
#contact-form {
  background: #f9f9f9;
}

#contact-form .content {
  background: #73543b;
  padding: 45px;
  color: #FFF;
  margin-bottom: 30px;
}

#contact-form .content>h2 {
  font-size: 26px;
  margin-bottom: 20px;
  font-weight: 600;
}

#contact-form .content p {
  font-size: 16px;
  margin: 0;
}

#contact-form .content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#contact-form .content ul li {
  display: flex;
  align-items: center;
  margin-bottom: 35px;
  gap: 16px;
}

#contact-form .content ul li h2 {
  font-size: 20px;
  margin: 0;
}

#contact-form .content ul li .info {
  flex: 1;
}

#contact-form .content ul li i {
  font-size: 46px;
  width: 60px;
  flex: 0 0 auto;
  text-align: center;
}

#contact-form .content ul li span {
  font-size: 16px;
}

#contact-form .content a {
  color: #FFF;
}

form.wpcf7-form.init,
input[type="tel"],
input[type="email"] {
  direction: rtl !important;
}

/* Footer */

footer {
  background: #101010;
  color: #FFF;
  padding: 50px 0 0;
}

footer .item-footer {
  margin-block-end: 16px;
}

footer .item-footer h3 {
  color: #FFF;
  font-size: 20px;
  margin-bottom: 15px;
}

footer .item-footer a {
  color: #FFF;
}

footer .item-footer a:hover {
  color: #1b6c00;
}

footer .item-footer figure img {
  max-width: 150px;
  height: auto;
  margin-inline: auto;
  display: block;
  filter: brightness(0)invert(1);
}

footer .item-footer ul {
  padding: 0;
  list-style-type: none;
}

.social ul {
  padding: 0;
  list-style-type: none;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social ul li a {
  color: #FFF;
}

.social ul li a:hover {
  color: #1b6c00;
}

.copyright {
  background: #000;
  color: #FFF;
  padding: 20px 0;
  text-align: center;
}

.copyright p {
  margin: 0;
}

#muqawalat .row {
  flex-direction: column-reverse;
}

@media (min-width:992px) {

  #muqawalat .row {
    flex-direction: row;
  }

  .menu-toggle {
    display: none;
  }

  .custom-logo-link img {
    max-width: 130px;
  }

  #primary-menu {
    position: static;
    height: auto;
    width: auto;
    transform: translateX(0);
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: row;
  }

  #primary-menu li {
    margin: 0 15px;
  }

  #primary-menu li a {
    padding: 10px 0;
    font-size: 16px;
    display: block;
    color: #111;
    font-weight: 500;
  }

  #primary-menu li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-brown);
    transition: width 0.3s ease;
  }

  #primary-menu li a:hover::after {
    width: 100%;
  }

  #primary-menu li.current-menu-item a {
    color: var(--color-brown);
  }

  #primary-menu li.current-menu-item a::after {
    width: 100%;
  }

  #primary-menu li a:hover {
    color: var(--color-brown);
  }

  #primary-menu li:last-child {
    margin-right: 0;
  }

  #primary-menu li:last-child a {
    background-color: var(--color-brown);
    color: #FFF;
    padding: 10px 20px;
    border-radius: 5px;
  }

  #home-slider .swiper-slide {
    height: 650px;
  }

  #home-slider .slider-caption h5 {
    font-size: 22px;
    font-weight: 300;
    max-width: 400px;
  }

  #home-slider .slider-caption span {
    font-size: 47px;
  }

  #home-slider .slider-caption p {
    font-size: 16px;
    max-width: 480px;
  }

  #home-slider .slider-caption {
    text-align: start;
    align-items: flex-start;
  }

  .news-item figure {
    height: 250px;
  }

  #contact-form .content {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .form-content {
    padding-block: 50px;
  }

  footer .item-footer {
    margin: 0;
  }

}