/* Friends of 700 Clark Street — nonprofit site */
:root {
  --navy: #1a3d5c;
  --navy-dark: #0f2840;
  --teal: #2d6a5a;
  --teal-light: #3d8b74;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --brick: #b85c38;
  --cream: #faf7f2;
  --warm-white: #fffef9;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --border: #e2ddd4;
  --shadow: 0 4px 24px rgba(26, 61, 92, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 61, 92, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max-width: 1140px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--navy-dark);
  flex-shrink: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.brand-text {
  display: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 200px;
}

@media (min-width: 640px) {
  .brand-text { display: block; }
  .brand-logo { width: 64px; height: 64px; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(45, 106, 90, 0.1);
  color: var(--teal);
}

@media (max-width: 899px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { gap: 0.25rem; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  .main-nav a { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal-light);
  color: white;
  box-shadow: 0 4px 16px rgba(45, 106, 90, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: white;
}

.btn-white {
  background: white;
  color: var(--navy);
  border-color: white;
}
.btn-white:hover {
  background: var(--cream);
  color: var(--navy-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(15, 40, 64, 0.88) 0%, rgba(45, 106, 90, 0.85) 100%),
    url('../assets/images/hero-community.jpg') center / cover no-repeat;
  color: white;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

.hero h1 { color: white; margin-bottom: 1rem; }

.hero-tagline {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-logo {
  width: min(280px, 70vw);
  margin-inline: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.25));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
main { flex: 1; }

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--warm-white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.card.has-image .card-body {
  padding: 1.75rem;
}

.card:not(.has-image) {
  padding: 1.75rem;
}

.section-alt .card {
  background: var(--cream);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 { color: var(--navy); }

.card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.read-more {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
  display: inline-block;
}

/* Images */
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-image.tall { height: 220px; }

.image-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.image-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 40, 64, 0.82) 0%, rgba(45, 106, 90, 0.78) 100%);
}

.image-banner .banner-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  max-width: 640px;
}

.image-banner h2 {
  color: white;
  margin-bottom: 0.75rem;
}

.image-banner p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.split-section {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split-section { grid-template-columns: 1fr 1fr; }
  .split-section.reverse .split-image { order: 2; }
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.photo-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .photo-gallery { grid-template-columns: repeat(4, 1fr); }
}

.photo-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-gallery figure:hover img {
  transform: scale(1.05);
}

.photo-gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(15, 40, 64, 0.85));
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

.page-hero.has-image {
  background: linear-gradient(135deg, rgba(15, 40, 64, 0.88) 0%, rgba(45, 106, 90, 0.85) 100%),
    var(--hero-bg, url('../assets/images/hero-community.jpg')) center / cover no-repeat;
  padding: 4.5rem 0;
}

.blog-featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.donate-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.donate-hero-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.impact-images {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 2rem 0;
}

.impact-images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 600px) {
  .impact-images img { height: 220px; }
}

/* Stats */
.stats-bar {
  background: var(--navy-dark);
  color: white;
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Page header */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--teal) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 { color: white; margin-bottom: 0.75rem; }
.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Content layout */
.content-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.content-wide {
  max-width: 900px;
  margin: 0 auto;
}

.prose h2 { margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

/* Leadership */
.leader-card {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 600px) {
  .leader-card { grid-template-columns: 120px 1fr; }
}

.leader-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  border: 3px solid var(--gold);
}

.leader-role {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 106, 90, 0.15);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Donate */
.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-btn:hover,
.amount-btn.selected {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  color: var(--navy-dark);
}

.donate-methods {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .donate-methods { grid-template-columns: 1fr 1fr; }
}

.info-box {
  background: rgba(45, 106, 90, 0.08);
  border-left: 4px solid var(--teal);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.info-box strong { color: var(--navy); }

.tax-notice {
  background: var(--navy-dark);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-top: 2rem;
}

.tax-notice strong { color: var(--gold-light); }

/* Membership tiers */
.tier-card {
  text-align: center;
  position: relative;
}

.tier-card.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.2);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--navy);
  margin: 1rem 0;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.tier-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.tier-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.tier-features li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 700;
}

/* Blog */
.blog-post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(45, 106, 90, 0.12);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand img {
  width: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 280px;
}

.site-footer h4 {
  color: var(--gold-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-ein {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 0.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
