/* Matching campaign page — builds on style.css tokens */
.match-page section { padding-top: 4rem; padding-bottom: 4rem; scroll-margin-top: calc(var(--header-height) + 1rem); }

.match-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: calc(var(--header-height) + 2rem) !important;
    padding-bottom: 2.5rem !important;
}
.match-hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.8);
}
.match-hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(18,18,18,0.45) 0%, rgba(18,18,18,0.15) 60%, transparent 100%),
        linear-gradient(180deg, rgba(18,18,18,0.6) 0%, transparent 22%, transparent 65%, var(--color-bg-dark) 100%);
    z-index: -1;
}
.match-hero-content { max-width: 780px; }
.match-title {
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    line-height: 1.05;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 8px 32px rgba(0,0,0,0.6);
}
.match-subtitle { font-size: 1.2rem; margin-bottom: 2rem; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }

.match-progress { max-width: 760px; padding-top: 0.5rem !important; }
.match-progress-numbers { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.match-raised { font-family: var(--font-heading); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.5rem); color: var(--color-white); }
.match-goal { color: var(--color-text-muted); font-size: 1.1rem; }
.match-bar-track {
    height: 22px;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 999px;
    overflow: hidden;
}
.match-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-accent-orange), #FFB347);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(255,107,53,0.5);
    transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.match-progress-meta {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem;
    margin-top: 0.9rem; color: var(--color-text-secondary); font-weight: 600;
}
#match-percent { color: var(--color-accent-orange); }

.match-verse blockquote { max-width: 820px; margin: 0 auto; text-align: center; }
.match-verse p {
    font-size: clamp(1.3rem, 3.2vw, 2rem);
    font-style: italic;
    line-height: 1.5;
    color: var(--color-white);
}
.match-verse cite, .match-close cite {
    display: block; margin-top: 1rem;
    font-style: normal; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    font-size: 0.85rem; color: var(--color-accent-blue-light);
}

.match-h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.match-story { max-width: 960px; text-align: center; }
.match-story-video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 16 / 9; }
.match-caption { color: var(--color-text-muted); margin-top: 0.75rem; font-size: 0.95rem; }

.match-why { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.match-why-text p { color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.8; margin-bottom: 1rem; }
.match-why-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.match-why-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 4 / 3; }
.match-why-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.match-give { text-align: center; max-width: 640px; }
.match-give-primary { font-size: 1.15rem; padding: 1.1rem 2.4rem; }
.match-give-note { color: var(--color-text-muted); margin-top: 0.75rem; }
.match-give-secondary { display: inline-block; margin-top: 1.5rem; color: var(--color-text-secondary); text-decoration: underline; }
.match-give-every { margin-top: 2rem; color: var(--color-white); }

.match-report {
    margin: 3rem auto 0;
    max-width: 480px;
    text-align: left;
    background: var(--color-bg-card);
    border: 1px solid var(--color-glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}
.match-report h3 { font-size: 1.3rem; margin-bottom: 0.5rem; text-align: center; }
.match-report-intro { color: var(--color-text-muted); font-size: 0.95rem; text-align: center; margin-bottom: 0.5rem; }
.match-report label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0.85rem 0 0.35rem; }
.match-report input, .match-report select {
    width: 100%; padding: 0.8rem; font-size: 1rem;
    border-radius: 10px; border: 1px solid var(--color-glass-border);
    background: #111; color: var(--color-white);
}
.match-report-row { display: grid; grid-template-columns: 2fr 1fr; gap: 0.75rem; }
.match-report .btn { width: 100%; margin-top: 1.25rem; }
.match-report-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.match-report-msg { min-height: 1.4em; margin-top: 0.75rem; text-align: center; font-weight: 600; }
.match-report-msg.ok { color: var(--color-accent-green); }
.match-report-msg.error { color: #ff6b6b; }
.match-report-privacy { color: var(--color-text-muted); font-size: 0.8rem; text-align: center; margin-top: 0.5rem; }

.match-close { text-align: center; padding-bottom: 6rem !important; }
.match-close-verse { font-size: 1.4rem; font-style: italic; margin-bottom: 2rem; }

@media (max-width: 768px) {
    .match-page section { padding-top: 3rem; padding-bottom: 3rem; }
    .match-why { grid-template-columns: 1fr; gap: 2rem; }
    .match-give-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .match-bar-fill { transition: none; }
}

.match-pix { margin: 0 auto 2rem; text-align: left; }

/* Keep small hero text readable over the brighter video */
.match-hero .hero-eyebrow { text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 14px rgba(0,0,0,0.8); }
.match-subtitle { text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 14px rgba(0,0,0,0.7); }
