/* ============================================================
   VAULT BASE CSS
   Shared styles across all Vault Consulting pages
   ============================================================ */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  --vault-dark: #0d1f1a;
  --vault-cream: #F4F4F2;
  --vault-gold: #b89a63;
  --vault-gold-hover: #a3874f;
  --vault-green: #1f3e36;
  --vault-charcoal: #2B2E30;
  --vault-terminal: #0c0c0c;
  --vault-gold-link-hover: #d4b87a;
  --vault-dark-deep: #172e28;
}

/* ========== FONT ========== */
@font-face {
  font-family: 'Inter';
  src: url('inter-var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--vault-dark);
  color: var(--vault-cream);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========== ACCESSIBILITY ========== */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--vault-gold);
  color: var(--vault-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s;
}
.skip-to-content:focus {
  top: 0;
}
:focus-visible {
  outline: 2px solid var(--vault-gold);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,31,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184,154,99,0.15);
  padding: 0 2rem;
  height: 64px;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo svg {
  height: 28px;
  width: auto;
  fill: var(--vault-cream);
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(244,244,242,0.7);
  transition: color 0.3s;
}
@media (hover: hover) { .nav-links a:hover { color: var(--vault-gold); } }
.nav-links a.nav-cta {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--vault-gold);
  color: var(--vault-gold);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.3s, color 0.3s;
}
@media (hover: hover) {
  .nav-links a.nav-cta:hover {
    background: var(--vault-gold);
    color: var(--vault-dark);
  }
}
/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,31,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(184,154,99,0.15);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: rgba(244,244,242,0.7);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
@media (hover: hover) { .nav-dropdown-menu a:hover { color: var(--vault-gold); } }
.mobile-menu a.mobile-menu-sub { font-size: 1.1rem; opacity: 0.7; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--vault-cream);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(13,31,26,0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(244,244,242,0.8);
  transition: color 0.3s;
}
@media (hover: hover) { .mobile-menu a:hover { color: var(--vault-gold); } }
.mobile-menu-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184,154,99,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.mobile-menu .mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 2rem;
  background: var(--vault-gold);
  color: var(--vault-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.3s;
}
.mobile-menu .mobile-menu-email {
  font-size: 0.75rem;
  color: rgba(244,244,242,0.35);
  letter-spacing: 0.03em;
}

/* ========== SECTIONS COMMON ========== */
section { padding: 6rem 2rem; scroll-margin-top: 72px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vault-gold);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* ========== GOLD BAR ========== */
.gold-bar-full {
  height: 3px;
  background: var(--vault-gold);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gold-bar-full.visible {
  opacity: 1;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HERO COMMON ========== */
.hero-heading {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--vault-cream);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.hero-heading.visible { opacity: 1; transform: translateY(0); }
.hero-heading span { color: var(--vault-gold); }
.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(244,244,242,0.5);
  margin: 0 auto 2rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}
.hero-sub.visible { opacity: 1; transform: translateY(0); }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.5rem;
  background: var(--vault-gold);
  color: var(--vault-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
  opacity: 0;
  transform: translateY(20px);
}
.hero-cta.visible { opacity: 1; transform: translateY(0); }
@media (hover: hover) { .hero-cta:hover { background: var(--vault-gold-hover); transform: translateY(-2px); } }
.hero-cta svg { width: 16px; height: 16px; fill: var(--vault-dark); }

/* ========== PROBLEM SECTION ========== */
.problem {
  background: var(--vault-cream);
  position: relative;
  overflow: hidden;
}
.problem .section-label { color: var(--vault-gold); }
.problem .section-title { color: var(--vault-green); }
.problem-watermark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.problem .section-inner { position: relative; z-index: 1; }
.problem-content {
  max-width: 1100px;
  margin-top: 3rem;
}
.problem-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--vault-charcoal);
  margin-bottom: 1.5rem;
}
.problem-content strong { color: var(--vault-green); font-weight: 600; }

/* ========== SERVICES SECTION ========== */
.services {
  background: var(--vault-dark);
  position: relative;
  overflow: hidden;
}
.services .section-label { color: var(--vault-gold); }
.services .section-title { color: var(--vault-cream); }
.services .section-inner { position: relative; z-index: 1; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: rgba(244,244,242,0.06);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(244,244,242,0.08);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.service-card.reveal {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  }
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--vault-gold);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
@media (hover: hover) { .service-card:hover::before { opacity: 1; } }
.service-card .svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(184,154,99,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card .svc-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--vault-gold);
  stroke-width: 1.5;
  fill: none;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vault-cream);
  margin-bottom: 0.5rem;
}
.service-card .svc-detail-list {
  margin-top: 0.75rem;
  padding-left: 1.2rem;
  color: rgba(244,244,242,0.7);
  font-size: 0.95rem;
  line-height: 1.8;
}
.service-card p {
  font-size: 0.88rem;
  color: rgba(244,244,242,0.6);
  line-height: 1.6;
  opacity: 0.7;
}

