/* ========================================
   FRIENDS OF CROSS — Main Stylesheet
   ======================================== */

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary palette — derived from CROSS logo */
  --color-primary: #4A5E6A;       /* Logo slate — the bird and main text */
  --color-primary-dark: #3D4F5A;
  --color-primary-light: #5E7483;
  --color-accent: #5BB5D5;        /* Logo cyan — the cross accent */
  --color-accent-dark: #49A0BF;
  --color-accent-light: #7CC7E0;

  /* Deep navy derived from the logo's darkest tone — used for contrast sections */
  --color-navy: #1C2B35;
  --color-navy-soft: #26343E;

  /* Neutrals */
  --color-bg: #FFFFFF;
  --color-bg-warm: #FAF9F7;        /* Warm off-white, replaces greys */
  --color-bg-alt: #FAF9F7;
  --color-bg-dark: #1C2B35;
  --color-text: #2E3B42;
  --color-text-light: #6B7D88;
  --color-text-muted: #97A8B2;
  --color-white: #FFFFFF;
  --color-border: rgba(91,181,213,0.15);
  --color-border-strong: rgba(91,181,213,0.3);

  /* Donate section */
  --color-donate-bg: #1C2B35;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-padding: 7rem 0;
  --container-max: 1200px;
  --container-padding: 0 1.5rem;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28,43,53,0.04);
  --shadow-md: 0 6px 20px rgba(28,43,53,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(28,43,53,0.15);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 50px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.005em;
}

h1 { font-weight: 600; }
h2 { font-weight: 600; }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---- Section Base ---- */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header.light h2,
.section-header.light .section-tag {
  color: var(--color-white);
}

.section-header.light .section-divider {
  background: var(--color-accent);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto;
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--color-text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ---- Alternating section backgrounds ---- */
.section.section-dark,
.section--dark {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
}

.section.section-dark h1,
.section.section-dark h2,
.section.section-dark h3,
.section.section-dark h4,
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section.section-dark .section-tag,
.section--dark .section-tag {
  color: var(--color-accent-light);
}

.section.section-dark .section-intro,
.section--dark .section-intro {
  color: rgba(255,255,255,0.75);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(91,181,213,0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(91,181,213,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(91,181,213,0.35);
}

.btn-large {
  padding: 1.15rem 2.75rem;
  font-size: 1.05rem;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid rgba(91,181,213,0.2);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  max-height: 100px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-accent);
  background: transparent;
}

.nav-donate-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.75rem;
  background: var(--color-accent);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(91,181,213,0.35);
  transition: all var(--transition);
}

.nav-donate-btn:hover {
  background: var(--color-accent-dark);
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(91,181,213,0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy) 0%, #0F1A22 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28,43,53,0.55) 0%,
    rgba(28,43,53,0.75) 55%,
    rgba(15,26,34,0.95) 100%
  );
  z-index: 1;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.08);
  font-size: 0.9rem;
  gap: 1rem;
}

.hero-image-placeholder svg {
  width: 64px;
  height: 64px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 0 1.5rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  word-wrap: break-word;
}

.hero-content h1 .highlight {
  color: var(--color-accent-light);
  font-style: italic;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Donation Widget (Fixed Top Right) ---- */
.donation-widget {
  position: fixed;
  top: 104px;
  right: 1.5rem;
  z-index: 999;
  width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.donation-widget.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.donation-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.85rem;
}

.donation-widget-icon {
  display: flex;
}

.donation-widget-body {
  padding: 1rem;
}

.donation-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.amount-btn {
  padding: 0.5rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text);
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--color-accent);
  background: rgba(91,181,213,0.08);
  color: var(--color-accent-dark);
}

.custom-amount {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 0.5rem;
  margin-bottom: 0.75rem;
}

.currency-symbol {
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.custom-amount input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  background: transparent;
}

.btn-donate-widget {
  width: 100%;
  justify-content: center;
  padding: 0.65rem;
  font-size: 0.85rem;
}

