/* =========================================
   180 Degrees Consulting Baylor - Stylesheet
   ========================================= */

/* --- CSS Variables --- */
:root {
  --green-900: #0a3d1f;
  --green-800: #145a2e;
  --green-700: #1a7a3d;
  --green-600: #1e8e47;
  --green-500: #22a352;
  --green-400: #3dbf6a;
  --green-300: #6dd694;
  --green-200: #a8e8bf;
  --green-100: #d4f4df;
  --green-50: #eefbf2;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}

.section-title { color: var(--gray-900); margin-bottom: 16px; }
.section-description { color: var(--gray-600); max-width: 600px; font-size: 1.05rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-description { margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-300);
}
.btn-outline-dark:hover { background: var(--green-50); border-color: var(--green-500); }

.btn-full { width: 100%; justify-content: center; }
.btn-text { background: none; padding: 8px 0; color: var(--green-700); font-weight: 600; }
.btn-text:hover { color: var(--green-900); }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

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

.logo img { height: 42px; }
.navbar.scrolled .logo img { height: 36px; }

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

.nav-menu a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar.scrolled .nav-menu a { color: var(--gray-700); }
.nav-menu a:hover { background: rgba(255,255,255,0.15); }
.navbar.scrolled .nav-menu a:hover { background: var(--gray-100); color: var(--gray-900); }

.nav-cta {
  background: rgba(255,255,255,0.18) !important;
  border: 1.5px solid rgba(255,255,255,0.4) !important;
}
.navbar.scrolled .nav-cta {
  background: var(--green-50) !important;
  color: var(--green-700) !important;
  border-color: var(--green-200) !important;
}

.btn-donate {
  background: var(--green-600) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
}
.btn-donate:hover { background: var(--green-700) !important; }

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,61,31,0.82) 0%, rgba(20,90,46,0.65) 50%, rgba(30,142,71,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px 0 80px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 4px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--green-200);
  font-weight: 400;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 12px;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

/* Hero slide indicators */
.hero-indicators {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-indicators span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
}
.hero-indicators span.active { background: var(--white); transform: scale(1.2); }

/* Subpage heroes */
.applications-hero, .donations-hero, .team-hero, .projects-hero {
  min-height: 50vh;
}

.applications-hero .hero-content,
.donations-hero .hero-content,
.team-hero .hero-content,
.projects-hero .hero-content {
  padding: 160px 0 60px;
}

/* --- Sections --- */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-50); }

/* --- Mission Section --- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mission-content .lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.7;
}

.mission-content p { color: var(--gray-600); margin-bottom: 28px; }

.mission-features { display: flex; flex-direction: column; gap: 20px; }

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item i {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  color: var(--green-600);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.feature-item h4 { margin-bottom: 2px; color: var(--gray-900); }
.feature-item p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 0; }

/* Video card */
.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-card:hover img { transform: scale(1.04); }

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
}

.video-card:hover .video-overlay { background: rgba(0,0,0,0.45); }

.play-button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.play-button i { color: var(--green-700); font-size: 1.4rem; margin-left: 3px; }
.video-card:hover .play-button { transform: scale(1.1); background: var(--white); }

.video-label { color: var(--white); font-weight: 600; font-size: 0.95rem; }

/* --- Booking / Calendar Section --- */
.booking-section { background: var(--gray-50); }

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.booking-content h2 { margin-bottom: 12px; }
.booking-content > p { color: var(--gray-600); margin-bottom: 28px; }

/* Calendar */
.calendar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--green-700);
  color: var(--white);
}

.calendar-header h4 { font-family: var(--font-body); font-size: 1rem; color: var(--white); }
.calendar-header button {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}
.calendar-header button:hover { background: rgba(255,255,255,0.15); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 12px;
  gap: 4px;
}

.calendar-day-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  padding: 6px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-800);
  position: relative;
}

.calendar-day:hover:not(.empty):not(.disabled) { background: var(--green-50); color: var(--green-700); }
.calendar-day.selected { background: var(--green-700); color: var(--white); font-weight: 700; }
.calendar-day.empty { cursor: default; }
.calendar-day.disabled { color: var(--gray-300); cursor: not-allowed; }
.calendar-day.today { border: 2px solid var(--green-400); }

/* Time slot picker */
.time-slots {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
}

.time-slots h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 10px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-700);
}
.time-slot:hover { border-color: var(--green-400); background: var(--green-50); color: var(--green-700); }
.time-slot.selected { background: var(--green-700); color: var(--white); border-color: var(--green-700); }

/* Booking details form step */
.booking-details {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--gray-200);
}

.booking-details .input-group {
  margin-bottom: 12px;
}

.booking-details label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.booking-details input,
.booking-details textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.booking-details input:focus,
.booking-details textarea:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(34,163,82,0.08); }
.booking-details textarea { resize: vertical; min-height: 60px; }

.booking-confirmation {
  text-align: center;
  padding: 32px 20px;
}

.booking-confirmation i {
  font-size: 3rem;
  color: var(--green-500);
  margin-bottom: 16px;
}

/* Booking sidebar image */
.booking-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.booking-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top;
}

