/* ===========================================================
   NMG LAW — Shared styles (revamp)
   Palette, typography, nav, footer, mobile drawer, sticky CTA
   =========================================================== */

:root {
  /* Base palette (carried over from original) */
  --ink:        #0f0f13;        /* deeper than before, gives richer contrast */
  --ink-2:      #141419;
  --ink-3:      #1a1a21;
  --ink-card:   #1c1c24;
  --gold:       #CC946D;
  --gold-light: #dba882;
  --gold-dim:   #9a7050;
  --gold-wash:  rgba(204, 148, 109, 0.08);
  --text:       #ece8e0;
  --text-dim:   #9a9890;
  --text-faint: #6e6c66;
  --rule:       rgba(204, 148, 109, 0.22);
  --rule-soft:  rgba(204, 148, 109, 0.10);
  --cream:      #f5eae2;
  --cream-2:    #efe1d4;
  --cream-3:    #e9d6c4;
  --ink-text:   #1c1c24;
  --ink-text-dim: #4a4a55;

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans:  'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'Outfit', 'Inter', sans-serif;

  --shadow-lift: 0 30px 60px -24px rgba(0,0,0,0.55);
  --shadow-card: 0 10px 30px -12px rgba(0,0,0,0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}
body { position: relative; min-height: 100vh; }
img, video { display: block; max-width: 100%; }

/* Noise + vignette */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Selection */
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 2rem; height: 1px;
  background: var(--gold-dim);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: '';
  width: 2rem; height: 1px;
  background: var(--gold-dim);
}
.on-cream .eyebrow { color: var(--gold-dim); }
.on-cream .eyebrow::before, .on-cream .eyebrow::after { background: var(--gold-dim); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.08;
  color: var(--text);
}
h2 em, h1 em { font-style: italic; color: var(--gold-light); }
.on-cream h1, .on-cream h2, .on-cream h3 { color: var(--ink-text); }
.on-cream h1 em, .on-cream h2 em { color: var(--gold-dim); }

p { color: var(--text-dim); line-height: 1.72; }
.on-cream p { color: var(--ink-text-dim); }

a { color: inherit; }

/* ---------- Layout wrappers ---------- */
.shell { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 520px) { .shell { padding: 0 1.75rem; } }
@media (min-width: 720px) { .shell { padding: 0 2.25rem; } }

.band         { position: relative; z-index: 1; }
.band.dark    { background: var(--ink); }
.band.cream   { background: var(--cream); }
.band.cream-2 { background: var(--cream-2); }

/* ---------- NAV ---------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  background: rgba(15, 15, 19, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
}
.nav-wrap.scrolled {
  background: rgba(15, 15, 19, 0.88);
  border-bottom-color: var(--rule-soft);
}
.nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 720px) { .nav { padding: 0.6rem 2rem; } }

.nav .brand { display: flex; align-items: center; }
.nav .brand img {
  height: 84px;
  width: auto;
  margin: -0.75rem 0;
  transition: height 0.3s ease;
}
.nav-wrap.scrolled .nav .brand img { height: 68px; }
@media (min-width: 1100px) {
  .nav .brand img { height: 108px; }
  .nav-wrap.scrolled .nav .brand img { height: 84px; }
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2.25rem;
}
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-light); }

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.25rem;
  background: var(--gold);
  color: var(--ink) !important;
  border: 1px solid var(--gold);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1;
}
.nav-links a.nav-cta::after { display: none !important; }
.nav-links a.nav-cta:hover { background: var(--gold-light); border-color: var(--gold-light); }
.nav-links a.nav-cta svg { display: none !important; }

/* Hamburger (mobile) */
.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-burger:hover { border-color: var(--gold); }
.nav-burger svg { width: 18px; height: 18px; }
@media (min-width: 960px) { .nav-burger { display: none; } }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.6);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 88vw);
  background: #0b0b0f;
  border-left: 1px solid var(--rule-soft);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 2rem;
}
.drawer-head img { height: 62px; width: auto; }
.drawer-close {
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.drawer-links li {
  border-bottom: 1px solid var(--rule-soft);
}
.drawer-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.drawer-links a .num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  min-width: 2rem;
}
.drawer-links a:hover { color: var(--gold-light); padding-left: 0.5rem; }

