/* ── Site Header ── */
.site-header {
  background: var(--color-burgundy);
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
  align-items: center;
  gap: 16px;
  min-height: var(--header-height);
  height: auto;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-area { display: flex; align-items: center; gap: 16px; justify-self: start; }
.logo-text  { white-space: nowrap; } /* prevent logo text wrapping — ensures min-content = full text width */
.logo-link  { display: flex; align-items: center; text-decoration: none; }

.logo-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--color-gold);
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }

.site-name {
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-size: 1.5rem;
  font-weight: 700;
}
.site-tagline {
  font-family: var(--font-serif);
  color: var(--color-blush);
  font-size: 0.94rem;
  font-style: italic;
  margin-top: 2px;
}

/* ── Primary Nav ── */
/* main-nav sits in the centre grid column.
   min-width:0 lets the column shrink below content size so overflow:hidden
   can clip items and the priority-nav JS can detect when to push items to More. */
.main-nav  { min-width: 0; overflow: hidden; display: flex; align-items: center; }

/* nav-clip fills the centre column; overflow:hidden clips items that don't fit.
   The More dropdown now lives outside main-nav so it is never clipped. */
.nav-clip  { overflow: hidden; width: 100%; }

.primary-menu,
.overflow-menu { list-style: none; display: flex; gap: 4px; }
.primary-menu  { flex-shrink: 0; flex-wrap: nowrap; } /* natural width, no wrapping */

.primary-menu a,
.overflow-menu a {
  color: #f0e8e8;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 3px;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.overflow-menu a:hover { color: var(--color-gold); }

/* ── More Dropdown ── */
.nav-more-wrap { position: relative; justify-self: end; }

.nav-more-btn {
  background: transparent;
  border: 1px solid rgba(200,169,81,0.4);
  border-radius: 3px;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 13px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-more-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--color-burgundy);
  border: 1px solid rgba(200,169,81,0.3);
  border-radius: 4px;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 200;
}
.nav-more-dropdown.is-open { display: block; }

.overflow-menu { flex-direction: column; gap: 0; }
.overflow-menu a {
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.overflow-menu li:last-child a { border-bottom: none; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--color-footer);
  padding: 10px 40px;
  font-size: 0.9rem;
  color: #c8a8a8;
}
.breadcrumb a { color: var(--color-gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* Hide breadcrumb on homepage */
.home .breadcrumb { display: none; }

/* ── Mobile header ── */
@media (max-width: 768px) {
  .site-header  { padding: 12px 20px; gap: 8px; column-gap: 8px; }
  .logo-circle  { width: 52px; height: 52px; }
  .site-name    { font-size: 1.2rem; }
  .site-tagline { font-size: 0.8rem; }
  .primary-menu a,
  .overflow-menu a,
  .nav-more-btn { padding: 6px 8px; font-size: 0.8rem; }
  .breadcrumb   { padding: 8px 20px; }
}

@media (max-width: 480px) {
  .site-header  { padding: 10px 14px; }
  .logo-area    { gap: 10px; }
  .logo-circle  { width: 44px; height: 44px; }
  .site-name    { font-size: 1rem; }
  .site-tagline { font-size: 0.75rem; }
  .primary-menu a,
  .overflow-menu a,
  .nav-more-btn { padding: 5px 7px; font-size: 0.75rem; }
  .breadcrumb   { padding: 8px 14px; }
}