.booking-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
}
.booking-card h4 { color: var(--white); }
.booking-card p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* --- Stats Section --- */
.stats-section { background: var(--green-900); color: var(--white); }
.stats-section .section-label { color: var(--green-300); }
.stats-section .section-title { color: var(--white); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--green-300);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number::after { content: '+'; }

.stat-label { font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.7); }

.global-stats-header {
  margin-top: 48px;
  text-align: center;
}
.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-200);
}

.global-stats .stat-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); }
.global-stats .stat-number { color: var(--green-400); }

/* --- CTA Box --- */
.cta-box {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
  color: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-box h2, .cta-box h3 { color: var(--white); margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 1.05rem; }
.cta-box .btn-primary { background: var(--white); color: var(--green-700); }
.cta-box .btn-primary:hover { background: var(--green-50); }
.cta-box .btn-outline { border-color: rgba(255,255,255,0.4); }

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  height: 180px;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-image img { transform: scale(1.06); }

.project-content { padding: 24px; }
.project-content h3 { margin-bottom: 8px; color: var(--gray-900); }
.project-content p { color: var(--gray-600); font-size: 0.92rem; }

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  height: 240px;
  overflow: hidden;
}
.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}
.team-card:hover .team-image img { transform: scale(1.04); }

.team-info { padding: 20px; }
.team-info h3 { font-size: 1.15rem; margin-bottom: 4px; color: var(--gray-900); }
.team-role { font-weight: 600; color: var(--green-700); font-size: 0.88rem; margin-bottom: 2px; }
.team-major { color: var(--gray-500); font-size: 0.82rem; }

/* --- Partners Section --- */
.partners-section { background: var(--gray-50); }

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.partner-logo {
  flex: 0 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  height: 72px;
  max-width: 240px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.45);
  transition: var(--transition);
}
.partner-logo:hover img { filter: none; }

/* Team picker cards for booking */
.team-picker-grid {
  display: grid;
  /*
   * Use an auto-fit grid so the number of columns matches the
   * number of available team members. This prevents empty white
   * space when there are only one or two team members and still
   * gracefully scales to more cards in the future. Each card will
   * have a minimum width of 180px and otherwise fill the remaining
   * space evenly.
   */
  /*
   * Automatically set the number of columns based on available items and make
   * each card span an equal fraction of the container. Using minmax(0, 1fr)
   * ensures the cards expand to fill the full width of their parent,
   * eliminating unused whitespace when there are fewer than three cards.
   */
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
}
.team-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.team-picker-card:hover {
  border-color: var(--green-600);
  background: #f0faf3;
}
.team-picker-card.selected {
  border-color: var(--green-700);
  background: #e6f6eb;
}
.team-picker-card img {
  /*
   * Enlarge the avatar to improve clarity and better fill the card.
   * Retain the circular crop and cover mode so faces stay centered.
   */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.team-picker-card .picker-avatar-placeholder {
  width: 80px;
  height: 80px;
}
.picker-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  line-height: 1.2;
}
.picker-role {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-align: center;
}
@media (max-width: 480px) {
  .team-picker-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .team-picker-card {
    flex-direction: row;
    padding: 12px 14px;
    gap: 12px;
  }
  .team-picker-card img,
  .team-picker-card .picker-avatar-placeholder {
    width: 44px;
    height: 44px;
  }
}

/* --- Testimonials --- */
.testimonials-section { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-100); }

.testimonial-content {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial-author h4 { font-size: 0.95rem; color: var(--gray-900); }
.testimonial-author p { font-size: 0.82rem; color: var(--gray-500); }

.testimonials-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* --- Contact Section --- */
.contact-section { background: var(--gray-50); }

.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrapper h2 { margin-bottom: 16px; }
.contact-wrapper > p { color: var(--gray-600); margin-bottom: 32px; }

.email-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  transition: var(--transition);
}
.email-cta:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.email-cta i { font-size: 1.3rem; color: var(--green-600); }
.email-cta .email-text { text-align: left; }
.email-cta .email-label { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; }
.email-cta .email-address { font-size: 1.1rem; font-weight: 700; color: var(--green-700); }

.contact-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  color: var(--green-600);
  border-radius: var(--radius-sm);
}
.contact-item h4 { font-size: 0.82rem; color: var(--gray-500); text-align: left; }
.contact-item p { font-size: 0.92rem; font-weight: 600; color: var(--gray-800); text-align: left; }

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo { height: 36px; margin-bottom: 12px; filter: brightness(0) invert(1) opacity(0.8); }
.footer-brand p { font-size: 0.88rem; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-column h4 { color: var(--white); margin-bottom: 16px; font-size: 0.95rem; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 8px; }
.footer-column a { font-size: 0.88rem; transition: var(--transition); }
.footer-column a:hover { color: var(--green-300); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  transition: var(--transition);
}
.social-links a:hover { background: var(--green-700); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
}

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

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

.modal-container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

.video-modal-container {
  max-width: 900px;
  padding: 0;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-400);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: var(--transition);
}
.video-modal-container .modal-close { color: rgba(255,255,255,0.7); top: 8px; right: 12px; }
.modal-close:hover { color: var(--gray-800); }

