/* ============================================================
   APEX Foundation — renoapexfoundation.org
   Structure mirrors renoapex.com; palette retuned to black/gold.
   ============================================================ */

:root {
    --primary-color: #C8AB38;   /* gold — sampled from the APEX Foundation logo */
    --gold-bright:   #E6CB63;   /* highlight / hover */
    --gold-deep:     #8A7420;   /* shadow / rule */
    --dark-bg: #000000;
    --darker-bg: #111111;
    --grey-text: #a0a0a0;
    --white: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--dark-bg);
    scroll-behavior: smooth;
    scroll-padding-top: 135px;
}

body {
    background-color: var(--dark-bg);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* ── Header ────────────────────────────────────────────── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 1440px;
    margin: 0 auto;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.92), rgba(0,0,0,0.55));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(224, 179, 44, 0.18);
}

a.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 84px;
    width: auto;
    display: block;
    transition: transform 0.25s ease;
}

.logo:hover img { transform: scale(1.04); }

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

nav a:hover { color: var(--primary-color); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cta-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.8rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: all 0.3s ease;
    display: inline-block;
    flex-shrink: 0;
}

.cta-btn:hover {
    background-color: var(--gold-bright);
    color: var(--dark-bg);
    transform: scale(1.05);
}

/* Outlined companion to the solid Donate button */
.cta-btn.cta-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: calc(0.8rem - 1px) calc(1.6rem - 1px);
    clip-path: none;
}

.cta-btn.cta-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 195px 5% 4rem;
    position: relative;
    background-image: url('../assets/frontpage-hero.webp');
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.62) 65%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-title span {
    background: linear-gradient(180deg, var(--gold-bright), var(--primary-color) 55%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 1.12rem;
    color: #d6d6d6;
    margin-bottom: 0;
    max-width: 640px;
}

/* ── Impact stats band ─────────────────────────────────── */
.impact {
    background: var(--darker-bg);
    border-top: 3px solid var(--primary-color);
    padding: 6.5rem 5%;
}

.impact-eyebrow {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--grey-text);
    margin-bottom: 3.5rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.impact-grid > div {
    position: relative;
    padding: 0 1rem;
}

/* Hairline divider between stats */
.impact-grid > div + div::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #2e2e2e 30%, #2e2e2e 70%, transparent);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(3.75rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--primary-color) 55%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #c4c4c4;
    margin-top: 1.1rem;
    line-height: 1.45;
}

.impact-note {
    text-align: center;
    color: var(--grey-text);
    font-size: 1rem;
    max-width: 760px;
    margin: 4rem auto 0;
    padding-top: 2.25rem;
    border-top: 1px solid #1e1e1e;
}

/* ── Generic section ───────────────────────────────────── */
.section {
    padding: 6rem 5%;
    background-color: var(--dark-bg);
}

.section.alt { background-color: var(--darker-bg); }

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.15;
}

.section-title span { color: var(--primary-color); }

.section-lede {
    text-align: center;
    color: var(--grey-text);
    max-width: 720px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* ── Mission / About split ─────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
    max-width: 1150px;
    margin: 0 auto;
}

/* Media column tracks the height of the text column, which now runs long */
.split-media {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--primary-color);
}

.split-body h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--white);
    margin: 2rem 0 0.75rem;
}

.split-body h3:first-child { margin-top: 0; }

.split-body p {
    color: var(--grey-text);
    line-height: 1.85;
    margin-bottom: 1.15rem;
}

.split-body strong { color: var(--white); }

.pullquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.4rem 0 0.4rem 1.5rem;
    margin: 1.75rem 0;
    font-size: 1.08rem;
    color: #e6e6e6;
    font-style: italic;
    line-height: 1.7;
}

/* ── Pillar cards (what your gift does) ────────────────── */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1150px;
    margin: 0 auto;
}

.pillar-card {
    background: var(--dark-bg);
    border-left: 4px solid var(--primary-color);
    border-bottom: 1px solid #1e1e1e;
    padding: 1.9rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.section.alt .pillar-card { background: #0a0a0a; }

.pillar-card:hover { transform: translateY(-6px); }

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.pillar-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--grey-text);
}

