/* sponsra.css — the sponsor page (/sponsra)
   Layered on top of home5.css, as schema.css is: the sections, numbered
   eyebrows, brackets, För vem cards, partner bento, buttons, nav and footer
   all come from there. Only what this page has and the home page doesn't
   lives here: the photo hero, the ask card beside the includes list, the
   sender, the photo grid and numbers, and the closing CTA.                 */

/* Anchored sections (#beacon, #fragan, #ja) clear the fixed nav. */
.h5-wrap section[id] { scroll-margin-top: 4.5rem; }

.sp-label {
    display: block;
    font-family: var(--h5-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--h5-yellow);
    margin: 0;
}
.sp-label-quiet { color: var(--h5-mid); letter-spacing: 0.18em; }

/* ─────────── HERO — the stage lasers under a dark shade, with the
   home hero's glowing corner brackets ─────────── */
.sp-hero {
    position: relative;
    z-index: 1;
    min-height: min(86vh, 760px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--h5-border);
}
.sp-hero::before,
.sp-hero::after {
    content: '';
    position: absolute;
    width: 90px; height: 90px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.9;
}
.sp-hero::before {
    top: 6rem; left: max(1rem, 4vw);
    border-top: 2px solid rgba(36,155,215,0.6);
    border-left: 2px solid rgba(36,155,215,0.6);
    filter: drop-shadow(0 0 5px rgba(36,155,215,0.6));
}
.sp-hero::after {
    bottom: 2rem; right: max(1rem, 4vw);
    border-bottom: 2px solid rgba(255,186,83,0.6);
    border-right: 2px solid rgba(255,186,83,0.6);
    filter: drop-shadow(0 0 5px rgba(255,186,83,0.6));
}
.sp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.sp-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9,14,26,0.55) 0%, rgba(9,14,26,0.3) 35%, rgba(9,14,26,0.85) 78%, var(--h5-bg) 100%),
        linear-gradient(90deg, rgba(9,14,26,0.8) 0%, rgba(9,14,26,0) 70%);
}
.sp-hero-inner { position: relative; z-index: 1; padding-top: 8rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.sp-title {
    font-family: var(--h5-font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 6.6vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--h5-white);
    max-width: 12ch;
    margin: 0 0 1.5rem;
}
.sp-glow { color: var(--h5-yellow); text-shadow: var(--h5-glow-y); }
.sp-lead {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.7;
    color: var(--h5-white);
    max-width: 600px;
    margin: 0 0 1.5rem;
}
.sp-meta { margin-bottom: 2rem; }
.sp-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }
.sp-cta-note { margin: 0; font-size: 0.95rem; color: var(--h5-mid); }
.sp-cta-note strong { color: var(--h5-white); font-weight: 700; }
.sp-cta-note a, .sp-sender a { color: var(--h5-yellow); text-decoration: none; border-bottom: 1px solid rgba(255,186,83,0.4); }
.sp-cta-note a:hover, .sp-sender a:hover { color: var(--h5-orange); border-color: var(--h5-orange); }

/* ─────────── 03 — text beside three photos, then the numbers ─────────── */
.sp-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.sp-para { margin-bottom: 1.1rem; }
.sp-para:last-child { margin-bottom: 0; }
.sp-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.9rem;
    aspect-ratio: 4 / 3;
}
.sp-photo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #0a1020;
}
.sp-photo:first-child { grid-column: 1 / -1; }
.sp-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
}
/* Same glow borders as the För vem photos. */
.sp-photo.y { box-shadow: 0 0 0 1px rgba(255,186,83,0.20), 0 0 32px rgba(255,186,83,0.14); }
.sp-photo.b { box-shadow: 0 0 0 1px rgba(36,155,215,0.20), 0 0 32px rgba(36,155,215,0.14); }
.sp-photo.o { box-shadow: 0 0 0 1px rgba(255,104,66,0.20), 0 0 32px rgba(255,104,66,0.14); }

