/* Header */
.site-header {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: border-bottom 0.4s ease;
}

.header-top {
  background-color: #003257;
  border-bottom: 1px solid #f0f0f0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.site-logo {
  font-family: 'Crimson Pro', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

.site-logo a {
  color: #fff;
}

.header-utils {
  display: flex;
  align-items: center;
}

.search-icon,
.menu-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #000;
  font-size: 18px;
}

/* Main Navigation */
.main-nav {
  background-color: #fff;
  width: 100%;
  border-bottom: 1px solid #eee;
  transition: transform 0.4s ease, opacity 0.4s ease, border-bottom 0.4s ease;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 600;
  color: #003257;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 0;
  display: block;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: #b17931;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #b17931;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform-origin: center;
}

.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(7px, -6px);
}

/* Mobile Menu Overlay - Houyhnhnm Style */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: #003257;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  padding: 60px 40px 40px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

/* Main Menu */
.mobile-nav .main-menu {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

.mobile-nav .main-menu li {
  margin: 0 0 25px 0;
}

.mobile-nav .main-menu a {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.mobile-nav .main-menu a:hover {
  color: #b17931;
}

/* Submenu */
.mobile-nav .submenu {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.mobile-nav .other-menu {
  list-style: none;
  margin: 40px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}

.mobile-nav .other-menu li {
  margin: 0;
}

.mobile-nav .other-menu a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.mobile-nav .other-menu a:hover {
  color: #b17931;
}

/* SNS List */
.mobile-nav .sns-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.mobile-nav .sns-list li {
  margin: 0;
}

.mobile-nav .sns-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.mobile-nav .sns-icon:hover {
  color: #b17931;
}

.mobile-nav .sns-icon svg {
  fill: currentColor;
  transition: fill 0.3s ease;
}

/* Close Button */
.mobile-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 10000;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.1s ease;
  border-radius: 50%;
}

.mobile-close:hover {
  background-color: #f5f5f5;
  color: #003257;
}

/* Desktop Responsive */
@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .nav-menu ul {
    display: flex;
    gap: 40px;
    justify-content: center;
  }

  .nav-menu li {
    margin: 0;
  }
}

/* Mobile Menu Responsive */
@media (max-width: 480px) {
  .mobile-menu-overlay {
    width: 100%;
    max-width: 100%;
    padding: 50px 25px 30px;
  }

  .mobile-nav .main-menu a {
    font-size: 16px;
  }

  .mobile-nav .other-menu {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mobile-nav .other-menu a {
    font-size: 13px;
  }

  .mobile-nav .sns-list {
    gap: 15px;
    justify-content: center;
  }

  .mobile-nav .sns-icon {
    font-size: 11px;
  }
  
  .nav-menu {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .nav-menu ul {
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .nav-menu li {
    margin: 0;
  }
}