/* ============================================================
   BOULEVARD GROUP — SHARED DESIGN SYSTEM
   Version 2.0 | Brand Audit Implementation
   ============================================================ */

:root {
  /* Palette */
  --navy:       #08111F;
  --navy-mid:   #0F1E33;
  --navy-card:  #152641;
  --navy-light: #1E3554;
  --gold:       #C4943A;
  --gold-lt:    #DFB96A;
  --gold-pale:  #F0DFB8;
  --white:      #F8F7F4;
  --grey:       #7A90AB;
  --grey-lt:    #A8BCCE;
  --text:       #C8DCF0;
  --border:     rgba(196,148,58,0.18);
  --border-lt:  rgba(196,148,58,0.08);

  /* Type */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --nav-h:      72px;
  --bar-h:      32px;
  --pad-x:      clamp(1.5rem, 5vw, 4rem);
  --section-py: clamp(4rem, 8vw, 7rem);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture */
body::before {
  content:''; position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
}

/* ECG pulse line */
.ecg-accent {
  position:absolute; left:0; right:0; pointer-events:none;
  opacity:0.06; height:60px; overflow:hidden;
}
.ecg-accent svg { width:100%; height:100%; }

/* ── GROUP BAR ── */
.group-bar {
  position:fixed; top:0; left:0; right:0; z-index:1002;
  height:var(--bar-h);
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 var(--pad-x);
}
.group-bar-left { font-size:11px; color:var(--grey); letter-spacing:0.04em; }
.group-bar-right { display:flex; align-items:center; gap:1.5rem; }
.group-bar a {
  font-size:11px; color:var(--grey); text-decoration:none;
  letter-spacing:0.04em; transition:color 0.2s;
}
.group-bar a:hover { color:var(--gold-lt); }
.group-bar a.home-link { color:var(--gold); }
.group-bar a.home-link:hover { color:var(--gold-lt); }

/* ── NAV ── */
nav {
  position:fixed; top:var(--bar-h); left:0; right:0; z-index:1000;
  height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 var(--pad-x);
  background: rgba(8,17,31,0.94);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

nav.scrolled { background: rgba(8,17,31,0.98); }

.nav-logo {
  display:flex; align-items:center; gap:10px; text-decoration:none;
  flex-shrink:0;
}
.nav-logo-icon {
  width:34px; height:34px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius:7px;
  display:flex; align-items:center; justify-content:center;
}
.nav-logo-icon svg { width:20px; height:20px; }
.nav-logo-wordmark {
  font-family: var(--font-mono);
  font-size:12px; letter-spacing:0.22em;
  color:var(--white); text-transform:uppercase; font-weight:500;
}
.nav-logo-sub {
  font-family: var(--font-mono);
  font-size:9px; letter-spacing:0.15em; text-transform:uppercase;
  color:var(--gold); padding:2px 7px;
  border:1px solid var(--border);
  margin-left:4px;
}

.nav-links { display:flex; align-items:center; gap:2px; list-style:none; }
.nav-links a {
  font-size:12.5px; font-weight:400; letter-spacing:0.03em;
  color:var(--grey); padding:0.45rem 0.8rem; border-radius:5px;
  text-decoration:none; transition:all 0.2s ease;
}
.nav-links a:hover { color:var(--white); background:rgba(196,148,58,0.09); }
.nav-links a.active { color:var(--gold-lt); }
.nav-links a.nav-cta {
  font-size:11px; font-weight:600; letter-spacing:0.1em;
  color:var(--navy); background:var(--gold);
  padding:0.45rem 1.2rem; border-radius:3px;
  text-transform:uppercase; margin-left:0.5rem;
}
.nav-links a.nav-cta:hover { background:var(--gold-lt); }

/* ── HAMBURGER ── */
.hamburger {
  display:none; flex-direction:column; justify-content:center; align-items:center;
  width:40px; height:40px; gap:5px;
  background:none; border:1px solid var(--border);
  cursor:pointer; border-radius:4px; padding:0; z-index:1100; flex-shrink:0;
}
.hamburger span {
  display:block; width:17px; height:1.5px;
  background:var(--gold-lt);
  transition:all 0.3s ease; transform-origin:center;
}
.hamburger.open span:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.hamburger.open span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mobile-drawer {
  display:none;
  position:fixed; top:calc(var(--bar-h) + var(--nav-h)); left:0; right:0; bottom:0;
  background:rgba(8,17,31,0.99);
  backdrop-filter:blur(28px);
  z-index:999;
  flex-direction:column;
  padding:2rem var(--pad-x);
  border-top:1px solid var(--border);
  overflow-y:auto;
  opacity:0; transform:translateY(-10px);
  transition:opacity 0.25s ease, transform 0.25s ease;
  pointer-events:none;
}
.mobile-drawer.open {
  display:flex; opacity:1; transform:translateY(0); pointer-events:all;
}
.mobile-nav-links { list-style:none; flex:1; }
.mobile-nav-links li { border-bottom:1px solid var(--border); }
.mobile-nav-links a {
  display:flex; align-items:center; justify-content:space-between;
  padding:1.1rem 0;
  font-size:15px; color:var(--grey); text-decoration:none;
  transition:color 0.2s ease;
}
.mobile-nav-links a:hover { color:var(--gold-lt); }
.mobile-cta-wrap { margin-top:2rem; padding-top:1.5rem; border-top:1px solid var(--border); }

/* ── BUTTONS ── */
.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--gold); color:var(--navy);
  font-family:var(--font-sans);
  font-size:11px; font-weight:700; letter-spacing:0.14em;
  text-transform:uppercase; text-decoration:none;
  padding:0.85rem 2rem; border-radius:3px;
  border:none; cursor:pointer;
  transition:all 0.2s ease;
}
.btn-primary:hover { background:var(--gold-lt); transform:translateY(-1px); }

