:root {
  --gold: #c19636;
  --black: #191919;
  --white: #fff;
}

header {
  background: var(--black);
  color: var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}
/* Keep header visible while scrolling; use fixed so it stays on all browsers */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  width: 100%;
}


.logo-container { display: flex; align-items: center; gap: 0.75rem; flex: 1.5; }
.logo { order: 1; }
.logo { height: 100px; width: 300px; }
nav { flex: 1; display: flex; justify-content: flex-end; flex-wrap: wrap; order: 2; }
nav a { color: var(--white); text-decoration: none; margin: 0 1rem; font-weight: 400; font-size: 1.5rem; }
nav a:hover { color: var(--gold); }

/* Header Get Quote button (matches hero style) */
.header-quote {
  position: static;
  padding: 1rem 1rem;
  border-radius: 10px;
  background: var(--gold);
  color: var(--white);
  border: 2px solid rgba(0,0,0,0.6);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  order: 3;
  margin-left: 1rem;
  box-sizing: border-box;
  z-index: 1150;
}
.header-quote:hover { background: #b9952c; color: #000; }

/* Container for dropdown */
nav .dropdown { position: relative; display: inline-block; }

/* Dropdown content hidden by default */
nav .dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* Links inside dropdown */
nav .dropdown-content a { display: block; padding: 10px 15px; text-decoration: none; color: var(--black); }
nav .dropdown-content a:hover { background-color: var(--gold); }

/* Show dropdown on hover */
nav .dropdown:hover .dropdown-content { display: block; }
/*nav .dropdown:hover .dropbtn { text-shadow: 0 0 5px var(--gold); }*/

/* Hamburger */
.hamburger { display: none; flex-direction: column; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 1001; order: 4; }
.hamburger-line { width: 30px; height: 3px; background-color: var(--white); margin: 4px 0; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }

/* Hamburger and Mobile Nav */
@media (max-width: 900px) {
  /* Hamburger */
  .hamburger {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  header {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
  }

  .logo-container {
    width: 100%;
    justify-content: center;
  }

/* 3. The Nav "Menu" Box */
  nav {
    display: none; 
    flex-direction: column;
    width: 95%;
    max-width: 400px;
    background: var(--gold);
    border-radius: 12px;
    margin-top: 1rem;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1100;
  }

  nav.active {
    display: flex;
  }

  /* 4. Flatten all dropdowns into simple list items */
  nav .dropdown {
    width: 100% !important;
    display: block !important;
    position: static !important;
  }

  /* Kill the sub-menus entirely on mobile */
  nav .dropdown-content {
    display: none !important;
  }

  /* 5. Clean, centered links */
  nav a {
    display: block !important;
    width: 100%;
    padding: 1.2rem;
    margin: 0;
    text-align: center;
    color: var(--white) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1.3rem;
    text-decoration: none;
  }

  nav a:last-child {
    border-bottom: none;
  }

  .header-quote { 
    display: none !important; 
  }
}