/* Tupper Community Builders — site styles
   Brand: Foundation brown #30261D · Heritage red #9E2415 · Effort gold #BC8F4E */

:root {
  --brown: #30261D;
  --brown-soft: #4A3E33;
  --red: #9E2415;
  --red-dark: #7E1C10;
  --gold: #BC8F4E;
  --gold-light: #E7D5B6;
  --cream: #FAF7F2;
  --sand: #F1EBE1;
  --white: #FFFFFF;
  --ink: #2B2420;
  --muted: #6E645B;
  --line: #E3DACB;
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brown); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.lead { font-size: 1.2rem; color: var(--brown-soft); }
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 4px; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-light { background: var(--white); color: var(--brown); }
.btn-light:hover { background: var(--gold-light); color: var(--brown); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brown); text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--red); }
.nav .btn { padding: .55rem 1.1rem; font-size: .8rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--brown);
}
.nav-toggle svg { width: 28px; height: 28px; display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 20px 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .8rem; text-align: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--brown);
  min-height: 60vh; display: flex; align-items: center;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(48,38,29,.92) 0%, rgba(48,38,29,.72) 55%, rgba(48,38,29,.35) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 4rem; padding-bottom: 4rem; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.25rem; max-width: 42rem; color: #F3EDE3; }
.hero .place { font-family: var(--font-head); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-brown { background: var(--brown); color: #EFE8DC; }
.section-brown h2, .section-brown h3 { color: var(--white); }
.section-brown .eyebrow { color: var(--gold); }
.section-brown a { color: var(--gold-light); }
.section-brown a.btn-light { color: var(--brown); }
.section-brown a.btn-light:hover { color: var(--brown); }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.two-col.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } .two-col.reverse > :first-child { order: 0; } }
.photo { border-radius: 6px; overflow: hidden; box-shadow: 0 12px 30px rgba(48,38,29,.18); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--white); border-top: 4px solid var(--gold); padding: 1.6rem; border-radius: 4px; box-shadow: 0 4px 16px rgba(48,38,29,.06); }
.pillar h3 { margin-bottom: .4rem; }
.pillar p { margin: 0; color: var(--brown-soft); }

/* people */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .people { grid-template-columns: 1fr; } }
.person { background: var(--sand); padding: 1.5rem; border-radius: 4px; border-left: 4px solid var(--red); }
.person h3 { margin-bottom: .1rem; }
.person .role { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 .2rem; }
.person .org { color: var(--muted); font-size: .95rem; margin: 0 0 .7rem; }
.person p:last-child { margin: 0; font-size: 1rem; }
.group-label { font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); margin: 3rem 0 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 1.4rem 1.6rem; background: rgba(255,255,255,.06); border-left: 4px solid var(--gold); border-radius: 4px; }
.stat .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: .5rem; }
.stat p { margin: 0; font-size: 1rem; }

