/* Visionary Voices Inc. - Minimal Editorial Style */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black: #111111;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo span { display: flex; flex-direction: column; }
.logo span span { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 400; color: var(--gray-500); letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--gray-600); text-decoration: none; font-size: 0.9rem; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.header-cta {
  background: var(--black);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--gray-600); }
.mobile-menu-toggle { display: none; }

/* Hero */
.hero { padding: 5rem 0 3rem; text-align: center; }
.hero-label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--font-serif); font-size: 3rem; font-weight: 500; line-height: 1.2; max-width: 900px; margin: 0 auto 1.5rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--gray-600); max-width: 700px; margin: 0 auto; }

/* Page Header */
.page-header { padding: 4rem 0 2rem; text-align: center; border-bottom: 1px solid var(--gray-200); }
.page-header h1 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 500; margin-bottom: 0.75rem; }
.page-header p { color: var(--gray-600); font-size: 1.1rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }
.section-border { border-bottom: 1px solid var(--gray-200); }
.section-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 0.75rem; }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; }

/* Stats */
.stats-row { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; text-align: center; }
.stat-number { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 500; }
.stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.25rem; }

/* Two Column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col-wide { grid-template-columns: 1.2fr 0.8fr; }
.two-col-image { background: var(--gray-100); min-height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.two-col-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.3s; }
.two-col-image img:hover { filter: grayscale(0%); }
.two-col-image-placeholder { background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 0.85rem; text-align: center; padding: 2rem; min-height: 200px; width: 100%; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { padding: 2rem; border: 1px solid var(--gray-200); }
.card h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; color: var(--gray-600); }

/* Timeline */
.timeline { max-width: 700px; }
.timeline-item { display: grid; grid-template-columns: 100px 1fr; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--gray-200); }
.timeline-item:last-child { border-bottom: none; }
.timeline-year { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; }
.timeline-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.timeline-item p { font-size: 0.9rem; color: var(--gray-600); }

/* Program Blocks */
.program-block { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--gray-200); }
.program-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.program-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.program-header h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; }
.program-link { font-size: 0.85rem; color: var(--black); text-decoration: none; border-bottom: 1px solid var(--black); padding-bottom: 2px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.team-member { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: start; }
.team-photo { width: 150px; height: 180px; background: var(--gray-100); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(100%); }
.team-info h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.25rem; }
.team-role { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.team-info p { font-size: 0.9rem; color: var(--gray-600); }

/* Publications */
.pub-list { list-style: none; }
.pub-item { padding: 1.25rem 0; border-bottom: 1px solid var(--gray-200); }
.pub-item:last-child { border-bottom: none; }
.pub-item a { color: var(--black); text-decoration: none; font-weight: 500; display: block; margin-bottom: 0.25rem; }
.pub-item a:hover { text-decoration: underline; }
.pub-item span { font-size: 0.85rem; color: var(--gray-500); }

/* Donate */
.donate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.donate-tiers { list-style: none; }
.donate-tier { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gray-200); }
.donate-tier:last-child { border-bottom: none; }
.tier-amount { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; min-width: 80px; }
.tier-desc { font-size: 0.9rem; color: var(--gray-600); }
.tier-featured { background: var(--gray-50); padding: 1rem; margin: 0 -1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-item { margin-bottom: 2rem; }
.contact-item strong { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 0.5rem; }
.contact-item a { color: var(--black); text-decoration: none; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem; border: 1px solid var(--gray-300); font-family: var(--font-sans); font-size: 1rem;
}
.form-group textarea { min-height: 150px; resize: vertical; }
.btn-submit { background: var(--black); color: var(--white); padding: 0.75rem 2rem; border: none; font-size: 0.9rem; font-weight: 500; cursor: pointer; }

/* CTA */
.cta-section { padding: 4rem 0; background: var(--gray-50); text-align: center; }
.cta-section h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; margin-bottom: 0.75rem; }
.cta-section p { color: var(--gray-600); margin-bottom: 1.5rem; }
.btn-cta { display: inline-block; background: var(--black); color: var(--white); padding: 0.75rem 2rem; text-decoration: none; font-weight: 500; }