.btn-outline {
  display:inline-flex; align-items:center; gap:8px;
  background:transparent; color:var(--text);
  font-family:var(--font-sans);
  font-size:11px; font-weight:500; letter-spacing:0.14em;
  text-transform:uppercase; text-decoration:none;
  padding:0.85rem 2rem; border-radius:3px;
  border:1px solid rgba(255,255,255,0.14);
  cursor:pointer; transition:all 0.2s ease;
}
.btn-outline:hover { border-color:var(--gold); color:var(--gold-lt); background:rgba(196,148,58,0.05); }

.btn-ghost {
  display:inline-flex; align-items:center; gap:6px;
  background:transparent; color:var(--gold);
  font-size:11px; font-weight:500; letter-spacing:0.12em;
  text-transform:uppercase; text-decoration:none;
  padding:0; border:none; cursor:pointer; transition:color 0.2s;
}
.btn-ghost:hover { color:var(--gold-lt); }
.btn-ghost svg { transition:transform 0.2s; }
.btn-ghost:hover svg { transform:translateX(4px); }

/* ── LAYOUT ── */
.page-wrap { position:relative; z-index:1; }
.pt-nav { padding-top: calc(var(--bar-h) + var(--nav-h)); }

.section { padding: var(--section-py) var(--pad-x); position:relative; z-index:1; }
.section-alt { background:var(--navy-mid); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-dark { background:var(--navy-card); border-top:1px solid var(--border); }

.container { max-width:1240px; margin:0 auto; }
.container-sm { max-width:820px; margin:0 auto; }
.container-xs { max-width:620px; margin:0 auto; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono);
  font-size:10px; letter-spacing:0.3em; text-transform:uppercase;
  color:var(--gold); margin-bottom:1.1rem;
}
.eyebrow::before { content:''; width:22px; height:1px; background:var(--gold); display:block; }

.display-xl {
  font-family:var(--font-serif);
  font-size:clamp(3.2rem, 7vw, 6rem);
  font-weight:300; line-height:1.04;
  color:var(--white); letter-spacing:-0.01em;
}
.display-xl em { font-style:italic; color:var(--gold-lt); }

