/* =============================================================================
   V5 Header / Navigation — site chrome only (all pages)
   Extracted from home-v5.css — does not style page content.
   ============================================================================= */

:root {
  /* V5 â€” Sara brand theme (lime green, matches live site / V1) */
  --green: #8dc63f;
  --green-dark: #6fa82e;
  --green-light: #e8f5d4;
  --accent-rgb: 141, 198, 63;
  --ink: #141414;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --surface: #fafaf8;
  --white: #ffffff;
  --cream: #ffffff;
  --deep: #141414;
  --deep-mid: #1f1f1f;
  --sage: #6fa82e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --utility-h: 38px;
  --header-nav-h: 72px;
  --header-total: calc(var(--utility-h) + var(--header-nav-h));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1320px;
  --gutter: clamp(16px, 3vw, 48px);
  --section-pad: clamp(32px, 4vw, 52px);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-nav-h) + 26px); }
.site-footer .container,
.footer-top .container,
.footer-bottom.container {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-inline: 0;
}

/* Top utility bar */
.utility-bar {
  background: var(--deep);
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.utility-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.utility-bar a:hover { color: var(--green); }
.utility-bar svg { width: 14px; height: 14px; flex-shrink: 0; }
.utility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--green);
  font-weight: 600;
  font-size: 0.72rem;
}

/* V3 header â€” single sticky row: brand left, nav right */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}
.header-brand {
  margin-right: auto;
  flex: 0 0 auto;
  gap: 6px;
  max-width: fit-content;
  padding-right: clamp(10px, 1.5vw, 20px);
}
.brand-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}
/* Header: icon-only logo so text sits flush beside it (full SVG is ~379px wide) */
.header-brand .brand-logo {
  height: 48px;
  width: 48px;
  max-width: 48px;
  min-width: 48px;
  object-fit: cover;
  object-position: left center;
}
.header-brand .brand-text {
  margin-left: 0;
  flex-shrink: 0;
}
.header-brand .brand-text strong {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  letter-spacing: 0.08em;
}
.header-brand .brand-text span {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  margin-top: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-text strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.brand-text span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
}

