/* ============================================================
   VM Capital Partners — Shared Theme
   Design tokens + base styles used across every page.
   ============================================================ */

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

:root {
  --navy:      #0b1f3a;
  --navy-mid:  #122848;
  --navy-lt:   #1a3a5c;
  --gold:      #c8a84b;
  --gold-lt:   #e2c97e;
  --cream:     #f5f0e8;
  --white:     #ffffff;
  --text-dim:  #8fa4bc;
  --radius:    4px;
  --radius-lg: 8px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; }

/* ── NOISE TEXTURE OVERLAY ── */
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' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .4;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(11,31,58,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,168,75,.15);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 600; letter-spacing: .06em;
  color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Contact dropdown */
.nav-dropdown-trigger { cursor: pointer; display: flex; align-items: center; gap: .35rem; }
.nav-dropdown-trigger::after { content: '▾'; font-size: .65rem; }
.nav-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: .9rem;
  background: var(--navy-mid); border: 1px solid rgba(200,168,75,.2);
  border-radius: var(--radius); min-width: 220px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  padding: .5rem;
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: .65rem .85rem; border-radius: var(--radius);
  font-size: .78rem; letter-spacing: .08em;
}
.nav-dropdown a:hover { background: rgba(200,168,75,.1); }

.nav-cta {
  font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: .6rem 1.5rem;
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); text-decoration: none; border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }

/* Hamburger / mobile drawer */
.nav-ham {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 10001;
}
.nav-ham span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11,31,58,.99); backdrop-filter: blur(16px);
  padding: 6rem 1.75rem 2rem; z-index: 9998; flex-direction: column; gap: 0;
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  display: block; padding: .95rem 0; font-size: .92rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  border-bottom: 1px solid rgba(200,168,75,.08);
}
.nav-drawer a:hover { color: var(--gold); }
.nav-drawer .drawer-group-label {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 1.25rem 0 .25rem; opacity: .8;
}
.nav-drawer .drawer-cta {
  margin-top: 1.25rem; display: inline-block; padding: .8rem 1.5rem;
  background: var(--gold); color: var(--navy); border-radius: var(--radius);
  font-weight: 600; text-align: center; border-bottom: none;
}

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-ham { display: flex; }
}

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  position: relative; padding: 10rem 4rem 5rem; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(26,58,92,.55) 0%, transparent 70%),
    linear-gradient(160deg, #0b1f3a 0%, #0d2544 60%, #071628 100%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 760px; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.page-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold-lt); }
.page-hero p {
  font-size: 1.02rem; font-weight: 300; color: var(--text-dim);
  line-height: 1.75; max-width: 560px;
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }
.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 5.5rem 4rem; }
.section-label {
  display: flex; align-items: center; gap: .75rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.section-label::after { content: ''; flex: 1; max-width: 40px; height: 1px; background: var(--gold); }
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 300; line-height: 1.18;
}
h2 em { font-style: italic; color: var(--gold-lt); }
.section-intro-text {
  font-size: .98rem; font-weight: 300; color: var(--text-dim);
  line-height: 1.8; max-width: 620px; margin-top: 1.1rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; padding: .85rem 2.2rem;
  background: var(--gold); color: var(--navy);
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius);
  transition: background .2s, transform .15s; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-size: .82rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius);
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── CAPABILITY / CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  border: 1px solid rgba(200,168,75,.12);
}
.card {
  padding: 2.4rem;
  background: rgba(18,40,72,.5);
  border: 1px solid rgba(200,168,75,.08);
  transition: background .3s, transform .3s;
}
.card:hover { background: rgba(26,58,92,.7); transform: translateY(-3px); }
.card-icon {
  width: 42px; height: 42px;
  border: 1px solid rgba(200,168,75,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; margin-bottom: 1.4rem;
  color: var(--gold);
}
.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 400;
  margin-bottom: .7rem;
}
.card p { font-size: .87rem; line-height: 1.7; color: var(--text-dim); }
.card a.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}
.card a.card-link:hover { gap: .7rem; }

/* ── TAB COMPONENT (reused pattern from the commercial.html draft) ── */
.tab-nav { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid rgba(200,168,75,.15); margin-top: 3rem; }
.tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: .82rem; letter-spacing: .04em; color: var(--text-dim);
  padding: .9rem 1.3rem; position: relative;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; padding-top: 2.75rem; }
