/* =========================================================
   Parley Rum | Header (header.css)

   Controls the fixed top navigation bar.
   Includes a mobile layout where the menu collapses.

   SAFE TO EDIT:
   - rope colors in .header-rope
   - spacing in .header-inner
   - font size in .brand-text

   DO NOT TOUCH (unless you know why):
   - position: fixed and z-index (keeps header visible)
   ========================================================= */

.parley-header{
  /* Header stays on screen while scrolling */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  /* Keeps it above all page content */
  z-index: 1000;

  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke);
}

/* Decorative rope strip */
.header-rope{
  height: 10px;
  background: repeating-linear-gradient(45deg, #c8a15a 0 10px, #b98c44 10px 20px);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

/* Brand area (logo + name + tagline) */
.brand-wrap{
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

/* Compass icon tile */
.brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), rgba(208,122,45,.18));
  border: 1px solid var(--stroke);
  filter: saturate(.9);
}

.brand-text{
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 20px;
}

/* Tagline next to the brand (hidden on mobile) */
.brand-tag{
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Desktop navigation */
.nav{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover{
  background: rgba(208,122,45,.18);
  color: var(--text);
}

/* The small emojis next to links */
.nav-icon{
  font-size: 14px;
  line-height: 1;
  filter: saturate(.85);
  opacity: .85;
}

/* Mobile menu button (hidden on desktop) */
.nav-toggle{
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(208,122,45,.18);
  cursor: pointer;
}

/* Hamburger lines */
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before{ position: absolute; top: -6px; left: 0; }
.nav-toggle span::after{ position: absolute; top:  6px; left: 0; }

/* Thin brass line under header */
.header-brass{
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .6;
}

/* =========================================================
   Responsive behavior
   Under 900px wide:
   - hide tagline
   - show hamburger button
   - hide nav until it is opened (.nav.is-open)
   ========================================================= */
@media (max-width: 900px){
  .brand-tag{ display: none; }
  .nav-toggle{ display: block; }

  .nav{
    display: none; /* hidden until .is-open is added by JavaScript */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-md);
    box-shadow: var(--sh-med);
    padding: 10px;
    margin-top: 8px;
  }

  .nav.is-open{
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .nav a{
    margin: 0;
    justify-content: center;
  }
}
