/* =========================================================
   Ella Rises - Award-Winning Global Styles
   
   Brand Palette (from visual identity guide):
   - Dusty Blue:    #99B7C6
   - Lavender:      #978EC4
   - Off-White:     #F9F5EA
   - Peach Light:   #FFD8D1
   - Blush Pink:    #F9AFB1
   - Sage Green:    #9AB59D
   - Charcoal:      #3A3F3B
   - Coral:         #F4B092
   - Rose Red:      #CE325B
   
   Typography:
   - DM Serif Display (headings)
   - Montserrat (body)
   ========================================================= */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* 1. Design Tokens and CSS Variables */
:root {
  /* Brand colors */
  --color-bg:            #F9F5EA;
  --color-surface:       #ffffff;
  --color-surface-soft:  #fdfcf7;
  --color-primary:       #F9AFB1;  /* blush pink */
  --color-primary-dark:  #CE325B;  /* rose red */
  --color-primary-soft:  #FFD8D1;  /* peach light */
  --color-accent:        #9AB59D;  /* sage green */
  --color-accent-dark:   #7a9a7d;
  --color-accent-soft:   #c6d9c8;
  --color-dusty-blue:    #99B7C6;
  --color-lavender:      #978EC4;
  --color-coral:         #F4B092;

  --color-text:          #3A3F3B;
  --color-text-muted:    #6b706c;
  --color-text-light:    #8a8f8b;
  --color-border-subtle: #e8e4d9;
  --color-border-strong: #d4cfc0;

  --color-danger:        #CE325B;
  --color-danger-soft:   #fce8ec;
  --color-warning:       #F4B092;
  --color-success:       #9AB59D;
  --color-success-soft:  #e8f0e8;

  /* Shadows */
  --shadow-soft:         0 4px 20px rgba(58, 63, 59, 0.06);
  --shadow-medium:       0 8px 40px rgba(58, 63, 59, 0.1);
  --shadow-large:        0 20px 60px rgba(58, 63, 59, 0.12);
  --shadow-glow:         0 0 40px rgba(249, 175, 177, 0.3);
  --shadow-card:         0 10px 40px rgba(58, 63, 59, 0.08);

  /* Radii */
  --radius-sm:           8px;
  --radius-md:           16px;
  --radius-lg:           24px;
  --radius-xl:           32px;
  --radius-pill:         999px;

  /* Typography */
  --font-heading:        'DM Serif Display', Georgia, serif;
  --font-body:           'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs:             0.75rem;
  --text-sm:             0.875rem;
  --text-md:             1rem;
  --text-lg:             1.125rem;
  --text-xl:             1.25rem;
  --text-2xl:            1.75rem;
  --text-3xl:            2.5rem;
  --text-4xl:            3.5rem;
  --text-5xl:            4.5rem;

  /* Layout */
  --container-width:     min(1200px, 100vw - 3rem);
  --container-wide:      min(1400px, 100vw - 2rem);
  --header-height:       80px;

  /* Transitions */
  --transition-fast:     150ms ease-out;
  --transition-base:     250ms ease-out;
  --transition-slow:     400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce:   500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. Reset and Base Elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(255, 216, 209, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(154, 181, 157, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(151, 142, 196, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Focus styles for ADA */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, var(--text-5xl));
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, var(--text-3xl));
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

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

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

/* Decorative heading underline */
.heading-decorated {
  position: relative;
  display: inline-block;
}

.heading-decorated::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-coral));
  border-radius: var(--radius-pill);
}

/* 4. Layout Helpers */
.container {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section--tight {
  padding: 3rem 0;
}

.section--hero {
  padding: 3rem 0 5rem;
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 5. Header and Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(249, 245, 234, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 207, 192, 0.5);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 2rem;
  height: var(--header-height);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 2px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.brand-logo img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-primary-dark);
  background: rgba(249, 175, 177, 0.1);
}

.nav-link--active {
  color: var(--color-primary-dark);
  background: rgba(249, 175, 177, 0.15);
}