/* ========== WHY VAULT ========== */
.why {
  background: var(--vault-cream);
  position: relative;
  overflow: hidden;
}
.why .section-label { color: var(--vault-gold); }
.why .section-title { color: var(--vault-green); }
.why-watermark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.why .section-inner { position: relative; z-index: 1; }
.why-content {
  max-width: 700px;
}
.why-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--vault-charcoal);
  margin-bottom: 1.5rem;
}
.why-content strong { color: var(--vault-green); font-weight: 600; }
.why-highlight {
  background: #fff;
  border: 1px solid rgba(31,62,54,0.08);
  border-left: 3px solid var(--vault-gold);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.why-highlight p {
  font-size: 1rem;
  color: rgba(43,46,48,0.7);
  margin-bottom: 0;
  font-style: italic;
}

/* ========== FAQ ========== */
.faq {
  background: var(--vault-dark);
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.faq-list {
  margin-top: 2rem;
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid rgba(244,244,242,0.08);
}
.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--vault-cream);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  transition: color 0.3s;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
@media (hover: hover) { .faq-question:hover { color: var(--vault-gold); } }
.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--vault-gold);
  transition: transform 0.3s;
  min-width: 24px;
  text-align: center;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(244,244,242,0.55);
}
.faq-answer a { color: var(--vault-gold); }
@media (hover: hover) { .faq-answer a:hover { color: var(--vault-gold-hover); } }
.faq-item.open .faq-answer {
  max-height: var(--faq-height, 300px);
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: linear-gradient(135deg, var(--vault-green) 0%, var(--vault-dark) 100%);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(184,154,99,0.06) 0%, rgba(184,154,99,0) 70%);
}
.final-cta .section-inner { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.final-cta p {
  font-size: 1.1rem;
  color: rgba(244,244,242,0.55);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 3rem;
  background: var(--vault-gold);
  color: var(--vault-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
}
@media (hover: hover) { .cta-btn:hover { background: var(--vault-gold-hover); transform: translateY(-2px); } }
.cta-email {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(244,244,242,0.35);
  transition: color 0.3s;
}
@media (hover: hover) { .cta-email:hover { color: var(--vault-gold); } }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  background: var(--vault-green);
  color: var(--vault-cream);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
}
@media (hover: hover) { .contact-btn:hover { background: var(--vault-dark-deep); transform: translateY(-2px); } }
.contact-email-small {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(43,46,48,0.5);
  letter-spacing: 0.02em;
}
.cta-work {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--vault-gold);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
@media (hover: hover) { .cta-work:hover { color: var(--vault-gold-link-hover); } }

/* ========== HERO (service pages) ========== */
.hero {
  background: var(--vault-dark);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 2rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1;
}
.hero-center {
  text-align: center;
  max-width: 700px;
  position: relative;
  z-index: 2;
}
.hero .section-label {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
  margin-bottom: 1.5rem;
}
.hero .section-label.visible { opacity: 1; transform: translateY(0); }
.hero-heading {
  transition: opacity 0.6s 0.15s, transform 0.6s 0.15s;
}
.hero-sub {
  max-width: 550px;
  transition: opacity 0.6s 0.3s, transform 0.6s 0.3s;
}
.hero-cta.visible { transition: opacity 0.6s 0.45s, transform 0.6s 0.45s, background 0.3s; }

/* ========== FOOTER ========== */
.footer {
  background: var(--vault-dark);
  padding: 2rem 2rem 1.5rem;
  border-top: 1px solid rgba(244,244,242,0.06);
  text-align: center;
}
.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}
.footer-logo svg {
  height: 22px;
  width: auto;
  fill: rgba(244,244,242,0.4);
  margin: 0 auto 0.5rem;
  transition: fill 0.3s;
}
@media (hover: hover) {
  .footer-logo:hover svg {
    fill: rgba(244,244,242,0.6);
  }
}
.footer .tagline {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244,244,242,0.25);
  margin-bottom: 0.6rem;
}
.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(184,154,99,0.2);
  margin: 0 auto 0.6rem;
}
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(244,244,242,0.3);
  transition: color 0.3s;
  margin-bottom: 0.8rem;
}
@media (hover: hover) { .footer-email:hover { color: var(--vault-gold); } }
.footer-copyright {
  font-size: 0.7rem;
  color: rgba(244,244,242,0.5);
  letter-spacing: 0.05em;
}
.footer-copyright a { color: rgba(244,244,242,0.25); transition: color 0.3s; }
@media (hover: hover) { .footer-copyright a:hover { color: var(--vault-gold); } }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(31,62,54,0.8);
  border: 1px solid rgba(184,154,99,0.2);
  color: var(--vault-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.3s;
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .back-to-top:hover { background: rgba(184,154,99,0.2); } }

/* ========== SMOOTH TRANSITIONS ========== */
a, button {
  transition-property: color, background, border-color, box-shadow, transform, opacity;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== BLINK KEYFRAME ========== */
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   MOBILE RESPONSIVE - SHARED COMPONENTS
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Sections */
  section { padding: 3rem 1.5rem; }

  /* Tighten heading-to-content spacing on mobile */
  .problem-content { margin-top: 1.5rem; }
  .section-title { margin-bottom: 0.75rem; }
  .services-grid { margin-top: 1.5rem; }

  /* Services grid */
  .services-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { min-height: 70vh; padding: 5rem 1.5rem 3rem; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .back-to-top { transition: none !important; }
}
