/* ===========================================================================
   Mindspace - site footer

   One pass, no override block. Everything below is declared once: the earlier
   "premium refresh" section that re-stated half this file has been folded in,
   so a value you read here is the value that ships.

   Columns: brand -> quick links -> top services -> contact -> newsletter.
   Below 1320px they fold to three, then two, then one.
   ========================================================================== */

.mindspace-footer {
    --footer-font: "Satoshi", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --footer-gold: #e8aa5f;
    --footer-ink: rgba(245, 242, 234, 0.72);
    --footer-ink-strong: #fff8ec;
    --footer-line: rgba(245, 242, 234, 0.12);
    --footer-max: 1520px;

    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: clamp(58px, 6.5vw, 88px) clamp(22px, 4.4vw, 76px) 0;
    border-top: 1px solid rgba(231, 168, 94, 0.34);
    color: var(--footer-ink);
    font-family: var(--footer-font);
    background:
        radial-gradient(ellipse at 15% 0%, rgba(231, 168, 94, 0.13), transparent 34%),
        radial-gradient(ellipse at 84% 18%, rgba(180, 106, 60, 0.15), transparent 32%),
        linear-gradient(135deg, #090a0a 0%, #11110f 48%, #050606 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 248, 236, 0.05),
        0 -34px 92px rgba(0, 0, 0, 0.34);
}

.mindspace-footer *,
.mindspace-footer *::before,
.mindspace-footer *::after {
    box-sizing: border-box;
    min-width: 0;
}

/* Faint grid wash behind the content. */
.mindspace-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.76;
    background:
        linear-gradient(90deg, rgba(245, 242, 234, 0.024) 1px, transparent 1px),
        linear-gradient(180deg, rgba(245, 242, 234, 0.018) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.78) 42%, transparent 92%);
}

/* Hairline of light along the top edge. */
.mindspace-footer::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(242, 195, 108, 0.7), rgba(245, 242, 234, 0.28), rgba(212, 145, 77, 0.72), transparent);
    box-shadow: 0 0 42px rgba(231, 168, 94, 0.2);
}

.mindspace-footer a {
    color: inherit;
    text-decoration: none;
}

.mindspace-footer a:focus-visible,
.mindspace-footer button:focus-visible,
.mindspace-footer input:focus-visible {
    outline: 2px solid rgba(242, 195, 108, 0.8);
    outline-offset: 3px;
    border-radius: 4px;
}

.mindspace-footer svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- layout -------------------------------------------------------- */

.mindspace-footer__grid,
.mindspace-footer__bottom {
    position: relative;
    z-index: 1;
    width: min(100%, var(--footer-max));
    margin-inline: auto;
}

.mindspace-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.3fr)
        minmax(140px, 0.62fr)
        minmax(210px, 0.92fr)
        minmax(230px, 0.9fr)
        minmax(240px, 0.86fr);
    gap: clamp(24px, 2.2vw, 46px);
    align-items: start;
    padding-bottom: clamp(36px, 4.4vw, 58px);
}

/* ---------- section headings ---------------------------------------------- */

.mindspace-footer h2 {
    position: relative;
    margin: 0 0 24px;
    color: var(--footer-ink-strong);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.mindspace-footer h2::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--footer-gold), rgba(232, 170, 95, 0));
}

/* ---------- brand --------------------------------------------------------- */

.mindspace-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.mindspace-footer__monogram {
    display: block;
    width: 70px;
    height: 70px;
    padding: 11px;
    object-fit: contain;
    border: 2px solid rgba(231, 168, 94, 0.52);
    border-radius: 24px 4px 24px 4px;
    background:
        linear-gradient(135deg, rgba(245, 242, 234, 0.08), rgba(231, 168, 94, 0.03)),
        rgba(12, 12, 11, 0.76);
    box-shadow:
        inset 0 1px 0 rgba(255, 248, 236, 0.12),
        0 18px 48px rgba(0, 0, 0, 0.34),
        0 0 32px rgba(231, 168, 94, 0.12);
}

.mindspace-footer__logo strong {
    display: block;
    color: var(--footer-ink-strong);
    font-size: clamp(1.7rem, 2vw, 2.18rem);
    font-weight: 500;
    line-height: 1.05;
}

