/* ============================================================================
   platform.css — o que o tema original não traz
   --------------------------------------------------------------------------
   Rodapé (o mesmo do boodbe.io), mapa-mundo, lista de clientes e aviso de
   cookies. O desenho das páginas está em site.css. As cores --brand,
   --accent, --black, --white e --office são injectadas a partir do .env.
   ========================================================================== */

.brand-dot { color: var(--brand); font-weight: 700; }

/* O formulário esconde um campo que só os robôs preenchem. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* A última linha do rodapé é fixa. Reserva-se a altura medida por footer-bar.js. */
body { padding-bottom: var(--footer-bar-h, 48px); }

.bb-icon { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.15em; }
.bb-icon-sm { width: .95em; height: .95em; }

/* Idioma, no menu original */
.nav-lang {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-inline: .6rem;
}
.nav-lang a {
    font-size: 11px;
    letter-spacing: .14em;
    opacity: .45;
}
.nav-lang a[aria-current="true"] { opacity: 1; }

/* --------------------------------------------------------------------------
   Rodapé. Fica sempre escuro, também com o ambiente claro.
   -------------------------------------------------------------------------- */
.site-footer {
    --bg: var(--black);
    --text: var(--white);
    --muted: rgb(255 255 255 / .62);
    --line: rgb(255 255 255 / .10);
    --brand-soft: var(--brand);
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 110px) 0 32px;
    background: var(--bg);
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.35;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-glow {
    position: absolute;
    left: 50%;
    top: -260px;
    width: 900px;
    height: 500px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgb(131 197 200 / .35), transparent);
    pointer-events: none;
}
.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 2.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
}
.footer-logo img { width: 180px; height: auto; }
.footer-logo-on-light { display: none; }
.footer-logo-on-dark { display: inline; }
.footer-brand .p { max-width: 32ch; margin: .4rem 0 0; }
.footer-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 22px; }
.footer-seals { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.footer-seals > img { height: 76px; width: auto; border-radius: 8px; }
.footer-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
    color: var(--brand-soft);
}
.badge-pill--accent { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.carbon-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 8px 14px 8px 8px;
    border-radius: 12px;
    background: rgb(255 255 255 / .04);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}
.carbon-rating {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #3FB950;
    color: #0B0F10;
    font-size: 17px;
    font-weight: 700;
}
.carbon-body { display: flex; flex-direction: column; gap: 3px; }
.carbon-body strong { color: var(--text); font-size: 15px; }
.carbon-body strong small { font-size: 11px; font-weight: 400; color: var(--muted); }
.carbon-body em { font-style: normal; color: var(--brand-soft); }
.footer-col h3 {
    margin: 0 0 1rem;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-soft);
}
.footer-col .footer-sub { margin-top: 1.8rem; }
.footer-col li { margin-bottom: .25rem; }
.footer-col a { position: relative; }
.footer-col a:hover { color: var(--text); }
.footer-empty { margin: 0; }
.social-list { display: flex; gap: 10px; }
.social-list a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
}
.social-list a:hover { background: var(--brand); color: var(--black); border-color: var(--brand); }
.footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: color-mix(in srgb, var(--black) 88%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgb(255 255 255 / .10);
    color: rgb(255 255 255 / .62);
    padding-bottom: env(safe-area-inset-bottom);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    padding-block: 10px;
    font-size: .75rem;
}
.copyright { margin: 0; }
.copyright a, .footer-bar a { color: #fff; }
.copyright a:hover { color: var(--brand); }
.copyright-icon { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin: 0 .15em; }
.footer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-tools .sep { opacity: .35; }
.link-btn, .theme-switch button { color: inherit; }
.link-btn:hover, .theme-switch button:hover { color: #fff; }
.theme-switch { display: inline-flex; align-items: center; gap: 6px; }
.theme-switch button[aria-pressed="true"] { color: var(--brand); font-weight: 600; }
.version { color: var(--brand); }
.to-top {
    position: fixed;
    right: 22px;
    bottom: calc(var(--footer-bar-h, 44px) + 16px);
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--black);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .35s, transform .45s;
}
.to-top .bb-icon { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--black); }

@media (min-width: 961px) {
    .footer-col { text-align: right; justify-self: end; }
    .footer-col .social-list { justify-content: flex-end; }
}
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-seals > img, .carbon-badge { height: auto; min-height: 64px; }
}

/* --------------------------------------------------------------------------
   Mapa. Vive dentro da secção escura original.
   -------------------------------------------------------------------------- */
