/* ==========================================================================
   Link na Bio — Instagram
   Página standalone mobile-first com identidade Arremate Toguchi
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset e base da página
   -------------------------------------------------------------------------- */
.bio-body {
    margin: 0;
    padding: 0;
    background: #f5f0e8;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--at-ink, #1a1611);
    min-height: 100vh;
}

/* Esconde header/footer do tema caso sejam injetados por plugins */
.bio-body .site-header,
.bio-body .site-footer,
.bio-body #wpadminbar + * > header,
.bio-body > header:not(.bio-header) {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Container principal
   -------------------------------------------------------------------------- */
.bio-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 40px;
    position: relative;
}

/* Fundo decorativo âmbar no topo */
.bio-page::before {
    content: '';
    display: block;
    height: 220px;
    background: linear-gradient(160deg, #c8841a 0%, #a06612 60%, #7a4d0e 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
}

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.bio-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px 28px;
}

.bio-logo-wrap {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #0c0a08;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.15);
}

.bio-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.bio-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.bio-creci {
    font-size: .8rem;
    color: rgba(255,255,255,.85);
    margin: 0 0 16px;
    letter-spacing: .01em;
}

/* Contador ao vivo */
.bio-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 50px;
    padding: 7px 18px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.bio-counter__num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--at-amber, #c8841a);
    line-height: 1;
}

.bio-counter__label {
    font-size: .75rem;
    color: var(--at-ink, #1a1611);
    opacity: .7;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Lista de botões / links
   -------------------------------------------------------------------------- */
.bio-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 20px 0;
}

.bio-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    position: relative;
    overflow: hidden;
    background: #fff;
    color: var(--at-ink, #1a1611);
}

.bio-link:active {
    transform: scale(.97);
}

@media (hover: hover) {
    .bio-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,.14);
        filter: brightness(1.02);
    }
}

/* Ícone */
.bio-link__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ebe0;
}

.bio-link__icon svg {
    width: 18px;
    height: 18px;
}

/* Texto + sub */
.bio-link__text {
    flex: 1;
    display: block;
}

.bio-link__sub {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    opacity: .7;
    margin-top: 1px;
}

/* Badge */
.bio-link__badge {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    background: #e8f0fc;
    color: #2563a8;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.bio-link__badge--new {
    background: #e8f7ee;
    color: #2a7a4a;
}

/* Seta */
.bio-link__arrow {
    flex-shrink: 0;
    font-size: 1.3rem;
    opacity: .35;
    font-weight: 300;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Variantes de cor por tipo
   -------------------------------------------------------------------------- */

/* Primário — Âmbar (encontre seu imóvel) */
.bio-link--primary {
    background: var(--at-amber, #c8841a);
    color: #fff;
}

.bio-link--primary .bio-link__icon {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.bio-link--primary .bio-link__arrow {
    color: rgba(255,255,255,.7);
    opacity: 1;
}

/* Financiamento — Azul */
.bio-link--finance {
    background: #2563a8;
    color: #fff;
}

.bio-link--finance .bio-link__icon {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.bio-link--finance .bio-link__badge {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.bio-link--finance .bio-link__arrow {
    color: rgba(255,255,255,.7);
    opacity: 1;
}

/* Aprove financiamento — Azul claro */
.bio-link--approve {
    border: 2px solid #2563a8;
    color: #2563a8;
}

.bio-link--approve .bio-link__icon {
    background: #e8f0fc;
    color: #2563a8;
}

/* Calculadora — Neutro âmbar */
.bio-link--calc .bio-link__icon {
    background: #fdf3e3;
    color: var(--at-amber, #c8841a);
}

/* Alertas — Âmbar outline */
.bio-link--alert {
    border: 2px solid var(--at-amber, #c8841a);
    color: var(--at-amber-dark, #a06612);
}

.bio-link--alert .bio-link__icon {
    background: #fdf3e3;
    color: var(--at-amber, #c8841a);
}

/* WhatsApp */
.bio-link--whatsapp {
    background: #25d366;
    color: #fff;
}

.bio-link--whatsapp .bio-link__icon {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.bio-link--whatsapp .bio-link__sub {
    color: rgba(255,255,255,.85);
    opacity: 1;
}

.bio-link--whatsapp .bio-link__arrow {
    color: rgba(255,255,255,.7);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Endereço / Google Maps
   -------------------------------------------------------------------------- */
.bio-address {
    position: relative;
    z-index: 1;
    margin: 16px 20px 0;
}

.bio-address__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    color: var(--at-ink, #1a1611);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
}

@media (hover: hover) {
    .bio-address__link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,.12);
    }
}

.bio-address__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #c43d2a;
}

.bio-address__icon svg {
    width: 18px;
    height: 18px;
}

.bio-address__text {
    flex: 1;
    font-size: .85rem;
    line-height: 1.4;
    color: #444;
}

.bio-address__maps {
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 600;
    color: #2563a8;
    white-space: nowrap;
    align-self: center;
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.bio-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 28px 24px 0;
}

.bio-footer__cnpj {
    font-size: .72rem;
    color: #999;
    margin: 0 0 4px;
    letter-spacing: .02em;
}

.bio-footer__copy {
    font-size: .72rem;
    color: #bbb;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Ajustes para telas maiores (desktop) — centraliza visualmente
   -------------------------------------------------------------------------- */
@media (min-width: 520px) {
    .bio-body {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 40px 16px;
        background: #e8e0d4;
    }

    .bio-page {
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 8px 40px rgba(0,0,0,.15);
        background: #f5f0e8;
        width: 100%;
    }

    .bio-page::before {
        border-radius: 24px 24px 0 0;
    }
}