.tab-panel.active { display: block; }
.tab-panel h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; color: var(--gold-lt); }
.tab-panel > p.tab-intro { font-size: .95rem; color: var(--text-dim); line-height: 1.8; max-width: 680px; margin-bottom: 1rem; }

/* ── QUALIFICATION / CALLOUT BOX ── */
.callout-box {
  background: rgba(200,168,75,.06); border: 1px solid rgba(200,168,75,.22);
  border-radius: var(--radius); padding: 1.75rem 2rem; margin-top: 2.5rem;
  font-size: .92rem; line-height: 1.75; color: var(--text-dim); max-width: 760px;
}
.callout-box strong { color: var(--white); font-weight: 500; }

/* ── PROCESS / APPROACH STEPS ── */
.process-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin-top: 3.5rem;
}
.process-step { position: relative; padding-top: 1.5rem; border-top: 1px solid rgba(200,168,75,.25); }
.process-step .step-num { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--gold); margin-bottom: .6rem; display: block; }
.process-step h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 400; margin-bottom: .5rem; }
.process-step p { font-size: .84rem; color: var(--text-dim); line-height: 1.65; }
@media (max-width: 900px) { .process-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .process-row { grid-template-columns: 1fr; } }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, rgba(200,168,75,.12) 0%, rgba(26,58,92,.4) 100%);
  border-top: 1px solid rgba(200,168,75,.2);
  border-bottom: 1px solid rgba(200,168,75,.2);
}
.cta-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 4.5rem 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
}
.cta-inner h2 { max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; flex-shrink: 0; }
.cta-detail { font-size: .78rem; color: var(--text-dim); text-align: center; }
.cta-detail a { color: var(--gold); text-decoration: none; }

/* ── FOOTER ── */
footer {
  background: #071628;
  border-top: 1px solid rgba(200,168,75,.1);
  padding: 2.5rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--white); }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: .72rem; color: rgba(143,164,188,.4); }

/* ── FADE-UP ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── FORMS ── */
.form-panel {
  max-width: 760px; margin: 2.5rem auto 0;
  background: rgba(18,40,72,.4); border: 1px solid rgba(200,168,75,.15);
  border-radius: var(--radius-lg); padding: 2.5rem;
}
.form-section-label {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 2rem 0 1.1rem;
  border-top: 1px solid rgba(200,168,75,.15); padding-top: 1.5rem;
}
.form-section-label:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.form-field label {
  font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .45rem;
}
.form-field .field-hint { font-size: .74rem; color: rgba(143,164,188,.6); margin-top: .35rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: .8rem 1rem;
  background: rgba(11,31,58,.7); border: 1px solid rgba(200,168,75,.2);
  color: var(--white); font-family: 'DM Sans', sans-serif; font-size: .89rem;
  border-radius: var(--radius); outline: none; transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); }
.form-field select option { background: var(--navy-mid); }
.form-field textarea { resize: vertical; min-height: 110px; }
.char-counter { font-size: .72rem; color: rgba(143,164,188,.55); text-align: right; margin-top: .35rem; }

.radio-group { display: flex; gap: 1.5rem; margin-top: .3rem; }
.radio-option { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-dim); cursor: pointer; }
.radio-option input { width: auto; accent-color: var(--gold); }

.form-disclaimer {
  font-size: .76rem; color: rgba(143,164,188,.65); line-height: 1.7;
  border-top: 1px solid rgba(200,168,75,.15); padding-top: 1.25rem; margin-top: .5rem;
}
.form-submit-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
.form-success {
  display: none; margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: rgba(200,168,75,.1); border: 1px solid rgba(200,168,75,.3);
  border-radius: var(--radius); font-size: .9rem; color: var(--gold-lt); line-height: 1.7;
}
.form-success.visible { display: block; }
.form-success a { color: var(--gold-lt); }

@media (max-width: 700px) {
  .form-panel { padding: 1.75rem 1.25rem; }
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-hero { padding: 7.5rem 1.5rem 3.5rem; }
  .section-inner { padding: 3.5rem 1.5rem; }
  .cta-inner { flex-direction: column; text-align: center; padding: 3.5rem 1.5rem; }
  .process-row { margin-top: 2.5rem; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
}
