/* ═══════════════════════════════════════════════════════
   vandrix.css  —  Global design system
   All pages import this file. Page-specific styles live
   in <style> blocks inside each HTML file.
   ═══════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --navy:       #0B1F3A;
  --navy-dark:  #07111F;
  --navy-card:  #112236;
  --navy-mid:   #1C3454;
  --gold:       #C9A84C;
  --gold-light: #E2C97E;
  --gold-dim:   #8A6E2F;
  --teal:       #1A7A7A;
  --teal-light: #22A0A0;
  --ice:        #A8BDD6;
  --steel:      #7A92AD;
  --white:      #FFFFFF;
  --offwhite:   #F4F6F9;
  --offwhite2:  #E8EDF4;
  --text-dark:  #0B1F3A;
  --radius:     4px;
  --radius-lg:  8px;
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 64px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
}
h4 { font-size: 1rem; font-weight: 500; line-height: 1.35; }
p { line-height: 1.75; }
em { font-style: italic; color: var(--gold); }

/* ── UTILITY ──────────────────────────────────────────── */
.vx-container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.vx-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.vx-gold-rule {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.25rem;
}
.s-pad   { padding: 96px 0; }
.s-pad-sm{ padding: 64px 0; }

/* section backgrounds */
.bg-dark    { background: var(--navy); }
.bg-darker  { background: var(--navy-dark); }
.bg-card    { background: var(--navy-card); }
.bg-light   { background: var(--offwhite); color: var(--text-dark); }
.bg-light h1,.bg-light h2,.bg-light h3,.bg-light h4 { color: var(--navy); }
.bg-light .vx-label { color: var(--gold-dim); }
.bg-light p { color: #334155; }
.bg-light .vx-gold-rule { background: var(--gold-dim); }

/* ── SECTION HEADER ───────────────────────────────────── */
.vx-section-header { max-width: 680px; margin-bottom: 3rem; }
.vx-section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.vx-section-header.center .vx-gold-rule { margin-left: auto; margin-right: auto; }
.vx-section-header h2 { margin-bottom: 1rem; }
.vx-section-header p { color: var(--ice); font-size: 1.05rem; }
.bg-light .vx-section-header p { color: #475569; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  border: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  display: inline-block;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(201,168,76,0.08); }

.btn-teal {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-teal:hover { background: var(--teal-light); }

.btn-ghost-light {
  display: inline-block;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  font-size: 0.9rem;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-ghost-light:hover { background: var(--navy); color: var(--white); }

/* ── CARD ─────────────────────────────────────────────── */
.vx-card {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.vx-card-light {
  background: var(--white);
  border: 1px solid var(--offwhite2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.vx-card-gold-top { border-top: 3px solid var(--gold); }
.vx-card-teal-top { border-top: 3px solid var(--teal); }

/* ── FAQ ACCORDION ────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(168,189,214,0.12);
}
.bg-light .faq-item { border-bottom-color: var(--offwhite2); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.4rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}
.bg-light .faq-q { color: var(--navy); }
.faq-q:hover { color: var(--gold); }
.faq-q .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  transition: transform 0.3s;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a-inner {
  padding-bottom: 1.4rem;
  font-size: 0.95rem;
  color: var(--steel);
  line-height: 1.75;
}
.bg-light .faq-a-inner { color: #475569; }
.faq-item.open .faq-a { max-height: 600px; }

/* ── PAGE HERO (inner pages) ──────────────────────────── */
.page-hero {
  background: var(--navy-dark);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(26,122,122,0.07) 0%, transparent 60%),
              radial-gradient(ellipse 40% 50% at 10% 60%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .vx-container { position: relative; }
.page-hero h1 { margin: 0.5rem 0 1.25rem; }
.page-hero p { color: var(--ice); font-size: 1.1rem; max-width: 620px; }
.page-hero .vx-label { margin-bottom: 0.5rem; }

/* ── SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── NAV ──────────────────────────────────────────────── */
#vx-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,17,31,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.13);
}
.vx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1rem;
}
.vx-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--white);
  white-space: nowrap;
}
.vx-logo span { color: var(--gold); }
.vx-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.vx-nav-links > li { position: relative; }
.vx-nav-links a {
  font-size: 0.84rem;
  color: var(--ice);
  transition: color 0.2s;
  white-space: nowrap;
}
.vx-nav-links a:hover,
.vx-nav-links a.active { color: var(--gold); }

/* Submenu — controlled by JS class .vx-sub-open (not CSS :hover) */
.has-sub { position: relative; }
.has-sub-link { cursor: pointer; display: flex; align-items: center; gap: 0.3rem; }
.sub-arrow { font-size: 0.65rem; opacity: 0.6; }

.vx-sub {
  position: absolute;
  /* No gap — submenu starts exactly at bottom of nav link so mouse never leaves */
  top: 100%;
  left: -0.75rem;
  /* Invisible top padding bridges any sub-pixel gap between link and dropdown */
  padding-top: 0.5rem;
  background: transparent;
  /* Actual card is a ::before pseudo-element so padding area stays hoverable */
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.vx-sub::before {
  content: '';
  position: absolute;
  top: 0.5rem; left: 0; right: 0; bottom: 0;
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
/* Open state toggled by JS */
.vx-sub.vx-sub-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.vx-sub li { position: relative; z-index: 1; }
.vx-sub li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  color: var(--steel);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.vx-sub li a:hover { color: var(--gold); background: rgba(201,168,76,0.06); }
.vx-sub li:first-child a { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.vx-sub li:last-child  a { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Mobile submenu open state */
@media (max-width: 960px) {
  .vx-sub {
    position: static;
    padding-top: 0;
    opacity: 1;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.25s ease;
    background: transparent;
  }
  .vx-sub::before { display: none; }
  .vx-sub.vx-sub-open {
    pointer-events: all;
    max-height: 300px;
  }
  .vx-sub li a {
    padding: 0.4rem 0.5rem 0.4rem 1.25rem;
    font-size: 0.82rem;
    color: var(--steel);
    border-left: 2px solid rgba(201,168,76,0.2);
    margin-left: 0.5rem;
  }
}
.vx-nav-ctas { display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.vx-btn-ghost {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ice);
  border: 1px solid rgba(168,189,214,0.28);
  padding: 0.42rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.vx-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.vx-btn-gold {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 0.42rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.vx-btn-gold:hover { background: var(--gold-light); }
.vx-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.vx-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ice);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── FOOTER ───────────────────────────────────────────── */
.vx-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 60px 0 36px;
}
.vx-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(168,189,214,0.07);
  margin-bottom: 1.75rem;
}
.vx-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.65rem;
  letter-spacing: 0.05em;
}
.vx-footer-logo span { color: var(--gold); }
.vx-footer-brand p { font-size: 0.83rem; color: var(--steel); max-width: 220px; line-height: 1.6; }
.vx-footer-col h5 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.9rem;
}
.vx-footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.vx-footer-col ul li a { font-size: 0.83rem; color: var(--steel); transition: color 0.2s; }
.vx-footer-col ul li a:hover { color: var(--gold); }
.vx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--steel);
}
.vx-footer-legal { display: flex; gap: 1.5rem; }
.vx-footer-legal a { color: var(--steel); transition: color 0.2s; }
.vx-footer-legal a:hover { color: var(--gold); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 960px) {
  .vx-nav-links { display: none; }
  .vx-hamburger { display: flex; }
  #vx-nav.open .vx-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(201,168,76,0.13);
  }
  .vx-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .vx-footer-top { grid-template-columns: 1fr; }
  .vx-footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .s-pad { padding: 64px 0; }
}

/* ── LOGO IMAGE STYLES ────────────────────────────────── */
/* Nav logo — 34px tall, fits the 64px nav bar */
.vx-logo-img,
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* Footer logo — slightly smaller */
.vx-footer-logo-img,
.vx-footer-logo img {
  height: 28px;
  width: auto;
  display: block;
}

/* Auth card logo (login page) — larger, centred */
.vx-auth-logo-img,
.auth-logo img {
  height: 48px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Suppress any residual text when logo img is present */
.vx-logo:has(img),
.auth-logo:has(img) { font-size: 0; }

/* ── Admin bar offset ─────────────────────────────────────────────────────── */
/* When WordPress admin bar is visible, shift the fixed nav down so it
   doesn't sit behind the bar. Only applies to logged-in editors/admins. */
.admin-bar #vx-nav {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar #vx-nav {
    top: 46px;
  }
}

/* ── Social media icons ───────────────────────────────────────────────────── */
.vx-social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.vx-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.vx-social-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.vx-social-icon:hover              { color: var(--white);  background: rgba(168,189,214,0.14); border-color: rgba(168,189,214,0.28); }
.vx-social-icon.vx-social-linkedin:hover  { background: rgba(10,102,194,0.2);  border-color: rgba(10,102,194,0.4);  color: #0a66c2; }
.vx-social-icon.vx-social-x:hover         { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: var(--white); }
.vx-social-icon.vx-social-reddit:hover    { background: rgba(255,69,0,0.15);   border-color: rgba(255,69,0,0.3);    color: #ff4500; }
.vx-social-icon.vx-social-facebook:hover  { background: rgba(24,119,242,0.2);  border-color: rgba(24,119,242,0.4);  color: #1877f2; }
.vx-social-icon.vx-social-instagram:hover { background: rgba(225,48,108,0.15); border-color: rgba(225,48,108,0.3);  color: #e1306c; }
.vx-social-icon.vx-social-tiktok:hover    { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: var(--white); }
.vx-social-icon.vx-social-youtube:hover   { background: rgba(255,0,0,0.15);    border-color: rgba(255,0,0,0.3);     color: #ff0000; }
.vx-social-icon.vx-social-bluesky:hover   { background: rgba(0,133,255,0.15);  border-color: rgba(0,133,255,0.3);   color: #0085ff; }
