/* Quakertown Food Pantry — Shared Styles */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

:root {
  --ink: #1A1A1A;
  --paper: #FAFAF7;
  --cream: #F3F1EB;
  --moss: #3D6B35;
  --moss-light: #4A8240;
  --moss-pale: #E8F0E6;
  --terracotta: #C75B39;
  --terracotta-light: #F4E8E3;
  --warm-gray: #6B6560;
  --light-gray: #B5B0A8;
  --border: #E5E2DB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
.nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--moss);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--moss);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.nav-logo-img {
  height: 76px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--warm-gray);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  background: var(--cream);
}
.nav-donate {
  background: var(--terracotta) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}
.nav-donate:hover {
  background: #b5502f !important;
}

/* PAGE CONTAINER */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* PAGE HERO */
.page-hero {
  padding: 64px 0 48px;
  animation: fadeUp 0.6s ease-out;
}
.page-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--moss-pale);
  color: var(--moss);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: 44px;
  font-weight: 750;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero h1 .accent { color: var(--moss); }
.page-hero .hero-sub {
  font-size: 18px;
  color: var(--warm-gray);
  max-width: 580px;
  line-height: 1.65;
}

/* SECTION LABEL */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  height: 1px;
  background: var(--border);
  flex-grow: 1;
}

/* CARDS */
.content-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin-bottom: 16px;
  animation: scaleIn 0.5s ease-out both;
}
.content-card h2 {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.content-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.content-card p {
  font-size: 16px;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 14px;
}
.content-card p:last-child { margin-bottom: 0; }

/* TWO-COL GRID */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* THREE-COL GRID */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-fill {
  background: var(--terracotta);
  color: white;
  box-shadow: 0 2px 8px rgba(199,91,57,0.25);
}
.btn-fill:hover {
  background: #b5502f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199,91,57,0.3);
}
.btn-moss {
  background: var(--moss);
  color: white;
  box-shadow: 0 2px 8px rgba(61,107,53,0.25);
}
.btn-moss:hover {
  background: var(--moss-light);
  transform: translateY(-2px);
}
.btn-outline {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--moss);
  color: var(--moss);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* CTA FOOTER SECTION */
.cta-footer {
  background: var(--moss);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.cta-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.04) 0%, transparent 40%);
}
.cta-footer * { position: relative; }
.cta-footer h2 {
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -1.2px;
  color: white;
  margin-bottom: 12px;
}
.cta-footer p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-white {
  background: white;
  color: var(--moss);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* CALLOUT */
.callout {
  padding: 16px 20px;
  background: var(--moss-pale);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--moss);
  line-height: 1.5;
  margin-top: 8px;
}
.callout-warm {
  background: var(--terracotta-light);
  color: var(--terracotta);
}

/* ICON BOX */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-box.green { background: var(--moss-pale); }
.icon-box.orange { background: var(--terracotta-light); }
.icon-box.gray { background: var(--cream); }

/* LISTS */
.styled-list {
  list-style: none;
  margin: 16px 0;
}
.styled-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--cream);
  font-size: 15px;
  color: var(--warm-gray);
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.5;
}
.styled-list li:last-child { border-bottom: none; }
.styled-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--moss);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

/* STEP CARDS */
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--cream);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 40px;
  height: 40px;
  background: var(--moss-pale);
  color: var(--moss);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.step-content p {
  font-size: 15px;
  color: var(--warm-gray);
  margin-bottom: 0;
}

/* TAGS */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.tag {
  background: var(--cream);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* HOURS TABLE */
.hours-grid .hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream);
  font-size: 15px;
}
.hours-grid .hour-row:last-child { border-bottom: none; }
.hour-day { font-weight: 600; color: var(--ink); }
.hour-time { color: var(--warm-gray); font-variant-numeric: tabular-nums; }
.hour-closed { color: var(--light-gray); font-style: italic; }

/* SPONSOR CARD */
.sponsor-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  display: block;
}
.sponsor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.sponsor-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.sponsor-card .sponsor-type {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 12px;
}
.sponsor-card p {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.55;
}
.sponsor-card .sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--moss);
}

/* DONATE OPTION */
.donate-option {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.donate-option:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--moss-pale);
}
.donate-option h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.donate-option p {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* MOBILE HAMBURGER */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-hamburger svg { display: block; }

/* MOBILE MENU OVERLAY — hidden by default, only enabled in mobile breakpoint */
.mobile-menu {
  display: none !important;
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: white;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  overflow-y: auto;
}
.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--warm-gray);
  float: right;
  margin-bottom: 16px;
}
.mobile-menu-close svg { display: block; }
.mobile-menu-links {
  list-style: none;
  clear: both;
  padding-top: 8px;
}
.mobile-menu-links li {
  border-bottom: 1px solid var(--cream);
}
.mobile-menu-links a {
  display: block;
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: var(--moss);
}
.mobile-menu-links .mobile-donate-link {
  display: block;
  margin-top: 16px;
  background: var(--terracotta);
  color: white;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* STICKY MOBILE DONATE BAR */
.mobile-donate-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--terracotta);
  padding: 12px 20px;
  text-align: center;
}
.mobile-donate-bar a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* TAP TARGETS — ensure all interactive elements are thumb-friendly */
a[href^="tel:"] {
  display: inline-block;
  padding: 4px 0;
}

/* FOOTER */
footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--light-gray);
}
footer a {
  color: var(--warm-gray);
  text-decoration: none;
  font-weight: 500;
}
footer a:hover { color: var(--ink); }
.footer-links {
  display: flex;
  gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .page-hero h1 { font-size: 32px; letter-spacing: -1.2px; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .cta-footer { padding: 40px 24px; }
  .cta-footer h2 { font-size: 28px; }
  nav { padding: 0 16px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .mobile-menu {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-donate-bar { display: block; }

  .page { padding: 0 16px; }
  .page-hero { padding: 32px 0 24px; }
  .page-hero h1 { font-size: 28px; letter-spacing: -1px; }
  .page-hero .hero-sub { font-size: 16px; }

  .content-card { padding: 24px 20px; border-radius: 16px; }
  .content-card h2 { font-size: 24px; }
  .content-card h3 { font-size: 18px; }
  .content-card p { font-size: 15px; }

  .btn { padding: 14px 24px; font-size: 15px; width: 100%; justify-content: center; }
  .cta-footer { border-radius: 16px; padding: 36px 20px; }
  .cta-footer h2 { font-size: 24px; }
  .cta-footer p { font-size: 15px; }
  .btn-white, .btn-ghost { width: 100%; justify-content: center; }

  .step { gap: 14px; padding: 18px 0; }
  .step-num { width: 36px; height: 36px; font-size: 14px; }

  .callout { font-size: 13px; padding: 14px 16px; }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-bottom: 100px;
  }

  .sponsor-card { padding: 24px 20px; }
}
