:root {
  /*
    COLORS: update the main brand palette here.
    --red controls buttons and highlights.
    --cream controls warm background sections.
    --navy controls dark text and footer areas.
    --gold controls accent details.
  */
  --red: #d83a34;
  --red-dark: #a92421;
  --cream: #fff7e8;
  --cream-strong: #f9e6bf;
  --navy: #14213d;
  --navy-soft: #253554;
  --gold: #f6b93b;
  --white: #ffffff;
  --ink: #182033;
  --muted: #637083;
  --line: #eadfc9;
  --shadow: 0 18px 45px rgba(20, 33, 61, 0.13);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(234, 223, 201, 0.75);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo {
  /*
    LOGO: replace assets/img/click-for-a-cause-logo.png with a new file
    if you want to update the official logo later.
  */
  width: auto;
  height: clamp(42px, 5vw, 58px);
  max-width: min(240px, 52vw);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.91rem;
  font-weight: 700;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 999px;
  color: var(--navy-soft);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--red-dark);
  background: var(--cream);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.97fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 70px) clamp(38px, 6vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.98), rgba(255, 255, 255, 0.95) 48%, rgba(246, 185, 59, 0.18)),
    radial-gradient(circle at 90% 20%, rgba(216, 58, 52, 0.18), transparent 32%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 9px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--navy));
}

.hero-content,
.hero-media,
.section,
.cta-section,
.page-hero,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy,
.page-hero p {
  max-width: 680px;
  color: var(--navy-soft);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.page-hero h1 + p {
  margin-top: 28px;
}

.hero-rule {
  width: min(220px, 48vw);
  height: 4px;
  margin: 24px 0 20px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border: 0;
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 25px rgba(216, 58, 52, 0.25);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button.light {
  color: var(--navy);
  background: var(--white);
}

.hero-media {
  position: relative;
  min-height: 440px;
}

.photo-frame {
  position: absolute;
  inset: 28px 34px 34px 8px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(216, 58, 52, 0.88), rgba(246, 185, 59, 0.84)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18) 12px, transparent 12px, transparent 24px);
  border: 16px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 2px dashed rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
}

.photo-frame span {
  z-index: 1;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(20, 33, 61, 0.78);
  border-radius: var(--radius);
  font-weight: 850;
}

.tilted {
  transform: rotate(2.5deg);
}

.floating-card {
  position: absolute;
  right: 0;
  bottom: 36px;
  width: 178px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.floating-card strong {
  display: block;
  color: var(--red);
  font-size: 2.1rem;
  line-height: 1;
}

.floating-card span {
  color: var(--muted);
  font-weight: 750;
}

.section {
  width: min(calc(100% - clamp(40px, 8vw, 72px)), var(--max));
  padding: clamp(54px, 8vw, 94px) 0;
}

.intro-band {
  background: var(--navy);
  color: var(--white);
  max-width: none;
  width: 100%;
  padding-right: 0;
  padding-left: 0;
}

.intro-band .section-grid {
  width: min(calc(100% - clamp(40px, 8vw, 72px)), var(--max));
  margin: auto;
}

.intro-band h2,
.intro-band p {
  color: var(--white);
}

.intro-band .eyebrow {
  color: var(--gold);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

.section-grid.two {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stats-grid.large {
  gap: 20px;
}

.stat-card,
.step,
.role-card,
.partner-grid article,
.contact-card,
.contact-aside {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20, 33, 61, 0.07);
}

.stat-card strong {
  display: block;
  color: var(--red);
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--navy-soft);
  font-weight: 750;
}

.warm-section {
  max-width: none;
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  background: var(--cream);
}

.warm-section > * {
  width: min(calc(100% - clamp(40px, 8vw, 72px)), var(--max));
  margin-inline: auto;
}

.steps-grid,
.leadership-grid,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.step-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red-dark);
  font-weight: 950;
}

.text-link {
  color: var(--red-dark);
  font-weight: 850;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.event-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-grid.detailed .event-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}

