/* ══════════════════════════════════════════════════════════════
   lv.css — Shared header + footer for all Le Vault pages
   ══════════════════════════════════════════════════════════════ */

/* ── Unified sticky header ───────────────────────────────────── */
.lv-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 80px;
  background: #fff;
  border-bottom: 1px solid #000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  gap: 16px;
}

.lv-header-brand {
  font-family: 'Bebas Neue', 'DM Sans', sans-serif;
  font-size: 34px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  justify-self: start;
  flex-shrink: 0;
  line-height: 1;
}

.lv-header-slogan {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1A1A18;
  display: flex;
  align-items: center;
  white-space: nowrap;
  justify-self: center;
  user-select: none;
}

.lv-hdot {
  color: rgba(26, 26, 24, 0.4);
  margin: 0 6px;
  line-height: 1;
}

.lv-hverified {
  color: #E5265A;
}

.lv-header-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: 0;
  justify-self: end;
  height: 100%;
}

/* Actions group: logged-out (SIGN IN + JOIN) or logged-in (✉ + 👤) */
.lv-header-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

/* Hairline divider between actions and hamburger */
.lv-header-nav-divider {
  display: block;
  width: 1px;
  height: 20px;
  background: rgba(26, 26, 24, 0.12);
  flex-shrink: 0;
  margin: 0 16px;
  align-self: center;
}

/* ── Uniform 36×36 flex-center wrappers — high specificity to beat legacy ── */
.lv-header .lv-header-nav .lv-header-inbox,
.lv-header .lv-header-nav .lv-header-account,
.lv-header .lv-header-nav .lv-header-hamburger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px;
  height: 36px !important;
  padding: 0;
  box-sizing: border-box;
  line-height: 1 !important;
  vertical-align: middle;
  flex-shrink: 0;
}
/* Matching specificity to override the inline-flex !important above when hidden */
.lv-header .lv-header-nav .lv-header-inbox[hidden],
.lv-header .lv-header-nav .lv-header-account[hidden] {
  display: none !important;
}

.lv-header-inbox svg,
.lv-header-account svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Account icon (👤) */
.lv-header-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1A1A18;
  text-decoration: none;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.lv-header-account:hover { opacity: 1; }
.lv-header-account[hidden] { display: none !important; }

/* LOGIN text link (logged-out) */
.lv-header-login {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A1A18;
  opacity: 0.85;
  text-decoration: none;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 160ms ease;
}
.lv-header-login:hover {
  opacity: 1;
}

/* CTA button — shared style for OPEN LE VAULT and LIST A PIECE (identical) */
.lv-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  background: #1A1A18;
  color: #F2F0EA;
  font-family: 'Bebas Neue', 'DM Sans', sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid #1A1A18;
  border-radius: 0;
  cursor: pointer;
  transition: background 200ms ease;
}
.lv-header-cta:hover {
  background: #2A2A26;
}

/* Desktop (≥721px): LOGIN becomes an outline button matching the solid CTA's
   height, so the two read as a clear primary/secondary button pair. Mobile
   (≤720px) keeps the base text-link style above — untouched. */
@media (min-width: 721px) {
  .lv-header-login {
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    background: transparent;
    border: 1.5px solid #1A1A18;
    color: #1A1A18;
    font-family: 'Bebas Neue', 'DM Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.1em;
    opacity: 1;
    transition: background 200ms ease, color 200ms ease;
  }
  .lv-header-login:hover {
    background: #1A1A18;
    color: #F2F0EA;
    opacity: 1;
  }
}

/* Ensure HTML `hidden` attribute is never overridden by CSS display rules. */
.lv-header .lv-header-nav .lv-header-cta[hidden],
.lv-header .lv-header-nav .lv-header-login[hidden],
.lv-header .lv-header-nav .lv-header-inbox[hidden],
.lv-header .lv-header-nav .lv-header-account[hidden] { display: none !important; }
.lv-header-cta[hidden],
.lv-header-login[hidden],
.lv-header-inbox[hidden],
.lv-header-account[hidden] { display: none !important; }
.lv-header-inbox-badge[hidden] { display: none !important; }

/* Inbox icon link */
.lv-header-inbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #000;
  text-decoration: none;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.lv-header-inbox svg { display: block; }
.lv-header-inbox:hover { opacity: 1; }

.lv-header-inbox-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1A1A18;
  color: #F2F0EA;
  font-size: 9px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── Hamburger menu button ───────────────────────────────────── */
