/* Start Global Rules */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");

:root {
  --main-color: #ee1b24;
  --blue-color: #3052e8;
  --warm-color: #ee1b2510;
  --light-color: #ffffff;
  --dark-color: #161616;

  --main-trans: all 0.4s ease-in-out;
}
body {
  color: var(--dark-color);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  direction: rtl !important;
}

p.lead,
li {
  color: var(--dark-color);
}

/* call-btn */
.call-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 12px 40px;
  color: var(--light-color);
  background-color: var(--main-color);
  border: solid 1px var(--main-color);
  border-radius: 100px;
  text-align: center;
  font-weight: bold;
  transition: var(--main-trans);
  font-size: 18px;
  /* font-family: "Cairo", sans-serif; */
}
.call-btn:hover {
  background-color: var(--dark-color);
  border: solid 1px transparent;
}
.call-btn img {
  width: 30px;
  margin-right: 5px;
}

/* End Global Rules */

/* Start Topbar */
.topbar {
  background: #283048; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #859398,
    #283048
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #859398,
    #283048
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.topbar p {
  font-size: 14px;
  font-weight: normal;
  font-family: "Cairo", sans-serif;
  color: var(--light-color) !important;
}
/* End Topbar */

/* Start Navbar */
.navbar {
  background-color: var(--light-color);
  backdrop-filter: blur(8px);
}
.navbar .navbar-brand img {
  width: 180px !important;
}
.navbar .navbar-toggler {
  box-shadow: none !important;
  border: none !important;
}
.navbar .navbar-nav .nav-link {
  font-weight: normal;
  font-size: 20px;
  color: var(--dark-color);
  margin: 10px 25px;
  padding: 0;
  border-bottom: solid 2px transparent;
}
.navbar .navbar-nav a:hover {
  color: var(--dark-color);
  border-bottom: solid 2px var(--main-color);
}
/* End Navbar */

/* Start Showcase */
.showcase {
  padding: 100px 0;
  background-image: url("../img/showcase-img.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.showcase .intro-en {
  direction: ltr;
  display: inline-block;
  background-color: #ee1b2515;
  padding: 0 10px;
  border-radius: 100px;
  color: var(--main-color);
  margin-bottom: 10px;
}
.showcase h1 span {
  color: var(--main-color);
}
.showcase img {
  border-radius: 30px;
}
.showcase h2 {
  color: var(--main-color);
  font-weight: 500;
}

@media (max-width: 768px) {
  .showcase {
    padding: 30px 0;
    background-position: left center;
  }
}
/* End Showcase */

/* Start Features */
.features {
  padding: 100px 0;
}
.features .box {
  background-color: var(--warm-color);
  padding: 20px 15px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}
.features h2 {
  color: var(--main-color);
}
/* End Features */

/* Start About */
.about {
  padding: 100px 0;
}
.about h2 span {
  color: var(--main-color);
  font-weight: 500;
}
/* End About */

/* Start Why Choose Us */
.why-choose-us {
  padding: 100px 0;
  background-color: var(--warm-color);
}
.why-choose-us h2 span {
  color: var(--main-color);
  font-weight: 500;
}
.why-choose-us .box {
  background-color: var(--light-color);
  padding: 20px;
  border-radius: 30px;
  height: 100%;
}
/* End Why Choose Us */

/* Start Services */
.services {
  padding: 50px 0 100px 0;
}
.services h2 span {
  color: var(--main-color);
  font-weight: 500;
}
.services .box {
  background-color: var(--warm-color);
  height: 100%;
  border-radius: 30px;
  padding: 20px 15px;
}
.services .box h3 {
  color: var(--main-color);
  margin-top: 25px;
}
.services .box img {
  border-radius: 30px;
}
.services .services-img {
  border-radius: 30px;
}
/* End Services */

/* Start Testimonials */
.testimonial-section {
  padding: 100px 0;
  background-color: var(--white-color);
}
.testimonial-section h2 {
  color: var(--main-color);
}
.testimonial-section h2 span {
  font-weight: 500;
  border-bottom: solid 5px var(--dark-color);
}
.testimonial-card {
  background-color: var(--warm-color);
  border-radius: 1rem; /* More rounded corners */
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08); /* Stronger shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px; /* Ensure consistent card height */
}
.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}
.testimonial-text {
  font-size: 1.1rem;
  color: var(--dark-color);
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto; /* Push author to the bottom */
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 15px; /* Margin to the left for RTL */
  border: 3px solid var(--main-color); /* Purple border */
}
.author-details {
  text-align: right;
}
.author-name {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 5px;
}
.author-rating .material-icons-star {
  color: rgb(255, 187, 0); /* Yellow stars */
}
.section-title {
  font-size: 2.8rem;
  color: var(--dark-color);
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 15px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 45%; /* Align to right for RTL */
  width: 80px;
  height: 5px;
  background-color: var(--dark-main-color); /* Purple underline */
  border-radius: 5px;
}
.quote-icon {
  font-size: 3rem !important;
  color: var(--main-color); /* Purple quote icon */
  margin-bottom: 20px;
  opacity: 0.7;
}
/* End Testimonials */