/* project cards on home */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .projects-grid { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 6px 24px rgba(48,38,29,.08); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card .body p { color: var(--brown-soft); }
.card .body .more { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border-radius: 4px; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .92rem; color: var(--muted); padding: .6rem .8rem .8rem; }
.gallery .tall img { aspect-ratio: 3/4; }

/* pull quote */
.quote { border-left: 4px solid var(--gold); padding: .4rem 0 .4rem 1.4rem; margin: 2rem 0; font-size: 1.35rem; font-family: var(--font-head); font-weight: 600; color: var(--brown); }
.quote cite { display: block; font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: 1rem; color: var(--muted); margin-top: .5rem; }

/* ideas list */
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 860px) { .ideas { grid-template-columns: 1fr; } }
.idea { background: var(--white); padding: 1.6rem; border-radius: 4px; border-top: 4px solid var(--red); }
.idea p { margin: 0; color: var(--brown-soft); font-size: 1rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .k { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: block; }
.contact-list a { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #D9CFC0; padding: 3rem 0 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.1fr .7fr 1.4fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer img.hex { width: 56px; height: 56px; border-radius: 6px; margin-bottom: 1rem; }
.site-footer h4 { color: var(--gold); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer a { color: #F3EDE3; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .sponsor { background: var(--white); padding: .9rem 1.1rem; border-radius: 4px; display: inline-block; }
.site-footer .sponsor img { width: 200px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; margin-top: 1rem; font-size: .9rem; color: #A99C8B; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--brown); color: var(--white); padding: 4rem 0 3.2rem; }
.page-head h1 { color: var(--white); }
.page-head p { font-size: 1.2rem; color: #EFE8DC; max-width: 46rem; margin: 0; }

/* ---------- Form ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 2.2rem; box-shadow: 0 6px 24px rgba(48,38,29,.06); }
@media (max-width: 600px) { .form-card { padding: 1.4rem; } }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.form-card legend { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--brown); letter-spacing: .04em; text-transform: uppercase; padding: 0; margin-bottom: 1rem; border-bottom: 2px solid var(--gold); width: 100%; padding-bottom: .4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--brown); }
.field .hint { font-size: .92rem; color: var(--muted); margin: -.1rem 0 .4rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #CFC4B2; border-radius: 4px; background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; }
.check input { width: 20px; height: 20px; margin-top: .25rem; accent-color: var(--red); flex-shrink: 0; }
.check label { font-weight: 400; margin: 0; }
.consent-text { background: var(--sand); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; font-size: 1rem; margin-bottom: 1.2rem; }
.consent-text p:last-child { margin: 0; }
.signature input { font-family: "Georgia", serif; font-style: italic; font-size: 1.3rem; }
.req { color: var(--red); }
.form-note { font-size: .95rem; color: var(--muted); margin-top: 1.2rem; }

/* portrait photo beside text: cap the height so it doesn't tower over the copy */
.photo-portrait { max-height: 520px; }
.photo-portrait img { max-height: 520px; object-position: center 30%; }
/* four-item gallery: two wider columns */
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .gallery-2 { grid-template-columns: 1fr; } }

.closing { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.closing .group-label { margin-top: 0; margin-bottom: 1rem; }

/* phone: stack the hero — photo on top, copy on brown below */
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-img { position: static; height: 290px; object-position: 60% center; }
  .hero::before { display: none; }
  .hero .wrap { padding-top: 2.4rem; padding-bottom: 3rem; }
}

.site-footer .tcb-mark { display: block; width: fit-content; margin: -.1rem 0 1.4rem; }
.site-footer .tcb-mark img { width: 200px; }

/* who we are: community photo strip */
.community-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.community-strip .photo img { aspect-ratio: 4/3; }
.community-strip.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .community-strip, .community-strip.three { grid-template-columns: 1fr; } }

/* footer logos side by side */
.site-footer .logo-row { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.site-footer .logo-cell { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.site-footer .logo-cell .sponsor { display: flex; align-items: center; justify-content: center; height: 88px; padding: .6rem .9rem; }
.site-footer .logo-cell .sponsor img { width: auto; max-width: 180px; max-height: 68px; }
.site-footer .logo-cell h4 { margin: 0; }

/* ---------- Tech Room 2026 goal ---------- */
.campaign { background: var(--red); color: var(--white); padding: 2.6rem 0; }
.campaign .wrap { display: grid; grid-template-columns: 1.5fr auto; gap: 3rem; align-items: center; }
.campaign-kicker { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .6rem; }
.campaign h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .45em; }
.campaign p { margin: 0; max-width: 40rem; font-size: 1.15rem; color: #FBEFEA; }
.campaign-ask { text-align: center; padding-left: 3rem; border-left: 1px solid rgba(255,255,255,.3); }
.campaign-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; }
.campaign-num-label { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin: .45rem 0 1.1rem; }
.campaign-ask .btn { display: block; }
.campaign-link { display: inline-block; margin-top: .8rem; color: var(--white); font-size: 1rem; }
.campaign-link:hover { color: var(--gold-light); }
@media (max-width: 860px) {
  .campaign .wrap { grid-template-columns: 1fr; gap: 1.6rem; }
  .campaign-ask { text-align: left; padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); padding-top: 1.4rem; }
  .campaign-ask .btn { display: inline-block; }
  .campaign-link { display: block; }
}

.goal-tag { align-self: flex-start; font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); background: var(--gold-light); border-left: 4px solid var(--gold); padding: .3rem .7rem; border-radius: 2px; margin-bottom: .8rem; }

.goal-line { margin: 2rem 0 0; max-width: 52rem; padding: 1.1rem 1.4rem; border-left: 4px solid var(--gold); border-radius: 4px; font-size: 1.1rem; background: rgba(255,255,255,.06); }
.goal-line strong { color: var(--gold); }

.goal-panel { margin-top: 4rem; background: var(--sand); border-radius: 6px; padding: 2.6rem 2.8rem 2.4rem; scroll-margin-top: 96px; }
@media (max-width: 700px) { .goal-panel { padding: 1.8rem 1.3rem; } }
.goal-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.goal-panel .lead { max-width: 50rem; }
.fundbar { margin: 2rem 0 0; }
.fundbar-track { display: flex; height: 30px; border-radius: 4px; overflow: hidden; gap: 3px; }
.fundbar-track .seg { display: block; flex-basis: 0; min-width: 0; }
.seg-donated, .sw-donated { background: var(--brown); }
.seg-grant, .sw-grant { background: var(--gold); }
.seg-pledge, .sw-pledge { background: #2D6580; }   /* Denim */
.seg-raised, .sw-raised { background: #243E26; }   /* Hemlock: appears once gifts come in */
.seg-togo, .sw-togo { background: var(--red); }
.fundbar-track .seg-raised[style*="flex-grow:0"] { display: none; }
.fundbar-legend { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 1.2rem 1.5rem; font-size: 1rem; color: var(--brown-soft); }
.fundbar-legend li { position: relative; padding-left: 1.5rem; }
.fundbar-legend strong { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--brown); line-height: 1.2; }
.fundbar-legend li.is-togo strong { color: var(--red); }
.fundbar-legend li.is-pledge strong { color: #2D6580; }
.fundbar-legend li[hidden] { display: none; }
.goal-match { margin-top: 0; }
.goal-before { font-weight: 600; color: var(--brown); margin-top: -.2rem; }
.goal-match strong { color: var(--brown); }
.swatch { position: absolute; left: 0; top: .45rem; width: 14px; height: 14px; border-radius: 2px; }
@media (max-width: 700px) { .fundbar-legend { grid-template-columns: 1fr; gap: 1rem; } }
.goal-actions { margin: 2.2rem 0 .6rem; }
.goal-note { margin: 0; font-size: .95rem; color: var(--muted); }
