/* ============================================================
   Chelsea M. Butler Memorial Scholarship Fund
   Stylesheet – clean recreation without Weebly dependencies
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

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

:root {
  --sage:       #6b8e72;
  --sage-dark:  #4a6b51;
  --sage-light: #e8f0e9;
  --cream:      #faf8f4;
  --warm-gray:  #7a7166;
  --text:       #2e2a25;
  --text-light: #5c564f;
  --border:     #d6cec3;
  --white:      #ffffff;
  --gold:       #b8963e;
  --header-bg: #3d5c42;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

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

/* ── Header ───────────────────────────────────────────────── */
header {
  background: var(--header-bg);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 1.5rem;
  min-height: 64px;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0.75rem 0;
}

.site-title a { color: var(--white); text-decoration: none; }
.site-title a:hover { color: #d4e8d4; text-decoration: none; }

/* ── Navigation ───────────────────────────────────────────── */
nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul li a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.25rem 1.1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* ── Hero / Intro block ───────────────────────────────────── */
.hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 0.4rem;
}

.hero p strong {
  font-size: 1.15rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.3rem;
}

/* ── Fund goal banner ─────────────────────────────────────── */
.fund-banner {
  background: var(--header-bg);
  color: var(--white);
  text-align: center;
  padding: 1.4rem 2rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.fund-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* ── Button / CTA ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: #9a7c2e;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Photo galleries ──────────────────────────────────────── */
.gallery-section {
  margin-bottom: 2rem;
}

.gallery-row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-row.cols-2 { grid-template-columns: 1fr 1fr; }
.gallery-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.gallery-row img {
  align-items: center;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-row img:hover {
  transform: scale(1.025);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* stacked images within a single cell */
.gallery-stack {

   display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-stack img {

  height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-stack img:hover {
  transform: scale(1.025);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ── Footer donate row ────────────────────────────────────── */
.footer-donate {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Page: Chelsea (bio) ──────────────────────────────────── */
.bio-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
}

.bio-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--header-bg);
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sage-light);
}

.bio-section p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  color: var(--text-light);
}

/* ── Page: Donate ─────────────────────────────────────────── */
.donate-intro {
  font-size: 1.08rem;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.2rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.donate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2rem;
}

.donate-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--header-bg);
  margin-bottom: 0.75rem;
}

.donate-card address {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.donate-card p {
  font-size: 0.98rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.thank-you {
  background: var(--sage-light);
  border: 1px solid #b8d4bb;
  border-radius: 4px;
  padding: 1.2rem 2rem;
  text-align: center;
  font-size: 1rem;
  color: var(--sage-dark);
  margin-bottom: 2rem;
}

/* ── Page: Contact ────────────────────────────────────────── */
.contact-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  max-width: 600px;
}

.contact-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--header-bg);
  margin-bottom: 0.3rem;
}

.contact-section .required-note {
  font-size: 0.88rem;
  color: var(--warm-gray);
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group label .req { color: var(--sage-dark); margin-left: 2px; }

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,142,114,0.15);
  background: var(--white);
}

.form-group textarea { height: 130px; resize: vertical; }

/* ── Page title bar ───────────────────────────────────────── */
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.65);
  text-align: center;
  font-size: 0.82rem;
  padding: 1.2rem 1rem;
  margin-top: 3rem;
  letter-spacing: 0.03em;
}

footer a { color: rgba(255,255,255,0.8); }
footer a:hover { color: var(--white); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 0.5rem 1rem; }
  nav ul { flex-wrap: wrap; }
  nav ul li a { padding: 0.7rem 0.8rem; font-size: 0.82rem; }
  .site-title { font-size: 1rem; }
  .hero, .bio-section { padding: 1.5rem 1.2rem; }
  .gallery-row.cols-3 { grid-template-columns: 1fr 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 1.5rem 1.2rem; }
  .name-row { grid-template-columns: 1fr; }
  .fund-banner h2 { font-size: 1.2rem; }
}
