/* ==========================================================================
   Virtual Privacy — site stylesheet
   Brand system: Navy #0F1F2E · Gold #B08D57 · Cream #F8F5EF
   Type: DM Serif Display (display) · DM Sans (body)
   Signature motif: the diagonal slash from the VP lettermark
   ========================================================================== */

:root {
  --navy: #0F1F2E;
  --navy-raised: #17293C;
  --navy-line: #24384D;
  --gold: #B08D57;
  --gold-soft: #C6A876;
  --cream: #F8F5EF;
  --cream-dim: #EFEAE0;
  --ink: #1B2733;
  --slate: #55636F;
  --cream-muted: rgba(248, 245, 239, 0.74);

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;

  --max-w: 1120px;
  --pad-x: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}

.lede { font-size: clamp(18px, 2.1vw, 21px); }

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
}

.brand img { width: 42px; height: 42px; }

.brand .brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover { color: var(--cream); }
.nav-links a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 12px 26px;
  border: 1px solid var(--gold);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn-ghost { background: transparent; color: var(--cream); }
.btn-ghost:hover { background: rgba(176, 141, 87, 0.14); }

.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-line);
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

/* The signature: the slash from the lettermark, carried across the frame */
.hero::before {
  content: "";
  position: absolute;
  top: -12%;
  right: 26%;
  width: 1px;
  height: 124%;
  background: linear-gradient(to bottom, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
  transform: rotate(21deg);
  transform-origin: top center;
  opacity: 0.85;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 34%;
  background: linear-gradient(201deg, var(--navy-raised) 48%, transparent 48.3%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(84px, 11vw, 150px);
  padding-bottom: clamp(84px, 11vw, 150px);
  max-width: var(--max-w);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  max-width: 13em;
  color: var(--cream);
}

.hero .hero-sub {
  margin-top: 26px;
  max-width: 34em;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--cream-muted);
}

.hero .hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -14%;
  right: 18%;
  width: 1px;
  height: 128%;
  background: linear-gradient(to bottom, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  transform: rotate(21deg);
  transform-origin: top center;
  opacity: 0.7;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(64px, 8vw, 100px);
}

.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); color: var(--cream); }
.page-hero p { margin-top: 18px; max-width: 40em; color: var(--cream-muted); font-size: 18px; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-navy { background: var(--navy); color: var(--cream); }
.section-cream { background: var(--cream); }
.section-cream-dim { background: var(--cream-dim); }

.section h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 20px; }
.section-navy h2 { color: var(--cream); }

.section .section-intro { max-width: 42em; color: var(--slate); }
.section-navy .section-intro { color: var(--cream-muted); }

.rule-gold {
  width: 56px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 26px 0 0;
}

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 26px;
  margin-top: 48px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid #E5DFD3;
  border-top: 2px solid var(--gold);
  padding: 30px 28px;
}

.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15.5px; }

.section-navy .card {
  background: var(--navy-raised);
  border-color: var(--navy-line);
  border-top-color: var(--gold);
}
.section-navy .card h3 { color: var(--cream); }
.section-navy .card p { color: var(--cream-muted); }

/* ---------- Feature list (why VP) ---------- */

.feature-list { list-style: none; margin-top: 40px; display: grid; gap: 0; }

.feature-list li {
  padding: 26px 0;
  border-top: 1px solid var(--navy-line);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: baseline;
}

.feature-list li:last-child { border-bottom: 1px solid var(--navy-line); }

.feature-list .feature-name {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--cream);
}

.feature-list .feature-desc { color: var(--cream-muted); font-size: 16px; }

/* ---------- Regulatory horizon strip ---------- */

.horizon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }

.horizon-item { border-left: 2px solid var(--gold); padding-left: 22px; }

.horizon-item .date {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.horizon-item h3 { font-size: 20px; margin: 10px 0 8px; }
.horizon-item p { font-size: 15px; color: var(--slate); }

/* ---------- Publications (insights) ---------- */

.pub-list { margin-top: 48px; display: grid; gap: 22px; }

.pub {
  background: #fff;
  border: 1px solid #E5DFD3;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.pub .pub-meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.pub h3 { font-size: 22px; margin: 8px 0 8px; }
.pub p { color: var(--slate); font-size: 15.5px; max-width: 48em; }

.pub .pub-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 11px 22px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.pub .pub-link:hover { background: var(--navy); color: var(--cream); }

.pub-empty { color: var(--slate); margin-top: 40px; font-style: italic; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 48px; }

.team-card { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }

.team-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  filter: grayscale(100%);
  border-bottom: 2px solid var(--gold);
}

.team-card h3 { font-size: 22px; }

.team-card .team-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 12px;
}

.team-card p { color: var(--slate); font-size: 15.5px; }

@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .team-card { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }

.stat { border-top: 2px solid var(--gold); padding-top: 22px; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 64px);
  line-height: 1;
  color: var(--navy);
}

.stat-label { margin-top: 12px; font-size: 15px; color: var(--slate); max-width: 22em; }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Service lists inside cards ---------- */

.service-list { list-style: none; margin-top: 18px; border-top: 1px solid #E5DFD3; }

.service-list li {
  padding: 9px 0;
  border-bottom: 1px solid #EFEAE0;
  font-size: 15px;
  color: var(--ink);
}

/* ---------- Contact / offices ---------- */

.office h3 { font-size: 21px; margin-bottom: 8px; }
.office p { color: var(--slate); font-size: 15.5px; }
.section-navy .office h3 { color: var(--cream); }
.section-navy .office p { color: var(--cream-muted); }

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

.contact-email:hover { color: var(--gold-soft); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }

.cta-band::before {
  content: "";
  position: absolute;
  top: -16%;
  left: 14%;
  width: 1px;
  height: 132%;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  transform: rotate(21deg);
  opacity: 0.55;
}

.cta-band .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(64px, 8vw, 100px);
  text-align: center;
}

.cta-band h2 { font-size: clamp(28px, 4vw, 42px); color: var(--cream); }
.cta-band p { margin: 16px auto 34px; max-width: 36em; color: var(--cream-muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--cream-muted);
  border-top: 1px solid var(--navy-line);
  padding: 56px 0 36px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--cream-muted); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand .fb-name { font-family: var(--font-display); font-size: 19px; color: var(--cream); }
.footer-brand p { margin-top: 8px; font-size: 14px; max-width: 24em; }

.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .horizon { grid-template-columns: 1fr; gap: 34px; }
  .feature-list li { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px var(--pad-x) 26px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand .brand-sub { display: none; }
}
