/* Header */

.header {
  width: 100%;
}

.header-3 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 100%;
  margin: auto;
}

.mobile-header,
.nav-overlay {
  display: none;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
}

.logo {
  max-width: 200px;
  height: auto;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-title {
  font-size: 20px;
  font-weight: bold;
  margin-left: 20px;
}

.middle-section {
  justify-self: center;
}

.middle-section nav ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

.header .nav-link a {
  text-decoration: none;
  font-size: 700;
  color: #111324
}

.mobile-nav {
  display: none;
}

.nav-link a:hover {
  color: RGB(88, 64, 186);
  text-decoration: underline;
  text-decoration-color: RGB(88, 64, 186);
  text-decoration-thickness: 4px;
  text-decoration-style: solid;
}

.right-section {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 20px;
  margin-right: 50px;
}

.phone-number {
  font-size: 20px;
  margin-right: 20px;
  font-weight: bold;
}

.about-us {
  font-size: 16px;
  font-weight: bold;
  background-color: RGB(88, 64, 186);
  border-color: RGB(88, 64, 186);
  color: white;
  border-radius: 20px;
  padding: 10px 26px;
}

.bg-green {
  background-color: var(--secondary-color);
}

.about-us:hover {
  background-color: rgb(66, 43, 159);
  border-color: rgb(66, 43, 159);
}

/* Main Head */

.main-head h1 {
  text-align: center;
}

.hero-top-content {
  max-width: 1800px;
  padding: 20px 0;
}

.on-the-phone {
  width: 100%;
  height: auto;
}

/* Mission */

.mission-title img {
  width: 100%;
  height: auto;
}

/* Why us */

.choose-us {
  max-height: 700px;
  position: relative;
}

.deco {
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
  transform: rotate(-50deg)
}

.top-left {
  top: 20px;
  left: 20px;
  fill: var(--secondary-color);
}

.bottom-left {
  bottom: 40px;
  left: 30px;
  fill: #F8CA5F;
}

.bottom-right {
  bottom: 20px;
  right: 50px;
  fill: rgb(88, 64, 186);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.why-choose-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  height: 100%;
}

.choose-us-img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
}

.choose-us-title {
  font-size: x-large;
  font-weight: 700;
  color: var(--primary-color);
  padding: 20px 0;
}

.choose-us-title .highlight {
  color: var(--secondary-color);
}

.success-list {
  list-style: none;
}

.success-list li:before {
  content: "\2714\0020";
  color: var(--secondary-color);
  margin-right: 10px;
}

.success-list li {
  display: flex;
  margin-top: 10px;
  align-items: center;
  justify-content: start;
  text-align: left;
}

.body-about-us {
  padding: 30px 0;
}

/* Main nos services */

.our-services {
  background-color: var(--secondary-color);
  position: relative;
  padding: 20px 0;
  overflow: hidden;
}

.border {
  position: absolute;
  width: 250px;
  height: 250px;
  transform: rotate(45deg);
  fill: RGB(248, 202, 95);
  transform-origin: center;
}

.border.left {
  top: 0;
  left: -125px;
}

.border.right {
  right: -125px;
  bottom: 0;
}

.service-title {
  font-weight: 600;
  padding: 20px 0;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
}

.service-item {
  background-color: white;
  max-width: 500px;
  height: 100%;
  padding: 30px 20px;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.service-list-title {
  padding: 10px 0;
  font-size: 18px;
  color: #111324;
}

.service-img {
  width: 100%;
  height: auto;
}

.service-item:hover {
  background-color: lightgray;
}

/* Intervention */

.inter {
  gap: 90px;
}

.intervention-action {
  max-width: 350px;
  height: auto;
}

/* Feedbacks */

.feedback {
  background-color: var(--secondary-color);
  padding: 20px 0;
}

.feedback-title {
  display: grid;
  padding: 20px 0;
}

.feedback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  row-gap: 30px;
}

.customer {
  display: flex;
  flex-direction: column;
  background-color: white;
  height: 100%;
  text-align: center;
  row-gap: 15px;
  border-radius: 20px;
  width: 100%;
  min-width: 300px;
  padding: 10px 0;
}

