/* =============================================
   ASP - Header Styles
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
}

/* ----- Header Container ----- */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
}

/* ----- Logo ----- */
.logo {
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

/* Fallback placeholder if logo image doesn't load */
.logo-img[src="logo.png"]::after {
  content: "ASP";
}

/* ----- Navigation ----- */
.main-nav {
  flex: 1;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 28px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #8dc21f;
}

/* Active item */
.nav-item.active .nav-link {
  color: #8dc21f;
}

/* Arrow icon */
.arrow {
  font-size: 9px;
  margin-left: 2px;
  color: inherit;
  transition: transform 0.2s;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* ----- Dropdown ----- */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-top: 2px solid #8dc21f;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  list-style: none;
  z-index: 200;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid #f2f2f2;
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: #f7fbee;
  color: #8dc21f;
}

/* ----- Search Icon ----- */
.search-icon {
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}

.search-icon:hover {
  background: #f2f2f2;
}

/* ----- Search Bar ----- */
.search-bar {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-bar.open {
  display: flex;
}

.search-bar input {
  border: none;
  border-bottom: 2px solid #8dc21f;
  outline: none;
  font-size: 14px;
  padding: 4px 8px;
  width: 180px;
  color: #333;
  background: transparent;
}

#searchClose {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 0 4px;
}

#searchClose:hover {
  color: #333;
}

/* ----- Hamburger (Mobile) ----- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #555;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .search-icon {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 2px solid #8dc21f;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 999;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .dropdown {
    position: static;
    border-top: none;
    border: none;
    box-shadow: none;
    background: #f9f9f9;
    display: none;
  }

  .nav-item.mobile-open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding-left: 36px;
  }
}

/* Search form */
.search-bar form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-submit {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.search-submit:hover {
  color: #8dc21f;
}