/* Port Byron Community Food Pantry Inc — Port Byron, New York
   Palette: Finger Lakes Harvest Community Kitchen
   #F7F9FB porcelain white | #EBF0F5 pale mist blue
   #1A3A57 lake deep navy | #C98324 harvest wheat gold
*/

:root {
  --bg-porcelain: #F7F9FB;
  --bg-mist: #EBF0F5;
  --bg-white: #FFFFFF;
  --navy: #1A3A57;
  --navy-deep: #11273C;
  --ink: #172B3E;
  --ink-soft: #486077;
  --gold: #C98324;
  --gold-dark: #9D6315;
  --gold-tint: #FBF3E6;
  --line: #D2DCE6;
  --line-strong: #B6C6D6;
  --font-display: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1160px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-porcelain);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg-porcelain);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-deep);
  color: var(--bg-white);
  padding: 10px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: min(var(--max-w), calc(100% - 40px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.28;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.38;
}

p {
  margin: 0 0 1rem;
  max-width: 66ch;
}

p:last-child {
  margin-bottom: 0;
}

/* Practical Top Utility Bar */
.utility-bar {
  background: var(--navy);
  color: rgba(247, 249, 251, 0.92);
  font-size: 0.88rem;
  border-bottom: 2px solid var(--gold);
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-block: 9px;
}

.utility-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.utility-bar a {
  color: #F8D59B;
  text-decoration: none;
  font-weight: 600;
}

.utility-bar a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
  flex: 1 1 auto;
}

.brand-emblem {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #F6CF8C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--navy);
  padding: 7px 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-navy {
  background: var(--navy);
  color: var(--bg-white);
}

.btn-navy:hover {
  background: var(--navy-deep);
  color: var(--bg-white);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: #B5731D;
  color: var(--navy-deep);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  background: var(--bg-mist);
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-light {
  background: transparent;
  color: var(--bg-white);
  border-color: rgba(247, 249, 251, 0.55);
}

.btn-outline-light:hover {
  background: rgba(247, 249, 251, 0.12);
  border-color: var(--bg-white);
  color: var(--bg-white);
}

/* Hero + Immediate Three-Path Community Entry Bar */
.hero {
  background: var(--bg-porcelain);
  padding-top: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-copy h1 {
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.07rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.hero-service-area {
  padding: 12px 16px;
  background: var(--bg-mist);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.94rem;
  color: var(--ink);
}

.hero-media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-mist);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Three-Portal Community Bar: Need Food / Give Food / Volunteer */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-item {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.portal-item-gold {
  border-top-color: var(--gold);
}

.portal-item h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.portal-item p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.portal-action {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.portal-action:hover {
  color: var(--gold-dark);
}

/* Sections */
.section {
  padding-block: 68px;
}

.section-mist {
  background: var(--bg-mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 68ch;
  margin-bottom: 32px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

/* Need Food / Visiting Handbook */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 36px;
  align-items: start;
}

.schedule-sheet {
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 28px;
}

.schedule-sheet h3 {
  font-size: 1.22rem;
  margin-bottom: 14px;
}

.schedule-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  flex-wrap: wrap;
}

.schedule-list strong {
  color: var(--navy);
}

.schedule-callout {
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  padding: 13px 15px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.address-block {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.address-block strong {
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}

.dignity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.dignity-list li {
  padding-block: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.dignity-list h3 {
  margin-bottom: 6px;
  font-size: 1.06rem;
}

.dignity-list p {
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* Give Food — Filterable Pantry Needs + Financial Giving Band */
.needs-top {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 38px;
  align-items: start;
  margin-bottom: 40px;
}

.staples-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-white);
}

.staples-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.staples-photo figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn {
  background: var(--bg-mist);
  border: 1px solid var(--line-strong);
  color: var(--navy);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--bg-white);
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.need-group {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.need-group.is-hidden {
  display: none;
}

.need-group h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.need-group ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.need-group li {
  margin-bottom: 5px;
}

.giving-banner {
  background: var(--navy);
  color: var(--bg-porcelain);
  border-radius: var(--radius-md);
  padding: 32px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}

.giving-banner h3 {
  color: var(--bg-white);
  font-size: 1.38rem;
  margin-bottom: 10px;
}

.giving-banner p {
  color: rgba(247, 249, 251, 0.88);
  font-size: 0.97rem;
}

.giving-banner a {
  color: #F8D59B;
}

.giving-check-box {
  background: rgba(17, 39, 60, 0.72);
  border: 1px solid rgba(247, 249, 251, 0.22);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.giving-check-box p {
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.giving-check-box p:last-child {
  margin-bottom: 0;
}

/* Volunteer & Real Pantry Snapshots */
.volunteer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: start;
}

.volunteer-photo {
  margin: 0 0 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-white);
}

.volunteer-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.volunteer-photo figcaption {
  padding: 11px 15px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.roles-list {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.roles-list li {
  padding-block: 12px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.roles-list strong {
  color: var(--navy);
}

.pantry-proof {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.pantry-proof h3 {
  margin-bottom: 8px;
}

.pantry-proof > p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.proof-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.proof-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-porcelain);
  max-width: 240px;
}

.proof-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.proof-item figcaption {
  padding: 8px 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.board-note {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.board-note strong {
  color: var(--navy);
}

/* Contact & Draft Helper */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--bg-mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
}

.contact-card h3 {
  margin-bottom: 14px;
}

.contact-dl {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.contact-dl div {
  padding-block: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.contact-dl dt {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.contact-dl dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.draft-box {
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 28px;
}

.draft-box h3 {
  margin-bottom: 6px;
}

.draft-subtitle {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mode-tab {
  background: var(--bg-porcelain);
  border: 1px solid var(--line-strong);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.mode-tab[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--bg-white);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.96rem;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.preview-panel {
  margin-top: 18px;
  padding: 15px 16px;
  background: var(--bg-mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.preview-body {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}

.form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.copy-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 1.3em;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 249, 251, 0.86);
  padding-block: 42px 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(247, 249, 251, 0.16);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 6px;
}

.footer-top p {
  font-size: 0.92rem;
  color: rgba(247, 249, 251, 0.78);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.93rem;
}

.footer-links a {
  color: #F8D59B;
  text-decoration: none;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-legal {
  margin-top: 18px;
  font-size: 0.87rem;
  color: rgba(247, 249, 251, 0.72);
  max-width: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-top,
  .visit-grid,
  .needs-top,
  .giving-banner,
  .volunteer-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 52px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    gap: 12px;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-porcelain);
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px 18px;
    gap: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .needs-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .giving-banner {
    padding: 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