/* ── Ways to give cards ────────────────────────────────── */
.give-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1150px;
    margin: 0 auto;
}

.give-card {
    background: var(--darker-bg);
    border-bottom: 4px solid #333;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.section.alt .give-card { background: #0a0a0a; }

.give-card:hover {
    border-bottom-color: var(--primary-color);
    transform: translateY(-8px);
}

.give-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.85rem;
}

.give-card p {
    color: var(--grey-text);
    margin-bottom: 1.5rem;
    flex: 1;
}

.give-card .give-tiers {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    flex: 1;
}

.give-card .give-tiers li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #1e1e1e;
    color: var(--grey-text);
    font-size: 0.92rem;
}

.give-card .give-tiers li span:first-child {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Sits below the tiers list — must not flex-grow like the card's lead paragraph */
.give-card .give-note {
    flex: 0 0 auto;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #7d7d7d;
    margin-bottom: 1.5rem;
}

.give-card .give-note a { color: var(--primary-color); text-decoration: none; }
.give-card .give-note a:hover { text-decoration: underline; }

.give-link {
    align-self: flex-start;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    background: var(--primary-color);
    color: var(--dark-bg);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
    transition: background 0.25s ease;
}

.give-link:hover { background: var(--gold-bright); }

.give-link.secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    clip-path: none;
}

.give-link.secondary:hover { background: var(--primary-color); color: var(--dark-bg); }

/* ── Partner club strip ────────────────────────────────── */
.partner-strip {
    background: #0a0a0a;
    border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
    padding: 4rem 5%;
    text-align: center;
}

.partners-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 1.75rem;
}

.partner-strip img {
    height: 78px;
    width: auto;
    margin-bottom: 1.5rem;
}

.partner-strip p {
    color: var(--grey-text);
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.partner-strip a {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.partner-strip a:hover { color: var(--gold-bright); text-decoration: underline; }

/* ── Sponsors ──────────────────────────────────────────── */
.sponsors {
    background: var(--darker-bg);
    padding: 4.5rem 5%;
    text-align: center;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem 3.5rem;
    max-width: 1050px;
    margin: 0 auto;
}

/* Contain box, not fixed height — the marks range from 1.5:1 (adidas) to
   3.2:1 (soccer.com) aspect, and capping both dimensions keeps them
   optically similar in size rather than uniformly tall. */
.sponsor-logo img {
    max-height: 54px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.78;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sponsor-logo img:hover {
    opacity: 1;
    transform: scale(1.06);
}

.sponsors-cta {
    margin-top: 3rem;
    color: var(--grey-text);
    font-size: 0.95rem;
}

.sponsors-cta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.sponsors-cta a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .sponsors { padding: 3rem 5%; }
    .sponsors-grid { gap: 2rem 2.25rem; }
    .sponsor-logo img { max-height: 42px; max-width: 150px; }
    .sponsors-cta { margin-top: 2rem; }
}

/* ── Contact ───────────────────────────────────────────── */
.contact-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    max-width: 1050px;
    margin: 0 auto;
    align-items: start;
}

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.contact-form .field { margin-bottom: 1.25rem; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #262626;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary-color); }

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form button {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 0.9rem 2.25rem;
    cursor: pointer;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
    transition: background 0.25s ease;
}

.contact-form button:hover { background: var(--gold-bright); }

.contact-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.contact-form .optional {
    text-transform: none;
    letter-spacing: 0.02em;
    color: #666;
}

.form-status {
    display: none;
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    border-left: 4px solid;
}

.form-status.success {
    background: rgba(105, 214, 67, 0.08);
    border-left-color: #69d643;
    color: #cfe9c4;
}

.form-status.error {
    background: rgba(229, 78, 78, 0.08);
    border-left-color: #e54e4e;
    color: #f0c4c4;
}

.contact-aside h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin: 2rem 0 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #222;
}

.contact-aside h3:first-child { margin-top: 0; }

.contact-aside p,
.contact-aside address {
    color: var(--grey-text);
    font-style: normal;
    line-height: 1.8;
    font-size: 0.95rem;
}

.contact-aside a { color: var(--primary-color); text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

.tax-box {
    margin-top: 2rem;
    background: #0a0a0a;
    border: 1px solid #222;
    border-top: 3px solid var(--primary-color);
    padding: 1.5rem;
}

.tax-box p { margin: 0; font-size: 0.88rem; }
.tax-box .ein {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--white);
    display: block;
    margin-top: 0.35rem;
}

/* ── Legal pages (privacy policy) ──────────────────────── */
.legal-hero {
    padding: 190px 5% 3rem;
    background: var(--darker-bg);
    border-bottom: 3px solid var(--primary-color);
}

.legal-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.1;
}