.btn-label-short { display: none; }
/* Floating pill header */
.header-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  padding: 10px 0 12px;
  pointer-events: none;
  /* Float over the hero below */
  margin-bottom: calc(-1 * (var(--header-nav-h) + 22px));
}
.header-nav-inner {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-nav-h);
  padding-inline: clamp(18px, 2.5vw, 32px);
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: 6px clamp(10px, 1.2vw, 16px) 6px clamp(14px, 1.6vw, 24px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header-nav-wrap.scrolled .header-nav-inner {
  background: rgba(12, 12, 12, 0.97);
  border-color: var(--green);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.header-brand .brand-text strong { color: #ffffff; }
.header-brand .brand-text span { color: rgba(255, 255, 255, 0.55); }
.header-nav-inner > .menu-toggle {
  margin-left: auto;
  flex-shrink: 0;
}
.main-nav {
  flex: 1 1 0;
  min-width: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(0px, 0.35vw, 4px);
  width: auto;
  margin-left: auto;
  margin-bottom: 0;
  padding-left: 0;
}
.nav-item {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 13px;
  line-height: 1;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link.active {
  color: var(--green);
}
.nav-link:hover::after,
.nav-item:hover > .nav-link::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link svg { width: 9px; height: 9px; flex-shrink: 0; transition: transform 0.25s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-label-short { display: none; }

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile drawer header â€” only visible â‰¤1200px */
.mobile-nav-header {
  display: none;
}

/* Mega menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  transform: translateY(12px);
  min-width: min(720px, calc(100vw - 2 * var(--gutter)));
  max-width: min(920px, calc(100vw - 2 * var(--gutter)));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
/* Invisible hover bridge across the gap below the floating pill */
.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-item:last-child .mega-menu,
.nav-item:nth-last-child(2) .mega-menu,
.nav-item:nth-last-child(3) .mega-menu {
  left: auto;
  right: 0;
}
.mega-menu.wide {
  min-width: 0;
  width: min(920px, calc(100vw - 2 * var(--gutter)));
  max-width: calc(100vw - 2 * var(--gutter));
}
/* Collections â€” center under floating pill so all columns stay on screen */
.nav-item-collections { position: static; }
.mega-menu.collections-mega {
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(12px);
  width: min(920px, calc(100vw - 2 * var(--gutter)));
  max-width: calc(100vw - 2 * var(--gutter));
}
.nav-item-collections:hover .mega-menu.collections-mega,
.nav-item-collections:focus-within .mega-menu.collections-mega {
  transform: translateX(-50%) translateY(0);
}
.collections-mega .mega-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.collections-mega .mega-col a {
  font-size: clamp(0.8rem, 0.9vw, 0.88rem);
  white-space: nowrap;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mega-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mega-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mega-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
}
.mega-col ul li + li { margin-top: 6px; }
.mega-col a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: block;
  padding: 4px 0;
  transition: color 0.2s, padding-left 0.2s;
}
.mega-col a:hover { color: var(--green-dark); padding-left: 6px; }
.mega-col .sub-list { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--line); }
.mega-col .sub-list a { font-size: 0.82rem; color: var(--muted); }

/* Compact mega â€” Resources, Brand Programs, etc. */
.mega-menu.mega-compact {
  min-width: 0;
  width: max-content;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 12px;
}
.mega-menu.mega-compact .mega-grid {
  gap: 4px 28px;
}
.mega-menu.mega-compact .mega-grid.cols-2 {
  grid-template-columns: auto auto;
}
.mega-menu.mega-compact .mega-col a {
  font-size: 0.84rem;
  padding: 5px 0;
  white-space: nowrap;
}
.mega-menu.brand-programs-mega {
  width: max-content;
  max-width: none;
  padding: 12px 14px;
}
.mega-menu.brand-programs-mega .mega-grid.cols-2 {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 32px;
  width: auto;
}
.mega-menu.brand-programs-mega .mega-col {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}
.mega-menu.brand-programs-mega .mega-col h4 {
  font-size: 0.68rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
}
.mega-menu.brand-programs-mega .mega-col .sub-list {
  margin-top: 0;
  padding-left: 0;
  border-left: none;
}
.mega-menu.brand-programs-mega .mega-col .sub-list a {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.mega-menu.mega-compact.brand-programs-mega {
  max-width: none;
}
.mega-menu.mega-compact.brand-programs-mega .mega-grid {
  gap: 12px;
}

/* Product compact mega dropdown â€” centered card, not full screen */
.header-nav-wrap { overflow: visible; }
.nav-item-product { position: static; }
.mega-menu.product-mega {
  left: 50%;
  right: auto;
  width: min(740px, calc(100vw - 40px));
  top: calc(100% + 6px);
  z-index: 1001;
  min-width: 0;
  max-width: min(740px, calc(100vw - 40px));
  transform: translateX(-50%) translateY(6px);
  border-radius: 14px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  background: var(--white);
}
.nav-item-product:hover .mega-menu.product-mega,
.nav-item-product:focus-within .mega-menu.product-mega {
  transform: translateX(-50%) translateY(0);
}
.product-mega-inner {
  width: 100%;
  margin: 0;
  padding: 18px 22px 16px;
}
.product-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.product-mega-head h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.product-mega-head p { display: none; }
.product-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 16px;
}
.product-mega-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--green-light);
}
.product-mega-col h4 a {
  color: inherit;
  transition: color 0.2s;
}
.product-mega-col h4 a:hover { color: var(--ink); }
.product-mega-col ul { list-style: none; }
.product-mega-col ul li + li { margin-top: 2px; }
.product-mega-col ul li a {
  display: block;
  padding: 3px 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-soft);
  transition: color 0.2s, padding-left 0.2s;
}
.product-mega-col ul li a:hover {
  color: var(--green-dark);
  padding-left: 8px;
}
.product-mega-col ul li a::before {
  content: "\203A";
  margin-right: 6px;
  color: var(--green);
  font-weight: 700;
}
.product-mega-more {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.product-mega-more h4 {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.product-mega-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-mega-tags a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.product-mega-tags a:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-light);
}
.product-mega-body {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.product-mega-content { flex: 1; min-width: 0; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  background: transparent;
  z-index: 2;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: 0.25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