.event-image {
  width: 100%;
  min-height: 260px;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(135deg, var(--cream), var(--white));
}

.event-grid:not(.detailed) .event-image {
  height: 260px;
  min-height: 0;
}

.placeholder-image {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 20px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(216, 58, 52, 0.9), rgba(20, 33, 61, 0.8)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16) 8px, transparent 8px, transparent 18px);
  text-align: center;
  font-weight: 900;
}

.placeholder-image.gold {
  background:
    linear-gradient(135deg, rgba(246, 185, 59, 0.92), rgba(216, 58, 52, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16) 8px, transparent 8px, transparent 18px);
}

.placeholder-image.tall {
  min-height: 460px;
  border-radius: var(--radius);
}

.event-card-body {
  padding: 24px;
}

.event-organizer {
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 0.88rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-organizer span {
  color: var(--navy);
  text-transform: none;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.event-meta span {
  padding: 8px 10px;
  color: var(--navy);
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 800;
}

.event-details {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.event-details div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.event-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-details dd {
  margin: 3px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.gallery-section {
  padding-top: 22px;
}

.event-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 16% 22%, rgba(246, 185, 59, 0.22), transparent 30%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 42vw, 520px);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}

.gallery-slide figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(16px, 3vw, 24px);
  color: var(--white);
  background: var(--navy);
}

.gallery-slide figcaption strong {
  color: var(--white);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.gallery-slide figcaption span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 750;
}

.gallery-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.1);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.gallery-button:hover,
.gallery-button:focus-visible {
  color: var(--white);
  background: var(--red);
  outline: none;
}

.gallery-dots {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  gap: 9px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(20, 33, 61, 0.25);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.gallery-dot.active {
  width: 28px;
  background: var(--red);
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
  padding: clamp(28px, 5vw, 44px);
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}

.cta-section h2,
.cta-section p {
  color: var(--white);
}

.cta-section .eyebrow {
  color: var(--gold);
}

.page-hero {
  padding: clamp(58px, 9vw, 104px) clamp(20px, 4vw, 36px) clamp(34px, 6vw, 60px);
}

.page-hero .button {
  margin-top: 8px;
}

.story-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.rich-copy {
  color: var(--navy-soft);
  font-size: 1.05rem;
}

.process-list {
  display: grid;
  gap: 18px;
}

.process-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(20, 33, 61, 0.14);
}

.process-list article:last-child {
  border-bottom: 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 750;
}

.contact-layout {
  align-items: stretch;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  color: var(--navy);
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(246, 185, 59, 0.35);
  border-color: var(--gold);
}

.form-note,
.contact-placeholder {
  color: var(--red-dark);
  font-weight: 750;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 4vw, 36px);
  color: var(--white);
  background: var(--navy);
  max-width: none;
  width: 100%;
}

.site-footer strong,
.site-footer p,
.site-footer a {
  color: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

@media (max-width: 1020px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero,
  .section-grid.two,
  .story-layout,
  .contact-layout,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    min-height: 360px;
  }

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

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

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

  .event-image {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 13px 16px;
  }

  .brand span:last-child {
    max-width: 170px;
    line-height: 1.1;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

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

  .button {
    width: 100%;
  }

  .hero-media {
    min-height: 300px;
  }

  .photo-frame {
    inset: 8px 8px 52px;
  }

  .floating-card {
    right: 12px;
    bottom: 12px;
  }

  .stats-grid,
  .steps-grid,
  .event-grid,
  .leadership-grid,
  .partner-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .split-heading {
    align-items: start;
    flex-direction: column;
  }

  .process-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .gallery-stage {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 310px;
  }

  .gallery-button {
    width: 44px;
    height: 44px;
    justify-self: center;
  }

  .gallery-button-prev {
    grid-column: 1;
    grid-row: 2;
  }

  .gallery-button-next {
    grid-column: 2;
    grid-row: 2;
  }

  .gallery-dots {
    grid-row: 3;
  }

  .gallery-slide figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
