/* The REACH Foundation — one-page site */

:root {
    --red: #c8201a;
    --red-dark: #9c1712;
    --red-deep: #650900;
    --ink: #1c1917;
    --text: #3f3a37;
    --muted: #6b6461;
    --line: #e7e1dd;
    --bg: #ffffff;
    --bg-alt: #faf6f3;
    --red-tint: #fbeeea;
    --dark: #1f1614;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 8px 24px rgba(28, 25, 23, .08);
    --shadow-lg: 0 24px 60px rgba(28, 25, 23, .25);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --header-h: 72px;
    --section-pad: clamp(3rem, 6vw, 4.5rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font: 400 1.0625rem/1.65 var(--font-body);
    color: var(--text);
    background: var(--bg);
}

body.modal-open { overflow: hidden; }

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

a { color: var(--red); text-underline-offset: .15em; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 700;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; font-family: var(--font-body); }

p { margin: 0 0 1em; }

address { font-style: normal; }

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

.container {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .75rem 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: .75rem;
}

.small { font-size: .875rem; color: var(--muted); }

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 600 1rem/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

.btn-light { background: #fff; color: var(--red-dark); }
.btn-light:hover { background: var(--bg-alt); color: var(--red-deep); }

.btn-sm { padding: .55rem 1.1rem; font-size: .9375rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.0625rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(28, 25, 23, .06); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--ink);
}
.brand img { width: 52px; height: 52px; }
.brand-text {
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.05;
    white-space: nowrap;
}
.brand-copy { display: flex; flex-direction: column; gap: .2rem; }
.brand-slogan {
    color: var(--muted);
    font-family: var(--font-display);
    font-style: italic;
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
}
.brand-slogan sup { font-size: .6em; font-style: normal; }
@media (max-width: 400px) { .brand-slogan { display: none; } }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
    display: block;
    padding: .5rem .75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: .9375rem;
    color: var(--text);
    text-decoration: none;
}
.site-nav ul a:hover { color: var(--red); }
.site-nav ul a.is-active { color: var(--red); background: rgba(200, 32, 26, .07); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
    content: "";
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.25rem 1.5rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(28, 25, 23, .1);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: .8rem .5rem; font-size: 1.0625rem; }
}

/* Hero */

.hero {
    position: relative;
    isolation: isolate;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: flex-start;
    color: #fff;
    background: var(--dark);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(20, 10, 8, .1) 0%, rgba(20, 10, 8, .4) 45%, rgba(20, 10, 8, .75) 100%),
        linear-gradient(90deg, rgba(101, 9, 0, .35) 0%, transparent 70%);
}
.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 820px);
    align-items: center;
    padding-block: 8rem 7rem;
}
.hero .eyebrow { color: #ffb4ab; }
.hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -.01em;
}
.hero h1 sup { font-size: .35em; vertical-align: super; }
.hero .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 620px; color: rgba(255, 255, 255, .9); }

@media (max-width: 760px) {
    .hero-content { padding-block: 6rem 5rem; }
}

/* Shop With A Cop */

