/********** Template CSS **********/
:root {
  --primary:   #B78D65;  /* gold */
  --dark-bg:   #0B1F3A;  /* navy you want for backgrounds */
  --dark:      #102642;  /* darker navy (if you need two shades) */
  --light:     #F8F8F8;  /* off-white text */
  --text-light:#F0F0F0;  /* a slightly different light for page text */
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
    font-weight: 400 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-outline-body {
    color: var(--primary);
    border-color: #777777;
}

.btn-outline-body:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}


/*** Navbar ***/

/* 1) Dropdown arrow icon */
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

/* 2) Nav-link defaults (spacing, font, uppercase) */
.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 30px 0;
  font-weight: 500;
  text-transform: uppercase;
  outline: none;
  transition: color .3s;
}

/* 3) Default (top of page) */
.navbar {
  background-color: transparent !important;
  box-shadow: none !important;
  transition: background-color .3s, box-shadow .3s;
  z-index: 1000;             /* float above carousel */
}

/* 4) Link colors at top */
.navbar .nav-link {
  color: var(--light) !important;      /* off-white */
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;    /* gold on hover/active */
}

/* 5) Scrolled state */
.navbar.scrolled {
  background-color: var(--dark) !important;   /* navy */
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1) !important;
}
/* 6) Link colors when scrolled */
.navbar.scrolled .nav-link {
  color: var(--light) !important;      /* keep off-white */
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary) !important;    /* gold */
}
/* === Mobile navbar: solid bg, light text, readable dropdown === */
@media (max-width: 991.98px) {
  /* Always solid on mobile (ignore "top-of-page transparent") */
  .navbar {
    background-color: var(--dark) !important;       /* navy */
    box-shadow: 0 2px 10px rgba(0,0,0,.25) !important;
  }

  /* Brand + links go light */
  .navbar .site-title,
  .navbar .nav-link {
    color: var(--light) !important;
  }
  .navbar .nav-link:hover,
  .navbar .nav-link.active {
    color: var(--primary) !important;               /* gold on hover/active */
  }

  /* Collapsed menu panel should have the same navy bg */
  .navbar .navbar-collapse {
    background-color: var(--dark) !important;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 0.5rem 1rem;
  }

  /* Dropdowns in the mobile menu */
  .navbar .dropdown-menu {
    background: var(--dark) !important;
    border: 1px solid rgba(255,255,255,.08);
  }
  .navbar .dropdown-item {
    color: var(--light) !important;
  }
  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus {
    background: var(--primary) !important;          /* gold hover */
    color: #0B1F3A !important;                      /* navy text on gold */
  }

  /* Light hamburger icon + subtle border */
  .navbar-light .navbar-toggler {
    border-color: rgba(255,255,255,.25);
  }
  .navbar-light .navbar-toggler-icon {
    /* white bars for dark background */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.95)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
}



/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: var(--dark);
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    transition: .5s;
    opacity: .3;
}

.header-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}


/*** Facts ***/
.fact-item .fact-icon {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 120px;
    transition: .5s;
    border: 2px solid transparent;
}

.fact-item:hover .fact-icon {
    background: #102642;
    border-color: var(--primary);
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5, border-color 0.3s;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}


/*** About & Feature ***/
.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid var(--primary);
    z-index: -1;
}


/*** Service ***/
.service-item .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-item .service-text {
    background: #102642; /* Navy tone to match site */
    color: var(--text-light); /* ensure white text */
    transition: .5s;
    border: none;
}

.service-item:hover .service-text {
    background: rgba(0, 0, 0, .7);
}

.service-item * {
    transition: .5;
}

.service-item:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    border: 1px solid var(--primary);
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}


/*** Project ***/
/* 1) Default: dark/navy background, light text, transparent border */
.project .nav .nav-link {
  background: var(--dark) !important;       /* navy bg */
  color: var(--light) !important;           /* off-white text */
  border: 2px solid transparent;            /* for smooth border transition */
  transition: background .3s, border-color .3s, color .3s;
}

/* Ensure the <h3> inside inherits that color */
.project .nav .nav-link h3 {
  color: inherit !important;
}

/* 2) Hover: keep navy, reveal gold border */
.project .nav .nav-link:hover {
  background: var(--dark) !important;       /* stay navy */
  border-color: var(--primary) !important;  /* gold outline */
}

/* 3) Active tab: solid gold fill, white text */
.project .nav .nav-link.active {
  background: var(--primary) !important;    /* gold bg */
  border-color: var(--primary) !important;  /* gold outline too */
}
.project .nav .nav-link.active h3 {
  color: #FFFFFF !important;                /* ensure the title is white */
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #777777;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #777777;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* === BODY AND BACKGROUND === */
body {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* === HEADINGS & TEXT === */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 600;
}

.text-primary {
    color: var(--primary) !important;
}

/* === BUTTONS === */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #0B1F3A;
    border: 2px solid transparent;
    transition: background .3s, color .3s, border-color .3s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  /* semi‐opaque white so you can still see your gold border */
  background-color: rgba(255,255,255,0.0) !important;
  border-color: var(--primary) !important;
  

  /* blur whatever’s behind the button */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);

  /* remove any unwanted shadows */
  box-shadow: none !important;
}


/* === ICONS & ACCENTS === */
.icon-box i,
.section-title i {
    color: var(--primary);
}

/* Use the Biome font only for the site title */
.site-title {
  font-family: "Biome W01 Regular", sans-serif;
}

/* Clean feature cards under “Why Choose Us” */
.feature-card {
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  margin: 0 auto;
  border: 2px solid var(--bs-primary);
  border-radius: 50%;
}

