/* ===================================================== */
/* ROOT VARIABLES */
/* ===================================================== */
:root {
  --brand-blue: #0b2260;
  --bg-light: #ffffff;
  --bg-dark: #0e1628;
  --text-light: #ffffff;
  --text-dark: #000000;
  --accent-orange: #ff5e14;
}

/* ===================================================== */
/* GLOBAL STATES */
/* ===================================================== */
body {
  background: var(--bg-light);
  color: var(--text-dark);
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark p,
body.dark span,
body.dark a,
body.dark .info-text,
body.dark .nav-link {
  color: var(--text-light) !important;
}

/* ===================================================== */
/* TOP INFO BAR */
/* ===================================================== */
.top-info-bar {
  background: #eef4fd;
}

.info-text {
  font-size: 14px;
  font-weight: 600;
}

.info-link {
  color: #0b2260;
}

.info-link:hover {
  text-decoration: underline;
  color: var(--accent-orange);
}

/* ===================================================== */
/* LOGO & NAVBAR */
/* ===================================================== */
.main-logo {
  height: 60px;
  margin-top: 1.5rem;
}

.navbar-toggler {
  margin-top: 1.5rem;
  background: #0b2260;
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===================================================== */
/* OFFCANVAS MENU (MOBILE) */
/* ===================================================== */
.offcanvas {
  background: #ffffff;
}

.offcanvas-title {
  font-weight: 700;
}

.nav-link {
  font-size: 15px;
  color: #0b2260;
}

/* ===================================================== */
/* MOBILE OFFCANVAS CONTACT */
/* ===================================================== */
.mobile-contact {
  font-size: 14px;
}

.contact-item {
  margin-bottom: 14px;
}

.mobile-contact strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #0b2260;
}

.mobile-contact p {
  margin: 0;
  font-weight: 600;
  color: #0b2260;
}

.mobile-contact a {
  color: inherit;
  text-decoration: none;
}

.contact-icon {
  width: 18px;
  height: 18px;
  fill: var(--accent-orange);
}

/* ===================================================== */
/* MOBILE SOCIAL ICONS */
/* ===================================================== */
.mobile-social {
  display: flex;
  gap: 14px;
}

.mobile-social a {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-social svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-orange);
}



/* ===================================================== */
/* TOP INFO BAR – DESKTOP SOCIAL ICONS */
/* ===================================================== */

/* Hide by default (mobile + tablet) */
.top-social-desktop {
  display: none;
}

/* Desktop only */
@media (min-width: 992px) {

  .top-info-bar {
    position: relative;
  }

  /* Center the social icons absolutely */
  .top-social-desktop {
    display: flex;
    gap: 18px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
  }

  .top-social-desktop .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease;
  }

  .top-social-desktop svg {
    fill: currentColor;
    transition: fill 0.3s ease;
  }

  /* CUSTOM BRAND COLORS */
  .social-icon.facebook {
    color: #000000;
    background-color: #eef4fd;
  }

  .social-icon.linkedin {
    color: #000000;
    background-color: #eef4fd;
  }

  .social-icon.instagram {
    color: #000000;
    background-color: #eef4fd;
  }

  /* Hover effect */
  .top-social-desktop .social-icon:hover {
    transform: translateY(-2px);
    background: #f2f2f2;
  }
}