.bb-presence { padding-bottom: 28px; }
.world-map {
    position: relative;
    width: 100%;
    aspect-ratio: 450 / 178;
    border-radius: 16px;
    overflow: hidden;
    background: rgb(11 15 16 / .45);
}
.world-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-pins { position: absolute; inset: 0; }
.world-pin {
    --c: var(--brand);
    position: absolute;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: var(--c);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent), 0 0 12px var(--c);
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: opacity .4s, transform .6s;
    transition-delay: calc(var(--i) * 60ms);
}
.world-map.is-visible .world-pin { opacity: 1; transform: scale(1); }
.world-pin::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--c);
    opacity: 0;
    animation: pin-pulse 2.8s ease-out infinite;
    animation-delay: calc(var(--i) * 170ms);
}
.world-pin:hover, .world-pin:focus-visible { transform: scale(1.7); z-index: 2; }
.world-pin--hq { --c: var(--accent); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.world-pin--office { --c: var(--office); }
.world-pin--client { --c: var(--brand); }
.world-pin--solution { --c: #fff; }
.world-tooltip {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    padding: 10px 14px;
    border-radius: 12px;
    min-width: 140px;
    background: rgb(20 26 28 / .92);
    border: 1px solid rgb(255 255 255 / .12);
    font-size: .75rem;
    line-height: 1.4;
    color: rgb(255 255 255 / .7);
    opacity: 0;
    transform: translate(-50%, calc(-100% - 14px));
}
.world-tooltip.is-visible { opacity: 1; }
.world-tooltip strong { display: block; color: #fff; font-size: .875rem; }
.world-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgb(255 255 255 / .12);
}
.world-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.world-legend li { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.legend-dot--hq { background: var(--accent); }
.legend-dot--office { background: var(--office); }
.legend-dot--solution { background: #fff; }
.world-stats { display: flex; gap: 32px; }
.world-stats .p { margin: 0; font-size: .875rem; }
.world-stats strong { font-size: 1.6rem; color: #fff; margin-right: .25em; }

/* --------------------------------------------------------------------------
   Clientes — quatro faixas, os logótipos do boodbe.io.
   -------------------------------------------------------------------------- */
.client-marquee {
    display: grid;
    gap: 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-row { overflow: hidden; }
.client-track {
    display: flex;
    width: max-content;
    animation: marquee-third 42s linear infinite;
}
.client-row--reverse .client-track { animation-direction: reverse; animation-duration: 48s; }
.client-row:nth-child(3) .client-track { animation-duration: 54s; }
.client-row:nth-child(4) .client-track { animation-duration: 60s; }
.client-row:hover .client-track { animation-play-state: paused; }
.client-logo {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: clamp(132px, 12vw, 170px);
    aspect-ratio: 5 / 3;
    margin-right: 8px;
    padding: 8px 16px;
}
.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .72;
    transition: opacity .3s;
}
.client-logo:hover img { opacity: 1; }

/* --------------------------------------------------------------------------
   Cookies e documentos legais
   -------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: calc(var(--footer-bar-h, 44px) + 16px);
    z-index: 200;
    width: min(420px, calc(100vw - 40px));
    padding: 22px;
    background: var(--black);
    color: rgb(255 255 255 / .72);
    border: 1px solid rgb(255 255 255 / .12);
    border-radius: 18px;
    box-shadow: 0 24px 50px -20px rgb(0 0 0 / .45);
    font-size: .875rem;
}
html[data-theme="light"] .cookie-banner {
    background: #fff;
    color: #3d4547;
    border-color: rgb(11 15 16 / .1);
}
.cookie-banner[hidden] { display: none; }
.cookie-head { display: flex; align-items: center; gap: 12px; margin-bottom: .6rem; }
.cookie-head h2 { margin: 0; font-size: 1.05rem; color: #fff; }
html[data-theme="light"] .cookie-head h2 { color: var(--black); }
.cookie-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgb(254 148 126 / .16);
    color: var(--accent);
}
.cookie-banner a { color: var(--brand); }
.cookie-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.bb-btn {
    border: 1px solid rgb(255 255 255 / .2);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: .45rem .9rem;
    cursor: pointer;
}
html[data-theme="light"] .bb-btn { border-color: rgb(11 15 16 / .16); }
.bb-btn-primary { background: var(--brand); border-color: var(--brand); color: var(--black); font-weight: 600; }

.legal-content { line-height: 1.7; color: var(--ink, #f4f7f6); }
.legal-content h2 { font-size: 1.3rem; font-weight: 500; margin-top: 2.2rem; border-bottom: 1px solid var(--line, rgb(255 255 255 / .12)); padding-bottom: .3rem; }
.legal-content h3 { font-size: 1.05rem; font-weight: 500; margin-top: 1.6rem; }
.legal-content .meta, .legal-content .note { color: var(--muted, #a8b4b4); }
.legal-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.legal-content th, .legal-content td { border: 1px solid var(--line, #ddd); padding: .5rem .75rem; text-align: left; vertical-align: top; }
.legal-content th { background: var(--bg-2, #161d1e); }
.legal-content a { color: var(--brand-ink, var(--brand)); }

@keyframes marquee-third { to { transform: translateX(-33.3333%); } }
@keyframes pin-pulse {
    0% { transform: scale(.4); opacity: .9; }
    70%, 100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .client-track, .world-pin::after { animation: none; }
    .world-pin { opacity: 1; transform: none; }
}
