/* ============================================================
   Nate's Way - design system
   Tokens carried over from the original site's custom CSS.
   ============================================================ */
:root {
  --brand:   #0a6b4a;
  --brand-2: #0f766e;
  --brand-3: #e6f5ef;
  --brand-4: #e6f3f3;

  /* Donation levels, lightest to deepest. Bronze -> Platinum. */
  --tier-1: #4f9e7d;
  --tier-2: #2f8a68;
  --tier-3: #0a6b4a;
  --tier-4: #0f766e;
  --tier-5: #0a4f4a;

  --ink:   #0f172a;
  --muted: #5b6472;
  --bg:    #ffffff;
  --soft:  #f7faf9;
  --line:  rgba(0, 0, 0, .08);

  --radius: 18px;
  --shadow: 0 10px 24px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .06);

  --maxw: 1100px;
  --h1: clamp(30px, 4.6vw, 46px);
  --h2: clamp(22px, 3.2vw, 30px);
  --lead: 18px;
  --btn-pad: 18px 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { filter: brightness(.95); }
img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: var(--h1); font-weight: 900; }
h2 { font-size: var(--h2); font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }
.lead { font-size: var(--lead); color: var(--muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
@media (max-width: 900px) { .section { padding: 36px 0; } }

.grid { display: grid; gap: 16px; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Keyboard users must be able to see where they are. */
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px;
  border-radius: 0 0 10px 0; font-weight: 800;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 900; border-radius: 14px; padding: var(--btn-pad);
  border: 1px solid transparent; cursor: pointer; line-height: 1.1;
  font-size: 18px; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(.95); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-link { background: none; border: 0; color: var(--brand); padding: 0; font-weight: 800; }
.btn-sm { padding: 10px 16px; font-size: 15px; border-radius: 10px; }

.badge {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  background: var(--brand-3); font-weight: 900; color: var(--brand);
  border: 1px solid var(--line); margin-bottom: 16px;
}
.pill {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  font-weight: 900; letter-spacing: .2px;
  background: rgba(255, 255, 255, .18); color: #fff;
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid rgba(0, 0, 0, .06);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  display: flex; flex-direction: column; min-height: 100%;
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
/* Pins the action to the bottom so buttons line up across a row of cards. */
.card-actions {
  margin-top: auto; display: flex; gap: 12px;
  flex-wrap: wrap; align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px; position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ink); font-size: 18px; }
/* No radius or background: the mark is transparent artwork, not a tile. */
.brand img { width: 44px; height: 44px; object-fit: contain; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 10px 14px; border-radius: 10px;
  font-weight: 700; color: var(--ink);
}
.nav a:hover { background: var(--soft); }
.nav a.active { color: var(--brand); background: var(--brand-3); }
.nav .btn { margin-left: 6px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-weight: 800; cursor: pointer; font-size: 15px;
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px; margin: 0;
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; }
}

/* ---------- Language toggle ---------- */
.lang { display: flex; align-items: center; gap: 16px; padding: 12px 0 0; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px; border-radius: 999px; border: 3px solid var(--brand-2);
  background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.lang-btn {
  appearance: none; border: 0; cursor: pointer;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 900; font-size: 17px; letter-spacing: .2px;
  background: transparent; color: var(--brand-2);
  transition: background-color .2s ease, color .2s ease, transform .05s ease;
}
.lang-btn.is-active { background: var(--brand-2); color: #fff; }
.lang-btn:active { transform: scale(.98); }
.lang-status { color: var(--muted); font-size: 16px; }

/* ---------- Alert strip ---------- */
.alert {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; padding: 18px 0;
}
.alert .row {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; justify-content: center;
}
.alert strong { font-size: 17px; }
.alert address { font-style: normal; }
.alert .btn-ghost { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0; background: linear-gradient(180deg, var(--brand-3), #ffffff 60%); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.hero-photo img {
  width: 100%; height: auto; border-radius: 22px;
  border: 12px solid var(--brand-4); box-shadow: var(--shadow);
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Food-drive strip ---------- */
.drive-strip {
  background: linear-gradient(180deg, var(--brand-4), #ffffff);
  border-top: 1px solid rgba(0, 0, 0, .06);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.drive-grid {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px; align-items: stretch; margin-top: 24px;
}
@media (max-width: 900px) { .drive-grid { grid-template-columns: 1fr; } }

.drive-tile {
  background: #fff; border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.drive-tile.accent-green { background: var(--brand-3); }
.drive-tile.accent-teal { background: var(--brand-4); }
.drive-tile .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.drive-tile .kv > div {
  background: var(--soft); border: 1px solid rgba(0, 0, 0, .06);
  padding: 12px; border-radius: 10px;
}
.drive-tile .kv strong {
  display: block; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .2px;
}
.drive-tile .kv span, .drive-tile .kv address {
  display: block; margin-top: 8px; font-weight: 800; font-style: normal;
}
.drive-tile ul { margin: 0 0 12px; padding-left: 20px; }
.drive-tile li { margin-bottom: 6px; }
.tile-media {
  aspect-ratio: 3 / 2; width: 100%; border-radius: 14px;
  overflow: hidden; margin-bottom: 14px; background: var(--soft);
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.btn-stack { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.ribbon {
  margin-top: 22px; padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

/* ---------- Page header ---------- */
.page-head { background: linear-gradient(180deg, var(--brand-3), #ffffff); padding: 56px 0 40px; }
.page-head p.lead { max-width: 720px; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose p { margin: 0 0 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; font-size: 15px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field .error { color: #b42318; font-size: 14px; margin-top: 6px; display: block; }

.notice {
  padding: 14px 16px; border-radius: 12px; margin-bottom: 20px;
  border: 1px solid var(--line); background: var(--brand-3);
  color: var(--brand); font-weight: 800;
}

/* ============================================================
   Admin portal
   Deliberately plainer than the public site: this is a form to
   fill in, so nothing should compete with the fields.
   ============================================================ */
.admin-body { background: var(--soft); }
.admin-shell { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.admin-header .bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.admin-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.admin-page { padding-bottom: 60px; }
.admin-page h1 { margin-bottom: 8px; }

.admin-login { max-width: 420px; margin: 40px auto 80px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; }

.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px;
}
.admin-card h2 { font-size: 20px; margin: 0 0 4px; }
.admin-note { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row.three { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 640px) {
  .field-row, .field-row.three { grid-template-columns: 1fr; }
}

.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.4; }

.admin-ok, .admin-warn, .admin-error {
  padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 700;
}
.admin-ok { background: var(--brand-3); color: var(--brand); border: 1px solid rgba(10,107,74,.25); }
.admin-warn { background: #fff8e6; color: #7a5300; border: 1px solid #f0d9a0; }
.admin-error { background: #fdecea; color: #b42318; border: 1px solid #f5c2be; }
/* The validation summary renders an empty <ul> when there is nothing wrong. */
.admin-error:empty, .admin-error ul:empty { display: none; }
.admin-error ul { margin: 0; padding-left: 18px; }

/* One giving level. Boxed so four fields read as a single row of the list
   rather than blurring into the fields above and below. */
.admin-subhead { font-size: 15px; margin: 26px 0 4px; }
.admin-tier {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-bottom: 12px; background: var(--soft);
}
.admin-url { word-break: break-all; color: var(--brand); }
.admin-check label { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.admin-check input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; }

/* Stays in reach on a long form without hiding the last field. */
.admin-savebar {
  position: sticky; bottom: 0; display: flex; gap: 12px; flex-wrap: wrap;
  background: rgba(247,250,249,.94); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 16px 0; margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 44px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 0 0 10px; }
/* Full stacked lockup - width-constrained so the wordmark stays readable. */
.footer-logo { width: 150px; height: auto; margin: 0 0 14px; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}

.footer-admin {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-admin:hover, .footer-admin:focus-visible {
  color: var(--brand); border-bottom-color: currentColor;
}

/* ---------- Donation tiers ---------- */
.tier-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.tier-head h2 { margin-bottom: 6px; }
.tier-head .lead { font-size: 16px; margin: 0; }

/* Five fixed columns, stepping down rather than reflowing, so the levels always
   read left-to-right in price order instead of shuffling at odd widths. */
.tier-grid { display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  --tier: var(--brand);
  background: #fff; border: 1px solid rgba(0, 0, 0, .06);
  border-top: 4px solid var(--tier);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 14px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tier-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(16, 24, 40, .12); }
@media (prefers-reduced-motion: reduce) { .tier-card:hover { transform: none; } }

.tier-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 12px;
  border-radius: 50%; background: var(--brand-3); color: var(--tier);
}
.tier-icon svg { width: 24px; height: 24px; }

.tier-name {
  margin: 0 0 2px; font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1px; color: var(--tier);
}
.tier-amount { margin: 0 0 8px; font-size: 30px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.tier-desc { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* Pins every button to the same baseline no matter how long the wording runs. */
.tier-btn {
  margin-top: auto; width: 100%; padding: 12px 10px;
  font-size: 15px; background: var(--tier); border-color: var(--tier);
}

.tier-other { text-align: center; align-items: center; }
.tier-other .card-actions { justify-content: center; }
.tier-trust {
  margin: 18px 0 0; text-align: center;
  color: var(--muted); font-size: 14px;
}

/* ---------- Donate page ---------- */
.give-hero { background: var(--brand-3); padding: 44px 0 40px; }
.give-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 36px; align-items: center;
}
@media (max-width: 900px) { .give-hero-grid { grid-template-columns: 1fr; gap: 26px; } }

.give-eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1.6px; color: var(--brand-2);
}
.give-title { margin: 0 0 14px; max-width: 12ch; }
@media (max-width: 900px) { .give-title { max-width: none; } }
.give-lead { margin: 0 0 22px; max-width: 52ch; color: var(--ink); opacity: .78; }
.give-hero-actions { margin-bottom: 18px; }

.give-trust-line {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: var(--brand); font-size: 14px; font-weight: 700;
}
.give-trust-line svg { width: 18px; height: 18px; flex: none; }

/* The photo is portrait; crop it to a landscape card rather than letting it set
   the height of the whole hero. */
.give-hero-photo img {
  width: 100%; height: 340px; object-fit: cover; object-position: center 38%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 900px) { .give-hero-photo img { height: 240px; } }

.give-main { padding-top: 40px; }
.give-main-grid { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .give-main-grid { grid-template-columns: 1fr; } }

/* ---------- Donate page: sidebar ---------- */
.give-aside {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; position: sticky; top: 92px;
}
@media (max-width: 1000px) { .give-aside { position: static; } }
.give-aside-h {
  font-size: 12px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--muted); margin: 0 0 16px;
}
.give-help { display: flex; gap: 12px; margin-bottom: 16px; }
.give-help:last-child { margin-bottom: 0; }
.give-help-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-3); color: var(--brand);
}
.give-help-icon svg { width: 19px; height: 19px; }
.give-help-name { margin: 0 0 2px; font-size: 14px; font-weight: 800; }
.give-help-blurb { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- Donate page: monthly + other amount ---------- */
.give-monthly {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--brand-4); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 22px;
}
.give-monthly > div { flex: 1 1 260px; }
.give-monthly-h { margin: 0 0 2px; font-weight: 900; }
.give-monthly-p { margin: 0; color: var(--muted); font-size: 14px; }
.give-another { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
.give-another a { font-weight: 800; margin-left: 6px; }

/* ---------- Donate page: bands ---------- */
.give-band-h {
  text-align: center; font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted);
  margin: 0 0 6px;
}
.give-band-p { text-align: center; color: var(--muted); font-size: 15px; margin: 0 auto 20px; max-width: 54ch; }

.give-stats-wrap { background: var(--soft); padding: 36px 0; }
.give-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 800px) { .give-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .give-stats { grid-template-columns: 1fr; } }
.give-stat { text-align: center; }
.give-stat-v { margin: 0; font-size: 30px; font-weight: 900; color: var(--brand); line-height: 1.1; }
.give-stat-l { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.give-story-wrap { padding: 36px 0; }
.give-story {
  max-width: 640px; margin: 18px auto 0; padding: 24px 26px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand-2);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.give-story p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.give-story cite { font-style: normal; font-weight: 800; color: var(--muted); font-size: 14px; }

.give-trust-wrap { background: var(--soft); padding: 36px 0; }
.give-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 40px; margin-top: 4px;
}
.give-trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--brand); width: 130px; text-align: center;
}
.give-trust-item svg {
  width: 26px; height: 26px; padding: 8px; box-sizing: content-box;
  border-radius: 50%; background: var(--brand-3);
}
.give-processed { margin: 22px auto 0; font-size: 13px; }

.give-close { background: var(--brand); color: #fff; padding: 26px 0; }
.give-close-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.give-close-icon { width: 34px; height: 34px; flex: none; opacity: .9; }
.give-close-text { flex: 1 1 300px; }
.give-close-h { margin: 0 0 2px; font-weight: 900; font-size: 18px; }
.give-close-p { margin: 0; opacity: .85; font-size: 14px; }
/* Reversed out of the green band, so the usual green fill would vanish. */
.give-close .btn-primary { background: #fff; color: var(--brand); }
.give-close .btn-primary:hover { background: var(--brand-3); color: var(--brand); }

.give-footnote {
  text-align: center; color: var(--muted); font-size: 15px;
  margin: 26px auto 40px; padding: 0 20px;
}