.mindspace-footer__logo small {
    display: block;
    margin-top: 9px;
    color: rgba(245, 242, 234, 0.8);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mindspace-footer__brand p,
.mindspace-footer__newsletter p {
    margin: 0;
    max-width: 360px;
    color: var(--footer-ink);
    font-size: clamp(0.92rem, 0.9vw, 1.02rem);
    line-height: 1.85;
}

/* ---------- socials ------------------------------------------------------- */

.mindspace-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.mindspace-footer__social {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(245, 242, 234, 0.14);
    border-radius: 50%;
    background: rgba(245, 242, 234, 0.035);
    color: rgba(255, 250, 240, 0.92);
    box-shadow: inset 0 1px 0 rgba(245, 242, 234, 0.06);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.mindspace-footer__social svg {
    width: 20px;
    height: 20px;
}

/* Fill vs stroke is set here rather than on the markup: the `.mindspace-footer
   svg` rule above beats an SVG presentation attribute, so inline fill="..."
   would be ignored. Facebook and LinkedIn are solid glyphs; Instagram is drawn
   as an outline with one filled dot. */
.mindspace-footer__social--facebook svg,
.mindspace-footer__social--linkedin svg {
    fill: currentColor;
    stroke: none;
}

.mindspace-footer__social--instagram svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.mindspace-footer__social-dot {
    fill: currentColor;
    stroke: none;
}

.mindspace-footer__social:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 170, 95, 0.52);
    color: #11100e;
    background: linear-gradient(135deg, #f2c36c, #d4914d);
    box-shadow: 0 16px 34px rgba(212, 145, 77, 0.2);
}

/* ---------- link columns -------------------------------------------------- */

.mindspace-footer__column {
    display: grid;
    gap: 14px;
    align-content: start;
}

.mindspace-footer__column a {
    position: relative;
    width: max-content;
    max-width: 100%;
    padding-block: 2px;
    color: var(--footer-ink);
    font-size: clamp(0.9rem, 0.86vw, 0.98rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
    transition: color 200ms ease, transform 200ms ease;
}

.mindspace-footer__column a::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 1px;
    background: rgba(232, 170, 95, 0.58);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.mindspace-footer__column a:hover {
    color: var(--footer-gold);
    transform: translateX(4px);
}

.mindspace-footer__column a:hover::before {
    transform: scaleX(1);
}

/* ---------- contact ------------------------------------------------------- */

.mindspace-footer__contact a,
.mindspace-footer__contact p {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    margin: 0 0 14px;
    color: var(--footer-ink);
    font-size: clamp(0.9rem, 0.86vw, 0.98rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mindspace-footer__contact a {
    transition: color 200ms ease, transform 200ms ease;
}

.mindspace-footer__contact a:hover {
    color: var(--footer-gold);
    transform: translateX(4px);
}

.mindspace-footer__email span {
    /* Only break at the explicit <wbr> after "@" so the domain stays intact. */
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(0.84rem, 0.8vw, 0.94rem);
}

.mindspace-footer__contact svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    border: 1px solid rgba(232, 170, 95, 0.22);
    border-radius: 50%;
    background: rgba(232, 170, 95, 0.06);
    color: var(--footer-gold);
}

/* ---------- newsletter ---------------------------------------------------- */

.mindspace-footer__newsletter p {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: 0.94rem;
    line-height: 1.65;
}

.mindspace-footer__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(232, 170, 95, 0.28);
    border-radius: 999px;
    background: rgba(5, 6, 6, 0.72);
    box-shadow: inset 0 1px 0 rgba(245, 242, 234, 0.04);
}

.mindspace-footer__form:focus-within {
    border-color: rgba(242, 195, 108, 0.68);
    box-shadow:
        inset 0 1px 0 rgba(245, 242, 234, 0.06),
        0 0 0 4px rgba(232, 170, 95, 0.08);
}

.mindspace-footer__form input {
    width: 100%;
    padding: 0 12px 0 15px;
    border: 0;
    outline: 0;
    color: var(--footer-ink-strong);
    font: inherit;
    font-size: 0.92rem;
    background: transparent;
    text-overflow: ellipsis;
}

.mindspace-footer__form input::placeholder {
    color: rgba(245, 242, 234, 0.36);
}

/* ---------- round gold buttons (subscribe + back to top) ------------------ */

.mindspace-footer__form button,
.mindspace-footer__top {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #10100f;
    background: linear-gradient(135deg, #f2c36c, #d4914d);
    box-shadow: 0 14px 34px rgba(212, 145, 77, 0.22);
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.mindspace-footer__top {
    width: 48px;
    height: 48px;
    flex: none;
}

.mindspace-footer__form button:hover,
.mindspace-footer__top:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(212, 145, 77, 0.32);
}

.mindspace-footer__form button svg,
.mindspace-footer__top svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

/* ---------- bottom bar ---------------------------------------------------- */

.mindspace-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
    border-top: 1px solid var(--footer-line);
}

.mindspace-footer__bottom p {
    margin: 0;
    color: rgba(245, 242, 234, 0.56);
    font-size: clamp(0.86rem, 0.82vw, 0.94rem);
}

/* ---------- responsive ---------------------------------------------------- */

/* The brand takes the full width and the four remaining columns share the row
   below it, rather than the brand squeezing them all onto one line. */
@media (max-width: 1320px) {
    .mindspace-footer__grid {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
    }

    .mindspace-footer__brand {
        grid-column: 1 / -1;
    }

    .mindspace-footer__brand p {
        max-width: 620px;
    }
}

@media (max-width: 860px) {
    .mindspace-footer {
        padding-top: 48px;
        padding-inline: 22px;
    }

    .mindspace-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 28px;
    }

    .mindspace-footer__brand,
    .mindspace-footer__contact,
    .mindspace-footer__newsletter {
        grid-column: 1 / -1;
    }

    .mindspace-footer__bottom {
        min-height: auto;
        padding-block: 22px;
    }
}

@media (max-width: 560px) {
    .mindspace-footer {
        padding-inline: 18px;
    }

    .mindspace-footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .mindspace-footer__logo {
        gap: 14px;
        align-items: flex-start;
    }

    .mindspace-footer__monogram {
        width: 60px;
        height: 60px;
        border-radius: 20px 4px 20px 4px;
    }

    .mindspace-footer__brand p,
    .mindspace-footer__newsletter p {
        font-size: 0.96rem;
    }

    .mindspace-footer__social {
        width: 44px;
        height: 44px;
    }

    .mindspace-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mindspace-footer *,
    .mindspace-footer *::before {
        transition: none !important;
    }
}

/* Shared visually-hidden utility. Declared here because the footer ships on
   every public page, including ones whose stylesheet does not define it. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
