/* ============================================================
   oh golly britta — nav.css
   Single source of truth for all navigation styles.
   Load on every page after styles.css.
   ============================================================ */

/* ── NAV SHELL ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--cream);
  border-bottom: 2px solid rgba(168, 82, 58, .2);
  position: sticky;
  top: 0;
  z-index: 200;
}

/* ── BRAND / LOGO ── */
a.nav-brand {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 800;
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
a.nav-brand:hover { color: var(--ink); }

.nav-logo {
  height: 40px;
  width: auto;
}

/* ── DESKTOP LINKS ── */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
  transition: width .25s var(--ease-out);
}
.nav-links a:hover { color: var(--terra); }
.nav-links a:hover::after { width: 100%; }

/* ── SOCIAL ICONS ── */
.nav-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
.nav-icons a {
  color: var(--ink);
  display: flex;
  align-items: center;
  transition: color .2s, transform .2s var(--ease-spring);
}
.nav-icons a:hover {
  color: var(--terra);
  transform: scale(1.18) rotate(-6deg);
}

/* ── HAMBURGER (mobile only) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  flex-shrink: 0;
  z-index: 10;
  transition: background .2s;
}
.nav-hamburger:hover { background: rgba(168, 82, 58, .1); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .25s var(--ease-out), opacity .18s, width .2s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.nav-mobile-menu {
  display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .nav-logo { height: 28px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-mobile-menu {
    display: none;
    width: 100%;
    order: 99;
    border-top: 1px solid rgba(168, 82, 58, .15);
    margin: 8px -20px -12px;
    padding: 0 20px;
    background: var(--cream);
  }
  .nav-mobile-menu.is-open { display: block; }

  .nav-mobile-menu ul {
    list-style: none;
    padding: 6px 0 10px;
  }
  .nav-mobile-menu ul li a {
    display: block;
    padding: 13px 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(168, 82, 58, .1);
    transition: color .2s, padding-left .2s;
  }
  .nav-mobile-menu ul li:last-child a { border-bottom: none; }
  .nav-mobile-menu ul li a:hover {
    color: var(--terra);
    padding-left: 8px;
  }
}