/* ===================================================== */
/* NAV LINKS & DROPDOWN BASE */
/* ===================================================== */
.navbar-nav .nav-link {
  position: relative;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  transition: color 0.3s, border-color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

/* Dropdown base (visibility controlled, not display) */
.navbar-nav .dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  margin: 0;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.dropdown-item {
  transition: background 0.3s, color 0.3s;
}

.dropdown-item:hover {
  background-color: #0b2260;
  color: #ffffff;
}

/* ===================================================== */
/* DESKTOP NAV STRUCTURE + DROPDOWN FIX (LG+) */
/* ===================================================== */
@media (min-width: 992px) {

  .navbar {
    padding: 0;
    position: relative;
    z-index: 9999;
  }

  .nav-bg {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 70%;
    background: #0b2260;
    display: flex;
    align-items: center;
    z-index: 1;
  }

  .nav-bg::before {
    content: "";
    position: absolute;
    left: -60px;
    width: 60px;
    height: 100%;
    background: #0b2260;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
  }

  .nav-bg .navbar-collapse {
    position: relative;
    z-index: 2;
  }

  .navbar-brand {
    position: relative;
    z-index: 3;
    width: 30%;
  }

  .navbar-nav .nav-link {
    color: #ffffff !important;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: var(--accent-orange) !important;
  }

  .navbar-nav .dropdown {
    position: relative;
  }

  /**EN BAS DU NAV--DROPDOWN**/
  .navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 0.8rem;
    z-index: 10000;
    background: #0b2260;
  }

  .navbar-nav .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-nav .dropdown-menu .dropdown-item {
    position: relative;
    padding-bottom: 6px;
    background: transparent;
    color:#ffffff;
  }

  .navbar-nav .dropdown-menu .dropdown-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
  }

  .navbar-nav .dropdown-menu .dropdown-item:hover::after {
    width: 100%;
  }

  .navbar-nav .dropdown-menu .dropdown-item:hover {
    color: var(--accent-orange);
    background: transparent;
  }
   .sub-text {
    white-space: nowrap;
    display: inline-block;
  }
}

/* ===================================================== */
/* HERO SECTION */
/* ===================================================== */
#hero-full {
  position: relative;
  width: 100%;
  min-height: 75vh;
  aspect-ratio: 16 / 9;   /* optional but powerful */
  overflow: hidden;
  background: #ffffff;
}


.hero-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  #hero-full {
    min-height: 100svh;   /* NOT vh */
  }
}

/* ===================================================== */
/* HERO SLIDES */
/* ===================================================== */

@media (max-width: 768px) {
  .hero-slide,
  .hero-img,
  #hero-dynamic-text,
  .ticker-track {
    animation: none !important;
    transition: none !important;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.reverse {
  flex-direction: row-reverse;
}

/* ===================================================== */
/* HERO IMAGE */
/* ===================================================== */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-img.active {
  opacity: 1;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  filter: brightness(0.75);
  z-index: 2;
}

/* ===================================================== */
/* HERO TEXT + 3D STYLE */
/* ===================================================== */
.hero-text {
  position: relative;
  z-index: 3;
  width: 40%;
  height: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

.hero-text h1 {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-text .main-text {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  letter-spacing: 1px;
  color: #0b2260;
  text-shadow:
    1px 1px 0 #d6d6d6,
    2px 2px 0 #c2c2c2,
    3px 3px 0 #a8a8a8,
    6px 6px 15px rgba(0,0,0,0.25);
}

.hero-text .sub-text {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
  color: var(--accent-orange);
  text-shadow:
    1px 1px 0 rgba(0,0,0,0.08),
    3px 3px 10px rgba(0,0,0,0.15);
}

/* ===================================================== */
/* HERO DYNAMIC TEXT */
/* ===================================================== */
#hero-dynamic-text {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  margin-top: 1rem;
  min-height: 1.6em;
  letter-spacing: 0.4px;
  color: rgb(255, 94, 20);
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#hero-dynamic-text.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* ===================================================== */
/* DARK MODE HERO */
/* ===================================================== */
body.dark .hero-text .main-text {
  color: #ffffff;
  text-shadow:
    1px 1px 0 #333,
    2px 2px 0 #222,
    4px 4px 12px rgba(0,0,0,0.6);
}

body.dark .hero-text .sub-text {
  color: #e5e5e5;
}

/* ===================================================== */
/* MOBILE HERO */
/* ===================================================== */
@media (max-width: 768px) {
  #hero-full {
    height: 60vh;
  }

  .hero-text {
    width: 100%;
    padding: 1.5rem;
  }
}


/* Ticker carousel */
#services-ticker {
  position: relative;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 20s linear infinite;
}

.ticker-item {
  font-size: 1rem; /* Adjust for mobile */
  color: #0b2260; /* Brand color */
}

/* Continuous scroll animation */
@keyframes ticker-scroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Duplicate ticker content for seamless loop */
#services-ticker .ticker-track::after {
  content: attr(data-content);
  display: inline-flex;
  gap: 3rem;
}

.section-core-services {
    margin-top: 8rem;   /* BIG, confident separation from hero */
    padding-top: 4rem;
    padding-bottom: 4rem;
}


@media (max-width: 768px) {
    .section-core-services {
        margin-top: 4rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

#core-services-secondary .service-card {
    transition: transform 0.3s;
}

#core-services-secondary .service-card:hover {
    transform: translateY(-5px); /* subtle lift on hover */
}

/* ===================================== */
/* GLOBAL PRIMARY BUTTON (ALL SCREENS) */
/* ===================================== */

.btn-primary-custom {
    background-color: #0b2260;
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem; /* locks size on mobile */
    font-weight: 700;
    transition: background-color 0.3s ease;
     text-decoration: none;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background-color:  #ff5e14;
    color: #0b2260;
    text-decoration: none;
}

/* Prevent mobile tap highlight / override */
.btn-primary-custom:active {
    background-color: #ff5e14;
}

/* ===================================== */
/* SECTION HEADING – SAME 3D LOGIC AS HERO, LARGER HEIGHT */
/* ===================================== */

.section-3d-title {
    font-family: "Poppins", "Montserrat", sans-serif;
    font-weight: 800;
    line-height: 1.3; /* slightly taller spacing between lines */
    color: #0b2260;
    letter-spacing: 0.5px;

    font-size: clamp(2.5rem, 2vw, 4rem); /* bigger for more presence */
    
    text-shadow:
        1px 1px 0 #d6d6d6,
        2px 2px 0 #c2c2c2,
        3px 3px 0 #a8a8a8,
        5px 5px 15px rgba(0, 0, 0, 0.25);

    margin-bottom: 2rem; /* more spacing from text below */
}

/* ===================================================== */
/* BACK TO TOP BUTTON */
/* ===================================================== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff5e14;
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
}

#backToTop:hover {
  background-color:#0b2260;
  color: #ff5e14;
}


:root {
    --jw-blue: #0b2260;
    --jw-orange: #ff5e14;
    --jw-dark: #111;
    --jw-gray: #666;
    --jw-light: #f7f9fc;
}

.jw-positioning {
    padding: 90px 5%;
    background: var(--jw-light);
}

.jw-positioning-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* TEXT */
.jw-positioning-text .jw-tag {
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--jw-orange);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.jw-positioning-text h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.25;
    margin-bottom: 18px;
    color: var(--jw-dark);
}

