/* ============================================================
   SanAntonioFreeMeals.com — design system
   Apple-inspired: calm, generous, warm. Big type, big targets,
   plain words. Built for grandparents AND teenagers.
   ============================================================ */

:root {
  /* Palette — warm harvest */
  --bg: #FAF7F2;            /* warm paper */
  --bg-soft: #F3EEE6;
  --card: #FFFFFF;
  --ink: #1D1D1F;           /* near-black, Apple ink */
  --ink-soft: #515154;
  --ink-faint: #86868B;
  --line: #E8E2D8;
  --accent: #C2410C;        /* harvest orange */
  --accent-deep: #9A3412;
  --accent-soft: #FDEEDC;
  --green: #2F7D3B;         /* fresh green */
  --green-soft: #E7F4E9;
  --gold: #B45309;
  --gold-soft: #FDF3E3;
  --blue: #1D4ED8;
  --blue-soft: #E8EFFD;
  --shadow-sm: 0 1px 3px rgba(29,29,31,.08);
  --shadow-md: 0 8px 24px rgba(29,29,31,.10);
  --shadow-lg: 0 20px 60px rgba(29,29,31,.14);
  --radius: 20px;
  --radius-sm: 14px;

  /* Type scale — refined, Apple-like. Big tap targets, not big words. */
  --fs-hero: clamp(2.1rem, 4.6vw, 3.2rem);
  --fs-h2: clamp(1.45rem, 2.8vw, 2rem);
  --fs-h3: 1.18rem;
  --fs-body: 1rem;
  --fs-small: .9rem;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
  --pad: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.88);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(29,29,31,.08);
  box-shadow: 0 1px 18px rgba(29,29,31,.06);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 15px; flex: 0 0 auto;
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 45%, #C2410C 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.4), 0 6px 16px rgba(194,65,12,.30);
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-name { font-weight: 800; font-size: .95rem; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; }
.brand-name small { display: block; font-weight: 700; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600;
  font-size: .92rem; padding: 10px 13px; border-radius: 12px; min-height: 44px;
  display: inline-flex; align-items: center; letter-spacing: -.005em;
}
.nav a:hover { background: rgba(29,29,31,.05); color: var(--ink); }
.nav a.cta {
  background: linear-gradient(135deg, #F59E0B, #C2410C); color: #fff; margin-left: 8px;
  box-shadow: 0 6px 16px rgba(194,65,12,.32), inset 0 1px 1px rgba(255,255,255,.35);
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; min-height: 44px;
}
.nav a.cta:hover { background: linear-gradient(135deg, #FBBF24, #D9480F); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(194,65,12,.42), inset 0 1px 1px rgba(255,255,255,.35); }
.nav a.cta { white-space: nowrap; }
.nav a.cta .lbl-short { display: none; }
@media (max-width: 1100px) {
  .nav a.cta .lbl-long { display: none; }
  .nav a.cta .lbl-short { display: inline; }
}
.nav a .lbl-short { display: none; }

/* ---------- Hamburger + mobile menu ---------- */
.hamburger { display: none; }
.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 30px;
  font-size: 1.05rem; font-weight: 700; font-family: var(--font);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(194,65,12,.32); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn-lg { min-height: 62px; padding: 16px 38px; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(900px 480px at 50% -80px, #FDEEDC 0%, rgba(253,238,220,0) 70%),
    var(--bg);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green);
  font-weight: 700; font-size: .95rem;
  padding: 10px 20px; border-radius: 999px; margin-bottom: 24px;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 {
  font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.08; margin: 0 0 20px; max-width: 16ch; margin-inline: auto;
}
.hero h1 .warm { color: var(--accent); }
.hero p.lede {
  font-size: 1.12rem; color: var(--ink-soft); max-width: 34ch;
  margin: 0 auto 36px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { color: var(--ink-faint); font-size: var(--fs-small); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: center; text-align: left; }
.hero-grid .hero-copy h1 { margin-inline: 0; }
.hero-grid .hero-copy p.lede { margin: 0 0 36px; }
.hero-grid .hero-actions { justify-content: flex-start; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); display: block; }
.hero-photo figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-faint); text-align: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .hero-copy h1 { margin-inline: auto; }
  .hero-grid .hero-copy p.lede { margin: 0 auto 36px; }
  .hero-grid .hero-actions { justify-content: center; }
  .hero-photo { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* ---------- How it works ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section h2 {
  font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.02em;
  text-align: center; margin: 0 0 12px;
}
.section .sub { text-align: center; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 44px; font-size: 1.12rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 1.5rem; font-weight: 800; display: grid; place-items: center;
}
.step h3 { margin: 0 0 10px; font-size: var(--fs-h3); letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Category cards ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-ico {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  margin-bottom: 18px; color: #fff;
}
.cat-ico svg { width: 32px; height: 32px; }
.cat-ico.hot { background: linear-gradient(135deg, #F59E0B, #C2410C); }
.cat-ico.pantry { background: linear-gradient(135deg, #4D9E5B, #2F7D3B); }
.cat-ico.now { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.cat h3 { margin: 0 0 8px; font-size: var(--fs-h3); }
.cat p { margin: 0 0 14px; color: var(--ink-soft); font-size: 1rem; }
.cat .go { font-weight: 700; color: var(--accent-deep); }

/* ---------- Stats band ---------- */
.stats {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat { padding: 30px 18px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent-deep); }
.stat .lbl { color: var(--ink-soft); font-size: .92rem; margin-top: 4px; line-height: 1.4; }

/* ---------- 211 call band ---------- */
.callband {
  background: linear-gradient(135deg, #1D4ED8, #1E3A8A); color: #fff;
  border-radius: 28px; padding: clamp(36px, 5vw, 60px); text-align: center;
  box-shadow: var(--shadow-md);
}
.callband h2 { color: #fff; margin: 0 0 10px; font-size: var(--fs-h2); }
.callband p { color: #DBEAFE; max-width: 46ch; margin: 0 auto 26px; font-size: 1.08rem; }
.callband .btn { background: #fff; color: #1D4ED8; }
.callband .btn:hover { background: #F1F5FF; }

/* chips as links */
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  letter-spacing: .01em;
}
.badge-hot { background: var(--accent-soft); color: var(--accent-deep); }
.badge-pantry { background: var(--green-soft); color: var(--green); }
.badge-open { background: var(--green); color: #fff; }
.badge-closed { background: var(--bg-soft); color: var(--ink-soft); }
.badge-season { background: var(--gold-soft); color: var(--gold); }
.badge-dist { background: var(--blue-soft); color: var(--blue); }
.card h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-deep); }
.card .meta { color: var(--ink-soft); font-size: 1rem; margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.card .meta svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 4px; color: var(--ink-faint); }
.card .hours { font-size: .98rem; color: var(--ink-soft); margin: 0; }
.card .hours strong { color: var(--ink); }
.card-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.card-actions .btn { min-height: 50px; padding: 10px 22px; font-size: 1rem; flex: 1 1 auto; }
.trust { font-size: .85rem; color: var(--ink-faint); margin: 0; }

/* ---------- Mission band ---------- */
.mission {
  background: var(--ink); color: #fff; border-radius: 32px;
  padding: clamp(44px, 6vw, 80px); text-align: center;
  margin: 0 max(var(--pad), calc((100% - var(--maxw)) / 2));
}
.mission h2 { color: #fff; }
.mission p { color: #D4D4D8; font-size: 1.1rem; max-width: 44ch; margin: 0 auto 30px; }
.mission .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.mission .btn-ghost:hover { border-color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px; font-weight: 700; font-size: 1.02rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-size: 1.5rem; color: var(--accent); flex: 0 0 auto; font-weight: 400; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .a { padding: 0 26px 24px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 52px 0 40px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.foot-grid h4 { margin: 0 0 14px; font-size: 1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--ink-soft); text-decoration: none; font-size: 1rem; }
.foot-grid a:hover { color: var(--accent-deep); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-faint); font-size: .92rem; }

/* ---------- Find page ---------- */
.find-hero { padding: 48px 0 8px; text-align: center; }
.find-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 12px; }
.find-hero p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
.searchbar {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-md); padding: 22px; margin: 30px auto 0; max-width: 760px;
  display: grid; gap: 14px;
}
.searchrow { display: flex; gap: 12px; }
.searchrow input {
  flex: 1; min-height: 58px; font-size: 1.1rem; font-family: var(--font);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 18px; background: var(--bg);
  min-width: 0;
}
.searchrow input:focus { border-color: var(--accent); outline: none; background: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 26px 0 8px; }
.chip {
  min-height: 50px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 1rem; font-weight: 700; font-family: var(--font);
  cursor: pointer; color: var(--ink-soft); transition: all .15s ease;
}
.chip:hover { border-color: var(--ink-faint); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
a.chip { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.results-meta { text-align: center; color: var(--ink-soft); margin: 18px 0 26px; font-size: 1.02rem; }
#map { height: 380px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 30px; z-index: 1; }
  #results { scroll-margin-top: 96px; }
  .map-toggle { display: block; margin: 10px auto 0; background: none; border: 0; padding: 10px 16px; min-height: 44px; color: var(--ink-soft); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 12px; }
  .map-toggle[hidden] { display: none; }
.empty {
  text-align: center; padding: 60px 20px; background: var(--card);
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft);
}
.empty h3 { color: var(--ink); margin: 0 0 10px; }

/* ---------- Detail page ---------- */
.detail { max-width: 820px; margin: 0 auto; }
.detail-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-md); padding: clamp(28px, 5vw, 52px); margin: 36px 0;
}
.detail-card h1 { font-size: clamp(1.6rem, 3.8vw, 2.2rem); letter-spacing: -.02em; margin: 14px 0 8px; line-height: 1.15; }
.detail-rows { display: grid; gap: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-row dt { font-weight: 700; color: var(--ink-faint); font-size: .95rem; }
.detail-row dd { margin: 0; }
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 24px; }
.detail-cta .btn { flex: 1 1 200px; }
.backlink { display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 0; font-weight: 700; text-decoration: none; }
.verify-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 24px; font-size: .95rem; color: var(--ink-soft); margin-top: 28px;
}
.verify-box strong { color: var(--ink); }

/* ---------- Content pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 20px; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 14px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li { margin-bottom: 10px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0; }
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm); text-align: center;
}
.tier.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.tier .price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 4px; }
.tier .per { color: var(--ink-faint); font-size: .95rem; margin-bottom: 18px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; text-align: left; }
.tier li { display: flex; gap: 10px; align-items: flex-start; }
.tier li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps, .cats, .cards, .tiers { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .brand-name { font-size: .85rem; white-space: normal; line-height: 1.2; }
  .brand-name small { display: none; }
  .hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
    border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
    cursor: pointer; font-family: var(--font);
  }
  .hamburger:hover { border-color: var(--ink-faint); }
  .hamburger svg { width: 24px; height: 24px; }
  .mobile-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    background: rgba(255,255,255,.98);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: flex; align-items: center; min-height: 58px;
    padding: 14px 28px; font-weight: 700; font-size: 1.05rem;
    color: var(--ink); text-decoration: none;
  }
  .mobile-nav a:active { background: var(--bg-soft); }
  .mobile-nav a.mnav-cta { color: var(--accent-deep); }
  .mobile-nav a + a { border-top: 1px solid var(--line); }
  .detail-row { grid-template-columns: 1fr; gap: 6px; }
  .mission { margin: 0 16px; border-radius: 24px; }
  .searchrow { flex-direction: column; }
  .searchrow .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