.customer p {
  padding: 0 10px;
  text-align: center;
  font-weight: 400;
}

.quote-icon {
  font-size: 30px;
  color: rgb(66, 43, 159);
}

.info .name {
  font-size: 14px;
  font-weight: 600;
}

/* our-services */

.our-service-head {
  text-align: center;
  min-height: 100px;
}

.our-service-sub-head img {
  width: 100%;
  height: auto;
}

.our-service-sub-head li::before,
.our-service-main li::before,
.mission-text li:before {
  content: "\2714\0020";
  color: var(--secondary-color);
  margin-right: 10px;
}

.our-service-text {
  height: 100%;
  color: white
}

.our-service-main-img img {
  width: 100%;
  height: auto;
}


.our-service-main-title,
.our-service-main-title p {
  text-align: center;
}

.service-gap {
  row-gap: 80px;
}


/* Contact */
.contact {
  max-height: 400px;
  position: relative;
}

.arrow-left {
  position: absolute;
  fill: rgb(88, 64, 186);
  transform: rotate(10deg);
  top: 35%;
  left: 800px;
  transition: all 1s ease;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px 40px;
}

.contact-left h2 {
  font-size: 2rem;
  font-weight: bold;
  color: rgb(12, 15, 38);
  padding: 20px 0;
}

.highlight {
  color: var(--secondary-color);
}

.contact-number {
  font-size: 2.5rem;
  margin-right: 20px;
  font-weight: bold;
  text-decoration: none;
  color: RGB(88, 64, 186);
}

/* Deontologie */

.deontologie-head {
  text-align: center;
  max-height: 200px;
}

.deontologie-main h3 {
  text-align: center;
}
/* About Us */

.about-head {
  text-align: center;
  min-height: 100px;
}

.about-main h2 {
  text-align: center;
}

.about-sub-main img {
  width: 100%;
  height: auto;
}

.about-main h4 {
  margin: 20px 0;
}

.about-main-text li::before {
  content: "\2714\0020";
  color: var(--secondary-color);
  margin-right: 10px;
}

.intro-main p {
  text-align: center;
}

.footer h2 {
  font-size: 1rem;
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 100;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#backToTop:hover {
  background-color: #555;
}

/* Responsive */

/* Mobile */

