/**
 * Homepage-only link-in-bio styles.
 * Scoped under .page--home / .hub--home so other pages are unaffected.
 */

.page--home {
    background: #f4f7fb;
    padding: 20px 16px 32px;
}

.hub--home {
    --home-text: #15233a;
    --home-muted: #5b6b82;
    --home-accent: #3d6ea8;
    --home-border: rgba(21, 35, 58, 0.1);
    --home-shadow: 0 1px 2px rgba(21, 35, 58, 0.04), 0 8px 20px rgba(21, 35, 58, 0.06);
    --home-focus: 0 0 0 3px rgba(61, 110, 168, 0.28);

    background: #ffffff;
    border: 1px solid rgba(21, 35, 58, 0.08);
    border-radius: 24px;
    box-shadow: var(--home-shadow);
    padding: 28px 18px 22px;
    color: var(--home-text);
}

.home-profile {
    text-align: center;
    margin-bottom: 22px;
}

.home-profile__photo-wrap {
    width: 104px;
    height: 104px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    box-shadow:
        0 0 0 1px rgba(21, 35, 58, 0.1),
        0 4px 14px rgba(21, 35, 58, 0.08);
}

.home-profile__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.12);
    transform-origin: center;
}

.home-profile__name {
    margin: 0 0 6px;
    font-size: clamp(1.75rem, 5.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--home-text);
}

.home-profile__role {
    margin: 0 0 12px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--home-muted);
}

.home-profile__statement {
    margin: 0 auto 14px;
    max-width: 22rem;
    font-size: 1.02rem;
    line-height: 1.45;
    color: var(--home-text);
    font-weight: 400;
}

.home-uk {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin: 0;
    padding: 0.28em 0.72em;
    border-radius: 999px;
    background: rgba(61, 110, 168, 0.08);
    border: 1px solid rgba(61, 110, 168, 0.18);
    color: #2f4f78;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.home-uk__flag {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.home-uk__flag svg {
    display: block;
    width: 1.05em;
    height: 0.7em;
    border-radius: 1px;
}

.home-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-card {
    display: grid;
    grid-template-columns: 46px 1fr 16px;
    gap: 12px;
    align-items: start;
    width: 100%;
    min-height: 92px;
    padding: 16px 14px;
    border-radius: 18px;
    border: 1px solid var(--home-border);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--home-shadow);
    -webkit-tap-highlight-color: transparent;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.home-card--sky {
    background: #eef5fc;
}

.home-card--mint {
    background: #eef8f3;
}

.home-card--soft {
    background: #f3f5f9;
}

.home-card--wa {
    background: #eaf8f0;
}

.home-card--wa .home-card__icon {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.22);
}

.home-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(21, 35, 58, 0.08), 0 10px 24px rgba(21, 35, 58, 0.07);
}

.home-card:active {
    transform: translateY(0);
}

.home-card:focus {
    outline: none;
}

.home-card:focus-visible {
    box-shadow: var(--home-shadow), var(--home-focus);
    border-color: rgba(61, 110, 168, 0.45);
}

.home-card.is-disabled {
    opacity: 0.62;
    pointer-events: none;
    cursor: not-allowed;
}

.home-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.72);
    color: var(--home-accent);
    border: 1px solid rgba(61, 110, 168, 0.12);
}

.home-card__icon svg {
    width: 22px;
    height: 22px;
}

.home-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    text-align: left;
}

.home-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--home-text);
    text-transform: uppercase;
}

.home-card__desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--home-muted);
    font-weight: 400;
}

.home-card__chevron {
    color: #8a97a8;
    align-self: center;
}

.home-card__chevron svg {
    width: 16px;
    height: 16px;
}

.home-social {
    margin-top: 22px;
}

.home-social__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.home-social__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--home-border);
    color: var(--home-text);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(21, 35, 58, 0.04);
    transition: transform 140ms ease, border-color 140ms ease;
}

.home-social__btn svg {
    width: 20px;
    height: 20px;
}

.home-social__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(61, 110, 168, 0.28);
    color: var(--home-accent);
}

.home-social__btn:focus {
    outline: none;
}

.home-social__btn:focus-visible {
    box-shadow: var(--home-focus);
}

.home-footer {
    margin-top: 24px;
    text-align: center;
}

.home-footer__tagline {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--home-muted);
}

.home-footer__links {
    margin: 0 0 8px;
    font-size: 0.75rem;
    color: var(--home-muted);
}

.home-footer__links a {
    color: var(--home-muted);
    text-decoration: none;
}

.home-footer__links a:hover,
.home-footer__links a:focus-visible {
    color: var(--home-accent);
    outline: none;
}

.home-footer__dot {
    margin: 0 0.35em;
}

.home-footer__portal {
    display: inline-flex;
    vertical-align: middle;
    opacity: 0.55;
}

.home-footer__portal svg {
    width: 14px;
    height: 14px;
}

.home-footer__copy {
    margin: 0;
    font-size: 0.72rem;
    color: #8a97a8;
}

@media (min-width: 640px) {
    .page--home {
        padding: 36px 24px 48px;
    }

    .hub--home {
        padding: 34px 28px 26px;
    }

    .home-card {
        padding: 18px 16px;
    }

    .home-card__title {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-card,
    .home-social__btn {
        transition: none;
    }

    .home-card:hover,
    .home-social__btn:hover {
        transform: none;
    }
}