/* --- Applications Page --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.benefit-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.benefit-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.benefit-card p { color: var(--gray-600); font-size: 0.92rem; line-height: 1.6; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 32px;
}

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
}

.timeline-content h3 { margin-bottom: 6px; }
.timeline-date { font-size: 0.88rem; font-weight: 600; color: var(--green-600); margin-bottom: 8px; }
.timeline-content p { color: var(--gray-600); font-size: 0.92rem; }
.timeline-content ul {
  list-style: none;
  margin-top: 10px;
}
.timeline-content ul li {
  padding: 3px 0 3px 20px;
  position: relative;
  font-size: 0.88rem;
  color: var(--gray-600);
}
.timeline-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}

/* Ideal Candidates */
.qualities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.quality-card {
  background: var(--green-50);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--green-100);
  transition: var(--transition);
}
.quality-card:hover { background: var(--green-100); }
.quality-card h4 { color: var(--green-800); margin-bottom: 6px; }
.quality-card p { color: var(--gray-600); font-size: 0.9rem; }

/* FAQ */
.faq-container { max-width: 750px; margin: 40px auto 0; }

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-question i { transition: transform 0.3s ease; font-size: 0.85rem; color: var(--gray-400); }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 24px 18px;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Apply CTA */
.apply-cta-section { padding: 60px 0 90px; }

/* --- Donations Page --- */
.donation-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.tier-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.tier-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); }

.tier-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--green-700);
  margin-bottom: 4px;
}

.tier-card h3 { margin-bottom: 16px; font-size: 1.15rem; }

.tier-benefits {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
}
.tier-benefits li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 0.88rem;
  color: var(--gray-600);
}
.tier-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}

/* Donor leaderboard */
.leaderboard {
  max-width: 800px;
  margin: 40px auto 0;
}

.leaderboard table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--gray-500);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
}

.leaderboard td {
  padding: 14px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--gray-100);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-600);
}
.rank-badge.gold { background: #fef3c7; color: #92400e; }
.rank-badge.silver { background: var(--gray-200); color: var(--gray-700); }
.rank-badge.bronze { background: #fed7aa; color: #9a3412; }

/* Partner with us (donations) */
.why-give-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* --- Team Subpage --- */
.team-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.team-page-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.team-page-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.team-page-card .team-image { height: 280px; }
.team-page-card .team-info { padding: 24px; text-align: center; }
.team-page-card .team-info h3 { font-size: 1.2rem; }

.team-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.team-metric {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.team-metric .metric-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 6px;
}

.team-metric p { color: var(--gray-600); font-size: 0.9rem; }

/* --- Projects Subpage --- */
.project-detail-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
}
.project-detail-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.project-detail-left { padding: 32px; }
.project-detail-left h3 { margin-bottom: 6px; font-size: 1.3rem; }
.project-detail-left .project-client { font-weight: 600; color: var(--green-700); margin-bottom: 12px; font-size: 0.92rem; }
.project-detail-left p { color: var(--gray-600); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }

.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tag {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 100px;
  background: var(--green-50);
  color: var(--green-700);
}

.project-detail-right {
  background: var(--gray-50);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid var(--gray-100);
}

.project-leader-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--green-200);
  margin-bottom: 14px;
}

.project-leader-name { font-weight: 700; color: var(--gray-900); font-size: 1rem; margin-bottom: 2px; }
.project-leader-role { font-size: 0.82rem; font-weight: 600; color: var(--green-600); margin-bottom: 2px; }
.project-leader-major { font-size: 0.8rem; color: var(--gray-500); }

.project-page-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.project-page-metric {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.project-page-metric .metric-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 6px;
}

.project-page-metric p { font-size: 0.88rem; color: var(--gray-600); }

/* --- Swoosh decoration --- */
.swoosh-section {
  position: relative;
  overflow: hidden;
}

.swoosh-bg {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-100) 0%, var(--green-50) 100%);
  border-radius: 0 0 0 60%;
  z-index: 0;
  opacity: 0.6;
}

.swoosh-section > .container { position: relative; z-index: 1; }

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .booking-wrapper { grid-template-columns: 1fr; }
  .booking-image { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-tiers { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .team-page-grid { grid-template-columns: repeat(2, 1fr); }
  .project-detail-card { grid-template-columns: 1fr; }
  .project-detail-right { border-left: none; border-top: 1px solid var(--gray-100); }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 32px;
    box-shadow: var(--shadow-xl);
    gap: 4px;
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { color: var(--gray-800) !important; padding: 12px 16px; }
  .mobile-toggle { display: flex; }

  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-description { font-size: 1rem; }

  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .qualities-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .donation-tiers { grid-template-columns: 1fr; }
  .cta-box { padding: 32px 24px; }
  .team-page-grid { grid-template-columns: 1fr; }
  .team-metrics { grid-template-columns: repeat(2, 1fr); }
  .project-page-metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .qualities-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-details { flex-direction: column; gap: 20px; }
  .team-metrics { grid-template-columns: 1fr; }
  .project-page-metrics { grid-template-columns: 1fr; }
}
