:root {
  --primary: #0a1f3d;
  --accent: #ff6a00;
  --light: #f8f9fa;
  --dark: #212529;
  --muted: #6c757d;
  --border: #dee2e6;
} */

* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  /* background-color: var(--primary) !important; */
  /* padding: 0.7rem 0; */
  border-bottom: 1.5px solid rgb(6 104 195);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 58px;
}

.nav-link {
  color: #000 !important;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgb(6 104 195) !important;
}

.phone {
  cursor: pointer;
}

.phone:hover {
  color: #0b5ed7 !important;
  transition: 0.5s;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: black;
}

.contact-info img {
  width: 16px;
  filter: brightness(0) invert(1);
}

.contact-info .phone {
  font-weight: 600;
  font-size: 16px;
}

.contact-info a {
  background-color: rgb(6 104 195);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: #0b5ed7 !important;
  transform: translateY(-1px);
  color: white;
}

.about_us a {
  background-color: rgb(6 104 195);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
}

.about_us a:hover {
  background-color: #0b5ed7 !important;
  transform: translateY(-1px);
  color: white;
}

.W_we_do a {
  background-color: rgb(6 104 195);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
}

.W_we_do a:hover {
  background-color: #0b5ed7 !important;
  transform: translateY(-1px);
  color: white;
}

/* HERO */
.hero-section {
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-section img {
  /* minor black shade */
  position: sticky;
}

.main_title {
  align-items: center !important;
  background-color: #ffffffe1 !important;
  height: auto !important;
  width: 50% !important;
  border-radius: 10px;
  padding: 10px !important;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .main_title {
    align-items: center !important;
    background-color: #ffffffe1 !important;
    height: auto !important;
    width: 95% !important;
    border-radius: 10px;
    padding: 10px !important;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    cursor: pointer;
  }
}

.main_title h1 {
  color: #000000bd !important;
}

.main_title1 h1 {
  margin: 0px;
}

.main_title1 {
  align-items: center !important;
  background-color: rgba(2, 108, 207, 0.74) !important;
  height: auto !important;
  width: 22% !important;
  border-radius: 10px;
  padding: 10px !important;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .main_title1 {
    align-items: center !important;
    background-color: rgba(2, 108, 207, 0.74) !important;
    height: auto !important;
    width: 70% !important;
    border-radius: 10px;
    padding: 10px !important;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    cursor: pointer;
  }
}

.hero-section h1 {
  font-size: 35px !important;
}

.hero-section h2 {
  letter-spacing: 5px;
  word-spacing: 10px;
  color: rgb(36, 149, 255) !important;
}

/* SECTIONS */
/* .py-5 {
  padding: 4.5rem 0 !important;
} */

.bg-light {
  background-color: var(--light) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-warning {
  color: var(--accent) !important;
}

/* BUTTONS */



.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

/* IMAGES */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: 12px !important;
}

.shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* INDUSTRY BG */
.industry-bg {
  background: linear-gradient(rgb(0 64 155 / 92%), rgba(10, 31, 61, 0.92)), url(../images/industry-bg.jpg) center / cover no-repeat;
  color: white;
}

/* REGIONAL OFFICES */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.flip-container {
  perspective: 1000px;
  justify-content: center;
  display: grid;
}

.flip-card {
  width: 350px;
  /* Plus large */
  height: 400px;
  /* Plus haut */
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
  margin: 10px;
}

.flip-card:hover {
  transform: rotateY(180deg);
}

.flip-card .front,
.flip-card .front {
  padding: 100px;
}

.flip-card .front,
.flip-card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: grid;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 15px;
  border: 2px solid rgb(6 104 195);
  /* Bord rose transparent */
  box-shadow: 0 0 15px rgba(6, 104, 195, 0.8);
  /* Effet néon */
  background: #0a1f3d;
  /* Fond semi-transparent */
  color: white;
}

.flip-card .front {
  background-image: url(../assets/images/engineering.jpg);
}

.flip-card .back {
  background-color: rgb(6 104 195);
  /* Fond semi-transparent */
  transform: rotateY(180deg);
}

.flip-container .flip-card .front h2 {
  font-weight: 700;
  padding: 10px;
}

/* ------------- */



/*==================== REUSABLE CSS CLASSES ====================*/


/*==================== SERVICE CARD ====================*/
.card__container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  width: 100%;
  max-width: 90%;
  margin: auto;
  padding: 60px 0;

}

.card__content h3 {
  font-weight: 600 !important;
}

