/* Mount Clemens Goodfellows — modernized rebuild */
:root {
  --pine: #14532d;
  --pine-dark: #0d3b20;
  --red: #b91c1c;
  --red-dark: #991616;
  --gold: #d4a017;
  --cream: #faf7f2;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e0d8;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 83, 45, 0.10);
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; color: var(--pine-dark); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0.6rem 0; }
a { color: var(--pine); }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 3.5rem 0; }
.section-alt { background: #fff; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700; color: var(--red); margin-bottom: 0.5rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.7rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 0.95rem; transition: all 0.18s ease;
}
.btn-donate { background: var(--red); color: #fff; }
.btn-donate:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.6rem 1.25rem; }
.brand img { height: 58px; width: auto; }
.site-nav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.93rem;
  padding: 0.35rem 0.2rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--pine); border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: none; font-size: 1.7rem;
  color: var(--pine); cursor: pointer; margin-left: auto;
}
@media (max-width: 900px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 0.4rem;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-donate { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--pine-dark) 0%, var(--pine) 55%, #1d6b3c 100%);
  color: #fff; padding: 5rem 0 4.5rem; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; }
.hero .lead { color: #d9e8de; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { margin-top: 1.6rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-block; background: rgba(212,160,23,0.16); border: 1px solid var(--gold);
  color: #f4dfae; padding: 0.5rem 1rem; border-radius: 10px; font-size: 0.9rem; margin-top: 1.4rem;
}
.page-hero { padding: 3.5rem 0 3rem; }

/* Cards & grids */
.grid { display: grid; gap: 1.4rem; }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }

/* Stats */
.stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem; }
.stat .num { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); }
.stat .label { font-size: 0.9rem; color: #cfe0d5; }

/* Progress bar */
.progress-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.progress-track { background: #ece7de; border-radius: 999px; height: 22px; overflow: hidden; margin: 0.9rem 0 0.5rem; }
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--pine), #2c8a4f);
  transition: width 1.2s ease;
}
.progress-meta { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); }
.progress-meta strong { color: var(--pine-dark); }

/* Events */
.event-list { display: grid; gap: 0.9rem; }
.event {
  display: flex; gap: 1.2rem; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem;
  flex-wrap: wrap;
}
.event-date {
  min-width: 74px; text-align: center; background: var(--pine); color: #fff;
  border-radius: 10px; padding: 0.5rem 0.4rem; line-height: 1.2;
}
.event-date .mo { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #cfe0d5; }
.event-date .day { font-size: 1.5rem; font-weight: 800; font-family: 'Fraunces', serif; }
.event-body { flex: 1; min-width: 220px; }
.event-body h3 { font-size: 1.05rem; margin: 0; }
.event-body p { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--muted); }
.event .btn { margin-left: auto; }

/* Donation tiers */
.tier { text-align: center; position: relative; }
.tier .amount { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 700; color: var(--red); }
.tier .impact { color: var(--muted); font-size: 0.95rem; min-height: 3.2em; }
.tier.popular { border: 2px solid var(--gold); }
.tier .flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 0.2rem 0.8rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Forms */
form.styled { display: grid; gap: 0.9rem; }
form.styled label { font-weight: 600; font-size: 0.9rem; }
form.styled input, form.styled select, form.styled textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
form.styled input:focus, form.styled textarea:focus, form.styled select:focus {
  outline: 2px solid var(--pine); border-color: var(--pine);
}
fieldset { border: none; display: grid; gap: 0.35rem; }
fieldset legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.95rem; }
.check input { width: auto; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success { display: none; background: #e8f5ec; border: 1px solid #b7dfc4; color: var(--pine-dark); padding: 1rem; border-radius: 10px; }

/* Banner strip */
.strip {
  background: var(--red); color: #fff; text-align: center; padding: 0.6rem 1rem; font-size: 0.92rem;
}
.strip a { color: #ffe9b8; font-weight: 700; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--red-dark), var(--red)); color: #fff;
  text-align: center; padding: 3.5rem 0; border-radius: 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #fbe3e3; max-width: 40rem; margin: 0.6rem auto 1.4rem; }

/* Footer */
.site-footer { background: var(--pine-dark); color: #cfe0d5; padding: 3rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 0.7rem; font-size: 1.05rem; }
.site-footer a { color: #e8d9a8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; display: grid; gap: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.2rem;
  font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.motto { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold); font-size: 1.1rem; }

/* Misc */
.divider { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.notice {
  background: #fff8e7; border: 1px solid #eeddb0; border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 1.1rem 1.3rem; margin: 1.2rem 0;
}
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.board-list { list-style: none; display: grid; gap: 0.6rem; }
.board-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1.1rem; }
.board-list .role { color: var(--muted); font-size: 0.9rem; }

/* Cart */
.cart-btn {
  position: relative; background: none; border: 2px solid var(--pine); border-radius: 999px;
  font-size: 1.15rem; padding: 0.35rem 0.75rem; cursor: pointer; line-height: 1;
}
.cart-btn:hover { background: #eef5f0; }
.cart-count {
  position: absolute; top: -8px; right: -8px; background: var(--red); color: #fff;
  font-size: 0.7rem; font-weight: 800; border-radius: 999px; min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
#cartOverlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease; z-index: 90;
}
#cartOverlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100vw);
  background: #fff; z-index: 100; box-shadow: -8px 0 30px rgba(0,0,0,0.18);
  transform: translateX(105%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; }
.cart-close, .cart-remove, .cart-qty-btn {
  background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--muted);
}
.cart-close { font-size: 1.3rem; }
.cart-close:hover, .cart-remove:hover { color: var(--red); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; display: grid; gap: 0.8rem; align-content: start; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 2rem; }
.cart-item { border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; }
.cart-item-name { font-weight: 700; }
.cart-item-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; word-break: break-word; }
.cart-item-controls { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.5rem; }
.cart-qty-btn {
  border: 1px solid var(--line); border-radius: 6px; width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.cart-qty-btn:hover { background: #eef5f0; }
.cart-qty { font-weight: 700; min-width: 1.2em; text-align: center; }
.cart-item-price { margin-left: auto; font-weight: 700; color: var(--pine-dark); }
.cart-foot { border-top: 1px solid var(--line); padding: 1.1rem 1.3rem; display: grid; gap: 0.7rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.05rem; margin: 0; }
.cart-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