/* ---- About Section ---- */
.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-text .lead {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.charity-number {
  padding: 1rem 1.25rem;
  background: var(--color-bg-warm);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  color: var(--color-text);
}

/* Image Placeholders */
.image-placeholder {
  background: var(--color-bg-warm);
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  aspect-ratio: 4/3;
  transition: all var(--transition);
}

.image-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.image-placeholder.small {
  aspect-ratio: 16/10;
}

.image-placeholder.avatar {
  aspect-ratio: 1;
  border-radius: 50%;
  max-width: 160px;
  margin: 0 auto;
}

.image-placeholder.gallery-img {
  aspect-ratio: 3/2;
}

/* Real avatar photos */
.team-photo .avatar {
  width: 160px;
  height: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto;
  display: block;
  box-shadow: 0 8px 24px rgba(28,43,53,0.12);
  border: 3px solid var(--color-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover .team-photo .avatar {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(91,181,213,0.25);
}

/* Friends of CROSS Subsection */
.friends-subsection {
  background: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  border: 1px solid var(--color-border);
  margin-top: 4rem;
}

.friends-subsection h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.friends-subsection > p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--color-text-light);
}

.committee-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.committee-member-name {
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.committee-member-name span {
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 0.8rem;
}

/* ---- Impact Section ---- */
.impact {
  background: var(--color-bg);
}

/* Full-width dark banner — breaks out of the parent container */
.impact-stat {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 5rem;
  padding: 6rem 1.5rem;
  background: var(--color-navy);
  border-radius: 0;
  box-shadow: none;
  color: var(--color-white);
  overflow: hidden;
}

.impact-stat::before,
.impact-stat::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,181,213,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.impact-stat::before {
  top: -180px;
  left: -120px;
}

.impact-stat::after {
  bottom: -180px;
  right: -120px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 10vw, 7.5rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  position: relative;
}

.stat-number::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.stat-label {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  letter-spacing: 0.01em;
}

.equipment-heading {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.equipment-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.equipment-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

.equipment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: var(--color-border-strong);
}

.equipment-image {
  padding: 1rem 1rem 0;
}

.equipment-info {
  padding: 1.25rem;
}

.equipment-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.equipment-info p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- Research Partners ---- */
.partners-strip {
  margin-top: 3rem;
  text-align: center;
}

.partners-strip h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.partner-tile {
  padding: 0.75rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

a.partner-tile {
  text-decoration: none;
  color: var(--color-primary);
}

.partner-tile:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  color: var(--color-accent-dark);
}

.partner-tile--logo {
  padding: 0.5rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
}

.partner-tile--logo img {
  max-height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* ---- Testimonials Section ---- */
.testimonials {
  background: var(--color-bg-warm);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem 2rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: var(--color-accent-light);
  border-left-color: var(--color-accent);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -3rem;
  right: -0.5rem;
  font-family: var(--font-heading);
  font-size: 18rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.testimonial-author cite {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---- Events Section ---- */
.events {
  background: var(--color-white);
}

.events-subheading {
  font-size: 1.75rem;
  text-align: center;
  margin: 3rem 0 2rem;
  color: var(--color-primary-dark);
  font-weight: 400;
  font-style: italic;
}

.events-subheading:first-of-type {
  margin-top: 1rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.events-grid--upcoming,
.events-grid--past {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  max-width: 100%;
}

.event-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.event-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.event-card.featured {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, rgba(91,181,213,0.06), rgba(91,181,213,0.02));
}

.event-card--upcoming {
  padding: 2.25rem;
  align-items: flex-start;
}

.event-card--past {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.event-photo {
  width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.event-body {
  padding: 1.75rem 2rem 2rem;
}

.event-header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.event-header-row h4 {
  margin: 0;
  font-size: 1.35rem;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 66px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 4px 14px rgba(91,181,213,0.35);
}

.event-month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-day {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.event-info h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.event-info p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.event-body p {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

.events-cta {
  text-align: center;
  margin-bottom: 3rem;
}

.events-cta p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-gallery .gallery-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  height: 280px;
  transition: all var(--transition);
}

.event-gallery .gallery-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: var(--color-border-strong);
}

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

/* ---- Get Involved Section ---- */
.get-involved {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
}

.get-involved .section-tag {
  color: var(--color-accent-light);
}

.get-involved h2,
.get-involved h3,
.get-involved h4 {
  color: var(--color-white);
}

.get-involved .section-intro {
  color: rgba(255,255,255,0.75);
}

.get-involved .involved-cta p {
  color: rgba(255,255,255,0.75);
}

.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.involved-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  color: var(--color-text);
}

.involved-card h4 {
  color: var(--color-text);
}

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

.involved-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: var(--color-border-strong);
}

.involved-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,181,213,0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  color: var(--color-accent-dark);
}

.involved-icon svg {
  width: 24px;
  height: 24px;
}

.involved-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.involved-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card-link:hover {
  color: var(--color-primary-dark);
}

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

.involved-cta p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.involved-cta a {
  font-weight: 600;
}

/* ---- Donate Section ---- */
.donate {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0F1A22 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.donate::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,181,213,0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.donate-text .lead {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.95);
}

.donate-text p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.donate-amounts-section {
  margin-bottom: 2rem;
}

.donate-amounts-section h4 {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.donate-amount-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.donate-amount-btn {
  padding: 0.65rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}

.donate-amount-btn:hover,
.donate-amount-btn.active {
  border-color: var(--color-accent);
  background: rgba(91,181,213,0.15);
  color: var(--color-accent-light);
}

.donate-custom {
  display: flex;
  align-items: center;
  max-width: 280px;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  background: rgba(255,255,255,0.08);
}

.donate-custom .currency-symbol {
  color: rgba(255,255,255,0.7);
}

.donate-custom input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.65rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--color-white);
}

.donate-custom input::placeholder {
  color: rgba(255,255,255,0.4);
}

.donate-stripe-btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  margin-bottom: 1.5rem;
}

.donate-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55) !important;
}

