/* ========================================
   Header Styles
======================================== */
.site-header {
  background-color: var(--color-bg-cream);
  border-bottom: 1px solid var(--color-border-medium);
  position: sticky;
  top: 0;
  z-index: var(--z-index-header);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
}

.logo-image {
  height: 46px;
  width: auto;
  display: block;
}

.logo-white path {
  fill: white !important;
}

/* PC Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.btn-header {
  white-space: nowrap;
  padding: 10px 18px;
}

/* Hamburger Button (SP only) */
.hamburger-btn {
  display: none;
  background-color: var(--color-bg-cream);
  border: none;
  width: 80px;
  height: 80px;
  cursor: pointer;
  padding: 0;
  margin-right: -20px;
}

.hamburger-icon {
  position: relative;
  width: 45px;
  height: 34px;
  margin: 0 auto;
}

.hamburger-line {
  display: block;
  width: 45px;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
}

.hamburger-line:nth-child(2) {
  bottom: 0;
}

.hamburger-line:nth-child(3) {
  bottom: 10px;
}

.hamburger-text {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.48px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  z-index: var(--z-index-header);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-overlay.is-active {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 80px;
  border-bottom: 1px solid var(--color-white-alpha-30);
}

.menu-close-btn {
  background-color: var(--color-white);
  border: none;
  width: 80px;
  height: 80px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -20px;
}

.close-icon {
  position: relative;
  width: 45px;
  height: 34px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.close-text {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.48px;
}

.close-icon svg {
  width: 45px;
  height: 12px;
}

.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 20px;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-item {
  border-bottom: 1px solid var(--color-white);
}

.mobile-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-white);
  text-decoration: none;
  letter-spacing: 0.78px;
}

.mobile-menu-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #FFF;
  flex-shrink: 0;
}

.mobile-menu-arrow img {
  width: 20px;
  height: 20px;
}

.mobile-menu-item.is-disabled a {
  opacity: 0.2;
  pointer-events: none;
  cursor: default;
}

/* Dropdown Menu Styles */
.mobile-menu-dropdown {
  border-bottom: 1px solid var(--color-white);
}

.mobile-menu-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.78px;
  cursor: pointer;
  text-align: left;
}

.mobile-menu-chevron {
  transition: transform 0.3s ease;
}

.mobile-menu-dropdown.is-open .mobile-menu-chevron {
  transform: rotate(180deg);
}

.mobile-menu-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 20px 0;
  display: none;
}

.mobile-menu-dropdown.is-open .mobile-menu-submenu {
  display: block;
}

.mobile-submenu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.78px;
  justify-content: flex-start;
}

.submenu-bullet,
.submenu-dash {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.btn-mobile-outline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  border-radius: 9999px;
  border: 1px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-mobile-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-mobile-white {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  border-radius: 9999px;
  border: none;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-mobile-white:hover {
  background: #f0f0f0;
}

.btn-mobile-outline .btn-icon,
.btn-mobile-white .btn-icon {
  width: 20px;
  height: 20px;
}

/* ========================================
   Service Dropdown (PC Header)
======================================== */
.service-dropdown {
  position: relative;
}

.service-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.service-dropdown-toggle:hover {
  color: var(--color-primary);
}

.service-dropdown-chevron {
  transition: transform 0.3s ease;
}

.service-dropdown-toggle[aria-expanded="true"] .service-dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.service-dropdown-panel {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-cream);
  border-top: 1px solid var(--color-border-medium);
  border-bottom: 1px solid var(--color-border-medium);
  z-index: calc(var(--z-index-header) - 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.service-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-dropdown-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Dropdown Title */
.service-dropdown-title {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 42px;
  letter-spacing: 0.05em;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
}

.service-dropdown-title .title-accent {
  font-weight: 700;
  color: var(--color-primary);
}

.service-dropdown-title .title-text {
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Service List */
.service-dropdown-list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-dropdown-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.service-dropdown-item a:hover {
  opacity: 0.7;
}

.service-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.service-name {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.13px;
  color: var(--color-text-primary);
}

.service-arrow {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

.service-external {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Responsive Design - Header */
@media (max-width: 1024px) {
  .nav-menu a {
    font-size: 14px;
  }

  .header-nav {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }

  .btn {
    width: inherit;
  }

  /* Hide service dropdown on mobile */
  .service-dropdown {
    display: none;
  }

  .service-dropdown-panel {
    display: none;
  }
}
