/* Snyder Family Foundation - Redesigned 2026 */

/* ============================================
   Design System - Color Palette
   ============================================ */
:root {
  /* Primary Colors */
  --primary-blue: #2C5F8D;
  --warm-gold: #C9A961;
  --soft-white: #FAFBFC;
  --warm-gray: #4A5568;

  /* Accent Colors */
  --success-green: #48BB78;
  --alert-red: #E53E3E;
  --info-blue: #4299E1;

  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7FAFC;
  --bg-tertiary: #EDF2F7;

  /* Text Colors */
  --text-primary: #2D3748;
  --text-secondary: #4A5568;
  --text-muted: #718096;

  /* Borders & Shadows */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--warm-gold);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--info-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 1rem;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to content link */
.skip {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 999;
  background: var(--primary-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.skip:focus {
  left: 1rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue), var(--warm-gold));
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.125rem;
  color: white;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Navigation */
.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.625rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle:hover {
  background: var(--bg-tertiary);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--info-blue);
  outline-offset: 2px;
}

.nav-toggle-bars {
  display: inline-block;
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--text-primary), var(--text-primary)) 0 0/100% 2px no-repeat,
    linear-gradient(var(--text-primary), var(--text-primary)) 0 50%/100% 2px no-repeat,
    linear-gradient(var(--text-primary), var(--text-primary)) 0 100%/100% 2px no-repeat;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  background: #E8F2F7;
  border: 1px solid #B8D4E1;
}

.nav-menu a:hover {
  color: var(--primary-blue);
  background: #D4E8F0;
  border-color: #9CBFD4;
  text-decoration: none;
}

.nav-menu a:active {
  background: #1a3a52;
  border-color: #1a3a52;
  color: white;
}

.nav-menu a:focus-visible {
  outline: 3px solid var(--info-blue);
  outline-offset: 2px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}

.btn:focus-visible {
  outline: 3px solid var(--info-blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background: #234a6d;
  border-color: #234a6d;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--warm-gold);
  color: white;
  border-color: var(--warm-gold);
}

.btn-secondary:hover {
  background: #b8954d;
  border-color: #b8954d;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
}

.btn-block {
  width: 100%;
  display: block;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(44, 95, 141, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.stat {
  text-align: center;
}

.stat-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.stat-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   Image Slider
   ============================================ */
.slider-container {
  margin-top: 3rem;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.slider {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-medium);
  border: 2px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: scale(1.2);
}

.dot.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  width: 32px;
  border-radius: 6px;
}

.dot:focus-visible {
  outline: 3px solid var(--info-blue);
  outline-offset: 2px;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-head {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-head p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ============================================
   Cards
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.card .btn {
  margin-top: auto;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-info {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge-success {
  background: rgba(72, 187, 120, 0.1);
  color: var(--success-green);
}

.badge-alert {
  background: rgba(229, 62, 62, 0.1);
  color: var(--alert-red);
}

/* ============================================
   Forms
   ============================================ */
.form-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.form {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form label {
  display: block;
  margin-bottom: 1.5rem;
}

.form label span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background: white;
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-output {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: none;
}

.form-output pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 1rem 0;
}

/* ============================================
   Alerts & Notices
   ============================================ */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-info {
  background: rgba(66, 153, 225, 0.1);
  border-color: var(--info-blue);
  color: var(--text-primary);
}

.alert-success {
  background: rgba(72, 187, 120, 0.1);
  border-color: var(--success-green);
  color: var(--text-primary);
}

.alert-warning {
  background: rgba(237, 137, 54, 0.1);
  border-color: #ED8936;
  color: var(--text-primary);
}

.alert-danger {
  background: rgba(229, 62, 62, 0.1);
  border-color: var(--alert-red);
  color: var(--text-primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Modal
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(600px, calc(100% - 2rem));
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-head {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1.125rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .section-head h2 {
    font-size: 1.75rem;
  }

  .slider {
    height: 350px;
  }

  .slide-caption {
    font-size: 1rem;
    padding: 1.5rem 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 1rem);
    padding: 0 0.5rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .card {
    padding: 1.5rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {

  .site-header,
  .nav,
  .hero-cta,
  .btn,
  .modal {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .section {
    page-break-inside: avoid;
  }
}