.drawer-foot {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.drawer-foot .big-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.drawer-foot .big-cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule);
}
.drawer-foot small {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

/* Lock scroll when drawer open */
body.drawer-open { overflow: hidden; }

/* Sticky mobile bottom CTA */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule-soft);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.mobile-bar.visible { transform: translateY(0); }
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.mobile-bar a.primary {
  background: var(--gold);
  color: var(--ink);
}
.mobile-bar a svg { width: 14px; height: 14px; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* ---------- Marquee (kinetic type) ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(0,0,0,0.15);
  padding: 1.25rem 0;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  color: var(--text);
  white-space: nowrap;
}
.marquee-track > span i {
  font-style: normal;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.55em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.marquee-track > span i::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"].visible { transition-delay: 0.1s; }
.reveal[data-delay="2"].visible { transition-delay: 0.2s; }
.reveal[data-delay="3"].visible { transition-delay: 0.3s; }
.reveal[data-delay="4"].visible { transition-delay: 0.4s; }

/* Split text word reveal */
.split-line { display: block; overflow: hidden; }
.split-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.85s ease;
}
.visible .split-word,
.visible.split-word,
[data-split].visible .split-word { transform: translateY(0); opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  transition: all 0.35s ease;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--gold); color: var(--ink); }
.btn svg { width: 11px; height: 11px; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(4px); }

/* ---------- FORMS (shared, used on every page) ---------- */
.intake {
  background: rgba(20, 20, 25, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 720px) { .intake { padding: 2.5rem 2.25rem; } }
.intake h2 {
  font-size: 1.85rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
  letter-spacing: 0.005em;
}
.intake .kicker {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.intake .sub {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; gap: 0; } }
.fg { margin-bottom: 1rem; }
.fg label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.fg label .req { color: var(--gold); margin-left: 0.15rem; }
.fg input, .fg select, .fg textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(10, 10, 14, 0.6);
  border: 1px solid var(--rule);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.fg input::placeholder, .fg textarea::placeholder { color: rgba(154, 152, 144, 0.55); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--gold);
  background: rgba(10, 10, 14, 0.85);
}
.fg select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23CC946D' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.5rem;
}
.fg textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%;
  padding: 1rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.35s ease;
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.form-submit:hover { background: var(--gold-light); border-color: var(--gold-light); letter-spacing: 0.3em; }
.form-submit svg { width: 12px; height: 12px; transition: transform 0.3s ease; }
.form-submit:hover svg { transform: translateX(4px); }
.form-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 1rem;
  justify-content: center;
}
.form-foot .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; display: inline-block; }

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: #08080b;
  border-top: 1px solid var(--rule-soft);
  padding: 4rem 0 7rem;
  margin-bottom: 0;
}
@media (min-width: 960px) { .site-footer { padding: 5rem 0 2.25rem; } }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 2rem;
}
@media (min-width: 820px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}
.footer-brand img { height: 92px; width: auto; margin-bottom: 1.25rem; opacity: 0.9; }
.footer-brand p { font-size: 0.88rem; color: var(--text-dim); max-width: 22rem; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a, .footer-col p {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: none;
  line-height: 1.55;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
}
@media (min-width: 820px) { .footer-bottom { flex-direction: row; gap: 2rem; } }
.footer-disclaimer {
  max-width: 60rem;
  font-family: var(--mono);
  font-weight: 300;
  font-size: 0.62rem;
  line-height: 1.8;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.footer-legal-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 820px) {
  .footer-legal-row { justify-content: flex-start; gap: 1.25rem; }
}
.footer-legal-link {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.footer-legal-link:hover { color: var(--gold-light); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 10rem 0 4rem;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}
@media (min-width: 720px) { .page-hero { padding: 12rem 0 6rem; } }
.page-hero .bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero .bg-media video, .page-hero .bg-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero .bg-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 50% 40%, rgba(15,15,19,0.35) 0%, rgba(15,15,19,0.75) 55%, rgba(15,15,19,0.95) 100%),
    linear-gradient(180deg, rgba(15,15,19,0.6) 0%, rgba(15,15,19,0.95) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.005em;
  margin: 1.25rem 0 1rem;
}
.page-hero p {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

/* ---------- Section spacing ---------- */
.section { padding: 4.5rem 0; }
@media (min-width: 720px) { .section { padding: 6.5rem 0; } }

/* Decorative rule */
.hair-rule {
  width: 3rem; height: 1px;
  background: var(--gold-dim);
  display: block;
  margin: 0 auto 1.5rem;
}
.on-cream .hair-rule { background: var(--gold-dim); }

/* Micro-fixes */
iframe { border: 0; }