.card__bx {
  --dark-color: #ffffff;
  --dark-alt-color: #777777;
  --white-color: #000000;
  --transition: 0.5s ease-in-out;
  border-radius: 20px !important;
  font-family: inherit;
  font-weight: 600;
  height: 350px;
  width: 300px;
  border: 5px solid rgb(6 104 195);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--dark-color);
  transition: var(--transition);
}

.card__bx:hover {
  border-radius: 10px !important;
  border: 5px solid white;
}

.card__bx::before,
.card__bx::after {
  content: "";
  position: absolute;
  z-index: -1;
  transition: var(--transition);
}

.card__bx::before {
  inset: -10px 50px;
  border-top: 4px solid var(--clr);
  transform: skewY(15deg);
  border-bottom: 4px solid var(--clr);

}

.card__bx:hover::before {
  inset: -10px 40px;
  transform: skewY(0deg);
}

.card__bx::after {
  /* inset: 60px -10px; */
  border-left: 4px solid var(--clr);
  transform: skew(15deg);
  border-right: 4px solid var(--clr);
}

.card__bx:hover::after {
  /* inset: 40px -10px; */
  transform: skew(0deg);
}

.card__bx .card__data {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  text-align: center;
  padding: 0 20px;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.card__bx .card__data .card__icon {
  height: 80px;
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: var(--text-color);
  background-color: var(--dark-color);
  transition: var(--transition);
}

.card__bx .card__data .card__icon {
  color: var(--clr);
  box-shadow: 0 0 0 4px var(--dark-color), 0 0 0 6px var(--clr);
}

.card__bx:hover .card__data .card__icon {
  color: var(--dark-color);
  background-color: var(--clr);
  box-shadow: 0 0 0 4px var(--dark-color), 0 0 0 300px var(--clr);
}

.card__bx .card__data .card__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.card__bx .card__data h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white-color);
  transition: var(--transition);
}

.card__bx:hover .card__data h3 {
  color: var(--dark-color);
  transition: var(--transition);
}

.card__bx .card__data p {
  font-size: 0.9rem;
  color: var(--dark-alt-color);
  transition: var(--transition);
}

.card__bx:hover .card__data p {
  color: var(--dark-color);
  transition: var(--transition);
}

.card__bx .card__data a {
  position: relative;
  display: inline-flex;
  padding: 8px 15px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 10px;
  border: 2px solid var(--clr);
  color: var(--dark-color);
  background-color: var(--clr);
  transition: var(--transition);
}

.card__bx:hover .card__data a {
  color: var(--clr);
  background-color: var(--dark-color);
}

.card__bx:hover .card__data a:hover {
  border-color: var(--dark-color);
  color: var(--dark-color);
  background-color: var(--clr);
}

/* FOOTER - EXACT KRH STYLE */
footer {
  background-color: white !important;
  color: #fff;
  font-size: 0.9rem;
}

footer h6 {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

footer a {
  transition: color 0.3s ease;
}

footer a.hover-orange:hover {
  color: #ff6a00 !important;
}

footer .text-warning {
  color: #0b5ed7 !important;
  font-size: 20px;
}

footer p,
footer li {
  line-height: 1.7;
}
footer li a{
  color: rgb(0, 0, 0) !important;
  font-size: 16px;
}
footer strong{
  color: rgb(0, 0, 0) !important;
   font-size: 16px;
   font-weight: 100 !important;
}
footer strong a{
  color: rgb(0, 0, 0) !important;
   font-size: 16px;
}
footer p {
  color: rgb(0, 0, 0) !important;
   font-size: 16px !important;
}
footer p span{
  color: rgb(0, 0, 0) !important;
   font-size: 16px !important;
}
footer p span a{
  text-decoration: none;
  color: rgb(0, 0, 0) !important;
   font-size: 16px !important;
}
.ht{
 border-top:1px solid #dfdfdf;
}
.ht a{
  text-decoration: none;
  font-weight: 900;
  color:#0b5ed7;
}

/* Responsive */
@media (max-width: 768px) {
  footer .col-md-3 {
    text-align: center !important;
  }

  footer .text-md-end {
    text-align: center !important;
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .contact-info {
    display: none !important;
  }

  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }

  .navbar-brand img {
    height: 34px;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem !important;
  }

  .hero-section h2 {
    font-size: 2.5rem !important;
  }

  /* .py-5 {
    padding: 3rem 0 !important;
  } */
}

@media (max-width: 768px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
  }
}