.donate-matching-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
}

.donate-matching-note p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75) !important;
  line-height: 1.6;
  margin-bottom: 0;
}

.donate-matching-note strong {
  color: rgba(255,255,255,0.95);
}

/* ---- Team Section ---- */
.team {
  background: var(--color-white);
}

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

.team-card {
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-3px);
}

.team-photo {
  margin-bottom: 1.25rem;
}

.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* ---- Contact Section ---- */
.contact {
  background: var(--color-bg-warm);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  grid-column: 1 / -1;
  justify-content: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-info-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  max-height: 120px;
  width: auto;
  padding: 0.5rem 0.75rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-charity {
  margin-top: 0.5rem;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.4) !important;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ========================================
   CHATBOT WIDGET
   ======================================== */
.chatbot {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(91,181,213,0.4);
  transition: all var(--transition);
  position: relative;
}

.chatbot-toggle:hover {
  background: var(--color-accent-dark);
  transform: scale(1.05);
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
}

.chatbot-icon-close {
  display: none;
}

.chatbot.open .chatbot-icon-open {
  display: none;
}

.chatbot.open .chatbot-icon-close {
  display: block;
}

.chatbot-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot.open .chatbot-badge {
  display: none;
}

.chatbot-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  max-height: 520px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s ease;
}

.chatbot.open .chatbot-window {
  display: flex;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-white);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-avatar svg {
  width: 18px;
  height: 18px;
}

.chatbot-header h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.chatbot-status {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
}

.chatbot-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.chatbot-close:hover {
  background: rgba(255,255,255,0.2);
}

.chatbot-close svg {
  width: 16px;
  height: 16px;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
}

.chat-message {
  display: flex;
  max-width: 85%;
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-message.bot .chat-bubble {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
  background: var(--color-primary);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
}


.chatbot-input {
  display: flex;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border);
  gap: 0.5rem;
}

.chatbot-input input {
  flex: 1;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}

.chatbot-input input:focus {
  border-color: var(--color-primary);
}

.chatbot-input button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.chatbot-input button:hover {
  background: var(--color-primary-dark);
}

.chatbot-input button svg {
  width: 16px;
  height: 16px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed,
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .about-grid {
    gap: 2.5rem;
  }

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

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

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }

  * {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    overflow: hidden;
  }

  .section {
    overflow: hidden;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-logo img {
    max-height: 70px;
  }

  .nav-donate-btn {
    display: none;
  }

  .hero-content {
    padding: 5rem 1.25rem 3rem;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-banner-wrapper {
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .hero-event-banner {
    max-width: 100%;
    white-space: normal;
  }

  .hero-banner-dates {
    white-space: normal;
    text-align: center;
    font-size: 0.65rem;
  }

  .hero-banner-dot {
    display: none;
  }

  .hero-banner-link {
    white-space: nowrap;
  }

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

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

  .donation-widget {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .friends-subsection {
    padding: 2rem 1.5rem;
  }

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

  .donate-amount-buttons {
    gap: 0.5rem;
  }

  .donate-amount-btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Chatbot */
  .chatbot-window {
    width: calc(100vw - 2rem);
    right: -0.5rem;
    max-height: 70vh;
  }

  .event-gallery {
    grid-template-columns: 1fr;
  }

  .event-gallery .gallery-img {
    height: 240px;
  }

  .impact-stat {
    padding: 4rem 1.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .event-card--past {
    padding: 0;
  }

  .event-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .event-header-row {
    gap: 1rem;
  }

  .event-header-row h4 {
    font-size: 1.1rem;
  }

  .event-photo {
    max-height: 220px;
  }

  .events-subheading {
    font-size: 1.4rem;
    margin: 2rem 0 1.5rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

  .donation-amounts {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Hero Event Banner ---- */
.hero-banner-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.hero-event-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(91, 181, 213, 0.6);
  border-radius: 50px;
  background: rgba(91, 181, 213, 0.2);
  max-width: 90%;
}

.hero-banner-label {
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-banner-dot {
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
}

.hero-banner-dates {
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  white-space: nowrap;
}

.hero-banner-link {
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.hero-banner-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
