/* =========================================================
   Site chrome — header, nav, mobile drawer, footer
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, color .35s ease;
}

/* Default (transparent over dark hero photo) — text reads white */
.site-header:not(.is-scrolled) {
  color: #fff;
}
.site-header:not(.is-scrolled) .site-brand,
.site-header:not(.is-scrolled) .primary-nav a,
.site-header:not(.is-scrolled) .nav-toggle {
  color: #fff;
}
.site-header:not(.is-scrolled) .primary-nav a::after {
  background: #fff;
}
.site-header:not(.is-scrolled)::before {
  /* Subtle gradient from top so logo/nav stay legible on busy hero photos */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 17, 15, 0.32) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* Scrolled — frosted cream glass, dark text */
.site-header.is-scrolled {
  background: rgba(243, 236, 225, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px -20px rgba(21, 17, 15, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

/* ----- Brand ----- */
.site-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  transition: color .35s ease;
}
.site-brand .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--hazel));
  box-shadow: 0 0 0 4px rgba(181, 142, 84, 0.18);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.site-brand:hover .dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(181, 142, 84, 0.25);
}

/* ----- Primary nav ----- */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.primary-nav li {
  position: relative;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 10px 14px;
  text-transform: none;
  color: inherit;
  border-radius: 999px;
  transition: color .25s ease, background-color .25s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.primary-nav a:hover::after,
.primary-nav a.is-current::after {
  transform: scaleX(1);
}
.primary-nav a.is-current { font-weight: 600; }
.nav-mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(760px, calc(100vw - 48px));
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 80;
}
.nav-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.primary-nav__item--products:hover .nav-mega,
.primary-nav__item--products:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.primary-nav__item--products:hover > a,
.primary-nav__item--products:focus-within > a {
  background: rgba(21, 17, 15, 0.06);
}
.site-header:not(.is-scrolled) .primary-nav__item--products:hover > a,
.site-header:not(.is-scrolled) .primary-nav__item--products:focus-within > a {
  background: rgba(255, 255, 255, 0.16);
}
.nav-mega__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 18px;
  background: rgba(250, 246, 239, 0.96);
  color: var(--ink);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(21, 17, 15, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav-mega__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.primary-nav .nav-mega a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--ink);
  white-space: normal;
}
.primary-nav .nav-mega a::after {
  display: none;
}
.primary-nav .nav-mega a:hover,
.primary-nav .nav-mega a:focus-visible {
  background: rgba(181, 142, 84, 0.12);
  color: var(--ink);
}
.site-header:not(.is-scrolled) .primary-nav .nav-mega a {
  color: var(--ink);
}
.primary-nav .nav-mega__all {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  justify-content: flex-end;
  background: var(--ink);
  color: #fff;
}
.primary-nav .nav-mega__all::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(21, 17, 15, 0.1), rgba(21, 17, 15, 0.82));
  pointer-events: none;
}
.primary-nav .nav-mega__all img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform .45s ease, opacity .3s ease;
}
.primary-nav .nav-mega__all span,
.primary-nav .nav-mega__all em {
  position: relative;
  z-index: 2;
}
.primary-nav .nav-mega__all:hover,
.primary-nav .nav-mega__all:focus-visible {
  background: var(--ink);
  color: #fff;
}
.primary-nav .nav-mega a.nav-mega__all:hover,
.primary-nav .nav-mega a.nav-mega__all:focus-visible {
  color: #fff;
}
.primary-nav .nav-mega__all:hover img,
.primary-nav .nav-mega__all:focus-visible img {
  transform: scale(1.04);
  opacity: 0.92;
}
.site-header:not(.is-scrolled) .primary-nav .nav-mega a.nav-mega__all {
  color: #fff;
}
.nav-mega span {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}
.nav-mega em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-mega__all em {
  color: rgba(255, 255, 255, 0.62);
}

/* CTA button override — keep it tight inside the header */
.primary-nav .btn {
  padding: 11px 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-left: 4px;
}
/* The nav's `a { color: inherit }` rule (specificity 0,1,1) would otherwise
   beat `.btn--primary { color:#fff }` (0,1,0) and turn the button text the
   same colour as its dark background — invisible. Pin the colours explicitly. */
.primary-nav a.btn--primary { color: #fff; }
.primary-nav a.btn--primary:hover { color: #fff; }
.primary-nav a.btn--ghost { color: var(--ink); }
.primary-nav a.btn--light { color: var(--ink); }
/* the underline pseudo-element belongs to text links only, not buttons */
.primary-nav a.btn::after { display: none; }
/* When the header is transparent (over dark hero), use a light pill so it
   doesn't disappear into the photo */
.site-header:not(.is-scrolled) .primary-nav .btn--primary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: transparent;
}
.site-header:not(.is-scrolled) .primary-nav .btn--primary:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ----- Mobile menu toggle ----- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: inherit;
  cursor: none;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background-color .25s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.site-header.is-scrolled .nav-toggle:hover { background: rgba(21, 17, 15, 0.06); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.mobile-drawer a {
  font-family: var(--serif);
  font-style: normal;
  font-size: 2.4rem;
  font-weight: 500;
}
.mobile-drawer__sub {
  padding: 8px 0 8px 22px !important;
}
.mobile-drawer__sub a {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.mobile-drawer .close {
  position: absolute;
  top: 22px; right: 22px;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 100px 0 32px;
  font-size: 14px;
}
.footer-mark {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.9;
  margin-bottom: 80px;
  white-space: nowrap;
  text-align: center;
  /* keep the 'y' descender in "See Your Shine" from being clipped */
  padding-bottom: 0.12em;
  letter-spacing: -0.04em;
  user-select: none;
  background: linear-gradient(
    90deg,
    #b58e54 0%, #f3d9a4 12%, #e9b07a 24%,
    #c69aff 36%, #ffa1c2 48%, #ffe0b3 60%,
    #b58e54 72%, #c8a67a 84%, #b58e54 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 60px rgba(181, 142, 84, 0.18);
  /* fast back-and-forth sheen */
  animation: footer-mark-flow 3.5s ease-in-out infinite alternate;
}
@keyframes footer-mark-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes footer-mark-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand .site-brand { color: #fff; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
  font-size: 13px;
  line-height: 1.7;
}
.footer-contact p {
  display: flex; gap: 12px; align-items: center;
  color: rgba(255, 255, 255, 0.7); margin-bottom: 10px;
}
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .primary-nav ul, .primary-nav .btn { display: none; }
  .nav-mega { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-drawer { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}
