/* Hardwick Food Pantry — site styles */
:root {
  --cream: #faf6ee;
  --paper: #ffffff;
  --sand: #efe6d4;
  --green: #2f5d3a;
  --green-dark: #1f4128;
  --rust: #b8562a;
  --rust-dark: #9a4520;
  --ink: #2b2a26;
  --muted: #5e5a51;
  --line: #ddd3bf;
  --radius: 10px;
  --max: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--rust); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-dark);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: #fff; padding: .5em 1em; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  color: var(--green-dark); text-decoration: none; line-height: 1.1;
}
.brand small {
  display: block; font-family: var(--sans); font-weight: 400;
  font-size: .8rem; color: var(--muted); letter-spacing: .02em;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600;
  padding: .45em .75em; border-radius: 6px; font-size: 1rem;
}
.nav a:hover { background: var(--sand); color: var(--green-dark); }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav .btn { margin-left: 8px; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: .4em .7em; font: inherit; font-weight: 600;
  color: var(--ink); cursor: pointer;
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8em .5em; border-bottom: 1px solid var(--sand); }
  .nav a[aria-current="page"] { box-shadow: none; background: var(--sand); }
  .nav .btn { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .7em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sans); font-size: 1rem; cursor: pointer; line-height: 1.2;
}
.btn-donate { background: var(--rust); color: #fff !important; }
.btn-donate:hover { background: var(--rust-dark); }
.btn-outline { border-color: var(--green); color: var(--green) !important; background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff !important; }
.btn-lg { font-size: 1.15rem; padding: .9em 1.8em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--green-dark);
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38;
}
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.hero .btn-outline { border-color: #fff; color: #fff !important; }
.hero .btn-outline:hover { background: #fff; color: var(--green-dark) !important; }

.page-hero { background: var(--green-dark); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .6em 0 0; max-width: 60ch; opacity: .92; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 700; color: var(--rust); margin-bottom: .4em;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 28px; }
}

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
section.alt .card { background: var(--cream); }

.rounded { border-radius: var(--radius); }

/* Info strip: hours / location */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .info-strip { grid-template-columns: 1fr; } }
.info-strip .card h3 { margin-bottom: .3em; }
.hours-list { list-style: none; padding: 0; margin: 0 0 .8em; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: .35em 0; border-bottom: 1px dashed var(--line); }
.hours-list li strong { font-weight: 700; }
.note { font-size: .95rem; color: var(--muted); }

.callout {
  background: var(--sand); border-left: 5px solid var(--rust);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
}

ul.checks { padding-left: 1.2em; }
ul.checks li { margin-bottom: .35em; }

.needs h3 { margin-top: 0; }
.needs ul { padding-left: 1.2em; margin: 0; }
.needs li { margin-bottom: .45em; }
.needs .why { font-size: .95rem; color: var(--muted); font-style: italic; }

.gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.gallery img:nth-child(3) { object-position: 78% center; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr; } .gallery img { height: 220px; } }

address { font-style: normal; }

/* Donate band */
.donate-band { background: var(--rust); color: #fff; padding: 56px 0; text-align: center; }
.donate-band h2 { color: #fff; }
.donate-band p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.donate-band .btn { background: #fff; color: var(--rust-dark) !important; }
.donate-band .btn:hover { background: var(--cream); }

/* Impact tiers on donate page */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tier .amt { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--rust); line-height: 1; margin-bottom: .3em; }
.tier p { margin: 0; font-size: 1rem; color: var(--muted); }

.paypal-box { text-align: center; }
.paypal-box .fine { font-size: .9rem; color: var(--muted); margin-top: .8em; }

/* Resources */
.resource { padding: 22px 0; border-bottom: 1px solid var(--line); }
.resource:last-child { border-bottom: 0; }
.resource h3 { margin-bottom: .25em; }
.resource h3 a { color: var(--green-dark); }
.resource p { margin: 0 0 .4em; }
.urgent { background: #fbe9e1; border: 1px solid #ecc2ae; border-radius: var(--radius); padding: 18px 22px; }
.urgent strong { color: var(--rust-dark); }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .65em .8em;
  border: 1px solid #c9bea6; border-radius: 6px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, .btn:focus-visible, a:focus-visible {
  outline: 3px solid #e7a77f; outline-offset: 2px;
}
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 16px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { margin-top: .35em; width: 18px; height: 18px; }
.hidden { display: none; }
.req { color: var(--rust); }

/* Team */
.team-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.team-list li { background: var(--sand); padding: .4em 1em; border-radius: 999px; font-weight: 600; }

/* Prose pages */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }

/* Open-dates schedule */
.sched-year { margin: 1.4em 0 .6em; font-size: 1.5rem; }
.sched-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .sched-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .sched-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .sched-grid { grid-template-columns: 1fr; } }
.sched-month { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.sched-month h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--green-dark); margin: 0 0 .4em; }
.sched-month ul { list-style: none; margin: 0; padding: 0; }
.sched-month li { position: relative; padding: .5em 0; border-top: 1px dashed var(--line); font-size: 1rem; line-height: 1.35; }
.sched-month li span { display: block; }
.sched-month li time { font-weight: 700; }
.sched-month li small { color: var(--muted); font-size: .85rem; }
.sched-month li.next { background: #fbe9e1; margin: 0 -8px; padding: .5em 8px; border-radius: 6px; border-top-color: transparent; }
.next-tag { display: inline-block; margin-bottom: .3em; font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--rust); color: #fff; padding: .15em .5em; border-radius: 999px; }
.sched-month li.past, .sched-month.past { opacity: .45; }
.sched-month.past li.past { opacity: 1; }
.sched-month li.past time { text-decoration: line-through; }
.summer-note { font-size: .85rem !important; color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: #23211d; color: #e9e3d6; padding: 56px 0 28px; font-size: 1rem; }
.site-footer a { color: #f0c9a8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin: 0 0 .5em; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid #45413a; margin-top: 36px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .9rem; color: #b8b1a2;
}
.footer-bottom a { color: #b8b1a2; }

/* FAQ */
.faq { margin-top: 20px; }
.faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 18px; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--rust); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 18px 16px; }

/* Next-open widget */
.hero-grid { display: grid; grid-template-columns: 1fr 390px; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.pantry-next {
  background: var(--paper); color: var(--ink); border-radius: 14px; padding: 22px 24px;
  box-shadow: inset 0 6px 0 var(--rust), 0 10px 30px rgba(0,0,0,.25); padding-top: 26px;
}
.pantry-next.pn-light { box-shadow: inset 0 6px 0 var(--rust); border: 1px solid var(--line); margin-bottom: 28px; }
.pantry-next p { margin: 0; }
.pn-notice { background: #fbe9e1; border: 1px solid #ecc2ae; color: var(--rust-dark); font-weight: 700;
  border-radius: 8px; padding: 10px 12px; margin-bottom: 14px !important; font-size: 1rem; }
.pn-tag { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--rust); }
.pn-tag.live { color: var(--green); }
.pn-tag.live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3c9a52;
  box-shadow: 0 0 0 4px rgba(60,154,82,.2); margin-right: 2px; }
.pn-tag.live { justify-content: flex-start; }
.pn-count { text-transform: none; letter-spacing: 0; background: var(--sand); color: var(--ink);
  border-radius: 999px; padding: .2em .7em; font-size: .85rem; font-weight: 600; }
.pn-date { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--green-dark); line-height: 1.15; margin-top: 8px !important; }
.pn-time { font-size: 1.2rem; font-weight: 700; margin-top: 2px !important; }
.pn-also { font-size: 1rem; color: var(--muted); margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed var(--line); }
.pn-where { font-size: .95rem; color: var(--muted); margin-top: 6px !important; }
.pn-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px !important; font-weight: 600; font-size: 1rem; }
.sched-month li span.done time { text-decoration: line-through; opacity: .5; }
