/* Legacy 21 Foundation site stylesheet */

:root {
  --navy: #6d0f2b;
  --navy-dark: #34000a;
  --gold: #c9a227;
  --gold-light: #e4c65b;
  --cream: #f7f4ec;
  --gray: #5a6472;
  --white: #ffffff;
  --radius: 10px;
  --max-width: 1140px;
  --shadow: 0 10px 30px rgba(109, 15, 43, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

p { margin-bottom: 14px; color: var(--gray); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

/* Header */
header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.logo .mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.mark-img {
  height: 40px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--gold-light); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
}

.nav-cta:hover { background: var(--gold-light); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  .nav-wrap { flex-wrap: wrap; }
  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 16px;
  }
  nav ul li { border-top: 1px solid rgba(255,255,255,0.1); }
  nav ul li a { display: block; padding: 14px 4px; }
  .nav-cta { display: inline-block; margin: 14px 4px; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "21";
  position: absolute;
  right: -40px;
  top: -60px;
  font-family: Georgia, serif;
  font-size: 22rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero-inner { max-width: 680px; }

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero p.lead {
  color: var(--cream);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 8px 20px rgba(201,162,39,0.35); }

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--cream); }

.center { text-align: center; }
.narrow { max-width: 720px; margin: 0 auto; }

.quote-block {
  border-left: 4px solid var(--gold);
  padding: 10px 0 10px 24px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 24px 0;
}

/* Grids */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.card h3 { margin-bottom: 8px; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: Georgia, serif;
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-num {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: var(--cream);
}

/* Values list */
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.value-chip {
  background: var(--white);
  border: 1px solid #e3ddc9;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

/* Forms */
form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

.note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 10px;
}

/* Donate amount buttons */
.amount-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.amount-btn {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: var(--white);
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
.amount-btn.selected,
.amount-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* Footer */
footer {
  background: var(--navy-dark);
  color: var(--cream);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: 'Segoe UI', sans-serif;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: var(--cream); font-size: 0.92rem; }
footer a:hover { color: var(--gold-light); }

.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.social-row a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.newsletter-form { display: flex; gap: 10px; margin-top: 6px; }
.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
}
.newsletter-form button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(247,244,236,0.6);
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--cream); max-width: 640px; margin: 10px auto 0; }

/* Timeline */
.status-list { list-style: none; }
.status-list li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid #e8e4d6;
}
.status-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* Board of Directors */
.board-card {
  text-align: center;
  border-top: none;
  padding: 34px 24px;
}
.headshot-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.headshot-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.headshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 800;
}
.board-role {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* Philosophy band */
.philosophy-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.philosophy-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(201,162,39,0.05) 0px, rgba(201,162,39,0.05) 2px, transparent 2px, transparent 40px);
}
.philosophy-band .container { position: relative; z-index: 2; }
.philosophy-line {
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.philosophy-sub {
  color: var(--cream);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Event date badge */
.event-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 30px;
  padding: 8px 18px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.event-date-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
