/* =========================================
   NAVBAR - Modern Two-Tier Layout
   ========================================= */

#nav-placeholder {
  background-image: var(--lether-img);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* min-height: 124px; */
  contain-intrinsic-size: 124px;
}

.navbar {
  display: flex;
  flex-direction: column;
  background-image: var(--parchment-img-top);
  background-size: 100% 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(45, 38, 30, 0.12);
  border-bottom: 2px solid var(--accent-gold);
  transition: box-shadow var(--transition-fast);
}

/* ---- TOP ROW: Logo + tagline ---- */
.nav-top-row {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: .4rem .05rem;
  min-height: 76px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.nav-logo {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Rye', Georgia, serif;
  color: var(--bg-callout);
  letter-spacing: 0.5px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
  transition: font-size 0.15s ease-out;
  padding-top: 2px;
}

.nav-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 1px;
  text-align: center;
  transition: font-size 0.15s ease-out;
}

.nav-contact {
  display: none;
}

/* ---- BOTTOM ROW: Nav Links ---- */
.nav-links-row {
  display: flex;
  justify-content: center;
  background-color: var(--bg-callout);
  background-image: linear-gradient(to right, rgba(28, 56, 34, 0.98), rgba(18, 38, 22, 0.98));
  border-top: 1px solid rgba(194, 155, 56, 0.3);
  width: 100%;
}

/* Hidden checkbox toggle for mobile */
.menu-toggle {
  display: none;
}

/* Hamburger - desktop hidden */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--text-light);
  padding: 0.8rem 2rem;
  align-self: flex-end;
  background: none;
  border: none;
}

/* Nav link list */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  max-width: 1200px;
  width: 100%;
}

.nav-links li {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

/* Links */
.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
  white-space: nowrap;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Hover state */
.nav-links a:hover {
  color: var(--accent-gold-light);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Active page highlight */
.nav-links a.active,
.nav-links li.active>a {
  color: var(--accent-gold-light);
  background-color: rgba(255, 255, 255, 0.12);
}

/* ---- Dropdown Menu ---- */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: var(--bg-xl-light);
  background-image:
    linear-gradient(rgba(244, 236, 220, 0.95), rgba(244, 236, 220, 0.98)),
    var(--parchment-img);
  background-size: cover;
  box-shadow: 0 8px 24px rgba(45, 38, 30, 0.2);
  border: 1px solid var(--accent-gold);
  border-top: none;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1010;
  flex-direction: column;
}

.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown {
  display: flex;
}

.nav-dropdown li {
  width: 100%;
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: none;
  letter-spacing: 0.2px;
  text-align: left;
  background-color: transparent;
  border-bottom: 1px solid rgba(90, 56, 37, 0.08);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown a:hover {
  background-color: rgba(194, 155, 56, 0.15);
  color: var(--accent-terracotta);
}

.nav-dropdown li:last-child a {
  border-bottom: none;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  background-color: #76c043;
  color: #ffffff !important;
}

/* =========================================
   MOBILE (≤930px)
   ========================================= */
@media (max-width: 970px) {
  #nav-placeholder {
    min-height: 180px;
    contain-intrinsic-size: 180px;
  }

  .navbar {
    position: relative;
    min-height: 180px;
  }

  .nav-top-row {
    padding: 0.75rem 1.25rem;
    height: 121px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-logo {
    font-size: clamp(1.25rem, 4.8vw, 2rem);
    line-height: 1.15;
  }

  .nav-contact {
    align-items: flex-start;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 56px;
    padding: 0 2rem;
    background-color: var(--bg-callout);
    width: 100%;
    text-align: right;
  }

  .nav-links-row {
    flex-direction: column;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .menu-toggle:checked~.nav-links-row .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-dropdown-wrapper {
    flex-direction: column;
  }

  .nav-dropdown {
    display: flex;
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.22);
  }

  .nav-dropdown a {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    color: var(--text-light-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-dropdown li:last-child a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-dropdown a:hover,
  .nav-dropdown a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold-light) !important;
  }

  .nav-links>li:last-child>a {
    border-bottom: none;
  }
}
