/* ================================================
   TOPBAR
   ================================================ */
.topbar { position: relative; z-index: 1; background: var(--navy-deep); color: #cdd7ec; font-size: .84rem; padding: 9.5px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .pill { background: var(--gold); color: #2a1c02; padding: .14rem .7rem; border-radius: 999px; font-weight: 700; }

/* ================================================
   NAVIGATION — structure
   ================================================ */
header.main-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgb(255 255 255 / 88%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #ffffff;
}
/* Bootstrap override: make navbar full-width and relative for mega menu */
header.main-header .navbar { padding: 0; position: relative; }

/* Brand */
.navbar-brand, .brand { padding: 0; margin-right: 0; }
.navbar-brand img, .brand img { width: auto; display: block; }

/* ================================================
   MOBILE TOGGLER — custom hamburger
   ================================================ */
.navbar-toggler, .menu-btn {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 8px;
}
.navbar-toggler:focus, .menu-btn:focus { box-shadow: none !important; outline: none; }
.navbar-toggler-icon { display: none; }
.menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 3px;
  margin: 5px 0;
  transition: .25s;
}

/* ================================================
   NAV LINKS
   ================================================ */
.navbar-nav .nav-link {
  position: relative;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink) !important;
  padding: 2rem .6rem !important;
  border-radius: 10px;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  white-space: nowrap;
}
.navbar-nav .nav-link:before {
  content: '';
    position: absolute;
    background: url(../images/shape-pencil.svg) no-repeat center center;
    background-size: 100%;
    height: 10px;
    width: 40px;
    margin-left: -20px;
    left:50%;
    top: -50%;
    transition: 0.3s;
    opacity: 0;
    rotate: 0deg;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .show > .nav-link { color: var(--red) !important; }

.navbar-nav .nav-link:hover:before{
  opacity: 1;
  top: 5px;
  rotate: 45deg;
}
/* Hide Bootstrap's default caret */
.navbar-nav .nav-link.dropdown-toggle::after { display: none; }

/* Custom inline caret SVG */
.nav-caret { width: 10px; height: 10px; flex-shrink: 0; transition: transform .2s; }
.dropdown.show > .nav-link .nav-caret,
.mega-item.show > .nav-link .nav-caret { transform: rotate(180deg); }

/* ================================================
   REGULAR DROPDOWNS (Bootstrap-styled)
   ================================================ */
.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 0px 0px 14px 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 220px;
  animation: none;
}
.dropdown-item {
  display: block;
  padding: .55rem .8rem;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .12s, color .12s;
}
.dropdown-item:hover,
.dropdown-item:focus { background: var(--sky); color: #fff; }
.dropdown-item.active, .dropdown-item:active { background: var(--royal); color: #fff; }


/* ================================================
   MEGA MENU
   ================================================ */
/* Make the li non-positioning so the menu spreads full-width */
.mega-item { position: static !important; }

.mega-menu {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  top: calc(100% + 0px) !important;
  padding: 28px 45px 45px !important;
  border-radius: 0 0 20px 20px !important;
  border-left: 0 !important;
  border-right: 0 !important;
  margin-top: 0 !important;
  box-shadow: 0 24px 40px -12px rgba(16,41,92,.22) !important;
}
.mega-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mega-header .eyebrow { font-size: 1rem; color: var(--navy);}
.mega-header p { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 36px;
}
.mega-col { display: flex; flex-direction: column; }

.mega-col-title {
  font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy);
    padding: .35rem .8rem;
    margin-bottom: 6px;
}

.mega-menu .dropdown-item { font-size: .88rem; padding: .42rem .8rem; }

/* ================================================
   APPLY BUTTON IN NAV
   ================================================ */
.navbar-nav .btn { white-space: nowrap; }

/* ================================================
   FOOTER
   ================================================ */
footer { position: relative; z-index: 1; background: #0a1b40; color: #bcc7e0; padding: 70px 0 28px; }
footer:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: url(../images/banner.webp) no-repeat left bottom fixed;
    background-size: cover;
    opacity: 0.1;

    
}
footer .container{ position: relative; z-index: 1;}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; gap: 36px; }
.foot-grid h4 { color: #fff; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.1rem; }
.foot-grid a { display: inline-block; padding: .25rem 0; color: #bcc7e0; font-size: .94rem; transition: color .15s; }
.foot-grid a:hover { color: var(--gold); }
.logo-chip img { height: 70px; width: auto; }
.foot-brand p { font-size: .93rem; margin-top: 1rem; max-width: 34ch; color: #93a0c2; }
.contact-line { display: flex; gap: .6rem; align-items: flex-start; padding: .32rem 0; font-size: .93rem; }
.contact-line svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; stroke: var(--gold); fill: none; }
.foot-bottom { border-top: 1px solid #25325a; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .83rem; color: #7a87a8; }
.socials { display: flex; gap: 10px; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #2c3a64; display: grid; place-items: center; }
.socials a:hover { background: #16234a; }
.socials svg { width: 18px; height: 18px; stroke: #bcc7e0; fill: none; }

/* ================================================
   HOVER DROPDOWNS — desktop only (≥1200px)
   ================================================ */
@media (min-width: 1200px) {
  .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    animation: dropFadeIn .18s ease forwards;
  }
  .mega-item:hover > .mega-menu {
    display: block !important;
    animation: dropFadeIn .18s ease forwards;
  }
  .navbar-nav .nav-item.dropdown:hover > .nav-link .nav-caret,
  .mega-item:hover > .nav-link .nav-caret {
    transform: rotate(180deg);
  }
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet & mobile: brand + contact full width, About Us / Quick Links paired 50/50 */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand,
  .foot-grid > div:last-child { grid-column: 1 / -1; }
  footer {
    padding: 30px 0 28px;
}
.foot-bottom{margin-top: 20px; margin-top: 20px; justify-content: center;}
}

/* Mobile: collapsed nav styles */
@media (max-width: 767px) {
  .topbar .tb-left { display: none; }
  .navbar-brand, .brand {
    padding: 5px 0px;
    width: 255px;
}
}

/* Bootstrap xl collapse (below 1200px) — mobile nav styling */
@media (max-width: 1199px) {
  .navbar-collapse {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 10px 0 20px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-nav .nav-link {
    padding: .7rem 1rem !important;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
      .navbar-nav .dropdown-item {
        border-radius: 0px;
        border-bottom: 1px solid rgba(231, 223, 204, 0.5);
    }
  .navbar-nav .nav-link:hover { border-radius: 0; }

  /* Regular dropdowns collapse inline on mobile */
  .navbar-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    margin: 0;
  }

  /* Mega menu collapse on mobile */
  .mega-menu {
    position: static !important;
    border-radius: 0 !important;
    padding: 12px 16px 20px !important;
    border-top: 2px solid var(--red) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .mega-header { margin-bottom: 12px; padding-bottom: 10px; }
  .mega-col { margin-bottom: 8px; }
}
