/* ==========================================================
   NE Pathways, Inc. — transitional housing for men, Omaha, NE
   Palette taken from the NE Pathways logo: red, black, cream.
   ========================================================== */

:root {
  --cream: #fdf5e1;       /* hero art background; page base */
  --cream-2: #f5e8c8;     /* alternate sections */
  --paper: #fffbf1;       /* cards, form fields */
  --red: #c3131c;         /* the door; buttons and accents */
  --red-dark: #9a0f16;    /* hover, links */
  --black: #041412;       /* logo black; page heads, footer */
  --ink: #0e1716;         /* body text */
  --ink-soft: #4a4f4c;
  --line: #e2d4b2;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--black); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.45em;
  letter-spacing: 0.005em;
  color: var(--black);
}
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.55rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: 66ch; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* Placeholder highlight: content still waiting on the client.
   Remove this rule once every .ph span has been confirmed. */
.ph { background: rgba(195, 19, 28, 0.12); border-bottom: 1px dashed var(--red); padding: 0 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--black); }
.brand:hover { color: var(--black); }
.brand img { height: 50px; width: auto; }
.brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1;
}

.nav-toggle {
  display: none; background: none; border: 2px solid var(--black); color: var(--black);
  font: inherit; font-size: 1rem; font-weight: 700; padding: .4rem .8rem; border-radius: var(--radius); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: .5rem .8rem; font-size: 1rem; }
.site-nav a:hover { color: var(--red-dark); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
.site-nav .nav-donate { background: var(--red); color: var(--white); font-weight: 700; margin-left: .5rem; border-radius: var(--radius); }
.site-nav .nav-donate:hover { background: var(--red-dark); color: var(--white); }
.site-nav .nav-donate[aria-current="page"] { box-shadow: none; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 85px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.25rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { display: block; padding: .8rem .5rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .site-nav .nav-donate { margin: .5rem 0 0; text-align: center; }
}
@media (max-width: 420px) {
  .brand img { height: 40px; }
  .brand span { font-size: 1.45rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-black { background: var(--black); color: var(--cream); }
.btn-black:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--black); }
.btn-cream:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Home hero ----------
   The door art shares the page's cream, so it sits to the right of the
   message and reads as one continuous background. */
.hero { background: var(--cream); overflow: hidden; }
.hero-grid {
  display: grid; align-items: center;
  grid-template-columns: calc(max(0px, (100vw - var(--wrap)) / 2) + 1.5rem + 31rem) 1fr;
  min-height: 0;
}
.hero-copy { grid-column: 1; padding: 3rem 1.5rem 3rem calc(max(0px, (100vw - var(--wrap)) / 2) + 1.5rem); position: relative; z-index: 1; }
.hero-copy h1 { margin-bottom: .3em; }
.hero-copy p { font-size: 1.15rem; color: var(--ink); max-width: 31rem; margin: 0; }
.hero-copy .btn-row { margin-top: 1.5rem; }
.hero-art { grid-column: 2; margin: 2rem 0 1.5rem -3.5rem; }
.hero-art img { width: 100%; max-width: 1672px; height: auto; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1; padding: 2.5rem 1.5rem 0; }
  .hero-art { grid-column: 1; margin: 1.25rem -4% .5rem; }
}

/* ---------- Interior page header ---------- */
.page-head { background: var(--black); color: var(--cream); padding: 3.5rem 0 3.25rem; border-bottom: 8px solid var(--red); }
.page-head h1 { color: var(--cream); font-size: clamp(2.6rem, 5vw, 3.8rem); max-width: 18ch; margin: 0; }
.page-head p { color: #e9dfc7; font-size: 1.2rem; max-width: 52ch; margin: .6rem 0 0; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-alt { background: var(--cream-2); }
.section-head { margin-bottom: 2.5rem; max-width: 60ch; }
.section-head p { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split, .split-even { grid-template-columns: 1fr; gap: 2.25rem; } }

/* Photos */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 10px 10px 0 var(--red); }
.photo-plain img { box-shadow: none; }
.photo + .facts, .facts + .photo { margin-top: 2.5rem; }
.stack > * + * { margin-top: 2rem; }

/* Fact sheet */
.facts { margin: 0; border-top: 3px solid var(--black); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink-soft); font-size: 1rem; }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: .1rem; } }

