/* =============================================================
   ROLLIN HOST — Footer v2 (compartilhado entre sitev2 e WHMCS)
   Footer marketing 6 colunas com brand row + grid + paybar + legal.
   Variáveis (--rh-cyan, --rh-purple, --transition-fast) vêm do
   rollin-theme.css que carrega antes deste arquivo.
   ============================================================= */

.rh-footer-v2 {
    margin-top: 96px;
    background: #07000f;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 0;
    flex-shrink: 0;
    width: 100%;
}

.rh-footer-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
}

.rh-footer-v2-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 64px 24px 32px;
    position: relative;
    z-index: 1;
}

.rh-footer-v2-brand-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Logo footer — 44px pra dar mais presença visual sem virar agressivo. */
.rh-footer-v2-brand img {
    margin-bottom: 24px;
    height: 44px;
    width: auto;
    object-fit: contain;
    /* display controlado pelos seletores .rh-logo-light/.rh-logo-dark abaixo */
}
/* Logo show/hide por tema — !important pra vencer regras genéricas de img */
.rh-footer-v2-brand .rh-logo-light { display: none !important; }
.rh-footer-v2-brand .rh-logo-dark  { display: block !important; }
[data-theme="light"] .rh-footer-v2-brand .rh-logo-light,
html[data-theme="light"] .rh-footer-v2-brand .rh-logo-light { display: block !important; }
[data-theme="light"] .rh-footer-v2-brand .rh-logo-dark,
html[data-theme="light"] .rh-footer-v2-brand .rh-logo-dark  { display: none !important; }

.rh-footer-v2-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.65;
    max-width: 480px;
    margin: 0 0 22px;
}

.rh-footer-v2-brand p strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.rh-footer-v2-social {
    display: flex;
    gap: 8px;
}

.rh-footer-v2-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 160ms ease;
}
.rh-footer-v2-social-icon:hover {
    background: rgba(138, 43, 214, 0.18);
    border-color: rgba(138, 43, 214, 0.4);
    color: #01fad5;
    transform: translateY(-2px);
}

.rh-footer-v2-trust {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rh-footer-v2-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.rh-footer-v2-trust-item svg { color: #01fad5; flex-shrink: 0; }
.rh-footer-v2-trust-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}
.rh-footer-v2-trust-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.rh-footer-v2-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px 28px;
    padding-bottom: 48px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rh-footer-v2-col h4 {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 16px;
}

.rh-footer-v2-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rh-footer-v2-col a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 160ms ease, padding-left 160ms ease;
}
.rh-footer-v2-col a:hover {
    color: #01fad5;
    padding-left: 4px;
    text-decoration: none;
}

.rh-footer-v2-link-spotlight {
    color: rgba(1, 250, 213, 0.85) !important;
    font-weight: 600 !important;
}
.rh-footer-v2-link-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #01fad5;
    box-shadow: 0 0 6px #01fad5;
}

.rh-footer-v2-paybar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Parceiros reconhecidos */
.rh-footer-v2-partners {
    display: flex;
    flex-direction: column;
}
/* Igual ao Astro: nowrap, gap 22px, logos puros sem chip de fundo */
.rh-footer-v2-partner-logos {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 22px;
    overflow: hidden;
}
.rh-partner-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    flex-shrink: 0;
    opacity: 0.88;
    transition: opacity 200ms ease, transform 200ms ease;
}
.rh-partner-card:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.rh-partner-logo {
    height: 100%;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
}
@media (max-width: 640px) {
    .rh-footer-v2-partner-logos { flex-wrap: wrap; gap: 18px 24px; overflow: visible; }
}

.rh-footer-v2-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
}

.rh-footer-v2-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Plate branca SEMPRE (light + dark) — os SVGs são coloridos sobre branco
   por design, então renderizam perfeito em ambos os temas sem override. */