.swac { background: var(--dark); color: rgba(255, 255, 255, .85); scroll-margin-top: var(--header-h); }
.swac h2, .swac h3 { color: #fff; }
.swac h2 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
.swac h3 { margin-top: 2rem; font-size: 1.35rem; }
.swac .eyebrow { color: #ffb4ab; }
.swac .lead { font-size: clamp(1.0625rem, 1.5vw, 1.2rem); }
.swac a:not(.btn) { color: #fff; }
.swac-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.swac-facts {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.swac-facts li {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
}
.swac-facts strong { font: 700 clamp(1.75rem, 3vw, 2.25rem)/1 var(--font-display); color: #fff; }
.swac-facts span { font-size: .9375rem; }
.swac-steps { margin: .75rem 0 0; padding-left: 1.25rem; display: grid; gap: .5rem; }
.swac-steps li::marker { color: #ffb4ab; font-weight: 700; }
.swac-note { margin-top: 1.5rem; font-size: .9375rem; color: rgba(255, 255, 255, .7); }
.swac-media { display: grid; gap: 1.25rem; }
.swac-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

@media (max-width: 900px) {
    .swac-grid { grid-template-columns: 1fr; }
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--dark);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Stats */

.stats { background: var(--red); color: #fff; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0;
    padding: 2.25rem 0;
    gap: 1.5rem;
}
.stats-grid li { display: flex; flex-direction: column; gap: .25rem; text-align: center; }
.stats-grid strong { font: 700 clamp(1.9rem, 3.5vw, 2.6rem)/1 var(--font-display); }
.stats-grid span { font-size: .9375rem; color: rgba(255, 255, 255, .88); line-height: 1.35; }

@media (max-width: 860px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Sections */

.section { padding-block: var(--section-pad); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.sub-title { margin-top: 3.5rem; }


/* About */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-photo figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }

.starfish {
    margin: 2rem 0 0;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--red);
    background: var(--bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.starfish p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.starfish strong { color: var(--red-dark); font-weight: 700; }
.starfish footer { font-size: .875rem; color: var(--muted); }

.highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.highlights li {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 3rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .975rem;
}
.highlights li::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 1.6rem;
    width: 10px;
    height: 10px;
    background: var(--red);
    transform: rotate(45deg);
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .highlights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .highlights { grid-template-columns: 1fr; }
}

/* Program cards */

.card-grid,
.logo-wall { list-style: none; margin: 0; padding: 0; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card-button {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-align: left;
    font: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.card-button:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }

.card-media { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-media.is-contain img { object-fit: contain; }
.card-button:hover .card-media img { transform: scale(1.04); }

.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card-title { font: 700 1.3rem/1.2 var(--font-display); color: var(--ink); }
.card-text { font-size: .975rem; color: var(--muted); }
.card-more { margin-top: auto; padding-top: .5rem; font-weight: 600; font-size: .9375rem; color: var(--red); }

@media (max-width: 960px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* Events */

.event-list { display: grid; }
.event-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-block: clamp(2rem, 4vw, 3rem);
    scroll-margin-top: var(--header-h);
}
.event-row:first-child { padding-top: 0; }
.event-row:last-child { padding-bottom: 0; }
.event-row + .event-row { border-top: 1px solid var(--line); }
.event-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--bg-alt);
}
.event-photo.is-banner img { aspect-ratio: auto; object-fit: contain; }
.event-photo.is-logo img { object-fit: contain; background: none; box-shadow: none; }
.event-info h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.event-where {
    margin: -.25rem 0 1rem;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--muted);
}
.event-where a { color: inherit; text-decoration-color: var(--line); }
.event-where a:hover { color: var(--red); }

@media (max-width: 860px) {
    .event-row { grid-template-columns: 1fr; }
}

/* Volunteer */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.split-photo { margin: 0; }
.split-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Donate */

.donate {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
    color: rgba(255, 255, 255, .9);
}
.donate h2,
.donate h3 { color: #fff; }
.donate .eyebrow { color: #ffd2cc; }
.donate-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.donate-mail {
    padding: 2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
}
.donate-mail address { font-size: 1.125rem; color: #fff; margin-bottom: 1rem; line-height: 1.5; }
.donate .small { color: rgba(255, 255, 255, .8); margin: 0; }

@media (max-width: 860px) { .donate-inner { grid-template-columns: 1fr; } }

/* Supporters */

.supporters-intro { margin-bottom: 2.75rem; }
.supporters-intro .section-head { margin-bottom: 0; }
.supporters-intro img { aspect-ratio: 2 / 1; object-position: center bottom; }

.logo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}
.logo-wall li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.logo-wall li:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow); }
.logo-wall img {
    max-height: 64px;
    width: auto;
    object-fit: contain;
    transition: transform .25s;
}
.logo-wall li:hover img { transform: scale(1.06); }

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; gap: .15rem; }
.contact-list span:first-child {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.contact-list a:hover { color: var(--red); }

.contact-form {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.field input,
.field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid #cfc7c2;
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 32, 26, .15); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { margin: .35rem 0 0; font-size: .875rem; color: var(--red-dark); min-height: 0; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status p { padding: .9rem 1rem; border-radius: 10px; font-weight: 500; margin-bottom: 1.25rem; }
.form-status .ok { background: #e8f5ec; color: #1d6b38; }
.form-status .err { background: #fdecea; color: var(--red-dark); }

.recaptcha-note { margin: 1rem 0 0; font-size: .75rem; }
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */

.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding-block: 3rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.footer-brand img { background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand p { font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin: 0; }
.site-footer .small { color: rgba(255, 255, 255, .6); margin: 0; }
.site-footer a { color: rgba(255, 255, 255, .85); }

.socials { display: flex; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.socials a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    transition: background-color .2s;
}
.socials a:hover { background: var(--red); }
.socials svg { width: 20px; height: 20px; fill: #fff; }

/* Modals */

.modal {
    width: min(760px, 100% - 2rem);
    max-height: calc(100% - 2rem);
    padding: 0;
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    color: var(--text);
    overflow: auto;
}
.modal::backdrop { background: rgba(20, 10, 8, .65); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }

.modal-inner { position: relative; }
.modal-media { width: 100%; max-height: 320px; object-fit: cover; background: var(--bg-alt); }
.modal-media.is-contain { object-fit: contain; }
.modal-body { padding: 2rem clamp(1.5rem, 4vw, 2.5rem) 2.25rem; }
.modal-body ul { padding-left: 1.2rem; }
.modal-body li { margin-bottom: .5rem; }
.modal .note {
    padding: .8rem 1rem;
    border-radius: 10px;
    background: var(--bg-alt);
    border-left: 3px solid var(--red);
    font-size: .9375rem;
}
.modal .pull { font: 500 1.3rem/1.4 var(--font-display); color: var(--red-dark); }

.modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    font-size: 1.75rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}
.modal-close:hover { background: #fff; color: var(--red); }

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