/* ============================================
   VERITY CONSULTING GROUP — SHARED STYLES
   ============================================ */

:root {
  --primary: #1A365D;
  --neutral: #1C1F23;
  --accent-gold: #C9A227;
  --bg-light: #F9FAFB;
  --white: #ffffff;
  --navy: #1A365D;
  --navy-90: #243f66;
  --navy-70: #4a6080;
  --navy-50: #6a7e99;
  --navy-30: #9aa8b8;
  --navy-15: #c8cdd6;
  --navy-08: #e4e7ec;
  --navy-04: #f2f3f6;
  --navy-02: #f8f9fb;
  --accent: #2c5282;
  --accent-light: #ebf0f7;
  --serif: 'EB Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --section-padding: 140px;
  --t: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--primary); background: var(--bg-light); line-height: 1.7; font-weight: 400; letter-spacing: -0.01em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.25; }
p { font-size: 1.0625rem; color: var(--navy-70); max-width: 700px; }
.large-text { font-size: 1.25rem; line-height: 1.65; color: var(--navy-70); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
section { padding: var(--section-padding) 0; }

/* ---- Scroll Progress ---- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent-gold)); z-index: 9999; width: 0; transition: width 0.1s linear; pointer-events: none; }

/* ---- Angled Divider ---- */
.angled-divider { position: relative; height: 80px; margin-top: -1px; overflow: hidden; }
.angled-divider svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.angled-divider.white-to-dark svg { fill: var(--primary); }
.angled-divider.dark-to-white svg { fill: var(--bg-light); }

/* ---- Header ---- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--navy-08); transition: all 0.4s var(--t); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0; height: 64px; display: flex; align-items: stretch; }
.logo { font-family: 'Avenir', 'Nunito Sans', 'Helvetica Neue', var(--sans); font-size: 1rem; font-weight: 500; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 0 28px; flex-shrink: 0; letter-spacing: 0.12em; text-transform: uppercase; }
.logo-svg { flex-shrink: 0; }
.header-right { display: flex; align-items: stretch; margin-left: auto; }
.header-cta { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--navy-50); background: transparent; text-decoration: none; display: flex; align-items: center; justify-content: center; padding: 0 28px; border: none; border-left: 1px solid var(--navy-08); transition: all 0.3s var(--t); white-space: nowrap; align-self: stretch; position: relative; overflow: hidden; }
.header-cta:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; align-self: center; margin-right: 16px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--primary); transition: all 0.3s var(--t); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 999; padding: 32px 0; overflow-y: auto; opacity: 0; transition: opacity 0.3s var(--t); }
.mobile-menu.open { opacity: 1; }
.mobile-menu-section { padding: 0 48px; margin-bottom: 32px; }
.mobile-menu-label { font-family: var(--sans); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--navy-30); padding-bottom: 16px; border-bottom: 1px solid var(--navy-08); margin-bottom: 8px; }
.mobile-menu a { display: block; font-family: var(--sans); font-size: 1rem; color: var(--navy-70); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--navy-04); transition: color 0.2s var(--t); }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .mobile-cta { display: inline-flex; margin-top: 24px; font-size: 0.875rem; font-weight: 500; color: var(--white); background: var(--primary); padding: 16px 32px; text-decoration: none; }

/* ---- Right-side sticky nav ---- */
.side-nav { position: fixed; right: 48px; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; }
.side-nav a { font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; color: var(--navy-30); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 0; text-align: right; transition: all 0.3s var(--t); position: relative; }
.side-nav a::after { content: ''; position: absolute; right: -16px; top: 50%; width: 6px; height: 1px; background: var(--navy-15); transition: all 0.3s var(--t); }
.side-nav a:hover { color: var(--primary); }
.side-nav a.active { color: var(--accent-gold); }
.side-nav a.active::after { width: 20px; background: var(--accent-gold); }

/* Side nav on dark pages */
.dark-page .side-nav a { color: rgba(255, 255, 255, 0.4); }
.dark-page .side-nav a::after { background: rgba(255, 255, 255, 0.2); }
.dark-page .side-nav a:hover { color: rgba(255, 255, 255, 0.9); }
.dark-page .side-nav a.active { color: var(--accent-gold); }
.dark-page .side-nav a.active::after { background: var(--accent-gold); }

/* ---- Section label ---- */
.section-label { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-gold); display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent-gold); }
.section-label.centered { justify-content: center; }
.section-label.centered::before { display: none; }