.sp-numbers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: clamp(3rem, 6vw, 4.5rem) 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--h5-border);
}
.sp-number { display: flex; flex-direction: column-reverse; gap: 0.4rem; }
.sp-number dd {
    margin: 0;
    font-family: var(--h5-font-display);
    font-weight: 900;
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    line-height: 1;
    color: var(--h5-white);
}
.sp-number dt {
    font-family: var(--h5-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h5-dim);
}
/* The real figures lead; the goals are quieter, so they don't read as a boast. */
.sp-number.is-goal dd { color: var(--h5-mid); }

/* ─────────── 01 — amount card beside what's included ─────────── */
.sp-ask {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.sp-ask-card {
    position: relative;
    background: var(--h5-surface);
    border: 1px solid rgba(255,186,83,0.35);
    border-radius: 10px;
    padding: 2rem 1.75rem;
    box-shadow: 0 0 0 1px rgba(255,186,83,0.12), 0 18px 50px -20px rgba(255,186,83,0.45);
}
.sp-amount {
    font-family: var(--h5-font-display);
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 4.2rem);
    line-height: 1.05;
    white-space: nowrap;
    text-transform: uppercase;
    color: var(--h5-white);
    margin: 0.6rem 0 0.4rem;
    text-shadow: 0 0 22px rgba(255,186,83,0.4);
}
.sp-terms {
    font-family: var(--h5-font-mono);
    font-size: 0.8rem;
    color: var(--h5-mid);
    letter-spacing: 0.04em;
    line-height: 1.6;
}
.sp-ask-card hr { border: 0; border-top: 1px solid var(--h5-border-2); margin: 1.4rem 0 1.2rem; }
.sp-uses { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.sp-uses li { color: var(--h5-white); font-size: 0.98rem; line-height: 1.5; padding: 0.3rem 0; }

.sp-includes { list-style: none; margin: 1rem 0 0; padding: 0; }
.sp-includes li {
    position: relative;
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--h5-white);
    padding: 0.85rem 0 0.85rem 1.7rem;
    border-bottom: 1px solid var(--h5-border);
}
.sp-includes li::before { content: '▸'; position: absolute; left: 0.15rem; color: var(--h5-yellow); }

/* ─────────── 04 — the home page's partner bento, a little shorter ─────────── */
.sp-partners .h5-partner-card.tier-gold   { min-height: 200px; }
.sp-partners .h5-partner-card.tier-silver { min-height: 130px; }

/* ─────────── 02 — steps (För vem cards), the sender, the closing CTA ─────────── */
.sp-steps { margin-top: 1rem; }
.sp-final {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    margin-top: 2.5rem;
}
.sp-sender { display: flex; flex-direction: column; gap: 0.15rem; font-style: normal; font-size: 0.95rem; color: var(--h5-mid); line-height: 1.5; }
.sp-sender strong { color: var(--h5-white); }

/* ─────────── SMALL SCREENS ─────────── */
@media (max-width: 1024px) {
    .sp-hero::before, .sp-hero::after { display: none; }
}
@media (max-width: 900px) {
    .sp-about, .sp-ask { grid-template-columns: minmax(0, 1fr); }
    .sp-ask-card { max-width: 440px; width: 100%; }
    .sp-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .sp-hero { min-height: 0; }
    .sp-hero-inner { padding-top: 6.5rem; }
    /* The partner wall as a compact logo grid, not two screens of cards. */
    .sp-partners .h5-partner-card.tier-gold,
    .sp-partners .h5-partner-card.tier-silver,
    .sp-partners .h5-partner-card.tier-bronze { grid-column: span 6; min-height: 96px; padding: 1rem; }
    .sp-partners .h5-partner-logo.has-img img { max-height: 56px; }
    .sp-ctas .h5-btn, .sp-final .h5-btn { width: 100%; justify-content: center; }
}