.jw-positioning-text h2 span {
    color: var(--jw-blue);
}

.jw-positioning-text p {
    font-size: 1.05rem;
    color: var(--jw-gray);
    max-width: 520px;
    margin-bottom: 30px;
}

/* BUTTON */
.jw-btn {
    display: inline-block;
    padding: 14px 34px;
    background: #0b2260;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jw-btn:hover {
    transform: translateY(-2px);
    background-color: #ff5e14;
    color:#0b2260;
}

/* IMAGE */
.jw-positioning-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* RESPONSIVE – SAME LAYOUT MOBILE & DESKTOP */
@media (max-width: 900px) {
    .jw-positioning-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .jw-positioning-text p {
        max-width: 100%;
    }
}


/* SEO HERO H1 – BOTTOM RIGHT */
.hero-seo-heading {
    position: absolute;
    bottom: 0.5rem;
    right: 2.5rem;
    max-width: 480px;

    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 600;

    text-align: right;
    letter-spacing: 0.02em;

    pointer-events: none; /* purely informational */
    z-index: 5;
}

/* Ensure hero container is positioned */
#hero-full,
.hero-wrapper {
    position: relative;
}


/* MOBILE OPTIMIZATION – HERO SEO HEADING */
@media (max-width: 767px) {

      .hero-seo-heading {
    position: absolute; /* FIX */
    bottom: 1.5rem;
    right: 1.5rem;
    text-align: center;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
  }

    .hero-seo-heading span {
        display: block;          /* forces clean lines */
        white-space: nowrap;     /* prevents span from breaking into multiple lines */
    }
}


.info-link-foot {
    color: #fff;
}

.info-link-foot:hover {
    text-decoration: underline;
    color: #ff5e14;
}

.blue-cl{
    color: #0b2260;
}