/* ---- Buttons ---- */
.btn-primary { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--white); background: var(--primary); padding: 16px 32px; text-decoration: none; transition: all 0.4s var(--t); border: none; cursor: pointer; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transition: left 0.6s; }
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { background: var(--navy-90); gap: 18px; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(26, 54, 93, 0.25); }
.btn-primary .arrow { transition: transform 0.3s var(--t); font-size: 1rem; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-outline { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--primary); background: transparent; padding: 16px 32px; text-decoration: none; border: 1px solid var(--navy-15); transition: all 0.4s var(--t); cursor: pointer; position: relative; overflow: hidden; }
.btn-outline:hover { border-color: var(--primary); gap: 18px; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(26, 54, 93, 0.1); }

/* ---- Dark page background ---- */
.dark-page { background: var(--primary); }
.dark-page body, body.dark-page { background: var(--primary); }

/* ---- Page hero (used on subpages) ---- */
.page-hero { padding: 200px 0 100px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; max-width: 900px; }
.page-hero .section-label { margin-bottom: 28px; }
.page-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); line-height: 1.12; margin-bottom: 28px; max-width: 820px; font-weight: 600; }
.page-hero .hero-sub { font-size: 1.1875rem; line-height: 1.65; max-width: 700px; }

.page-hero--dark { background: var(--primary); background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 80px 80px; color: var(--white); }
.page-hero--dark h1 { color: var(--white); }
.page-hero--dark .hero-sub { color: rgba(255,255,255,0.65); }
.page-hero--dark .section-label { color: var(--accent-gold); }
.page-hero--dark .section-label::before { background: var(--accent-gold); }

.page-hero--light { background: var(--bg-light); }
.page-hero--light h1 { color: var(--primary); }
.page-hero--light .hero-sub { color: var(--navy-70); }

/* ---- Page body content (reusable) ---- */
.page-body { padding: 80px 0 140px; position: relative; }
.page-body .container { position: relative; z-index: 1; max-width: 900px; }

.page-body--dark { background: var(--primary); background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 80px 80px; color: var(--white); }
.page-body--light { background: var(--bg-light); }

.page-body h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 24px; margin-top: 72px; font-weight: 500; letter-spacing: -0.015em; }
.page-body h2:first-child { margin-top: 0; }
.page-body p { margin-bottom: 20px; font-size: 1.0625rem; max-width: 760px; line-height: 1.75; }
.page-body ul { list-style: none; margin: 24px 0 32px; max-width: 760px; }
.page-body ul li { font-size: 1rem; padding: 10px 0 10px 28px; position: relative; line-height: 1.6; }
.page-body ul li::before { content: ''; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--navy-15); }

.page-body--dark h2 { color: var(--white); }
.page-body--dark p { color: rgba(255, 255, 255, 0.7); }
.page-body--dark ul li { color: rgba(255, 255, 255, 0.7); }
.page-body--dark ul li::before { background: rgba(255, 255, 255, 0.25); }
.page-body--light h2 { color: var(--primary); }

/* Key characteristics (tile row) */
.characteristics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 40px; }
.characteristics .char { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px; font-size: 0.9375rem; line-height: 1.5; background: var(--white); border: 1px solid var(--navy-08); border-left: 2px solid var(--accent-gold); transition: all 0.3s var(--t); }
.characteristics .char:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26, 54, 93, 0.08); border-left-color: var(--primary); }
.characteristics .char svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.characteristics .char span { color: var(--navy-70); }

.page-body--dark .characteristics .char { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); border-left-color: var(--accent-gold); }
.page-body--dark .characteristics .char:hover { background: rgba(255, 255, 255, 0.08); border-left-color: var(--white); }
.page-body--dark .characteristics .char svg { stroke: rgba(255, 255, 255, 0.5); }
.page-body--dark .characteristics .char span { color: rgba(255, 255, 255, 0.75); }

