/* =========================================================
   BARKBUDDY — CHARITIES
   ========================================================= */

.bb-charities {
    background: #050505;
    color: #fff;
    overflow: hidden;
}

.bb-charities-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* HERO
   ========================================================= */

.bb-charities-hero {
    position: relative;
    padding: 25px 0 100px;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(214, 176, 61, 0.12),
            transparent 42%
        ),
        #050505;
}

.bb-charities-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--bb-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.bb-charities-hero h1 {
    max-width: 900px;
    margin: 0 auto 28px;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.bb-charities-hero h1 em {
    display: block;
    color: var(--bb-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.bb-charities-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
    line-height: 1.75;
}


/* PARTNER
   ========================================================= */

.bb-charity-partner {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bb-charity-partner__intro {
    max-width: 900px;
    margin-bottom: 70px;
}

.bb-charity-partner__intro h2 {
    margin: 0 0 25px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
}

.bb-charity-partner__intro h2 span {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.bb-charity-partner__intro p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.08rem;
    line-height: 1.75;
}


/* CONTENT
   ========================================================= */

.bb-charity-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 70px;
    align-items: start;
}

.bb-charity-copy h3 {
    margin: 0 0 25px;
    color: var(--bb-gold);
    font-size: 1.8rem;
}

.bb-charity-copy p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.04rem;
    line-height: 1.8;
}

.bb-charity-quote {
    position: relative;
    padding: 40px;
    background:
        linear-gradient(
            145deg,
            rgba(214, 176, 61, 0.11),
            rgba(255, 255, 255, 0.025)
        );
    border: 1px solid rgba(214, 176, 61, 0.35);
    border-radius: 22px;
}

.bb-charity-quote span {
    position: relative;
    display: block;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bb-charity-quote strong {
    position: relative;
    display: block;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.4;
}


/* BUTTONS
   ========================================================= */

.bb-charity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 55px;
}

.bb-charity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 24px;
    color: #050505;
    background: var(--bb-gold);
    border: 1px solid var(--bb-gold);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.bb-charity-button:hover {
    transform: translateY(-2px);
    background: #e4c35d;
}

.bb-charity-button--secondary {
    color: var(--bb-gold);
    background: transparent;
}

.bb-charity-button--secondary:hover {
    color: #050505;
    background: var(--bb-gold);
}


/* MISSION
   ========================================================= */

.bb-charities-mission {
    padding: 110px 0;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(214, 176, 61, 0.11),
            transparent 45%
        );
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bb-charities-mission h2 {
    max-width: 900px;
    margin: 0 auto 25px;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: 1.05;
}

.bb-charities-mission h2 em {
    color: var(--bb-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.bb-charities-mission p {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.75;
}

.bb-charity-partnership-image {
    width: min(100%, 760px);
    margin: 60px auto 0;
    overflow: hidden;
    border: 1px solid rgba(214, 176, 61, 0.28);
    border-radius: 24px;
    background: #000;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(214, 176, 61, 0.06);
}

.bb-charity-partnership-image img {
    display: block;
    width: 100%;
    height: auto;
}

.bb-partnership-title__bb {
    color: var(--bb-gold);
}

.bb-partnership-title__x {
    color: #ffffff;
}

.bb-partnership-title__oak {
    color: #ff7e43;
}

.bb-charity-copy h3.bb-partnership-title__oak {
    color: #ff7e43;
}


/* MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .bb-charities-container {
        width: min(100% - 28px, 1180px);
    }

    .bb-charities-hero {
        padding: 25px 0 70px;
    }

    .bb-charity-partner {
        padding: 75px 0;
    }

    .bb-charity-partner__intro {
        margin-bottom: 45px;
    }

    .bb-charity-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bb-charity-quote {
        padding: 30px 25px;
    }

    .bb-charity-actions {
        flex-direction: column;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        width: 100%;
        margin: 8px 0 18px;
    }

    .bb-charity-button {
        width: 100%;
    }

    .bb-charities-mission {
        padding: 80px 0;
    }

    .bb-charity-partnership-image {
        margin-top: 40px;
        border-radius: 18px;
    }
}

.bb-home-button--gold .bb-button-arrow {
    color: #0b0b0b;
    border-color: rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.10);
    box-shadow: none;
}

.bb-partnerships__gold {
    color: var(--bb-gold);
}

.bb-charity-quote::before {
    content: "“";
    position: absolute;
    top: -5px;
    left: 10px;
    color: rgba(214, 176, 61, 0.16);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7rem;
    line-height: 1;
    pointer-events: none;
}

.bb-charity-quote span,
.bb-charity-quote strong {
    position: relative;
    z-index: 1;
}

.bb-oak-tree-button {
    color: #212529;
    background: #ff7e43;
    border-color: #ff7e43;
}

.bb-oak-tree-button:hover {
    color: #212529;
    background: #ff7e43;
    border-color: #ff7e43;
}

.bb-oak-tree-button2 {
    color: #ff7e43;
    background: #212529;
    border: 1px solid #ff7e43;
}

.bb-oak-tree-button2:hover {
    color: #212529;
    background: #ff7e43;
    border-color: #ff7e43;
}

/* Dark version for gold buttons */
.bb-home-button > .bb-button-arrow--dark {
    color: #090909;

    border-color: rgba(9, 9, 9, 0.28);

    background: rgba(9, 9, 9, 0.04);
}

/* orange version for gold buttons */
.bb-home-button > .bb-button-arrow--orange {
    color: #ff7e43;

    border-color: rgba(9, 9, 9, 0.28);

    background: rgba(9, 9, 9, 0.04);
}

.bb-partnership-logos {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 8px 0 18px;
}

.bb-partnership-logos img {
    display: block;
    width: auto;
    object-fit: contain;
}

.bb-partnership-logos__barkbuddy {
    height: 72px;
}

.bb-partnership-logos__oaktree {
    height: 82px;
}

.bb-partnership-logos__x {
    color: #fff;
    font-size: 46px;
    font-weight: 300;
    line-height: 1;
}

@media screen and (max-width: 700px) {
    .bb-partnership-logos {
        gap: 14px;
    }

    .bb-partnership-logos__barkbuddy {
        height: 75px;
    }

    .bb-partnership-logos__oaktree {
        height: 75px;
    }

    .bb-partnership-logos__x {
        font-size: 45px;
    }
}

/* =========================================================
   SHARED BUTTON ARROW
   ========================================================= */

.bb-button-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 16px;
    line-height: 1;

    flex-shrink: 0;

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}


.bb-button-arrow--dark {
    border: 1px solid rgba(10, 10, 10, 0.32);

    background: rgba(10, 10, 10, 0.04);

    color: #0a0a0a;
}

/* =========================================================
   TRUE INVERTED GOLD BUTTON
   ========================================================= */

.bb-button--outline-gold {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 0 54px;

    border: 1px solid transparent;
    border-radius: 999px;

    background:
        linear-gradient(#0a0a0a, #0a0a0a) padding-box,
        linear-gradient(135deg, #f1d58d, #d8bb6d) border-box;

    color: #d8bb6d;

    font-weight: 800;
    text-decoration: none;

    transition:
        transform 180ms ease,
        color 180ms ease,
        background 180ms ease;
}


/* Gold gradient text */

.bb-button--outline-gold {
    background:
        linear-gradient(#0a0a0a, #0a0a0a) padding-box,
        linear-gradient(135deg, #f1d58d, #d8bb6d) border-box;
}


/* Arrow */

.bb-button--outline-gold .bb-button-arrow {
    position: absolute;

    right: 9px;
    top: 50%;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid #d8bb6d;
    border-radius: 50%;

    background: transparent;
    color: #d8bb6d;

    transform: translateY(-50%);
}


/* Hover flips back to the normal gold button */

.bb-button--outline-gold:hover {
    background:
        linear-gradient(135deg, #f1d58d, #d8bb6d);

    color: #0a0a0a;

    transform: translateY(-2px);
}


.bb-button--outline-gold:hover .bb-button-arrow {
    border-color: rgba(10, 10, 10, 0.28);

    background: rgba(10, 10, 10, 0.05);

    color: #0a0a0a;
}