/* ============================================================
   VALORA PARTNERS — SHARED STYLESHEET
   Fonts: Chunk Five (display), DM Sans (body), Space Mono (numbers)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Chunk+Five&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

/* ── TOKENS ── */
:root {
  --navy:       #1B2A4A;
  --gold:       #B8934A;
  --gold-light: #C9A96E;
  --terracotta: #A84E23;
  --cream:      #F2EDE6;
  --sand:       #EAE4DA;
  --white:      #FFFFFF;
  --text-dark:  #1B2A4A;
  --text-mid:   #4A5568;
  --text-light: #8A95A3;

  --font-display: 'Chunk Five', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  --radius:  4px;
  --radius-lg: 8px;
  --max-w:   1160px;
  --nav-h:   100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 400; }
h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
p  { font-size: 1rem; line-height: 1.75; color: var(--text-mid); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.gold { color: var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #a07c3a;
  border-color: #a07c3a;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled, .nav {
  background: var(--cream);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* Pages without a full-height hero: nav is always white,
   and a spacer div pushes content down */
body:not([data-page="index"]) .nav {
  background: var(--cream) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08) !important;
}

/* Spacer injected by JS on non-home pages */
.nav-spacer {
  height: var(--nav-h);
  display: block;
}

/* Override: contact + testimonials have dark headers so
   nav starts transparent and transitions on scroll */


.nav.nav-solid {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  position: static;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nav-logo svg { width: 64px; height: auto; }
.nav-logo img { height: 240px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

/* Nav on dark hero - white links */
.nav.nav-hero .nav-links a { color: var(--white); }
.nav.nav-hero .nav-logo-wordmark { color: var(--white); }

/* ── FOOTER ── */
.footer-contact {
  background: var(--cream);
  padding: 60px 0 0;
}
.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 80px;
}
.footer-contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
}
.footer-contact-left h2 span { color: var(--gold); }
.footer-contact-left > p {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 380px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-details { display: flex; flex-direction: column; gap: 36px; margin-top: 32px; }
.footer-detail-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.footer-detail-block p,
.footer-detail-block a {
  font-size: 0.9rem;
  color: var(--gold);
  line-height: 1.7;
}
.footer-detail-block a:hover { color: var(--navy); }

/* Contact Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s ease;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-radio-group { display: flex; flex-direction: column; gap: 8px; }
.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gold);
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.form-radio input[type="radio"] { accent-color: var(--gold); }
.form-radio:hover { border-color: var(--gold); }
.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease;
}
.form-submit:hover { background: #0f1e36; }
.form-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 10px;
}

/* Footer Bar */
.footer-bar {
  border-top: 1px solid var(--sand);
  padding: 28px 0;
}
.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bar-logo svg { width: 56px; height: auto; }
.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-mid);
}
.footer-legal {
  font-size: 0.7rem;
  color: var(--text-light);
  background: var(--sand);
  padding: 20px 40px;
  text-align: center;
  line-height: 1.6;
}

/* ── AFFILIATIONS ── */
.affiliations {
  background: var(--white);
  padding: 60px 0;
  text-align: center;
border-top: 1px solid var(--sand);
}
.affiliations h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-light);
  margin-bottom: 32px;
}
.affiliations h2 {
  margin-bottom: 48px;
}
.affil-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.affil-logo {
  opacity: 0.65;
  transition: opacity 0.2s ease;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.affil-logo:hover { opacity: 1; }
.affil-logo svg { height: 100%; width: auto; }
.affil-logo img { height: 100%; width: auto; }

/* ── SECTION SPACING ── */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* ── DIVIDER ── */
.divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0 28px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .footer-contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-legal { padding: 20px 24px; }
}
@media (max-width: 640px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.06em; }
  .section { padding: 64px 0; }
}
.footer-heading {
  color: var(--navy);
  margin-bottom: 12px;
}
.footer-heading span { color: var(--gold); }
.footer-subheading {
  max-width: 480px;
  margin-bottom: 48px;
  font-weight: 600;
  color: var(--text-mid);
}
.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.footer-contact-left {
  display: flex;
  flex-direction: column;
  gap: 0px;
  height: 100%;
}
.footer-bottom-left {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-mid);
}

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 16px 0 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--sand);
    width: 100%;
    text-align: center;
  }
  .nav-toggle { display: flex !important; }
  .nav-logo img { height: 52px; }
  .container { padding: 0 20px; }
  .hero-content { padding: 0 24px; text-align: center; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero { min-height: 100vh; }
  body { overflow-x: hidden; }
  html, body { overflow-x: hidden; max-width: 100%; }
  .nav-inner { padding: 0 16px; max-width: 100%; }
  .about-us-image { height: 350px; }
.about-us-grid { grid-template-columns: 1fr; }
.about-us-image { height: 350px; width: 100%; }
.footer-contact-grid { grid-template-columns: 1fr; gap: 40px; }
.footer-contact-left { display: flex; flex-direction: column; }
.footer-contact-right { order: 1; }
.footer-details { order: 3; }
.footer-bottom-left { order: 4; }
.section { padding: 60px 0; }

}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* Base state — invisible, shifted down */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Triggered state — visible */
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Headings get a slightly slower transition */
h1.fade-up, h2.fade-up {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Cards get a subtle shadow on reveal */
.wwd-card.fade-up.in-view {
  box-shadow: 0 4px 24px rgba(27,42,74,0.07);
}

/* ============================================================
   DARK MODE
   ============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --cream:     #1A1A2E;
    --sand:      #222235;
    --white:     #242438;
    --text-dark: #E8E0D5;
    --text-mid:  #B0A898;
    --text-light:#7A7A8A;
  }

  .nav { background: #1A1A2E !important; }
  .wwd-card { background: #222235; border-color: #2A2A45; }
  .wwd-card--featured { background: var(--navy); }
  .form-card { background: #222235; border-color: #2A2A45; }
  .form-group input,
  .form-group select,
  .form-group textarea { background: #1A1A2E; border-color: #2A2A45; color: var(--text-dark); }
  .about-pillar { background: #222235; border-color: #2A2A45; }
  .eligibility-card { background: #222235; border-color: #2A2A45; }
  .glass-block { background: rgba(10, 15, 30, 0.85); }
  .footer-legal { background: #111120; }
  .affiliations { background: #1A1A2E; }
}