.legal-hero .legal-dates {
    color: var(--grey-text);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.legal-content {
    padding: 4rem 5% 6rem;
    max-width: 820px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--white);
    margin: 3rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #222;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    margin: 1.75rem 0 0.6rem;
}

.legal-content p,
.legal-content li {
    color: var(--grey-text);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.legal-content ul { margin: 0 0 1rem 1.25rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--white); }

.legal-content a { color: var(--primary-color); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

.legal-callout {
    background: #0a0a0a;
    border: 1px solid #222;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.legal-callout p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .legal-hero { padding: 220px 5% 2.5rem; }
    .legal-content { padding: 3rem 5% 4rem; }
    .legal-content h2 { font-size: 1.25rem; }
}

/* ── Footer ────────────────────────────────────────────── */
footer {
    background-color: #0a0a0a;
    border-top: 3px solid var(--primary-color);
    padding: 3rem 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-contact p {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-contact a.footer-line {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.footer-contact a.footer-line:hover { color: var(--primary-color); }

.footer-contact-btn {
    display: block;
    width: fit-content;
    margin-top: 1rem;
    padding: 0.8rem 1.6rem;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: all 0.3s ease;
}

.footer-contact-btn:hover {
    background-color: var(--gold-bright);
    transform: scale(1.05);
}

.footer-badge { text-align: center; }
.footer-badge img { height: 190px; width: auto; opacity: 0.95; }

.footer-right { text-align: right; }

.footer-socials {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #141414;
    border: 1px solid #262626;
    border-radius: 4px;
    color: var(--grey-text);
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.footer-socials svg { width: 20px; height: 20px; }

.footer-copy {
    color: #444;
    font-size: 0.75rem;
    line-height: 1.8;
}

.footer-copy a { color: #444; text-decoration: none; }
.footer-copy a:hover { color: var(--grey-text); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 2.25rem; }
    .split-media { min-height: 0; height: 280px; order: -1; }
    .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 170px; }

    header {
        display: grid;
        grid-template-areas: "logo actions" "nav nav";
        grid-template-columns: auto 1fr;
        background: rgba(0,0,0,0.96);
        padding: 0.6rem 1rem;
        gap: 0.5rem 0.75rem;
        align-items: center;
    }
    header .logo { grid-area: logo; }
    header .header-actions {
        grid-area: actions;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.4rem;
    }
    header .cta-btn { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
    header .cta-btn.cta-secondary { padding: calc(0.55rem - 1px) calc(0.9rem - 1px); }
    nav { grid-area: nav; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
    nav a { font-size: 0.92rem; }

    .logo img { height: 62px; }

    .hero { padding-top: 225px; align-items: flex-start; background-position: top center; }
    .hero-title { font-size: 2.6rem; }

    .section { padding: 4rem 5%; }
    .section-title { font-size: 2.1rem; }

    /* Stats: single column, dividers become horizontal rules */
    .impact { padding: 4rem 5%; }
    .impact-eyebrow { margin-bottom: 2.5rem; }
    .impact-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .impact-grid > div + div::before {
        left: 15%;
        right: 15%;
        top: -1.15rem;
        bottom: auto;
        width: auto;
        height: 1px;
        background: linear-gradient(to right, transparent, #2e2e2e 30%, #2e2e2e 70%, transparent);
    }
    .stat-label { font-size: 0.92rem; }
    .impact-note { margin-top: 2.5rem; font-size: 0.92rem; }

    .footer-badge img { height: 150px; }
    footer { grid-template-columns: 1fr; text-align: center; }
    .footer-contact { text-align: center; }
    .footer-contact-btn { margin-left: auto; margin-right: auto; }
    .footer-right { text-align: center; }
    .footer-socials { justify-content: center; }
}
