/*
|--------------------------------------------------------------------------
| SAN NICODEMO ABATE
|--------------------------------------------------------------------------
| SUPPORT HUB - PREMIUM PUBLIC PAGE
|--------------------------------------------------------------------------
*/

:root {
    --support-navy: #0d2236;
    --support-navy-soft: #163249;
    --support-gold: #d0a020;
    --support-gold-deep: #b77d08;
    --support-gold-soft: #f3d77d;
    --support-cream: #fbf8f0;
    --support-cream-deep: #f4eedf;
    --support-white: #ffffff;
    --support-ink: #10283d;
    --support-muted: #687a8b;
    --support-green: #237b50;
    --support-line: rgba(16, 40, 61, .10);
    --support-shadow: 0 18px 46px rgba(13, 34, 54, .08);
}

.support-hub-page {
    width: min(1180px, calc(100% - 40px));
    margin: 58px auto 76px;
    color: var(--support-ink);
}

.support-hub-page *,
.support-hub-page *::before,
.support-hub-page *::after {
    box-sizing: border-box;
}

.support-hub-page a {
    text-decoration: none;
}

.support-hub-page section[id] {
    scroll-margin-top: 130px;
}

/* ================================================================
   COMMON TYPOGRAPHY
================================================================ */

.support-hub-kicker {
    margin: 0;
    color: var(--support-gold);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.support-hub-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.support-hub-section-head h2 {
    margin: 8px 0 5px;
    color: var(--support-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.support-hub-section-head p:last-child {
    margin: 0;
    color: var(--support-muted);
    line-height: 1.65;
}

.support-hub-text-link {
    flex: 0 0 auto;
    padding-bottom: 5px;
    color: #9a6900;
    font-size: .82rem;
    font-weight: 850;
    white-space: nowrap;
}

.support-hub-text-link:hover {
    color: var(--support-navy);
}

/* ================================================================
   HERO
================================================================ */

.support-hub-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    min-height: 480px;
    border: 1px solid rgba(215, 165, 31, .20);
    border-radius: 30px;
    background:
        radial-gradient(circle at 86% 22%, rgba(215, 165, 31, .16), transparent 30%),
        linear-gradient(120deg, #0b2033 0%, #0f2b43 58%, #1f2f32 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(13, 34, 54, .16);
}

.support-hub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 25, 41, .18), transparent 55%),
        radial-gradient(circle at 10% 100%, rgba(215, 165, 31, .10), transparent 28%);
    pointer-events: none;
}

.support-hub-hero-copy {
    position: relative;
    z-index: 3;
    align-self: center;
    padding: clamp(38px, 5vw, 68px);
}

.support-hub-hero h1 {
    max-width: 680px;
    margin: 13px 0 22px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 6vw, 5.9rem);
    font-weight: 500;
    line-height: .92;
    letter-spacing: -.05em;
}

.support-hub-lead {
    max-width: 700px;
    margin: 0;
    color: #d6e0e8;
    font-size: 1rem;
    line-height: 1.72;
}

.support-hub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 29px;
}

.support-hub-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1.15;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.support-hub-btn:hover {
    transform: translateY(-1px);
}