/* Dropdown chevron */
.nav-link .chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link .chevron,
.nav-dropdown-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* Dropdown toggle button - styled like a link */
.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-toggle:focus {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
}

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-large);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-subtle);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.65rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  outline: none;
}

/* Auth links */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-border-subtle);
}

/* 6. Buttons */
.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary button - Rose/Pink gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #e04a6e 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(206, 50, 91, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(206, 50, 91, 0.4);
  transform: translateY(-2px);
}

/* Secondary button - Sage */
.btn-secondary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(154, 181, 157, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 8px 30px rgba(154, 181, 157, 0.4);
  transform: translateY(-2px);
}

/* Outline button */
.btn-outline {
  border: 2px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  background: transparent;
  padding: 0.65rem 1.4rem;
}

.btn-outline:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background: rgba(249, 175, 177, 0.15);
  color: var(--color-primary-dark);
}

/* Large button */
.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-md);
}

/* Small button */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

/* 7. Hero Section */
.hero {
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(249, 175, 177, 0.15);
  border-radius: var(--radius-pill);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.hero-title span {
  color: var(--color-primary-dark);
  position: relative;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-primary-dark);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Circle photo strip */
.circle-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
  position: relative;
}

.circle-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-primary-soft) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.circle-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-surface);
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-slow);
  position: relative;
  z-index: 1;
}

.circle-photo:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: var(--shadow-large);
}

.circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-photo--logo {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border: 4px solid var(--color-primary-soft);
  box-shadow: var(--shadow-glow);
}

.circle-photo--logo img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

/* 8. Program Cards Section */
.programs-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 216, 209, 0.2) 50%, transparent 100%);
}

.programs-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Program Card with hover overlay */
.program-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.program-card-bg {
  position: absolute;
  inset: 0;
}

.program-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.program-card:hover .program-card-bg img {
  transform: scale(1.08);
}

/* Gradient overlay */
.program-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(58, 63, 59, 0.95) 0%,
    rgba(58, 63, 59, 0.6) 40%,
    rgba(58, 63, 59, 0.2) 70%,
    transparent 100%
  );
  transition: all var(--transition-base);
}

.program-card:hover .program-card-overlay {
  background: linear-gradient(
    to top,
    rgba(58, 63, 59, 0.98) 0%,
    rgba(58, 63, 59, 0.85) 50%,
    rgba(58, 63, 59, 0.5) 100%
  );
}

/* Card content */
.program-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #ffffff;
  z-index: 2;
}

.program-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: 0;
  transition: all var(--transition-base);
}

/* Expanded content on hover */
.program-card-expanded {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.program-card:hover .program-card-expanded {
  opacity: 1;
  max-height: 200px;
  margin-top: 1rem;
}

.program-card-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.program-card-actions {
  display: flex;
  gap: 0.75rem;
}

.program-card .btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-pill);
}

.program-card .btn-primary {
  background: var(--color-primary-dark);
}

.program-card .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.program-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* 9. Team/Board Section */
.team-section {
  padding: 6rem 0;
  position: relative;
}

.team-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

/* Founders grid */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto 5rem;
}

.founder-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-subtle);
}

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

.founder-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--color-primary-soft);
  box-shadow: var(--shadow-medium);
  margin-bottom: 1.5rem;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.founder-info h3 {
  margin-bottom: 0.25rem;
  font-size: var(--text-2xl);
}

.founder-role {
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.founder-bio {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 320px;
}

/* Board members grid */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.board-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-subtle);
}

.board-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-primary-soft);
}

.board-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-primary-soft);
}

.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.board-card:hover .board-photo img {
  transform: scale(1.05);
}

.board-info {
  padding: 1.25rem;
  text-align: center;
  background: var(--color-surface);
}

.board-name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.board-role {
  font-size: var(--text-xs);
  color: var(--color-primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 10. Impact/Stats Section */
.impact-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--color-text) 0%, #4a504c 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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");
  opacity: 0.5;
}

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

.impact-title {
  color: #ffffff;
  margin-bottom: 1rem;
}

.impact-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-lg);
  margin-bottom: 3rem;
}

.impact-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 2.5rem;
}

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

