/* ======================================
   Chicaim Header - Ultra Professional
   ====================================== */

.chicaim-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 9999;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(0, 48, 143, 0.08);
}

.chicaim-header.shrink {
  padding: 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.chicaim-header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  transition: padding 0.3s ease;
}

.chicaim-header.shrink .chicaim-header-container {
  padding: 12px 40px;
}

/* Logo */
.logo img {
  max-height: 52px;
  width: auto;
  transition: all 0.3s ease;
  filter: brightness(1.05);
}

.chicaim-header.shrink .logo img {
  max-height: 42px;
}

/* Navigation Menu */
.main-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: #00308f;
  padding: 8px 0;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  position: relative;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00308f, #dd01b8);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item > a::after {
  width: 100%;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
  color: #dd01b8;
}

/* Submenu */
.nav-menu li ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 48, 143, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.4s ease;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  pointer-events: none;
}

.nav-menu li:hover > ul {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu li ul li a {
  display: block;
  padding: 10px 24px;
  font-weight: 500;
  font-size: 15px;
  color: #00308f;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-menu li ul li a:hover {
  background: rgba(0, 48, 143, 0.05);
  color: #dd01b8;
  padding-left: 30px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #00308f, #dd01b8) 1;
}

.nav-menu li ul li:not(:last-child) a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: rgba(0, 48, 143, 0.08);
}

/* Arrow for parent items */
.nav-menu li.menu-item-has-children > a::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.nav-menu li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 48, 143, 0.06);
  color: #00308f;
  font-size: 15px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: linear-gradient(135deg, #00308f, #dd01b8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 48, 143, 0.2);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s;
  z-index: 10001;
}

.hamburger:hover {
  background: rgba(0, 48, 143, 0.05);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #00308f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===============================
   Mobile Menu
   =============================== */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    background: #fff;
    padding: 100px 24px 40px;
    gap: 0;
    transition: right 0.4s ease, opacity 0.4s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    z-index: 10000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li ul {
    display: none !important;
    padding-left: 20px;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-top: 0;
    opacity: 1;
    transform: none;
  }

  .nav-menu li.open > ul {
    display: block !important;
  }

  .nav-menu li.menu-item-has-children > a::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Smooth Scroll for Mobile Submenu */
.nav-menu li.open > ul li a {
  transition: all 0.35s ease;
}