/* Footer */
.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--gray-200); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--gray-600); }
.footer-nav h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 1rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { color: var(--gray-600); text-decoration: none; font-size: 0.9rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.footer-bottom p { font-size: 0.85rem; color: var(--gray-500); }
.tax-info { margin-top: 0.25rem; }

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 200;
  padding: 2rem;
  flex-direction: column;
}
.mobile-nav.active { display: flex; }
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-nav ul {
  list-style: none;
  margin-top: 3rem;
}
.mobile-nav li {
  margin-bottom: 1.5rem;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--black);
  text-decoration: none;
}
.mobile-nav a:hover { text-decoration: underline; }

/* Tablet */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  
  /* Header */
  .nav-links { display: none; }
  .header-cta { display: none; }
  .mobile-menu-toggle { display: block; background: none; border: none; cursor: pointer; padding: 0.5rem; }
  .mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; }
  .header-inner { gap: 1rem; }
  .logo { font-size: 1.1rem; }
  
  /* Hero */
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1rem; }
  
  /* Page Header */
  .page-header { padding: 2.5rem 0 1.5rem; }
  .page-header h1 { font-size: 1.75rem; }
  
  /* Sections */
  .section { padding: 2.5rem 0; }
  .section-sm { padding: 1.5rem 0; }
  .section-header h2 { font-size: 1.5rem; }
  
  /* Grids stack on mobile */
  .two-col, .two-col-wide, .card-grid, .team-grid, .donate-layout, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  /* Cards */
  .card { padding: 1.5rem; }
  .card h3 { font-size: 1.1rem; }
  
  /* Stats */
  .stats-row { gap: 1.5rem; }
  .stat-number { font-size: 2rem; }
  
  /* Team */
  .team-member { grid-template-columns: 100px 1fr; gap: 1rem; }
  .team-photo { width: 100px; height: 120px; }
  .team-info h3 { font-size: 1.1rem; }
  .team-info p { font-size: 0.85rem; }
  
  /* Timeline */
  .section > .container > div[style*="justify-content: space-between"] {
    flex-direction: column;
    gap: 0 !important;
  }
  .section > .container > div[style*="justify-content: space-between"] > div {
    border-left: 2px solid var(--gray-300) !important;
    text-align: left !important;
    padding: 1rem 0 1rem 1.5rem !important;
    min-width: unset !important;
  }
  .section > .container > div[style*="justify-content: space-between"] > div:first-child,
  .section > .container > div[style*="justify-content: space-between"] > div:last-child {
    border-left-color: var(--black) !important;
  }
  
  /* Hero with Donorbox - stack on mobile */
  .section > .container > div[style*="grid-template-columns: 1fr 320px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  /* Homepage stats inline */
  .section > .container > div[style*="grid-template-columns: 1fr 320px"] > div > div[style*="display: flex"] {
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 1rem !important;
  }
  .section > .container > div[style*="grid-template-columns: 1fr 320px"] > div > div[style*="display: flex"] > div {
    text-align: center;
  }
  .section > .container > div[style*="grid-template-columns: 1fr 320px"] > div > div[style*="display: flex"] > div > div:first-child {
    font-size: 1.5rem !important;
  }
  
  /* Hero image */
  section[style*="padding: 0"] .container > div[style*="max-height: 450px"] {
    max-height: 250px !important;
  }
  section[style*="padding: 0"] .container > div[style*="max-height: 450px"] img {
    height: 250px !important;
  }
  
  /* Two column images */
  .two-col-image { min-height: 200px; }
  
  /* Programs */
  .program-header { flex-direction: column; gap: 0.5rem; }
  .program-header h3 { font-size: 1.25rem; }
  
  /* Photo grids */
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: 2fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Donate */
  .donate-tiers { margin-top: 1rem; }
  .tier-amount { min-width: 60px; font-size: 1rem; }
  
  /* Contact */
  .form-group input, .form-group select, .form-group textarea { padding: 0.6rem; font-size: 0.95rem; }
  
  /* Footer */
  .footer-grid { gap: 1.5rem; }
  .footer-brand { margin-bottom: 1rem; }
  .footer-nav { margin-bottom: 0.5rem; }
  .footer-bottom { padding-top: 1.5rem; }
  
  /* CTA */
  .cta-section { padding: 3rem 0; }
  .cta-section h2 { font-size: 1.5rem; }
  
  /* School Report Card */
  div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 1rem"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  
  /* R&D Journal logos */
  div[style*="justify-content: center"][style*="gap: 3rem"] {
    gap: 1rem !important;
  }
  div[style*="justify-content: center"][style*="gap: 3rem"] > div {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
}
