/* ============================================================
   Western Funds Organization — Main Stylesheet
   ============================================================ */

:root {
  --navy:      #0d2b52;
  --blue:      #1565c0;
  --blue-mid:  #1e7bd4;
  --blue-light:#e8f1fb;
  --gold:      #c9a84c;
  --white:     #ffffff;
  --gray-100:  #f4f6f9;
  --gray-200:  #e2e8f0;
  --gray-500:  #6b7a8f;
  --gray-800:  #1e2a3a;
  --text:      #2c3e50;
  --radius:    6px;
  --shadow:    0 4px 24px rgba(13,43,82,.10);
  --transition:0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Utility ─────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #b8952e;
  border-color: #b8952e;
  box-shadow: 0 4px 14px rgba(201,168,76,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: #0d4fa3;
  border-color: #0d4fa3;
  box-shadow: 0 4px 14px rgba(21,101,192,.35);
}

/* ── Top Bar ──────────────────────────────────────────────── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.top-bar a:hover { color: var(--white); }
.top-bar-links { display: flex; gap: 20px; }
.top-bar-right { display: flex; gap: 16px; align-items: center; }
.top-bar-right .divider { width: 1px; height: 14px; background: rgba(255,255,255,.25); }
.lang-toggle { display: flex; gap: 8px; }
.lang-toggle a { font-size: .78rem; }
.lang-toggle a.active { color: var(--white); font-weight: 600; }

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 72px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: -1px;
}
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 1rem; color: var(--navy); font-weight: 700; }
.logo-text span { font-size: .72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--blue-light); color: var(--blue); }
.nav-link.has-dropdown::after {
  content: '▾';
  margin-left: 5px;
  font-size: .7rem;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 8px 0;
  z-index: 100;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: .88rem;
  color: var(--text);
  transition: background var(--transition);
}
.dropdown a:hover { background: var(--blue-light); color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 18px; font-size: .85rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #16487a 60%, #1565c0 100%);
  color: var(--white);
  padding: 90px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.2);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.4);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.stat-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.stat-card .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}
.stat-card .label { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: 4px; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-graphic {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-graphic-inner {
  text-align: center;
  padding: 40px;
}
.hero-graphic-icon {
  font-size: 5rem;
  margin-bottom: 16px;
  display: block;
}
.hero-graphic-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.hero-graphic-sub {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
}
.hero-graphic::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(201,168,76,.12);
}
.hero-graphic::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

/* ── Ticker / Trust Bar ───────────────────────────────────── */
.trust-bar {
  background: var(--navy);
  padding: 16px 0;
  border-top: 2px solid var(--gold);
}
.trust-bar .container {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 500;
}
.trust-item .icon { font-size: 1.1rem; color: var(--gold); }

/* ── Value Props ──────────────────────────────────────────── */
.value-props {
  padding: 80px 0;
  background: var(--gray-100);
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-label {
  display: inline-block;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-subtitle { color: var(--gray-500); max-width: 560px; margin: 0 auto; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13,43,82,.14);
  border-top-color: var(--blue);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; font-weight: 700; }
.card p { font-size: .9rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 20px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: .88rem;
  font-weight: 600;
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }
.card-link::after { content: '→'; }

/* ── Partners ─────────────────────────────────────────────── */
.partners {
  padding: 64px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.partners .section-header { margin-bottom: 36px; }
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.partner-logo {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .03em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  cursor: default;
}
.partner-logo:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Opportunity ──────────────────────────────────────────── */
.opportunity {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #163d6e 100%);
  color: var(--white);
}
.opportunity .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.opp-graphic {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.opp-stat {
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}
.opp-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--gold); display: block; }
.opp-stat .label { font-size: .76rem; color: rgba(255,255,255,.65); margin-top: 4px; line-height: 1.4; }
.opp-stat.span2 { grid-column: 1 / -1; }

.opp-content .section-label { color: var(--gold); }
.opp-content .section-title { color: var(--white); font-size: 1.85rem; }
.opp-content p { color: rgba(255,255,255,.8); margin-bottom: 16px; }
.opp-benefits { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 32px; }
.opp-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: .92rem;
}
.opp-benefit .check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--navy);
  font-weight: 900;
  margin-top: 1px;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--blue-light);
  padding: 70px 0;
  text-align: center;
}
.cta-banner .section-title { color: var(--navy); margin-bottom: 14px; }
.cta-banner p { color: var(--gray-500); max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Resources Preview ────────────────────────────────────── */
.resources-preview {
  padding: 80px 0;
  background: var(--gray-100);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.resource-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13,43,82,.14);
}
.resource-thumb {
  height: 10px;
  background: var(--blue);
}
.resource-thumb.gold { background: var(--gold); }
.resource-thumb.navy { background: var(--navy); }
.resource-body { padding: 24px; }
.resource-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.resource-body h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; font-weight: 700; line-height: 1.3; }
.resource-body p { font-size: .85rem; color: var(--gray-500); margin-bottom: 16px; }
.resource-link {
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}
.resource-link:hover { gap: 9px; }
.resource-link::after { content: '→'; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.75);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-icon {
  background: var(--gold);
  color: var(--navy);
  margin-bottom: 16px;
}
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text span { color: rgba(255,255,255,.45); }
.footer-brand p { font-size: .86rem; color: rgba(255,255,255,.6); margin-top: 14px; max-width: 280px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.social-btn:hover { background: var(--blue); color: var(--white); }

.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: .86rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.footer-address {
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-top: 8px;
}
.footer-address strong { color: rgba(255,255,255,.8); display: block; margin-bottom: 2px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

.footer-disclaimer {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .74rem;
  color: rgba(255,255,255,.3);
  line-height: 1.7;
}

/* ── Mobile nav toggle ────────────────────────────────────── */
@media (max-width: 900px) {
  .header-inner { padding: 0 16px; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.1); gap: 0; }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .header-actions .btn:first-child { display: none; }

  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }

  .cards-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .opportunity .container { grid-template-columns: 1fr; }
  .opp-graphic { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .top-bar-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
