/* ═══════════════════════════════════════════════════════════
   TWO FRIENDS PHOTOGRAPHY — v2 SHARED STYLESHEET
   Header, mobile nav, footer, design tokens, paper grain,
   reduced-motion, boudoir nav accent. Loaded by every v2 page.

   Cascade contract:
   1. css/style.css (legacy, some pages)   ← loaded first
   2. css/v2-shared.css (this file)         ← loaded second, wins token defs
   3. inline <style> in each page           ← loaded last, page-specific wins

   boudoir.html links this file then redefines :root to purple in its
   inline <style>; because inline comes after, the purple palette wins.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:           #14160e;
  --bg-surface:   #1c1f15;
  --bg-mid:       #252a1d;
  --bg-warm:      #2c2a1f;

  --gold:         #d4ae72;
  --gold-bright:  #ecc585;
  --gold-deep:    #a88450;
  --gold-mid:     rgba(212,174,114,0.4);
  --gold-soft:    rgba(212,174,114,0.12);

  --cream:        #f5ead4;
  --cream-warm:   #ede0c2;

  --text:         #f5f0e6;
  --text-muted:   #8a8775;
  --text-dim:     rgba(245,240,230,0.45);

  --border:       rgba(212,174,114,0.15);
  --border-mid:   rgba(212,174,114,0.3);
  --ink:          #14160e;

  /* --sans and --font are aliases (some pages reference one or the other) */
  --sans:         'Montserrat', sans-serif;
  --font:         'Montserrat', sans-serif;
  --serif:        'Cormorant Garamond', serif;
  --hand:         'Caveat', cursive;
  --mono:         'JetBrains Mono', monospace;

  /* Boudoir brand accent (Maggie) */
  --purple:        #9b8aa0;
  --purple-bright: #c4b3cb;
  --purple-mid:    rgba(155,138,160,0.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}
/* Editorial paper-grain overlay — subtle, applies sitewide */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ──────────────────────────────────────
   HEADER
────────────────────────────────────── */
.v-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 60px;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.v-header.scrolled {
  background: rgba(20,22,14,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 60px;
  border-bottom: 1px solid var(--border);
}
.v-header-mark { display: flex; flex-direction: column; line-height: 1; }
.v-header-mark .m-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.v-header-mark .m-sub {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 6px;
  padding-left: 2px;
}
.v-nav { display: flex; gap: 36px; }
.v-nav a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}
.v-nav a:hover { color: var(--gold-bright); }
.v-nav a::after {
  content: ''; position: absolute; bottom: -6px; left: 50%;
  width: 0; height: 1px; background: var(--gold-bright);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  transform: translateX(-50%);
}
.v-nav a:hover::after { width: 100%; }
.v-nav a.current { color: var(--gold-bright); }
.v-nav a.current::after { width: 100%; }

.v-header-right { display: flex; align-items: center; gap: 26px; }
.v-ig-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px;
  border: 1px solid var(--gold-mid);
  transition: all 0.3s ease;
  line-height: 0;
}
.v-ig-link:hover { border-color: var(--gold-bright); }
.v-ig-link:hover .v-ig-icon { fill: var(--gold-bright); }
.v-ig-icon { width: 14px; height: 14px; fill: var(--text-muted); transition: fill 0.3s ease; display: block; }
.v-inquire {
  font-family: var(--sans);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cream);
  border: 1px solid var(--gold-mid);
  padding: 9px 18px;
  transition: all 0.3s ease;
}
.v-inquire:hover { background: var(--gold-bright); color: var(--ink); border-color: var(--gold-bright); }

.v-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.v-hamburger span { display: block; width: 26px; height: 1.5px; background: var(--cream); transition: all 0.3s ease; }
.v-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--gold-bright); }
.v-hamburger.open span:nth-child(2) { opacity: 0; }
.v-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--gold-bright); }

.v-mobile-nav {
  position: fixed;
  top: 0; right: -320px;
  width: 320px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 60px 50px;
  border-left: 1px solid var(--border);
  transition: right 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.v-mobile-nav.open { right: 0; }
.v-mobile-nav a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.v-mobile-nav a:hover { color: var(--gold-bright); }
.v-mobile-nav .v-mn-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
  text-transform: none;
}
.v-mobile-nav .v-mn-inquire {
  border: 1px solid var(--gold-mid);
  padding: 14px 20px;
  text-align: center;
  margin-top: 1.4rem;
  color: var(--cream);
}
.v-mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,22,14,0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 199;
}
.v-mobile-nav-overlay.open { display: block; }

/* ──────────────────────────────────────
   FOOTER
────────────────────────────────────── */
.v-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 90px 60px 40px;
  text-align: center;
}
.v-footer-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.4rem;
  line-height: 1;
  letter-spacing: -0.005em;
}
.v-footer-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.v-footer-tag::before, .v-footer-tag::after {
  content: ''; width: 24px; height: 1px; background: var(--gold-mid);
}
.v-footer-nav {
  display: flex; justify-content: center; gap: 36px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.v-footer-nav a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.v-footer-nav a:hover { color: var(--gold-bright); }
.v-footer-copy {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ──────────────────────────────────────
   BOUDOIR NAV ACCENT (Maggie's dusty mauve)
────────────────────────────────────── */
.v-nav a[href="/boudoir"],
.v-mobile-nav a[href="/boudoir"],
.v-footer-nav a[href="/boudoir"] { color: var(--purple); }
.v-nav a[href="/boudoir"]:hover,
.v-mobile-nav a[href="/boudoir"]:hover,
.v-footer-nav a[href="/boudoir"]:hover { color: var(--purple-bright); }
.v-nav a.current[href="/boudoir"] { color: var(--purple-bright); }
.v-nav a[href="/boudoir"]::after { background: var(--purple-bright); }

/* ──────────────────────────────────────
   RESPONSIVE — header collapse + footer compaction
────────────────────────────────────── */
@media (max-width: 900px) {
  .v-header { padding: 16px 24px; }
  .v-header.scrolled { padding: 12px 24px; }
  .v-nav { display: none; }
  .v-cta, .v-inquire { display: none; }
  .v-hamburger { display: flex; }
  .v-header-right { gap: 16px; }
}
@media (max-width: 768px) {
  .v-footer { padding: 44px 20px 24px; }
  .v-footer-mark { font-size: 1.5rem; line-height: 1.1; }
  .v-footer-tag { margin-bottom: 1.4rem; font-size: 8px; letter-spacing: 0.4em; }
  .v-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 8px;
    margin-bottom: 1.2rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .v-footer-nav a { font-size: 9px; letter-spacing: 0.24em; }
}

/* Respect users' motion preferences (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keyboard focus — visible against the dark editorial palette (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Strip the legacy browser-default outline when the polyfill above is active */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }
