/* Leesburg Food Bank — site styles
   Mobile-first, no build step, no external dependencies. */

:root {
  --primary: #2b93c2;
  --primary-dark: #185a78;
  --red: #b5322f;
  --cream: #fbf7ef;
  --ink: #26241f;
  --ink-soft: #55524a;
  --line: #e6ddc9;
  --white: #ffffff;
  --radius: 10px;
  --max: 1080px;
  font-size: 17px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

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

a { color: var(--primary-dark); }
a:hover { color: var(--red); }

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Header */
header.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex: none;
}

.brand-logo {
  height: 150px;
  width: auto;
  display: block;
}

.brand-text .name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-text .tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

nav.main-nav {
  width: 100%;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

nav.main-nav a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--primary);
  color: var(--white);
}

@media (min-width: 640px) {
  .header-inner { flex-wrap: nowrap; }
  nav.main-nav { width: auto; }
  nav.main-nav ul { border-top: none; padding-top: 0; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 46px 0 40px;
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 10px;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 0 26px;
  color: #eef6ea;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #94211f; color: var(--white); }

.btn-light { background: var(--white); color: var(--primary-dark); }
.btn-light:hover { background: #f0ead6; color: var(--primary-dark); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* Sections */
main { display: block; }

section { padding: 40px 0; }
section + section { border-top: 1px solid var(--line); }

/* Tighter rhythm for pages with several short, stacked cards (e.g. donate.html) */
section.section-tight { padding: 20px 0; }
section.section-tight .card { padding: 18px 22px; }
section.section-tight + section.section-tight { border-top: none; }

h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-top: 0;
}

h3 { color: var(--primary-dark); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 10px;
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}

.stat .num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--red);
  display: block;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card + .card { margin-top: 16px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 780px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

table.hours {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

table.hours th, table.hours td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

table.hours tr:last-child td { border-bottom: none; }

table.hours td.open { color: var(--primary-dark); font-weight: 700; }
table.hours td.closed { color: var(--ink-soft); }

.notice {
  background: #fff4e0;
  border: 1px solid #e8c680;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
}

.notice.urgent {
  background: #fdeceb;
  border-color: #e6a6a3;
}

.callout {
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.callout .btn-primary { margin-top: 14px; }

ul.checklist { list-style: none; padding: 0; margin: 0; }
ul.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}
ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-grid figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid .placeholder {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, #e9e2cd, #e9e2cd 10px, #f3eddc 10px, #f3eddc 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
}

.gallery-grid figcaption {
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 780px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

address { font-style: normal; }

footer.site-footer {
  background: var(--ink);
  color: #d8d4c8;
  padding: 34px 0 24px;
  font-size: 0.9rem;
}

footer.site-footer a { color: #f0ead6; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

footer.site-footer h4 {
  color: var(--white);
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #3d3a33;
  font-size: 0.8rem;
  color: #a8a498;
}