/* Start FAQ */
.faq {
  padding: 100px 0;
  background-color: var(--warm-color);
}
.faq h2 {
  color: var(--main-color);
  padding-bottom: 30px;
}
.faq-drawer {
  margin-bottom: 30px;
}

.faq-drawer__content-wrapper {
  font-size: 1.25em;
  line-height: 1.4em;
  max-height: 0px;
  overflow: hidden;
  transition: 0.5s ease-in-out;
}

.faq-drawer__title {
  border-top: #00000023 1px solid;
  cursor: pointer;
  display: block;
  font-size: 1.25em;
  font-weight: 700;
  padding: 30px 0 0 0;
  position: relative;
  margin-bottom: 0;
  transition: all 0.3s ease-out;
}
.faq-drawer__title:hover {
  color: var(--main-color) !important;
}

.faq-drawer__title::after {
  border-style: solid;
  border-width: 1px 1px 0 0;
  content: " ";
  display: inline-block;
  float: left;
  height: 10px;
  left: 2px;
  position: relative;
  left: 20px;
  top: 2px;
  transform: rotate(135deg);
  transition: 0.5s ease-in-out;
  vertical-align: top;
  width: 10px;
}

/* OPTIONAL HOVER STATE */
.faq-drawer__title:hover {
  color: #4e4b52;
}

.faq-drawer__trigger:checked
  + .faq-drawer__title
  + .faq-drawer__content-wrapper {
  max-height: 350px;
}

.faq-drawer__trigger:checked + .faq-drawer__title::after {
  transform: rotate(-45deg);
  transition: 0.5s ease-in-out;
}

input[type="checkbox"] {
  display: none;
}
/* End FAQ */

/* Start Contact */
.contact {
  padding: 100px 0;
  background-color: var(--dark-color);
}
.contact > p.lead {
  color: var(--light-color) !important;
}
.contact h2 {
  line-height: 1.6;
  color: var(--main-color);
  font-weight: 500;
}
.contact img {
  margin: 30px 0;
  border-radius: 30px !important;
}
.phone-section {
  padding: 60px 0;
  text-align: center;
}

.section-title {
  color: var(--dark-color);
  margin-bottom: 40px;
  font-weight: 500;
  font-size: 2.5rem;
}

.phone-card {
  background-color: var(--warm-color);
  color: var(--white-color);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px; /* Ensure consistent height for cards */
}

.phone-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.phone-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--main-color);
  font-weight: 500;
}

.phone-number-link {
  color: var(--light-color);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.phone-number-link:hover {
  color: var(--main-color);
}

.phone-number-link i {
  font-size: 1.5rem;
}

.hotline-card {
  background-color: var(--main-color);
  color: var(--white-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  min-height: 150px; /* Larger for hotline */
}

.hotline-card h3 {
  color: var(--light-color);
  font-size: 1.8rem;
}

.hotline-card .phone-number-link {
  font-size: 2.5rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .phone-card {
    padding: 20px;
    min-height: 100px;
  }
  .phone-card h3 {
    font-size: 1.3rem;
  }
  .phone-number-link {
    font-size: 1.5rem;
  }
  .hotline-card {
    min-height: 120px;
  }
  .hotline-card h3 {
    font-size: 1.5rem;
  }
  .hotline-card .phone-number-link {
    font-size: 2rem;
  }
}
/* End Contact */

/* Start Footer */
footer {
  background-color: var(--dark-color);
  padding: 20px 10px;
}
footer a {
  color: var(--blue-color);
}
@media (max-width: 768px) {
  footer {
    text-align: center;
  }
}
/* End Footer */

/* Bottom Btns */
.bottom-btns {
  display: flex;
  position: fixed;
  bottom: 15px;
  left: 15px;
  flex-direction: column;
  z-index: 1000;
}
.bottom-btns .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 5px 0;
  border-radius: 50%;
  padding: 0;
  transition: 0.3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.bottom-btns .btn img {
  width: 30px;
  height: 30px;
  margin: 0;
}
.bottom-btns .hotline-btn {
  background-color: var(--blue-color);
  animation: 2s infinite pulse;
}
.bottom-btns .whatsapp-btn {
  background-color: #25d366;
}
.bottom-btns .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 60, 253, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(253, 49, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(253, 49, 46, 0);
  }
}