.lv-header-hamburger {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.lv-header-hamburger:hover { opacity: 1; }

/* Lines container: 20×20 block centred inside the 36×36 button */
.lv-header-menu-btn-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.lv-hbg-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #1A1A18;
  transform-origin: center;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.lv-hbg-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E5265A;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.lv-hbg-dot.is-visible { opacity: 1; }

/* Hamburger → X animation */
.lv-header-hamburger.is-open .lv-header-menu-btn-lines .lv-hbg-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.lv-header-hamburger.is-open .lv-header-menu-btn-lines .lv-hbg-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.lv-header-hamburger.is-open .lv-header-menu-btn-lines .lv-hbg-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile header (≤720px): 2-row layout ────────────────────── */
@media (max-width: 720px) {
  .lv-header {
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 0 20px;
    gap: 0;
  }

  .lv-header-brand {
    grid-column: 1;
    grid-row: 1;
    padding: 10px 0 6px;
    font-size: 26px;
    letter-spacing: 0.08em;
  }

  .lv-header-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-items: center;
    padding: 8px 0;
    gap: 0;
  }
  .lv-header-nav-actions { margin-left: 12px; gap: 6px; }
  .lv-header-nav-divider { margin: 0 10px; }

  .lv-header-slogan {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    padding-bottom: 10px;
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .lv-header-login {
    font-size: 11px;
    padding: 8px 2px;
  }

  .lv-header-cta {
    font-size: 14px;
    padding: 0 14px;
    height: 38px;
    letter-spacing: 0.06em;
  }

  /* Homepage (only page with a hamburger + drawer): the LOGIN / OPEN LE VAULT /
     LIST A PIECE CTAs move INTO the drawer on mobile so they never crowd the
     hamburger off the clickable area. Scoped via :has() so the other 19 pages
     (no drawer) keep their header CTAs reachable. */
  .lv-header:has(.lv-header-hamburger) .lv-header-login,
  .lv-header:has(.lv-header-hamburger) #headerCta,
  .lv-header:has(.lv-header-hamburger) #headerListPiece {
    display: none !important;
  }

  /* Guarantee the hamburger stays on top and fully clickable */
  .lv-header-hamburger {
    z-index: 20;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .lv-header {
    padding: 0 16px;
  }
}

@media (max-width: 380px) {
  .lv-header-cta {
    font-size: 13px;
    padding: 0 12px;
    height: 36px;
  }
  .lv-header-login {
    font-size: 10px;
    padding: 8px 1px;
  }
  .lv-header-nav-actions { gap: 4px; }
}


/* ══════════════════════════════════════════════════════════════
   Cream footer — RHODE-inspired vertical layout
   ══════════════════════════════════════════════════════════════ */
.lv-footer {
  background: #F2F0EA;
  color: #1A1A18;
  margin-top: auto;
}

/* ── 1. Brand statement ──────────────────────────────────────── */
.lv-footer-brand-statement {
  padding: 80px 56px 64px;
  border-bottom: 1px solid rgba(26, 26, 24, 0.10);
  background: #F2F0EA;
}

.lv-footer-signoff {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #1A1A18;
  margin: 0 0 32px;
  text-transform: uppercase;
  font-style: normal;
}

.lv-footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #1A1A18;
  max-width: 520px;
  margin: 0 0 24px;
  font-style: normal;
}

.lv-footer-about-link {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1A1A18;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-style: normal;
  border-radius: 0;
  padding: 0;
  opacity: 0.85;
  transition: opacity 200ms ease, transform 200ms ease;
}
.lv-footer-about-link:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* ── 2. Newsletter ───────────────────────────────────────────── */
.lv-footer-newsletter {
  padding: 56px 48px;
  border-bottom: 1px solid rgba(26, 26, 24, 0.12);
}

.lv-footer-newsletter-inner {
  max-width: 560px;
}

.lv-footer-nl-head {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1A1A18;
  margin: 0 0 16px;
}

.lv-footer-nl-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A18;
  max-width: 480px;
  margin: 0 0 22px;
}