@media(max-width: 500px) {

  .header-3 {
    display: none;
  }

  .mobile-header,
  .nav-overlay {
    display: block;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
  }

  .logo {
    max-width: 110px;
  }

  .mobile-menu-icon {
    cursor: pointer;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-overlay.open {
    right: 0;
  }

  .nav-content {
    padding: 20px;
  }

  .nav-content .close-btn {
    font-size: 30px;
    cursor: pointer;
    display: block;
    text-align: right;
  }

  .nav-content ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
  }

  .nav-content ul li {
    margin-bottom: 20px;
  }

  .nav-content ul li a {
    text-decoration: none;
    color: #111324;
    font-weight: bold;
    font-size: 18px;
  }

  .success-list,
  .our-service-main ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .success-list li,
  .our-service-main li {
    width: 100%;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero-top-content img,
  .our-service-sub-head img,
  .our-service-main img,
  .about-sub-main-img img,
  .about-main-text-img img,
  .why-us-img img {
    max-width: 90%;
  }

  .deco,
  .border,
  .arrow-left {
    display: none;
  }

  .choose-us {
    max-height: none !important;
    padding: 20px 0;
  }

  .choose-us-title{
    padding: 10px 0;
  }
  
  .grid,
  .grid-1,
  .grid-2,
  .service-gap {
    grid-template-columns: 1fr !important;
    overflow: visible;
    padding: 0 10px;
  }

  .our-services,
  .feedback,
  .contact,
  .our-service-head {
    max-height: none !important;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .our-service-main-img img {
    max-height: none;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
    padding: 20px 0;
  }

  .our-service-main-text h3 {
    text-align: center !important;
  }

  .intervention-action {
    max-width: 100%;
    height: auto;
  }

  .flex-3 {
    flex-direction: column;
    row-gap: 20px;
  }

}

/* Tablets */

@media(max-width: 768px) {

  .header-3 {
    display: none;
  }

  .mobile-header,
  .nav-overlay {
    display: block;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
  }

  .mobile-menu-icon {
    cursor: pointer;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-overlay.open {
    right: 0;
  }

  .nav-content {
    padding: 20px;
  }

  .nav-content .close-btn {
    font-size: 30px;
    cursor: pointer;
    display: block;
    text-align: right;
  }

  .nav-content ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
  }

  .nav-content ul li {
    margin-bottom: 20px;
  }

  .nav-content ul li a {
    text-decoration: none;
    color: #111324;
    font-weight: bold;
    font-size: 18px;
  }

  .success-list,
  .our-service-main ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .success-list li,
  .our-service-main li {
    width: 100%;
  }
  
  h2 {
    font-size: 2rem;
  }

  .hero-top-content img,
  .our-service-sub-head img,
  .our-service-main img,
  .about-sub-main-img img,
  .about-main-text-img img,
  .why-us-img img {
    max-width: 100%;
  }

  .deco,
  .border,
  .arrow-left {
    display: none;
  }

  .choose-us {
    max-height: none !important;
  }

  .choose-us :nth-child(1) {
    border-color: var(--secondary-color);
    justify-self: center;
    margin-right: 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .our-services {
    max-height: none;
  }

  .our-service-main-img img {
    max-height: none;
  }

  .our-service-main h3 {
    text-align: center !important;
  }

  .feedback {
    max-height: none !important;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
    padding: 20px 0;
  }

  .quote-badge {
    bottom: 43% !important;
    left: 12% !important;
  }

  .contact {
    max-height: none;
  }

  .flex-3 {
    flex-direction: column;
    row-gap: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .service-gap h3 {
    text-align: center;
  }

  .our-service-head {
    max-height: none !important;
  }

  .intervention-action {
    max-width: 100%;
    height: auto;
  }

}

@media(max-width: 1268px) {
  .header-3 {
    display: none;
  }

  .mobile-header,
  .nav-overlay {
    display: block;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
  }

  .mobile-menu-icon {
    cursor: pointer;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-overlay.open {
    right: 0;
  }

  .nav-content {
    padding: 20px;
  }

  .nav-content .close-btn {
    font-size: 30px;
    cursor: pointer;
    display: block;
    text-align: right;
  }

  .nav-content ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
  }

  .nav-content ul li {
    margin-bottom: 20px;
  }

  .nav-content ul li a {
    text-decoration: none;
    color: #111324;
    font-weight: bold;
    font-size: 18px;
  }

    .success-list,
  .our-service-main ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .success-list li,
  .our-service-main li {
    width: 100%;
  }


  h2 {
    font-size: 2rem;
  }

  .hero-top-content img,
  .our-service-sub-head img,
  .our-service-main img,
  .about-sub-main-img img,
  .about-main-text-img img,
  .why-us-img img {
    max-width: 100%;
  }

  .deco,
  .border,
  .arrow-left {
    display: none;
  }

  .choose-us {
    max-height: none !important;
  }

  .choose-us :nth-child(1) {
    border-color: var(--secondary-color);
    justify-self: center;
    margin-right: 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .our-services {
    max-height: none;
  }

  .our-service-main-img img {
    max-height: none;
  }

  .our-service-main h3 {
    text-align: center !important;
  }

  .feedback {
    max-height: none !important;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
    padding: 20px 0;
  }

  .quote-badge {
    bottom: 43% !important;
    left: 12% !important;
  }

  .contact {
    max-height: none;
  }

  .flex-3 {
    flex-direction: column;
    row-gap: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .our-service-head {
    max-height: none !important;
  }

  .service-gap h3 {
    text-align: center;
  }

  .intervention-action {
    max-width: 100%;
    height: auto;
  }

  #backToTop.show {
    display: block;
  }
}