/* The path home: a real sequence */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; counter-reset: step; }
.path::before {
  content: ""; position: absolute; top: 1.35rem; left: 1.4rem; right: calc((100% - 6rem) / 4 - 1.4rem); height: 3px;
  background: repeating-linear-gradient(90deg, var(--black) 0 14px, transparent 14px 24px);
}
.path li { position: relative; counter-increment: step; }
.path li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--cream-2); border: 3px solid var(--black); color: var(--black);
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-bottom: 1rem; position: relative;
}
.path li:last-child::before { background: var(--red); border-color: var(--red); color: var(--white); }
.path h3 { margin-bottom: .25em; }
.path .when { display: block; font-size: .95rem; color: var(--red-dark); font-weight: 700; margin-bottom: .4rem; }
.path p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) {
  .path { grid-template-columns: 1fr; gap: 1.75rem; }
  .path::before { top: 1.4rem; bottom: 1.4rem; left: 1.3rem; right: auto; width: 3px; height: auto;
    background: repeating-linear-gradient(180deg, var(--black) 0 14px, transparent 14px 24px); }
  .path li { padding-left: 4rem; }
  .path li::before { position: absolute; left: 0; top: 0; }
}

/* Red band */
.band { background: var(--red); color: var(--white); padding: 4.25rem 0; }
.band h2 { color: var(--white); max-width: 22ch; }
.band p { color: #fde9e6; max-width: 54ch; font-size: 1.2rem; }
.band .ph { background: rgba(255,255,255,.18); border-bottom-color: var(--white); }

/* Mission */
.mission-statement {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25; max-width: 36ch; margin: 0; padding-left: 1.5rem; border-left: 6px solid var(--red); color: var(--black);
}
.values { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 3rem; }
.values dt { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: .2rem; color: var(--black); }
.values dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }
.subhead { margin-top: 2.5rem; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: .6rem 0 .6rem 2rem; position: relative; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .9rem; height: .5rem;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

/* Treatment */
.services { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--black); }
.services li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.services li strong { display: block; font-size: 1.1rem; }
.services li span { color: var(--ink-soft); font-size: 1rem; }

.note { background: var(--paper); border-left: 4px solid var(--red); padding: 1.1rem 1.35rem; font-size: 1rem; color: var(--ink-soft); max-width: 70ch; }

details.faq { border-bottom: 1px solid var(--line); max-width: 70ch; }
details.faq:first-of-type { border-top: 3px solid var(--black); }
details.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.6rem; color: var(--red); font-weight: 700; }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding: 0 0 1.2rem; color: var(--ink-soft); }

/* Donate */
.give { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .give { grid-template-columns: 1fr; } }
.give-box { background: var(--paper); border: 1px solid var(--line); border-top: 8px solid var(--red); border-radius: var(--radius); padding: 2rem; }
.give-box h2 { font-size: 2rem; }
.freq { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--black); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.freq button { font: inherit; font-weight: 700; padding: .75rem; border: 0; background: var(--paper); color: var(--black); cursor: pointer; }
.freq button[aria-pressed="true"] { background: var(--black); color: var(--cream); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.amounts button { font: inherit; font-weight: 700; font-size: 1.15rem; padding: .85rem .5rem; border-radius: var(--radius); border: 2px solid var(--line); background: var(--cream); color: var(--black); cursor: pointer; }
.amounts button[aria-pressed="true"] { border-color: var(--red); background: #fbe3df; }
.custom-amt label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .35rem; }
.custom-amt .field { display: flex; align-items: center; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); }
.custom-amt .field span { padding: 0 .25rem 0 .9rem; color: var(--ink-soft); font-weight: 700; }
.custom-amt input { font: inherit; border: 0; padding: .75rem .75rem .75rem .25rem; width: 100%; background: transparent; }
.custom-amt input:focus { outline: none; }
.custom-amt .field:focus-within { border-color: var(--red); }
.impact-line { min-height: 3.2em; margin: 1.1rem 0 1.25rem; color: var(--ink-soft); font-size: 1rem; }
.give-box .btn { width: 100%; text-align: center; }
.fine { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; }

