/* HEADER — floating white bar. Change height, rounding, or nav size here. */

.site-header {
  position: absolute;
  top: var(--space-4);
  left: 0;
  right: 0;
  z-index: 80;
  pointer-events: none;
}

.site-header.is-fixed {
  position: fixed;
  top: var(--space-3);
}

.header-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
  padding: 0.45rem 0.65rem 0.45rem 0.85rem;
  background: #ffffff;
  color: #151515;
  border-radius: 18px;
  box-shadow: 0 10px 30px oklch(0.15 0.02 80 / 0.18);
}

[data-theme='dark'] .header-bar {
  background: #f7f3ea;
  color: #151515;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #151515;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 42px;
  width: 42px;
  object-fit: cover;
  object-position: left top;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: "Libre Baskerville", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-text span {
  margin-top: 0.15rem;
  font-family: "Libre Baskerville", serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6558;
}

.brand-text em {
  font-style: normal;
  color: #c7ad4f;
}

.brand-logo.on-dark {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.25rem 0.4rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.05rem;
}

.desktop-nav a,
.desktop-nav button {
  padding: 0.7rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #151515;
  background: transparent;
  border-radius: var(--radius-md);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav button:hover,
.desktop-nav button:focus-visible {
  color: #8a762c;
}

.nav-item {
  position: relative;
}

.nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 15rem;
  padding: 0.5rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.nav-item.is-open .nav-menu {
  display: grid;
}

.nav-menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  letter-spacing: 0.06em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-social {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: #151515;
  text-decoration: none;
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.social-btn:hover,
.social-btn:focus-visible {
  background: #efe8d6;
  color: #8a762c;
}

.social-btn.is-empty {
  opacity: 0.38;
  cursor: default;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: #151515;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #efe8d6;
}

.icon-btn:active {
  transform: scale(0.97);
}

.header-cta {
  display: none;
  min-height: 44px;
  padding-inline: 1.1rem;
  font-size: 0.72rem;
}

.menu-toggle {
  display: grid;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 1.25rem;
  right: 1.25rem;
  padding: var(--space-4);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open {
  display: grid;
  gap: var(--space-1);
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0.75rem;
  color: #151515;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: #f3eee4;
}

.mobile-sub {
  display: grid;
  padding-left: 0.75rem;
}

.mobile-sub a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.mobile-cta {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2);
  padding: var(--space-2);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

[data-theme='dark'] .mobile-cta {
  background: #f7f3ea;
}

.mobile-cta .btn {
  min-height: 46px;
  font-size: 0.72rem;
}

.mobile-cta .btn-ghost {
  color: #151515;
  border-color: #d4c9b4;
}

@media (min-width: 1100px) {
  .desktop-nav,
  .header-social {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav,
  .mobile-cta {
    display: none !important;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* --- Fix: Ensure Mobile Menu Links are Fully Clickable --- */
.mobile-nav {
  pointer-events: auto !important;
  z-index: 99999 !important;
}

.mobile-nav a {
  pointer-events: auto !important;
  cursor: pointer;
  position: relative;
  z-index: 100000;
}