.display-lg {
  font-family:var(--font-serif);
  font-size:clamp(2.4rem, 5vw, 4rem);
  font-weight:300; line-height:1.1;
  color:var(--white);
}
.display-lg em { font-style:italic; color:var(--gold-lt); }

.display-md {
  font-family:var(--font-serif);
  font-size:clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight:300; line-height:1.15;
  color:var(--white);
}
.display-md em { font-style:italic; color:var(--gold-lt); }

.display-sm {
  font-family:var(--font-serif);
  font-size:clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight:400; line-height:1.25;
  color:var(--white);
}

.body-lg { font-size:16px; line-height:1.8; font-weight:300; color:var(--grey); }
.body-md { font-size:14px; line-height:1.75; font-weight:300; color:var(--grey); }
.body-sm { font-size:13px; line-height:1.7; font-weight:300; color:var(--grey); }

.label {
  font-family:var(--font-mono);
  font-size:10px; letter-spacing:0.2em; text-transform:uppercase;
  color:var(--gold);
}

/* ── DIVIDER ── */
.hr { height:1px; background:var(--border); margin:3rem 0; }
.hr-gold { height:1px; background:linear-gradient(90deg, var(--gold), transparent); margin:2rem 0; }

/* ── CARDS ── */
.card {
  background:var(--navy-card);
  border:1px solid var(--border);
  padding:2.5rem;
  position:relative; overflow:hidden;
  transition:all 0.3s ease;
}
.card::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:2px; background:var(--gold);
  transition:width 0.4s ease;
}
.card:hover { border-color:rgba(196,148,58,0.35); transform:translateY(-2px); }
.card:hover::after { width:100%; }

.card-icon {
  width:40px; height:40px;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--gold); margin-bottom:1.5rem;
}

/* ── QUOTE ── */
.pullquote {
  padding: 4rem var(--pad-x);
  background:var(--navy-mid);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  text-align:center;
}
.pullquote-mark {
  font-family:var(--font-serif);
  font-size:7rem; line-height:0.4;
  color:var(--gold); opacity:0.35; display:block;
  margin-bottom:1.5rem;
}
.pullquote-text {
  font-family:var(--font-serif);
  font-size:clamp(1.4rem, 3vw, 2.2rem);
  font-weight:300; font-style:italic;
  color:var(--white); line-height:1.45;
  max-width:760px; margin:0 auto 1.25rem;
}
.pullquote-attr {
  font-family:var(--font-mono);
  font-size:10px; letter-spacing:0.18em;
  color:var(--gold); text-transform:uppercase;
}

/* ── STATS ── */
.stats-bar {
  display:flex;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.stat { flex:1; padding:2rem 2.5rem; border-right:1px solid var(--border); }
.stat:last-child { border-right:none; }
.stat-num {
  font-family:var(--font-serif);
  font-size:2.8rem; font-weight:300;
  color:var(--gold-lt); line-height:1; margin-bottom:0.4rem;
}
.stat-label { font-size:12px; color:var(--grey); letter-spacing:0.05em; }

/* ── CREDENTIAL TAGS ── */
.cred-list { display:flex; flex-wrap:wrap; gap:5px; margin-top:0.75rem; }
.cred-tag {
  font-family:var(--font-mono);
  font-size:9px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--gold-lt);
  background:rgba(196,148,58,0.1);
  border:1px solid rgba(196,148,58,0.2);
  padding:3px 9px;
}

/* ── FOOTER ── */
footer {
  padding: 4rem var(--pad-x) 2rem;
  border-top:1px solid var(--border);
  position:relative; z-index:1;
}
.footer-grid {
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr;
  gap:3rem; margin-bottom:3rem;
}
.footer-brand-tagline {
  font-size:12px; line-height:1.75; color:var(--grey);
  font-weight:300; margin-top:1rem; max-width:240px;
}
.footer-col h4 {
  font-family:var(--font-mono);
  font-size:9px; letter-spacing:0.25em; text-transform:uppercase;
  color:var(--gold); margin-bottom:1.1rem;
}
.footer-col a {
  display:block; text-decoration:none;
  font-size:12.5px; color:var(--grey);
  margin-bottom:0.6rem; transition:color 0.2s;
}
.footer-col a:hover { color:var(--gold-lt); }
.footer-bottom {
  display:flex; justify-content:space-between; align-items:center;
  padding-top:1.75rem; border-top:1px solid var(--border);
  font-size:11px; color:var(--grey);
}
.footer-bottom a { color:var(--grey); text-decoration:none; transition:color 0.2s; }
.footer-bottom a:hover { color:var(--gold-lt); }

