/* --- HEADER CONTAINER --- */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem); /* Slightly tighter padding */
  z-index: 1001;
  
  /* The "Magic" seamless background */
  background-color: #e9e6df; 
  border: none;
  box-shadow: none;
}

/* --- THE LOGO --- */
.site-logo {
  text-decoration: none;
  color: #0f1e2e;
  font-family: "Custom1", sans-serif;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.site-logo span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; }
.site-logo strong { font-size: 1.5rem; font-weight: 900; }

/* When menu is open, logo turns white */
.site-logo.is-visible { 
  opacity: 1 !important; 
  color: #f2f0e8 !important; 
  pointer-events: auto !important;
}

/* --- THE MENU PILL BUTTON --- */
.menu-toggle {
  background: #0f1e2e;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.menu-text {
  color: #f2f0e8;
  font-family: "Custom1", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  line-height: 1;
}

/* --- FULL SCREEN OVERLAY --- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: #0f1e2e;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

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

.menu-links { 
  list-style: none; 
  text-align: center; 
  padding: 0; 
}

.menu-links li { 
  margin: 1.2rem 0; 
  overflow: hidden; 
}

.menu-links a {
  color: #f2f0e8;
  text-decoration: none;
  font-size: clamp(1.8rem, 7vw, 3.5rem);
  text-transform: uppercase;
  font-weight: 800;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu-links a:hover {
  transform: skewX(-5deg) scale(1.05);
  color: #ffffff;
}