/* Dark beam footer (layout 11). */
.wise-footer-beam {
    --wfb-bg: #191919;
    --wfb-text: #fff;
    --wfb-muted: #9ca3af;
    --wfb-dim: #6b7280;
    --wfb-gold: var(--brand-primary, #b28b42);
    --wfb-line: rgba(255, 255, 255, 0.1);
    --wfb-soft: rgba(255, 255, 255, 0.05);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--wfb-bg);
    color: var(--wfb-text);
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--wfb-line);
    font-family: var(--wise-font-body, ui-sans-serif, system-ui, sans-serif);
}

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

.wise-footer-beam .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wise-footer-beam__bg,
.wise-footer-beam__lines,
.wise-footer-beam__shimmer {
    pointer-events: none;
}

.wise-footer-beam__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.wise-footer-beam__blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(100px);
    opacity: 0.3;
    animation: wise-footer-blob 7s infinite;
}

.wise-footer-beam__blob--a {
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgb(88 28 135 / 0.2);
}

.wise-footer-beam__blob--b {
    top: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgb(30 58 138 / 0.2);
    animation-delay: 2s;
}

.wise-footer-beam__blob--c {
    bottom: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: rgb(49 46 129 / 0.1);
    animation-delay: 4s;
}

.wise-footer-beam__lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    overflow: hidden;
    opacity: 0.3;
    user-select: none;
}

@media (min-width: 768px) {
    .wise-footer-beam__lines {
        padding: 0 6rem;
    }
}

.wise-footer-beam__line {
    position: relative;
    width: 1px;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.wise-footer-beam__line--sm,
.wise-footer-beam__line--md {
    display: none;
}

@media (min-width: 640px) {
    .wise-footer-beam__line--sm {
        display: block;
    }
}

@media (min-width: 768px) {
    .wise-footer-beam__line--md {
        display: block;
    }
}

.wise-footer-beam__pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8rem;
    opacity: 0.5;
    background: linear-gradient(to bottom, transparent, #fff);
    animation: wise-footer-beam 1.5s linear infinite;
}

.wise-footer-beam__shimmer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.wise-footer-beam__inner {
    position: relative;
    z-index: 2;
    width: min(80rem, calc(100% - 3rem));
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .wise-footer-beam {
        overflow-x: clip;
        padding-left: 0;
        padding-right: 0;
    }

    .wise-footer-beam__inner {
        width: calc(100% - 2rem);
    }

    /* 2×2: Treatments | Explore, Blog | Visit — then legal row below */
    .wise-footer-beam__grid,
    .wise-footer-beam__grid--3,
    .wise-footer-beam__grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1.15rem;
    }

    .wise-footer-beam__col--visit {
        grid-column: auto;
    }
}

.wise-footer-beam__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 5rem;
}

.wise-footer-beam__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--wfb-text);
    line-height: 0;
}

.wise-footer-beam__logo img,
.wise-footer-beam__logo .custom-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 12rem;
    object-fit: contain;
}

.wise-footer-beam__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #191919;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.wise-footer-beam__name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.wise-footer-beam__tagline {
    margin: 0;
    max-width: 28rem;
    color: var(--wfb-muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.wise-footer-beam__socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.wise-footer-beam__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--wfb-line);
    background: var(--wfb-soft);
    color: var(--wfb-muted);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.wise-footer-beam__social svg {
    width: 0.95rem;
    height: 0.95rem;
}

.wise-footer-beam__social:hover,
.wise-footer-beam__social:focus-visible {
    background: #fff;
    color: #191919;
    transform: translateY(-4px);
}

.wise-footer-beam__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 2rem 1.5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--wfb-line);
}

.wise-footer-beam__col {
    min-width: 0;
}

@media (min-width: 768px) {
    .wise-footer-beam__grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .wise-footer-beam__grid--4 {
        /* Treatments (2-col list) | Explore | Blog | Visit */
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(0, 0.78fr)
            minmax(0, 1.2fr)
            minmax(0, 0.9fr);
        gap: 0;
    }

    .wise-footer-beam__grid--3 > .wise-footer-beam__col,
    .wise-footer-beam__grid--4 > .wise-footer-beam__col {
        padding: 0 1.35rem;
        border-left: 1px solid rgba(255, 255, 255, 0.14);
    }

    .wise-footer-beam__grid--3 > .wise-footer-beam__col:first-child,
    .wise-footer-beam__grid--4 > .wise-footer-beam__col:first-child {
        padding-left: 0;
        border-left: none;
    }

    .wise-footer-beam__grid--3 > .wise-footer-beam__col:last-child,
    .wise-footer-beam__grid--4 > .wise-footer-beam__col:last-child {
        padding-right: 0;
    }
}

