/* Northwest Vocal Music - Layout */
/* Header, Footer, Navigation */

/* ============================================================================
   HEADER
   ============================================================================ */

.site-header {
  background-color: var(--nw-white);
  border-bottom: 3px solid var(--nw-blue);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--nw-black);
}

.site-logo {
  height: 60px;
  width: auto;
  margin-right: 1rem;
  flex-shrink: 0;
}

.site-title {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-title h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--nw-blue);
  white-space: nowrap;
}

.tagline {
  font-size: 0.875rem;
  color: var(--nw-gray);
  margin: 0;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--nw-blue);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--nw-black);
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--nw-blue);
  text-decoration: none;
}

.nav-menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--nw-blue);
}

/* ============================================================================
   DROPDOWN MENU
   ============================================================================ */

.has-dropdown {
  position: relative;
}

.has-dropdown a:hover {
  color: var(--nw-black);
  text-decoration: none;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--nw-white);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--nw-black);
  font-size: 0.875rem;
}

.dropdown-menu a:hover {
  background-color: var(--nw-silver);
  text-decoration: none;
}

/* ============================================================================
   SEARCH FORM
   ============================================================================ */

.search-form {
  display: flex;
  align-items: center;
  background-color: var(--nw-silver);
  border-radius: 4px;
  overflow: hidden;
}

.search-form input {
  border: none;
  background: none;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  width: 200px;
}

.search-form button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--nw-gray);
}

.search-form button:hover {
  color: var(--nw-blue);
}

/* ============================================================================
   MOBILE SEARCH
   ============================================================================ */

.mobile-search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--nw-white);
  border-bottom: 3px solid var(--nw-blue);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-search-overlay.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-search-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-search-form {
  flex: 1;
  display: flex;
  background-color: var(--nw-silver);
  border-radius: 4px;
  overflow: hidden;
}

.mobile-search-form input {
  flex: 1;
  border: none;
  background: none;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.mobile-search-form button {
  background: none;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  color: var(--nw-gray);
}

.mobile-search-form button:hover {
  color: var(--nw-blue);
}

.mobile-search-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--nw-gray);
  font-size: 1.5rem;
  line-height: 1;
}

.mobile-search-close:hover {
  color: var(--nw-blue);
}

.mobile-search-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--nw-gray);
}

.mobile-search-toggle:hover {
  color: var(--nw-blue);
}

.mobile-controls {
  display: none;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  background-color: var(--nw-blue);
  color: var(--nw-white);
  padding: 2rem 0;
  margin-top: 0rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--nw-white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--nw-silver);
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--nw-white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.contact-info {
  margin-top: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--nw-silver);
}

.footer-bottom a {
  color: var(--nw-silver);
}