.rh-footer-v2-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 36px;
    padding: 5px 8px;
    background: #ffffff;
    border: 1px solid rgba(13, 10, 31, 0.08);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.rh-footer-v2-pay img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.rh-footer-v2-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(106, 26, 176, 0.18);
    border-color: rgba(138, 43, 214, 0.35);
}

.rh-footer-v2-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}
.rh-footer-v2-legal nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rh-footer-v2-legal a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 160ms ease;
}
.rh-footer-v2-legal a:hover { color: #01fad5; }
.rh-footer-v2-sep { color: rgba(255, 255, 255, 0.2); }

/* Light mode */
[data-theme="light"] .rh-footer-v2 {
    background: #ffffff;
    color: rgba(13, 10, 31, 0.65);
    border-top: 1px solid rgba(13, 10, 31, 0.08);
}
[data-theme="light"] .rh-footer-v2::before {
    background-image: radial-gradient(rgba(13, 10, 31, 0.05) 1px, transparent 1px);
}
[data-theme="light"] .rh-footer-v2-brand-row,
[data-theme="light"] .rh-footer-v2-grid,
[data-theme="light"] .rh-footer-v2-paybar {
    border-bottom: 1px solid rgba(13, 10, 31, 0.08);
}
[data-theme="light"] .rh-footer-v2-brand p { color: rgba(13, 10, 31, 0.65); }
[data-theme="light"] .rh-footer-v2-brand p strong { color: rgba(13, 10, 31, 0.9); }
[data-theme="light"] .rh-footer-v2-social-icon {
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
    color: rgba(13, 10, 31, 0.6);
}
[data-theme="light"] .rh-footer-v2-social-icon:hover {
    background: rgba(106, 26, 176, 0.08);
    border-color: rgba(106, 26, 176, 0.2);
    color: #6a1ab0;
}
[data-theme="light"] .rh-footer-v2-trust-item {
    background: rgba(13, 10, 31, 0.02);
    border-color: rgba(13, 10, 31, 0.06);
}
[data-theme="light"] .rh-footer-v2-trust-item svg { color: #6a1ab0; }
[data-theme="light"] .rh-footer-v2-trust-item strong { color: #0d0a1f; }
[data-theme="light"] .rh-footer-v2-trust-item span { color: rgba(13, 10, 31, 0.6); }

[data-theme="light"] .rh-footer-v2-col h4 { color: #0d0a1f; }
[data-theme="light"] .rh-footer-v2-col a { color: rgba(13, 10, 31, 0.65); }
[data-theme="light"] .rh-footer-v2-col a:hover { color: #6a1ab0; }
[data-theme="light"] .rh-footer-v2-link-spotlight { color: rgba(106, 26, 176, 0.95) !important; }
[data-theme="light"] .rh-footer-v2-link-dot {
    background: #6a1ab0;
    box-shadow: 0 0 6px rgba(106, 26, 176, 0.4);
}

[data-theme="light"] .rh-footer-v2-eyebrow { color: rgba(13, 10, 31, 0.4); }
[data-theme="light"] .rh-footer-v2-pay {
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
    color: rgba(13, 10, 31, 0.7);
}
[data-theme="light"] .rh-footer-v2-legal { color: rgba(13, 10, 31, 0.5); }
[data-theme="light"] .rh-footer-v2-legal a { color: rgba(13, 10, 31, 0.65); }
[data-theme="light"] .rh-footer-v2-legal a:hover { color: #6a1ab0; }
[data-theme="light"] .rh-footer-v2-sep { color: rgba(13, 10, 31, 0.2); }

@media (max-width: 991px) {
    .rh-footer-v2-inner { padding: 48px 16px 24px; }
    .rh-footer-v2-brand-row { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; margin-bottom: 32px; }
    .rh-footer-v2-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
    .rh-footer-v2-paybar { grid-template-columns: 1fr; gap: 20px; }
    .rh-footer-v2-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .rh-footer-v2-grid { grid-template-columns: 1fr; }
    .rh-footer-v2-trust { gap: 8px; }
}