.impact-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.impact-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* 11. Donate Section */
.donate-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.donate-content {
  max-width: 600px;
  margin: 0 auto;
}

.donate-title {
  margin-bottom: 1rem;
}

.donate-text {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: var(--text-lg);
}

/* 12. Cards and Surfaces */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-subtle);
  transition: all var(--transition-base);
}

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

.card--featured {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-primary-soft) 100%);
  border-color: var(--color-primary-soft);
}

/* 13. Decorative Flowers */
.flower-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.flower-decor img {
  width: 100%;
  height: auto;
}

.flower-1 {
  width: 100px;
}

.flower-2 {
  width: 80px;
}

.flower-3 {
  width: 120px;
}

/* 14. Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border-subtle);
  background: var(--color-surface);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(249, 175, 177, 0.2);
  outline: none;
}

/* Search inputs with icon - needs extra left padding */
.search-input {
  padding-left: 2.75rem !important;
}

.search-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* 15. Alerts */
.alert {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: var(--color-success-soft);
  color: var(--color-accent-dark);
  border: 1px solid var(--color-accent);
}

.alert-error {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.alert-info {
  background: rgba(153, 183, 198, 0.15);
  color: var(--color-dusty-blue);
  border: 1px solid var(--color-dusty-blue);
}

/* 16. Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge--primary {
  background: rgba(249, 175, 177, 0.2);
  color: var(--color-primary-dark);
}

.badge--accent {
  background: rgba(154, 181, 157, 0.2);
  color: var(--color-accent-dark);
}

.badge--neutral {
  background: rgba(58, 63, 59, 0.1);
  color: var(--color-text);
}

/* 17. Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table thead {
  background: var(--color-bg);
}

.table th,
.table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
}

.table th {
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.table tbody tr:hover {
  background: rgba(249, 175, 177, 0.05);
}

/* 18. Sidebars */
.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.sidebar {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.sidebar-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav-item + .sidebar-nav-item {
  margin-top: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sidebar-link:hover {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

.sidebar-link--active {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* 19. Footer */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 0;
}

.footer-brand {
  max-width: 260px;
}

.footer-brand-logo {
  width: 50px;
  height: 50px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer-brand-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.footer-brand p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
}

.footer-bottom {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-nonprofit {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin: 0.25rem 0 0;
}

/* 20. Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.w-full { width: 100%; }

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

/* 21. Responsive Design */
@media (max-width: 1100px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .board-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 7rem 0 4rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .founder-photo {
    width: 140px;
    height: 140px;
  }
  
  .founder-bio {
    max-width: 100%;
  }
  
  .impact-stats {
    gap: 2rem;
  }
  
  .shell {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 1rem;
  }
  
  .sidebar-nav {
    display: flex;
    gap: 0.5rem;
  }
  
  .sidebar-nav-item + .sidebar-nav-item {
    margin-top: 0;
  }
  
  .sidebar-link {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    padding: 0.5rem 0;
    height: auto;
    flex-wrap: wrap;
  }
  
  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.5rem 0;
    gap: 0.25rem;
  }
  
  .nav-auth {
    margin-left: auto;
    padding-left: 0.5rem;
    border-left: none;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .circle-strip {
    gap: 1rem;
  }
  
  .circle-photo {
    width: 100px;
    height: 100px;
  }
  
  .circle-photo--logo {
    width: 120px;
    height: 120px;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .program-card {
    height: 320px;
  }
  
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .impact-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .board-grid {
    grid-template-columns: 1fr;
  }
}

/* 22. Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Stagger children animations - only on hover-capable devices to prevent flash */
@media (hover: hover) and (pointer: fine) {
  .stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
  }

  .stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
  .stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
  .stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
  .stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
  .stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
  .stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
  .stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
  .stagger-children > *:nth-child(8) { animation-delay: 0.8s; }
}

/* Prevent SVG flash - ensure SVGs have constrained dimensions before CSS loads */
svg:not([width]):not([height]) {
  max-width: 100%;
  max-height: 100%;
  contain: strict;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.program-card-title {
  position: relative;
  color: white;
  z-index: 3;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45); /* subtle readable backdrop */
  backdrop-filter: blur(2px);
}