/* ── GRIDS ── */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem; }
.grid-gap { gap:1px; background:var(--border); border:1px solid var(--border); }
.grid-gap > * { background:var(--navy); }

/* ── CTA STRIP ── */
.cta-strip {
  padding: 4rem var(--pad-x);
  background:var(--navy-mid);
  border-top:1px solid var(--border);
}
.cta-strip-inner {
  max-width:760px;
  display:flex; align-items:center; justify-content:space-between; gap:3rem;
}

/* ── NEWSLETTER ── */
.newsletter-strip {
  padding:3.5rem var(--pad-x);
  background:var(--navy-card);
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; gap:3rem;
}
.newsletter-form { display:flex; min-width:340px; }
.newsletter-form input {
  flex:1; padding:0.8rem 1.1rem;
  background:var(--navy);
  border:1px solid var(--border); border-right:none;
  color:var(--text); font-family:var(--font-sans);
  font-size:13px; outline:none;
}
.newsletter-form input:focus { border-color:var(--gold); }
.newsletter-form button {
  padding:0.8rem 1.4rem;
  background:var(--gold); color:var(--navy);
  font-size:11px; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; border:none; cursor:pointer;
  transition:background 0.2s; white-space:nowrap;
}
.newsletter-form button:hover { background:var(--gold-lt); }

/* ── PROCESS STEPS ── */
.steps { border:1px solid var(--border); }
.step {
  display:flex; align-items:flex-start; gap:2rem;
  padding:1.75rem 2.25rem;
  border-bottom:1px solid var(--border);
  transition:background 0.2s;
}
.step:last-child { border-bottom:none; }
.step:hover { background:var(--navy-mid); }
.step-num {
  font-family:var(--font-serif);
  font-size:2.2rem; font-weight:300;
  color:var(--gold); min-width:40px; line-height:1;
}
.step-title { font-size:14px; font-weight:500; color:var(--white); margin-bottom:0.35rem; }
.step-body { font-size:13px; line-height:1.7; color:var(--grey); font-weight:300; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  padding:2.25rem;
  background:var(--navy-card);
  border:1px solid var(--border);
  border-left:3px solid var(--gold);
}
.highlight-box-title {
  font-family:var(--font-serif);
  font-size:1.25rem; font-weight:400;
  color:var(--white); margin-bottom:0.65rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.animate-in { animation: fadeUp 0.55s ease both; }
.delay-1 { animation-delay:0.1s; }
.delay-2 { animation-delay:0.2s; }
.delay-3 { animation-delay:0.3s; }
.delay-4 { animation-delay:0.4s; }

/* ── MOBILE ── */
@media (max-width:960px) {
  nav { padding:0 1.25rem; }
  .group-bar { padding:0 1.25rem; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .section { padding-left:1.25rem; padding-right:1.25rem; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:2rem; }
  .footer-bottom { flex-direction:column; gap:0.75rem; text-align:center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .grid-gap.grid-3 { grid-template-columns:1fr 1fr; }
  .stats-bar { flex-wrap:wrap; }
  .stat { min-width:50%; border-bottom:1px solid var(--border); }
  .newsletter-strip { flex-direction:column; }
  .newsletter-form { min-width:0; width:100%; }
  .cta-strip-inner { flex-direction:column; }
  .display-xl { letter-spacing:0; }
}

@media (max-width:600px) {
  .grid-gap.grid-3 { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .stat { min-width:100%; }
}