@media (min-width: 1024px) {
    .wise-footer-beam__grid--3 > .wise-footer-beam__col,
    .wise-footer-beam__grid--4 > .wise-footer-beam__col {
        padding: 0 1.75rem;
    }
}

.wise-footer-beam__heading {
    margin: 0 0 1.15rem;
    color: var(--wfb-text);
    font-size: 1rem;
    font-weight: 700;
}

.wise-footer-beam__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.wise-footer-beam__col--treatments .wise-footer-beam__list {
    gap: 0.62rem;
}

@media (min-width: 1024px) {
    /* Split long treatment lists into two short columns so heights match siblings */
    .wise-footer-beam__col--treatments .wise-footer-beam__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.85rem;
        row-gap: 0.55rem;
    }

    .wise-footer-beam__col--treatments .wise-footer-beam__list a {
        font-size: 0.9375rem;
        line-height: 1.35;
    }
}

.wise-footer-beam__col--explore .wise-footer-beam__list {
    gap: 0.75rem;
}

/* Explore clinic socials: same text menu typography as other footer links. */
.wise-footer-beam__col--explore .wise-footer-beam__list--socials {
    margin-top: 0.75rem;
    gap: 0.75rem;
}

.wise-footer-beam__list a,
.wise-footer-beam__plain {
    color: var(--wfb-muted);
    transition: color 0.2s ease;
}

.wise-footer-beam__list a:hover,
.wise-footer-beam__list a:focus-visible {
    color: var(--wfb-gold);
}

.wise-footer-beam__col--visit .wise-footer-beam__list {
    gap: 0.8rem;
}

.wise-footer-beam__col--visit .wise-footer-beam__list a,
.wise-footer-beam__col--visit .wise-footer-beam__plain {
    display: inline-block;
    max-width: 100%;
    line-height: 1.45;
    font-size: 0.9375rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.wise-footer-beam__col--visit {
    min-width: 0;
    max-width: 100%;
}

.wise-footer-beam__col--visit .wise-footer-beam__list {
    min-width: 0;
}

.wise-footer-beam__freshness {
    margin: 0.35rem 0 0;
    color: var(--wfb-dim);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.wise-footer-beam__col--blog {
    display: flex;
    flex-direction: column;
}

.wise-footer-beam__blog {
    display: block;
    margin-bottom: 0.7rem;
}

.wise-footer-beam__blog:last-child {
    margin-bottom: 0;
}

.wise-footer-beam__blog-title {
    margin: 0;
    color: var(--wfb-muted);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.wise-footer-beam__list a {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.45;
}

/* Force parity with Treatments/Explore link text (beat h5 / theme defaults) */
.wise-footer-beam__col--blog .wise-footer-beam__blog-title,
.wise-footer-beam h5.wise-footer-beam__blog-title {
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .wise-footer-beam__blog-title {
        -webkit-line-clamp: 1;
        max-height: 1.35em;
    }
}

.wise-footer-beam__blog:hover .wise-footer-beam__blog-title,
.wise-footer-beam__blog:focus-visible .wise-footer-beam__blog-title {
    color: var(--wfb-gold);
}

.wise-footer-beam__meta {
    display: block;
    margin-top: 0.15rem;
    color: #6b7280;
    font-size: 0.6875rem;
    letter-spacing: 0.01em;
}

.wise-footer-beam__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wfb-line);
    text-align: center;
}

@media (min-width: 768px) {
    .wise-footer-beam__bottom {
        flex-direction: row;
        text-align: left;
    }
}

.wise-footer-beam__copy {
    margin: 0;
    color: var(--wfb-dim);
    font-size: 0.875rem;
}

.wise-footer-beam__legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wise-footer-beam__legal a {
    color: var(--wfb-dim);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.wise-footer-beam__legal a:hover,
.wise-footer-beam__legal a:focus-visible {
    color: var(--wfb-gold);
}

@keyframes wise-footer-beam {
    0% {
        top: -20%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes wise-footer-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wise-footer-beam__blob {
        animation: none;
    }

    .wise-footer-beam__pulse {
        animation: none;
        display: none;
    }

    .wise-footer-beam__social {
        transition: none;
    }
}
