/* =============================================
   BRIDGEWAY FOUNDATION — Global Styles
   ============================================= */

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

:root {
  --navy:      #0f2744;
  --navy-mid:  #1a3a5c;
  --blue:      #2563eb;
  --blue-light:#3b82f6;
  --amber:     #f59e0b;
  --amber-light:#fcd34d;
  --warm-white:#faf9f6;
  --gray-100:  #f3f4f6;
  --gray-300:  #d1d5db;
  --gray-500:  #6b7280;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --white:     #ffffff;

  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.16);

  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--amber-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-title.light { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  margin-top: 48px;
}
.btn-light:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

/* =============================================
   NAV
   ============================================= */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 39, 68, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 0;
}
.logo-bridge { color: var(--white); }
.logo-way    { color: var(--amber); }
.logo-foundation {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-left: 6px;
  align-self: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-cta {
  background: var(--amber) !important;
  color: var(--navy) !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
}
.nav-cta:hover {
  background: var(--amber-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15,39,68,.92) 0%, rgba(15,39,68,.75) 60%, rgba(37,99,235,.4) 100%),
    url('https://images.unsplash.com/photo-1593113646773-028c64a8f1b8?w=1600&q=80') center/cover no-repeat;
  padding-top: 68px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,158,11,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--amber);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* =============================================
   MISSION STRIP
   ============================================= */
.mission-strip {
  background: var(--navy);
  padding: 48px 0;
}
.mission-text {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,.85);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}
.mission-text strong {
  color: var(--amber);
}

/* =============================================
   PILLARS
   ============================================= */
.pillars { background: var(--warm-white); }

.pillars .section-title,
.pillars .section-eyebrow {
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--amber);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  width: 60px;
  height: 60px;
  background: var(--gray-100);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.pillar-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* =============================================
   IMPACT NUMBERS
   ============================================= */
.impact-numbers {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 96px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.stat-plus {
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
  vertical-align: super;
}
.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,.65);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* =============================================
   ABOUT TEASER
   ============================================= */
.about-teaser { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-image-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-500);
  font-size: 0.9rem;
  border: 2px dashed var(--gray-300);
}
.about-image-placeholder span { font-size: 3rem; }

.about-text .section-title { margin-top: 8px; }
.about-text p {
  color: var(--gray-700);
  font-size: 0.97rem;
  margin-bottom: 18px;
  line-height: 1.75;
}
.about-text .btn { margin-top: 8px; }

/* =============================================
   BOARD TEASER
   ============================================= */
.board-teaser {
  background: var(--warm-white);
  text-align: center;
}

.board-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 48px 0;
}

.board-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.board-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.board-avatar {
  width: 72px;
  height: 72px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  border: 3px solid var(--gray-300);
}
.board-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.board-card span {
  font-size: 0.82rem;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--amber);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(15,39,68,.75);
  max-width: 540px;
  margin: 0 auto 40px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo-bridge { color: var(--white); font-size: 1.2rem; font-weight: 800; }
.footer-brand .logo-way    { color: var(--amber);  font-size: 1.2rem; font-weight: 800; }
.footer-brand .logo-foundation {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-left: 6px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
  color: rgba(255,255,255,.5);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a,
.footer-contact a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--amber); }

.footer-contact p { font-size: 0.88rem; margin-bottom: 10px; }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-links a {
  font-size: 0.8rem;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.social-links a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.footer-bottom {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-placeholder { height: 280px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(15,39,68,.98);
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; padding: 12px; }

  .section { padding: 64px 0; }
  .hero-content { padding: 60px 24px 80px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
