/* =====================================================
   CDS HEADER
===================================================== */

header.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  transition: 0.3s ease;
}

/* =======================
   BASE NAV
======================= */

header.header .main-navigation {
  padding: 18px 0;
  transition: 0.3s ease;
}

header.header .navbar {
  padding: 0;
}

/* =======================
   SCROLL STATE
======================= */

header.header.is-scrolled .main-navigation {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  padding: 14px 0;
}

/* Accent strip */
header.header.is-scrolled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg,#f7a726,#972a2a);
  z-index: 1;
}

/* On mobile, push strip behind the drawer */
@media (max-width: 991px) {
  header.header.is-scrolled::after {
    z-index: -1;
  }
}

/* =======================
   LOGO
======================= */

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-wrapper img {
  height: 52px;
  width: auto;
  transition: 0.3s ease;
}

.logo-color {
  display: none;
}

header.header.is-scrolled .logo-white {
  display: none;
}

header.header.is-scrolled .logo-color {
  display: block;
}

/* =======================
   NAV LINKS
======================= */

.nav-modern {
  gap: 40px;
}

.nav-modern .nav-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  padding: 5px 0;
  position: relative;
  transition: 0.3s ease;
}

header.header.is-scrolled .nav-modern .nav-link {
  color: #111;
}

.nav-modern .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg,#f7a726,#972a2a);
  transition: 0.3s ease;
}

.nav-modern .nav-link:hover::after {
  width: 100%;
}

/* =======================
   HAMBURGER
======================= */

.navbar-toggler {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 10001;
  position: relative;
  display: none; /* hidden on desktop */
}

.menu-line {
  display: block;
  width: 26px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: 0.3s ease;
}

header.header.is-scrolled .menu-line {
  background: #111;
}

/* Hide hamburger when menu is open so it doesn't bleed through */
body.menu-open .navbar-toggler {
  opacity: 0;
  pointer-events: none;
}

/* =======================
   MOBILE NAV OVERLAY
======================= */

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.menu-open .mobile-nav-overlay {
  opacity: 1;
}

/* Close button inside drawer */
.mobile-nav-close {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  outline: none;
  box-shadow: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 18px;
  color: #111;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus,
.mobile-nav-close:active,
.mobile-nav-close:focus-visible {
  background: rgba(247,167,38,0.18);
  color: #972a2a;
  outline: none;
  box-shadow: none;
  border: none;
}

/* CTA inside mobile menu */
.mobile-nav-cta {
  display: none;
  margin-top: 36px;
}

.btn-mobile-apply {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(90deg, #f7a726, #972a2a);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.btn-mobile-apply:hover {
  opacity: 0.88;
}

/* =======================
   MOBILE — = 991px
======================= */

@media (max-width: 991px) {

  /* show hamburger */
  .navbar-toggler {
    display: block;
  }

  /* show overlay when menu open */
  body.menu-open .mobile-nav-overlay {
    display: block;
  }

  /* Drawer */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: 72%;
    max-width: 280px;
    height: 100vh;
    display: block !important; /* override Bootstrap's d-none */
    visibility: hidden;
    z-index: 9999;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(18px);
    padding: 90px 35px 40px;
    transition: right 0.38s cubic-bezier(0.4,0,0.2,1),
                visibility 0s linear 0.38s;
    box-shadow: -10px 0 60px rgba(0,0,0,0.15);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    overflow-y: auto;
  }

  /* Drawer open state */
  .navbar-collapse.show {
    right: 0;
    visibility: visible;
    transition: right 0.38s cubic-bezier(0.4,0,0.2,1),
                visibility 0s linear 0s;
  }

  /* Close button */
  .mobile-nav-close {
    display: flex;
  }

  /* Vertical nav */
  .nav-modern {
    flex-direction: column;
    gap: 0;
  }

  /* nav items with divider */
  .nav-modern .nav-item {
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }

  .nav-modern .nav-link {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #111 !important;
    padding: 16px 0;
    display: block;
  }

  .nav-modern .nav-link::after {
    bottom: 10px;
  }

  /* CTA */
  .mobile-nav-cta {
    display: block;
  }

  /* body lock */
  body.menu-open {
    overflow: hidden;
  }

  /* logo sizing */
  .logo-wrapper .logo-white,
  header.header.is-scrolled .logo-color {
    height: 42px;
  }

}

/* =====================================================
   CDS MOBILE APPLY CTA 
===================================================== */

.mobile-apply-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(90deg, #f7a726, #972a2a);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  z-index: 9000;
  box-shadow: 0 6px 24px rgba(151,42,42,0.35);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  opacity: 0;
}

@media (max-width: 768px) {
  .mobile-apply-cta {
    display: block;
  }
}

.mobile-apply-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =====================================================
   CDS FOOTER
===================================================== */

.cds-footer {
  background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
  color: rgba(255,255,255,0.8);
  padding: 30px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 10px;
}

/* Brand */
.footer-brand img {
  width: 140px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 360px;
}

/* Links */
.footer-links h5,
.footer-contact h5 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffc107;
}

/* Contact */
.footer-contact p {
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-contact a {
  color: #ffc107;
  text-decoration: none;
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.7;
}

/* Social */
.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #ffc107;
  border-color: #ffc107;
  color: #1e1e1e;
}

/* Responsive */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
}