.lv-footer-nl-form {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.lv-footer-nl-input {
  flex: 1;
  height: auto;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 24, 0.15);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1A1A18;
  letter-spacing: 0.01em;
  padding: 14px 18px;
  outline: none;
  border-radius: 0;
  min-width: 0;
  transition: border-color 0.2s ease;
}
.lv-footer-nl-input::placeholder { color: rgba(26, 26, 24, 0.45); letter-spacing: 0.01em; }
.lv-footer-nl-input:focus { border-bottom-color: #1A1A18; }
.lv-footer-nl-input:disabled { opacity: 0.6; }

.lv-footer-nl-btn {
  height: 48px;
  background: #1A1A18;
  color: #F2F0EA;
  border: 1px solid #1A1A18;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 22px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.lv-footer-nl-btn:hover:not(:disabled) { opacity: 0.78; }
.lv-footer-nl-btn:disabled { opacity: 0.45; cursor: default; }

.lv-footer-nl-status {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 10px 0 12px;
  min-height: 1em;
}
.lv-footer-nl-status.is-success { color: #1a6a35; }
.lv-footer-nl-status.is-error   { color: #8a2a2a; }

.lv-footer-nl-consent {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(26, 26, 24, 0.45);
  margin: 0;
  line-height: 1.6;
}
.lv-footer-nl-consent a {
  color: rgba(26, 26, 24, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms ease;
}
.lv-footer-nl-consent a:hover { opacity: 0.7; }

/* ── 3. Three columns ────────────────────────────────────────── */
.lv-footer-cols-block {
  padding: 56px 48px;
  border-bottom: 1px solid rgba(26, 26, 24, 0.12);
}

.lv-footer-cols-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 800px;
}

.lv-footer-col3-head {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1A1A18;
  margin: 0 0 20px;
  display: block;
}

.lv-footer-col3-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.lv-footer-col3-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1A1A18;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 200ms ease, transform 200ms ease;
}
.lv-footer-col3-links a:hover { opacity: 1; transform: translateX(4px); }
.lv-footer-col3-links svg { flex-shrink: 0; }

/* SHOP links: assertive caps voice */
.lv-footer-cols-inner > .lv-footer-col3:first-child .lv-footer-col3-links a {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* OFFICIAL + SOCIAL: Title Case preserved (no text-transform override needed) */

/* ── 4. Support ──────────────────────────────────────────────── */
.lv-footer-support-block {
  padding: 48px 48px;
  border-bottom: 1px solid rgba(26, 26, 24, 0.12);
}

.lv-footer-support-head {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1A1A18;
  margin: 0 0 20px;
}

.lv-footer-support-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(26, 26, 24, 0.6);
  margin: 0 0 6px;
  line-height: 1.6;
}

.lv-footer-support-email {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1A1A18;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 24, 0.28);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.lv-footer-support-email:hover { border-bottom-color: #1A1A18; }

/* ── 5. Bottom bar ───────────────────────────────────────────── */
.lv-footer-bottom {
  padding: 22px 48px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.lv-footer-legal {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #1A1A18;
  opacity: 0.5;
  margin: 0;
}

.lv-footer-motto {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1A1A18;
  opacity: 0.5;
  margin: 0;
}

/* ── Mobile footer (≤720px: tablet + phone) ─────────────────── */
@media (max-width: 720px) {
  .lv-footer-brand-statement { padding: 56px 24px 48px; }
  .lv-footer-signoff { font-size: 64px; margin-bottom: 24px; }
  .lv-footer-tagline { font-size: 16px; margin-bottom: 20px; }
  .lv-footer-about-link { font-size: 12px; }
  .lv-footer-newsletter { padding: 40px 20px; }
  .lv-footer-cols-block { padding: 40px 20px; }
  .lv-footer-support-block { padding: 36px 20px; }
  .lv-footer-bottom { padding: 20px 20px 28px; }

  /* 3-col stays 3-col on tablet — collapses to 2-col at ≤640px */

  /* Stack email + button — field above, CTA below */
  .lv-footer-nl-form { flex-direction: column; gap: 0; }
  .lv-footer-nl-input {
    border-bottom: none; /* button's border-top provides the visual break */
    padding: 14px 16px;
    font-size: 14px;
  }
  .lv-footer-nl-btn { height: 54px; width: 100%; }
}

/* ── Phone layout (≤640px): 2-col SHOP+OFFICIAL, SOCIAL below ── */
@media (max-width: 640px) {
  /* SHOP (col1) + OFFICIAL (col2) side by side, SOCIAL full-width below */
  .lv-footer-cols-inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 40px;
    align-items: start;
    max-width: none;
  }

  /* SOCIAL is 2nd child in source but should appear after OFFICIAL (3rd).
     order:3 pushes it below both SHOP (order:0) and OFFICIAL (order:0). */
  .lv-footer-col3--social {
    order: 3;
    grid-column: 1 / -1;
  }

  /* Instagram + TikTok in a horizontal row */
  .lv-footer-col3--social .lv-footer-col3-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 28px;
  }

  /* Copyright bar: stack on phones */
  .lv-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 20px 24px;
  }
}
