/* Shelburne Falls Community House Inc. — site styles
   Brand: Community Teal, Growth Green, Connection Gold, Accent Cream, Official Black
   Foundation supporting our community since 1968 */

:root {
  --teal: #1a5f6a;
  --teal-deep: #0f3f47;
  --teal-mid: #22707c;
  --green: #2e7a48;
  --green-deep: #1f5633;
  --gold: #c4a24a;
  --gold-deep: #9a7a2e;
  --cream: #f4efe3;
  --cream-2: #ebe3d0;
  --paper: #fbf7ef;
  --ink: #162226;
  --muted: #516062;
  --line: rgba(22, 34, 38, 0.12);
  --white: #fffdf8;
  --shadow: 0 18px 40px rgba(15, 63, 71, 0.12);
  --radius: 16px;
  --max: 1120px;
  --serif: "Libre Baskerville", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--teal-deep);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--teal); color: #fff; padding: .6rem 1rem; z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.brand img { width: 118px; height: auto; object-fit: contain; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
nav ul {
  list-style: none; display: flex; gap: 0.15rem; margin: 0; padding: 0;
  align-items: center; flex-wrap: wrap; justify-content: flex-end;
}
nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
nav a:hover, nav a[aria-current="page"] {
  background: #e4efe8;
  color: var(--green-deep);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--teal-deep); color: #fff !important; }
.btn-gold { background: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: var(--gold-deep); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: var(--teal-deep) !important;
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff !important; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--white);
  border-radius: 10px; padding: 0.4rem 0.55rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: end start;
  color: #fff;
  overflow: hidden;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,63,71,.28) 0%, rgba(15,63,71,.55) 46%, rgba(15,47,52,.82) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 5.5rem 0 3.4rem; max-width: 760px; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.hero h1 { color: #fff; margin-bottom: 0.7rem; }
.hero p.lede {
  font-size: 1.18rem;
  color: #f3eee4;
  max-width: 58ch;
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Sections */
section { padding: 4.2rem 0; }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.muted { color: var(--muted); }
.band-cream { background: var(--cream); }
.band-teal { background: var(--teal-deep); color: #f6f1e4; }
.band-teal h2, .band-teal h3 { color: #fff; }
.band-green { background: var(--green-deep); color: #f6f1e4; }
.band-green h2 { color: #fff; }

.grid-3, .grid-2, .grid-4 {
  display: grid; gap: 1.15rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.card h3 { margin-bottom: 0.4rem; }
.icon-pill {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: #e5f0ea;
  color: var(--green-deep);
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}
.stat {
  text-align: left;
  padding: 1rem 0;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 560;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}
.split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
}
.photo-caption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

/* Programs list */
.program {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.program:last-child { border-bottom: 0; }
.program-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-deep);
}

/* Partners */
.partner {
  background: var(--white);
  border: 1px dashed #c9b98a;
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
}
.partner .soon {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f3e7c4;
  color: #6d5416;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

/* Page hero */
.page-hero {
  padding: 3.4rem 0 2.2rem;
  background:
    linear-gradient(180deg, #e7efe9 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.crumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.7rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Forms */
form { display: grid; gap: 0.85rem; }
label { font-weight: 650; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfc6b2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.86rem; color: var(--muted); }
.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #e6f3ea;
  color: var(--green-deep);
  display: none;
}

/* Footer */
.site-footer {
  background: var(--teal-deep);
  color: #e7efe9;
  padding: 3rem 0 1.4rem;
}
.site-footer a { color: #f4efe3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244,239,227,.16);
}
.site-footer h2 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.32rem 0; }
.legal {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.1rem; font-size: 0.84rem; color: #c9d6d3;
}

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { background: #e8f0ec; color: var(--teal-deep); font-weight: 700; }

blockquote {
  margin: 0;
  padding: 1.2rem 1.3rem;
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
}

@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-2, .split, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.2rem 1rem;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; }
  .split img { height: 240px; }
  .brand-text span { display: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