.support-hub-btn-gold {
    border-color: #d5a421;
    background: linear-gradient(135deg, #d7aa28 0%, #c7920d 100%);
    color: #102238;
    box-shadow: 0 10px 26px rgba(204, 150, 18, .25);
}

.support-hub-btn-gold:hover {
    box-shadow: 0 14px 30px rgba(204, 150, 18, .32);
}

.support-hub-btn-outline-light {
    border-color: rgba(229, 186, 68, .64);
    background: rgba(255, 255, 255, .025);
    color: #fff;
}

.support-hub-btn-outline-light:hover {
    background: rgba(255, 255, 255, .08);
}

.support-hub-payment-note {
    max-width: 650px;
    margin: 16px 0 0;
    color: rgba(224, 232, 239, .66);
    font-size: .72rem;
    line-height: 1.55;
}

.support-hub-hero-art {
    position: relative;
    min-height: 100%;
}

.support-hub-saint {
    position: absolute;
    right: -5%;
    bottom: -5%;
    z-index: 1;
    width: min(108%, 610px);
    height: auto;
    max-height: 108%;
    object-fit: contain;
    object-position: bottom right;
    filter: sepia(.18) saturate(.82) contrast(1.03);
    -webkit-mask-image: linear-gradient(to left, #000 72%, transparent 100%);
    mask-image: linear-gradient(to left, #000 72%, transparent 100%);
}

.support-hub-quote {
    position: absolute;
    top: 82px;
    right: 34px;
    z-index: 2;
    width: 180px;
    color: #f4dfaa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.55;
    text-align: right;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.support-hub-quote::after {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    margin: 14px 0 0 auto;
    background: var(--support-gold);
}

/* ================================================================
   QUICK ACTIONS
================================================================ */

.support-hub-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.support-hub-quick-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 17px;
    min-height: 205px;
    padding: 27px 25px;
    border: 1px solid var(--support-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--support-shadow);
}

.support-hub-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border: 1px solid rgba(215, 165, 31, .22);
    border-radius: 50%;
    background: #fff5d9;
    color: #af7c08;
    font-size: 1.25rem;
}

.support-hub-quick-card h2 {
    margin: 1px 0 10px;
    color: var(--support-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.42rem;
    font-weight: 600;
}

.support-hub-quick-card p {
    margin: 0;
    color: var(--support-muted);
    font-size: .88rem;
    line-height: 1.65;
}

.support-hub-quick-card a {
    display: inline-flex;
    gap: 7px;
    margin-top: 17px;
    color: #9b6b05;
    font-size: .78rem;
    font-weight: 850;
}

.support-hub-quick-card a:hover {
    color: var(--support-navy);
}

/* ================================================================
   FUNDING
================================================================ */

.support-hub-funding {
    margin-top: 28px;
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid var(--support-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 95% 8%, rgba(215, 165, 31, .08), transparent 24%),
        #fff;
    box-shadow: var(--support-shadow);
}

.support-hub-funding-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.support-hub-funding-stats article {
    position: relative;
    overflow: hidden;
    min-height: 124px;
    padding: 21px;
    border: 1px solid rgba(13, 34, 54, .08);
    border-radius: 17px;
    background: linear-gradient(145deg, #fbfbfa 0%, #f5f4f0 100%);
    text-align: center;
}

.support-hub-funding-stats article:first-child {
    background: linear-gradient(145deg, #fffdf7 0%, #f9f6ec 100%);
}

.support-hub-funding-stats span,
.support-hub-funding-stats strong,
.support-hub-funding-stats small {
    display: block;
}

.support-hub-funding-stats span {
    color: var(--support-muted);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.support-hub-funding-stats strong {
    margin-top: 8px;
    color: var(--support-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
}

.support-hub-funding-stats article:first-child strong {
    color: var(--support-green);
}

.support-hub-funding-stats small {
    margin-top: 5px;
    color: var(--support-muted);
    font-size: .75rem;
    font-weight: 700;
}

.support-hub-progress-wrap {
    margin-top: 23px;
}

.support-hub-progress {
    position: relative;
    height: 14px;
    border: 1px solid rgba(13, 34, 54, .08);
    border-radius: 999px;
    background: #e4e9ec;
}

.support-hub-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    min-width: 5px;
    border-radius: inherit;
    background: linear-gradient(90deg, #c68a0a 0%, #e2b63f 100%);
    box-shadow: 0 0 14px rgba(215, 165, 31, .28);
}

.support-hub-progress-current,
.support-hub-progress-resin,
.support-hub-progress-final {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: block;
    width: 16px;
    height: 16px;
    border: 3px solid #fffaf0;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(170, 120, 8, .43), 0 3px 10px rgba(13, 34, 54, .10);
    transform: translate(-50%, -50%);
}

.support-hub-progress-current {
    background: #b77d08;
}

.support-hub-progress-resin {
    background: #d8bd75;
}

.support-hub-progress-final {
    right: 0;
    left: auto;
    background: #f1e5c7;
    transform: translate(50%, -50%);
}

.support-hub-progress-labels {
    position: relative;
    display: grid;
    grid-template-columns: 40% 1fr 1fr;
    margin-top: 11px;
    color: var(--support-muted);
    font-size: .71rem;
    font-weight: 750;
}

.support-hub-progress-labels span:nth-child(1) {
    text-align: left;
}

.support-hub-progress-labels span:nth-child(2) {
    text-align: left;
}

.support-hub-progress-labels span:nth-child(3) {
    text-align: right;
}

.support-hub-funding-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 15px 17px;
    border: 1px solid rgba(13, 34, 54, .07);
    border-radius: 13px;
    background: rgba(13, 34, 54, .025);
}

.support-hub-funding-note > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #71879a;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .8rem;
    font-weight: 700;
}

.support-hub-funding-note p {
    margin: 0;
    color: #607384;
    font-size: .78rem;
    line-height: 1.6;
}

/* ================================================================
   WAYS TO HELP
================================================================ */

.support-hub-ways {
    margin-top: 46px;
}

.support-hub-way-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 23px;
}

.support-hub-way-card {
    display: flex;
    min-height: 285px;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--support-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--support-shadow);
}

.support-hub-way-card h3 {
    margin: 18px 0 10px;
    color: var(--support-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
    font-weight: 600;
}

.support-hub-way-card p {
    margin: 0 0 22px;
    color: var(--support-muted);
    font-size: .84rem;
    line-height: 1.65;
}

.support-hub-mini-btn {
    display: inline-flex;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    padding: 9px 13px;
    border: 1px solid rgba(190, 137, 11, .42);
    border-radius: 9px;
    color: #9a6900;
    font-size: .75rem;
    font-weight: 850;
}

.support-hub-mini-btn:hover {
    background: #fff9e9;
}

.support-hub-mini-btn-gold {
    border-color: #d3a11b;
    background: linear-gradient(135deg, #e0b53c, #c89210);
    color: #102238;
}

.support-hub-mini-btn-gold:hover {
    background: linear-gradient(135deg, #e7bf50, #d19b15);
}

/* ================================================================
   TRANSPARENCY
================================================================ */

.support-hub-transparency {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding: 22px 25px;
    border: 1px solid var(--support-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(13, 34, 54, .05);
}

.support-hub-transparency-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f7e8b6;
    color: #98700e;
    font-size: 1.25rem;
}

.support-hub-transparency h2 {
    margin: 0 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.support-hub-transparency p {
    margin: 0;
    color: var(--support-muted);
    font-size: .81rem;
    line-height: 1.58;
}

.support-hub-transparency a {
    color: #9a6900;
    font-size: .76rem;
    font-weight: 850;
    white-space: nowrap;
}

/* ================================================================
   FINAL CTA
================================================================ */

.support-hub-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    margin-top: 28px;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(215, 165, 31, .19);
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 100%, rgba(215, 165, 31, .14), transparent 28%),
        linear-gradient(135deg, #0d263c 0%, #0a1f31 70%, #203132 100%);
    color: #fff;
    box-shadow: 0 20px 44px rgba(13, 34, 54, .13);
}

.support-hub-final-cta h2 {
    max-width: 790px;
    margin: 8px 0 10px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3.3vw, 3rem);
    font-weight: 500;
    line-height: 1.05;
}

.support-hub-final-cta p:last-child {
    max-width: 720px;
    margin: 0;
    color: #c8d5df;
    font-size: .83rem;
    line-height: 1.6;
}

.support-hub-final-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-hub-signoff {
    margin: 17px 0 0;
    color: #a8790e;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .25em;
    text-align: center;
    text-transform: uppercase;
}

/* ================================================================
   TABLET
================================================================ */

@media (max-width: 980px) {

    .support-hub-page {
        width: min(100% - 28px, 1180px);
        margin-top: 34px;
    }

    .support-hub-hero {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .support-hub-hero h1 {
        font-size: clamp(3rem, 7vw, 4.8rem);
    }

    .support-hub-quote {
        display: none;
    }

    .support-hub-quick-grid {
        grid-template-columns: 1fr;
    }

    .support-hub-quick-card {
        min-height: auto;
    }

    .support-hub-way-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-hub-way-card {
        min-height: 255px;
    }

    .support-hub-final-cta {
        grid-template-columns: 1fr;
    }

    .support-hub-final-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 700px) {

    .support-hub-page {
        width: calc(100% - 20px);
        margin-top: 20px;
        margin-bottom: 44px;
    }

    .support-hub-hero {
        display: block;
        min-height: 0;
        border-radius: 22px;
    }

    .support-hub-hero-copy {
        padding: 30px 22px 226px;
    }

    .support-hub-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4.2rem);
    }

    .support-hub-lead {
        font-size: .92rem;
    }

    .support-hub-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .support-hub-btn {
        width: 100%;
    }

    /*
    |--------------------------------------------------------------------------
    | MOBILE HERO ART
    |--------------------------------------------------------------------------
    |
    | Centre San Nicodemo across the bottom of the hero instead of pinning
    | the image to the right. The fade keeps the image integrated with the
    | navy background and reduces the empty visual space seen on small screens.
    |
    |--------------------------------------------------------------------------
    */

    .support-hub-hero-art {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 220px;
        min-height: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .support-hub-hero-art::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background:
            linear-gradient(
                to bottom,
                #0f2b43 0%,
                rgba(15, 43, 67, .84) 13%,
                rgba(15, 43, 67, .28) 42%,
                transparent 68%
            );
        pointer-events: none;
    }

    .support-hub-saint {
        left: 50%;
        right: auto;
        bottom: -16px;
        width: min(92vw, 355px);
        max-height: 248px;
        object-position: center bottom;
        transform: translateX(-50%);
        opacity: .96;

        -webkit-mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                rgba(0, 0, 0, .58) 14%,
                #000 33%,
                #000 100%
            );

        mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                rgba(0, 0, 0, .58) 14%,
                #000 33%,
                #000 100%
            );
    }

    .support-hub-quick-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .support-hub-funding {
        padding: 24px 17px;
        border-radius: 20px;
    }

    .support-hub-section-head,
    .support-hub-funding-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .support-hub-funding-stats {
        grid-template-columns: 1fr;
    }

    .support-hub-funding-stats article {
        min-height: auto;
    }

    .support-hub-progress-labels {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .support-hub-progress-labels span:nth-child(1),
    .support-hub-progress-labels span:nth-child(2),
    .support-hub-progress-labels span:nth-child(3) {
        text-align: left;
    }

    .support-hub-progress-resin,
    .support-hub-progress-final {
        display: none;
    }

    .support-hub-way-grid {
        grid-template-columns: 1fr;
    }

    .support-hub-way-card {
        min-height: auto;
    }

    .support-hub-transparency {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .support-hub-transparency a {
        grid-column: 2;
    }

    .support-hub-final-actions {
        flex-direction: column;
    }
}

