/* ==========================================================================
   HEADER-DESKTOP.CSS (Base Styles & Large Screens)
   ========================================================================== */

/* --- BANNER (Top Bar) --- */
.petition-alert-bar {
  background: linear-gradient(
    180deg, 
    #f9dd9d 0%,               
    var(--signature-orange) 40%, 
    #dba745 100%             
  );
  color: var(--bg-black);
  width: 100%;
  overflow: hidden; 
  
  /* Transition for smooth collapse */
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

/* --- COLLAPSE BANNER ON SCROLL --- */
header.header-scrolled .petition-alert-bar {
  max-height: 0;
  opacity: 0;
  padding: 0; 
  border-bottom: none;
  pointer-events: none; 
}

.alert-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center; 
  gap: 1.5rem; 
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

/* SECTION 1: Horn */
.alert-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  transform: rotate(-10deg); 
}

/* SECTION 2: Title */
.alert-title {
  /* FIX: Updated to master variable */
  font-family: var(--ff-headers); 
  font-weight: 900;
  font-style: italic; 
  text-transform: uppercase;
  font-size: 1.5rem; 
  line-height: 1;    
  text-align: right; 
  white-space: nowrap;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.3);
}

/* SECTION 3: Message */
.alert-message {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  max-width: 40rem; 
}

/* SECTION 4: Button */
.alert-btn {
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: .6rem 1.5rem;
  border-radius: 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
  box-shadow: 0 0.3rem 0.6rem rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.alert-btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-0.2rem); 
  box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.3); 
}

/* --- MAIN HEADER LAYOUT --- */
header {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw; 
  
  /* FIX: Explicitly use the desktop variable */
  min-height: var(--header-height-desktop); 
  z-index: 1000;
  
  /* Initial State */
  background-color: transparent; 
  border-bottom: 1px solid transparent; 
  transition: background-color 0.4s ease, border-bottom 0.4s ease, transform 0.3s ease;
}

/* Scrolled State */
header.header-scrolled {
  background-color: #000; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.5);
}

/* --- NAV CONTAINER --- */
.header-container {
  width: 70%; /* Desktop width */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  padding: 1rem 0;
}

/* --- LOGO --- */
.header-logo-link {
  position: relative;
  z-index: 2200;
  background: radial-gradient(closest-side, rgba(0,0,0,0.2) 30%, transparent 100%);
  border-radius: 50%;
}

.logo {
  width: 17.5rem;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.03);
}

/* --- DESKTOP NAVIGATION --- */
.nav-menu ul {
  list-style: none;
  display: flex;
  text-align: center;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.nav-menu ul li a {
  text-decoration: none;
  /* FIX: Updated variable */
  color: var(--fc-main); 
  /* FIX: Updated variable */
  font-family: var(--ff-nav); 
  font-weight: 600;
  font-size: var(--fs-nav);
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-menu ul li a:hover,
.active-link {
  color: var(--signature-orange) !important;
}

/* Underline Effect */
.active-link::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--signature-orange);
  margin-top: 0.2rem;
}

/* --- MOBILE ELEMENTS (Hidden on Desktop) --- */
.menu-toggle {
  display: none; /* Flex on mobile */
  flex-direction: column;
  cursor: pointer;
  gap: 0.6rem;
}

.bar {
  width: 3rem;
  height: 0.3rem;
  background-color: var(--fc-main);
  transition: all 0.3s ease;
}