/* Parallax-style “Why Trust CAIDES?” */
section.why-trust-us {
  position: relative;
  /* shorthand for fixed parallax background */
  background: url('../img/consulting-bg.jpg') center center / cover fixed no-repeat !important;

  /* full-screen height—adjust as you like */
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 40px 0 !important;
  color: #fff !important;
  overflow: hidden;
}

section.why-trust-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* lift your content above the overlay */
section.why-trust-us > .container {
  position: relative;
  z-index: 1;
  padding: 4rem 0; /* adjust vertical padding inside the full-screen */
}

/* Optional: tweak text sizes to fit the new layout */
section.why-trust-us .why-title {
  margin-bottom: 2rem;
}
section.why-trust-us .row .col-md-4 {
  padding: 1rem;
}


/* reuse your Biome title style */
.site-title {
  font-family: "Biome W01 Regular", sans-serif;
  color: var(--bs-primary);
}

/* Icons */
.icon-lg {
  font-size: 3rem;
  color: var(--bs-primary);
  margin-bottom: 0.75rem;
}

/* Feature headings */
.feature-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Feature text */
.feature-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}


/* === CAIDES wordmark (navbar + spinner) === */
.site-title {
  font-family: "Biome W01 Regular", "Teko", "Open Sans", sans-serif !important;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* Staggered dropdown reveal */
.dropdown-menu.staggered-drop {
  overflow: hidden;               /* keeps items nicely clipped during motion */
}

.dropdown-menu.staggered-drop .dropdown-item {
  opacity: 0;
  transform: translateY(-6px);
}

/* When open, play the item animations */
.dropdown-menu.staggered-drop.is-open .dropdown-item {
  animation: dd-stagger-in .28s ease-out forwards;
}

/* Keyframes: subtle slide + fade */
@keyframes dd-stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger the delays (top → bottom).
   Add more nth-child lines if you ever have >10 items. */
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(1)  { animation-delay: 40ms; }
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(2)  { animation-delay: 80ms; }
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(3)  { animation-delay: 120ms; }
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(4)  { animation-delay: 160ms; }
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(5)  { animation-delay: 200ms; }
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(6)  { animation-delay: 240ms; }
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(7)  { animation-delay: 280ms; }
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(8)  { animation-delay: 320ms; }
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(9)  { animation-delay: 360ms; }
.dropdown-menu.staggered-drop.is-open .dropdown-item:nth-child(10) { animation-delay: 400ms; }

/* === Themed dropdown (navy panel + gold hover) === */
.navbar .dropdown-menu.staggered-drop {
  background: var(--dark);                  /* navy panel */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: .5rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  min-width: 260px;                         /* a bit wider for readability */
}

/* Sectors pills as responsive grid */
.sector-pills { display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) {                /* lg+ */
  .sector-pills { grid-template-columns: 1fr 1fr; }  /* 2x3 */
}
.sector-pills .nav-link { height: 100%; }  /* equal-height tiles */


/* Items default: light text on navy, with comfy padding */
.navbar .dropdown-menu.staggered-drop .dropdown-item {
  color: var(--light) !important;
  padding: .6rem .95rem;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  opacity: 0;                               /* (kept for staggered reveal) */
  transform: translateY(-6px);              /* (kept for staggered reveal) */
}

/* Consistent size for all sector images */
.sector-media {
  position: relative;
  width: 100%;
  height: 420px;                 /* desktop height */
  overflow: hidden;
  border-radius: 8px;
}
@media (max-width: 991.98px) {   /* md and down */
  .sector-media { height: 360px; }
}
@media (max-width: 575.98px) {   /* xs */
  .sector-media { height: 260px; }
}
.sector-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}


/* Staggered "open" animation (from your previous setup) */
.navbar .dropdown-menu.staggered-drop.is-open .dropdown-item {
  animation: dd-stagger-in .28s ease-out forwards;
}

/* Hover / focus: gold chip with a tiny slide for delight */
.navbar .dropdown-menu.staggered-drop .dropdown-item:hover,
.navbar .dropdown-menu.staggered-drop .dropdown-item:focus {
  background: var(--primary) !important;    /* gold */
  color: #0B1F3A !important;                /* dark navy text on gold */
  transform: translateX(2px);
}

/* Active item (if Bootstrap marks one) — same as hover */
.navbar .dropdown-menu.staggered-drop .dropdown-item.active,
.navbar .dropdown-menu.staggered-drop .dropdown-item:active {
  background: var(--primary) !important;
  color: #0B1F3A !important;
}

/* Optional: tiny vertical spacing so the gold chip looks separate */
.navbar .dropdown-menu.staggered-drop .dropdown-item + .dropdown-item {
  margin-top: 4px;
}

/* Optional: subtle top edge highlight inside the panel */
.navbar .dropdown-menu.staggered-drop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  pointer-events: none;
}



/* === FOOTER === */
/* Footer polish: ensure contrast + subtle gold accent */
.footer {
  background-color: #08192E;          /* matches your existing rule */
  color: var(--text-light);
  border-top: 2px solid rgba(183, 141, 101, 0.25); /* soft gold hairline */
}

.footer p,
.footer a,
.footer .btn-link {
  color: var(--text-light) !important;   /* override “text-body” greys */
}

.footer .btn-link:hover {
  color: var(--primary) !important;
}

.footer .link-underline { text-decoration: underline; }

/* Make section headings consistent and tidy */
.footer h3 {
  font-weight: 600;
  letter-spacing: .5px;
}

/* Keep the existing chevron + hover from your stylesheet */


/* === CARD & FEATURE BACKGROUNDS === */
.bg-light,
.feature,
.about,
.service,
.card,
.section {
    background-color: #102642 !important;
    color: var(--text-light) !important;
    border: none;
}