/* Why approach callout */
.why-approach { border-left: 3px solid var(--accent-gold); padding: 4px 0 4px 28px; margin: 32px 0 40px; max-width: 760px; }
.why-approach p { font-family: var(--serif); font-size: 1.1875rem; font-style: italic; line-height: 1.6; margin: 0; color: var(--navy-70); }
.page-body--dark .why-approach p { color: rgba(255, 255, 255, 0.75); }

/* Position note */
.position-note { background: var(--navy-04); border: 1px solid var(--navy-08); padding: 24px 28px; margin: 32px 0 40px; max-width: 760px; }
.position-note-label { font-family: var(--sans); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 10px; }
.position-note p { font-size: 1rem; color: var(--navy-70); margin: 0; line-height: 1.55; }
.page-body--dark .position-note { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.page-body--dark .position-note p { color: rgba(255, 255, 255, 0.75); }

/* Next step footer */
.page-next { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--navy-08); max-width: 760px; }
.page-next .next-label { font-family: var(--sans); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 16px; }
.page-next h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--primary); font-weight: 500; }
.page-next p { font-size: 1rem; margin-bottom: 32px; color: var(--navy-70); }
.page-body--dark .page-next { border-top-color: rgba(255, 255, 255, 0.08); }
.page-body--dark .page-next h3 { color: var(--white); }
.page-body--dark .page-next p { color: rgba(255, 255, 255, 0.7); }
.page-body--dark .btn-primary { background: var(--white); color: var(--primary); }
.page-body--dark .btn-primary:hover { background: var(--bg-light); box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15); }

/* ---- Footer ---- */
.footer { padding: 56px 0; border-top: 1px solid var(--navy-08); background: var(--bg-light); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
.footer-left { font-family: var(--serif); font-size: 0.9375rem; color: var(--navy-30); }
.footer-right { font-size: 0.75rem; color: var(--navy-30); letter-spacing: 0.02em; }
.dark-page .footer { background: var(--neutral); border-top-color: rgba(255, 255, 255, 0.08); }
.dark-page .footer-left,
.dark-page .footer-right { color: rgba(255, 255, 255, 0.35); }

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--t), transform 0.9s var(--t); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.cascade-1 { transition-delay: 0.05s; }
.cascade-2 { transition-delay: 0.15s; }
.cascade-3 { transition-delay: 0.25s; }
.cascade-4 { transition-delay: 0.35s; }
.cascade-5 { transition-delay: 0.45s; }
.cascade-6 { transition-delay: 0.55s; }

/* Text reveal animation */
.text-reveal { clip-path: inset(0 100% 0 0); animation: text-clip-reveal 0.8s var(--t) forwards; }
@keyframes text-clip-reveal { to { clip-path: inset(0 0 0 0); } }
.text-reveal-delay-1 { animation-delay: 0.15s; }
.text-reveal-delay-2 { animation-delay: 0.3s; }
.text-reveal-delay-3 { animation-delay: 0.45s; }
.text-reveal-delay-4 { animation-delay: 0.6s; }
.text-reveal-delay-5 { animation-delay: 0.75s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .side-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; pointer-events: none; }
  .mobile-menu.open { pointer-events: auto; }
  .header-cta.desktop-only { display: none; }
  .characteristics { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 160px 0 80px; }
  .page-body { padding: 60px 0 100px; }
  .angled-divider { height: 48px; }
  :root { --section-padding: 120px; }
}
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .mobile-menu-section { padding: 0 24px; }
  .characteristics { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 24px; flex-direction: column; gap: 16px; text-align: center; }
  .angled-divider { height: 32px; }
  :root { --section-padding: 80px; }
  .reveal { transform: translateY(24px); }
}

/* ---- Print ---- */
@media print {
  .header, .side-nav, .mobile-menu, .hamburger, .scroll-progress, .angled-divider { display: none; }
  section, .page-hero, .page-body { padding: 48px 0; }
  .reveal { opacity: 1; transform: none; }
}
