/* Brand Footer — Cake Club cream footer */

.cc-brand-footer {
    --cc-bf-red: #FF0000;
    --cc-bf-cream: #F5F4EC;
    --cc-bf-blue: #C0DBE4;
    --cc-bf-navy: #384A78;
    --cc-bf-heading: 'Mindset', sans-serif;
    --cc-bf-body: 'PTMonoWebRegular', 'PT Mono', 'Courier New', monospace;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--cc-bf-cream);
    color: var(--cc-bf-navy);
    font-family: var(--cc-bf-body);
}

.cc-brand-footer *,
.cc-brand-footer *::before,
.cc-brand-footer *::after {
    box-sizing: border-box;
}

/* —— Back to top strip —— */
.cc-brand-footer__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 12px 24px;
    background: var(--cc-bf-red);
    color: #fff;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--cc-bf-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease;
}

.cc-brand-footer__top:hover,
.cc-brand-footer__top:focus-visible {
    background: var(--cc-bf-navy);
}

.cc-brand-footer__top svg {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.cc-brand-footer__top:hover svg,
.cc-brand-footer__top:focus-visible svg {
    transform: translateY(-2px);
}

.cc-brand-footer__top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* —— Announcement bar ——
   Navy rather than red so it reads as its own band beneath the red
   Back to Top strip (white on #FF0000 is ~4:1, below AA for small text;
   cream on navy is ~8.5:1). Items are divided by thin rules. */
.cc-brand-footer__announce {
    background: var(--cc-bf-navy);
    color: var(--cc-bf-cream);
}

.cc-brand-footer__announce-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 0;
    text-align: center;
}

.cc-brand-footer__announce-item {
    padding: 0 12px;
    font-family: var(--cc-bf-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* 2-up grid on mobile: a rule between the two columns of each row. */
.cc-brand-footer__announce-item:nth-child(even) {
    border-left: 1px solid rgba(245, 244, 236, 0.3);
}

.cc-brand-footer__announce-item a {
    color: inherit;
    text-decoration: none;
}

.cc-brand-footer__announce-item a:hover {
    text-decoration: underline;
}

/* —— Main content —— */
.cc-brand-footer__main {
    background: var(--cc-bf-cream);
}

.cc-brand-footer__main-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 36px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.cc-brand-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.cc-brand-footer__logo {
    display: inline-block;
    line-height: 0;
}

.cc-brand-footer__logo img {
    display: block;
    max-width: 110px;
    width: 100%;
    height: auto;
}

.cc-brand-footer__logo-text {
    font-family: var(--cc-bf-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--cc-bf-red);
    text-decoration: none;
    text-transform: uppercase;
}

.cc-brand-footer__tagline {
    margin: 0;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--cc-bf-navy);
}

.cc-brand-footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.cc-brand-footer__social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--cc-bf-red);
    border-radius: 999px;
    color: var(--cc-bf-red);
    text-decoration: none;
    font-family: var(--cc-bf-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cc-brand-footer__social-btn svg {
    flex-shrink: 0;
}

.cc-brand-footer__social-btn:hover {
    background: var(--cc-bf-red);
    color: #fff;
}

/* On mobile: first button full pill, others icon-only circles */
.cc-brand-footer__social-btn:not(:first-child) .cc-brand-footer__social-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cc-brand-footer__social-btn:not(:first-child) {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* —— Columns —— */
.cc-brand-footer__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
}

.cc-brand-footer__col--hello {
    grid-column: 1 / -1;
}

.cc-brand-footer__heading {
    margin: 0 0 14px;
    font-family: var(--cc-bf-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cc-bf-red);
    line-height: 1.2;
}

.cc-brand-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cc-brand-footer__links li {
    margin: 0 0 10px;
    padding: 0;
}

.cc-brand-footer__links li:last-child {
    margin-bottom: 0;
}

.cc-brand-footer__links a,
.cc-brand-footer__links span {
    font-size: 14px;
    line-height: 1.4;
    color: var(--cc-bf-navy);
    text-decoration: none;
}

.cc-brand-footer__links a:hover {
    text-decoration: underline;
}

.cc-brand-footer__contact {
    margin-bottom: 14px;
}

.cc-brand-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cc-brand-footer__contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-top: 3px;
    color: var(--cc-bf-navy);
}

.cc-brand-footer__contact-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.cc-brand-footer__address {
    display: inline-block;
    max-width: 260px;
}

/* —— Trust bar —— */
.cc-brand-footer__trust {
    background: var(--cc-bf-blue);
}

.cc-brand-footer__trust-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.cc-brand-footer__trust-text {
    margin: 0;
    font-family: var(--cc-bf-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--cc-bf-navy);
    line-height: 1.35;
}

.cc-brand-footer__copyright {
    margin: 0;
    font-size: 12px;
    color: var(--cc-bf-navy);
    line-height: 1.4;
}

/* —— Tablet (834px+) —— */
@media (min-width: 768px) {
    .cc-brand-footer__top {
        font-size: 13px;
        padding: 12px 32px;
    }

    .cc-brand-footer__announce-inner {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        gap: 0;
        padding: 16px 32px;
    }

    .cc-brand-footer__announce-item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 16px;
        font-size: 15px;
        text-align: center;
    }

    /* Single row: a rule between every item. */
    .cc-brand-footer__announce-item:nth-child(even) {
        border-left: 0;
    }

    .cc-brand-footer__announce-item + .cc-brand-footer__announce-item {
        border-left: 1px solid rgba(245, 244, 236, 0.3);
    }

    .cc-brand-footer__main-inner {
        padding: 48px 32px 40px;
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .cc-brand-footer__brand {
        flex: 0 0 280px;
        align-items: flex-start;
        text-align: left;
    }

    .cc-brand-footer__tagline {
        max-width: 240px;
    }

    .cc-brand-footer__social {
        justify-content: flex-start;
    }

    /* All social buttons show labels on tablet+ */
    .cc-brand-footer__social-btn:not(:first-child) {
        width: auto;
        height: auto;
        padding: 8px 16px;
        border-radius: 999px;
    }

    .cc-brand-footer__social-btn:not(:first-child) .cc-brand-footer__social-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .cc-brand-footer__columns {
        flex: 1 1 auto;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .cc-brand-footer__col--hello {
        grid-column: auto;
    }

    .cc-brand-footer__trust-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 14px 32px;
        gap: 24px;
    }

    .cc-brand-footer__trust-text {
        font-size: 14px;
        flex: 1 1 auto;
    }

    .cc-brand-footer__copyright {
        flex: 0 0 auto;
        text-align: right;
        white-space: nowrap;
    }
}

/* —— Desktop —— */
@media (min-width: 1024px) {
    .cc-brand-footer__top {
        font-size: 14px;
        padding: 14px 40px;
    }

    .cc-brand-footer__announce-inner {
        padding: 18px 40px;
    }

    .cc-brand-footer__announce-item {
        padding: 0 24px;
        white-space: nowrap;
    }

    .cc-brand-footer__main-inner {
        padding: 56px 40px 48px;
        gap: 56px;
    }

    .cc-brand-footer__brand {
        flex: 0 0 300px;
    }

    .cc-brand-footer__logo img {
        max-width: 130px;
    }

    .cc-brand-footer__heading {
        font-size: 20px;
    }

    .cc-brand-footer__trust-inner {
        padding-left: 40px;
        padding-right: 40px;
    }
}