.impact-list { margin: 0; border-top: 3px solid var(--black); }
.impact-list div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.impact-list dt { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--red-dark); }
.impact-list dd { margin: 0; color: var(--ink-soft); }

.wishlist { columns: 2; column-gap: 2.5rem; padding-left: 1.2rem; margin: 0; }
.wishlist li { padding: .3rem 0; break-inside: avoid; }
.wishlist li::marker { color: var(--red); }
@media (max-width: 560px) { .wishlist { columns: 1; } }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.ways h3 { margin-bottom: .3em; }
.ways p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-info { margin: 0; }
.contact-info div { padding: 1rem 0; border-bottom: 1px solid var(--line); border-top: 3px solid var(--black); }
.contact-info dt { font-weight: 700; font-size: 1rem; color: var(--ink-soft); }
.contact-info dd { margin: .15rem 0 0; font-size: 1.3rem; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form .row { margin-bottom: 1.2rem; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row-2 { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: 1rem; }
.form .hint { font-weight: 400; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  font: inherit; width: 100%; padding: .75rem .85rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { min-height: 9rem; resize: vertical; }
.hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #d9d2c0; padding: 3.5rem 0 2rem; font-size: 1rem; border-top: 8px solid var(--red); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.site-footer h2 { font-size: 1.45rem; color: var(--cream); margin-bottom: .5rem; }
.footer-name { text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer .legal { border-top: 1px solid rgba(253,245,225,.15); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .92rem; color: #a9a392; }
.site-footer .ph { background: rgba(195,19,28,.35); border-bottom-color: #f08a8f; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Private follow-up form (not linked from the site) ---------- */
.fu-wrap { max-width: 820px; }
.fu-save { margin-top: -.25rem; margin-bottom: 2rem; }
.fu-form { padding: 2rem 2rem 1.5rem; }
.fu-section { font-size: 1.9rem; color: var(--red-dark); margin: 2.75rem 0 .25rem; padding-top: 1.5rem; border-top: 3px solid var(--black); }
.q { border: 0; margin: 0; padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.q-who { padding-top: 0; }
.q legend { font-weight: 700; font-size: 1.15rem; padding: 0; margin-bottom: .35rem; display: flex; gap: .65rem; align-items: baseline; }
.q-num {
  flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--black); color: var(--cream); font-family: var(--font-display); font-size: 1.05rem;
}
.q-context { color: var(--ink-soft); font-size: 1rem; margin: 0 0 .9rem; }
.form .sub { font-weight: 700; font-size: .95rem; margin: .9rem 0 .35rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { display: inline-flex !important; align-items: center; gap: .5rem; margin: 0 !important; font-weight: 400 !important;
  padding: .55rem .9rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.choice input { width: auto; margin: 0; accent-color: var(--red); }
.choice:has(input:checked) { border-color: var(--red); background: #fbe3df; }
.choice:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.fu-submit { padding-top: 1.75rem; }
.site-footer-min { padding: 1.5rem 0; }
.site-footer-min .legal { margin: 0; padding: 0; border: 0; }
@media (max-width: 560px) { .fu-form { padding: 1.25rem 1rem; } }
.fu-form textarea { min-height: 0; }
.q-who { border-bottom: 0; }
.fu-section:first-of-type { margin-top: 1rem; }
.fu-form > .fu-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

/* Two-line fact values and the interim giving panel */
.dd-line { display: block; }
.dd-line + .dd-line { margin-top: .45rem; }
.give-ways { margin: 1rem 0 1.5rem; }
.give-ways li { font-size: 1rem; }
