/* ============================================================
   Premium Footer - Calcularte
   Isolated CSS for the redesigned homepage footer.
   Does NOT modify inicio.css, inicio-portrait.css, or
   social-media-icons.css. Those remain for other pages.

   IMPORTANT: All selectors are prefixed with .calc-premium-footer
   to beat the specificity of "div#tela_inicial h4/p/a" rules
   from planos-portrait.css and the inline <style> block.
   ============================================================ */

/* Override the global "div { overflow: hidden }" from index.html inline styles */
.calc-premium-footer div {
    overflow: visible;
}

/* --- Custom Properties --- */
.calc-premium-footer {
    --footer-bg: #F8FAFC;
    --footer-border: #E2E8F0;
    --footer-heading: #0F766E;
    --footer-text: #475569;
    --footer-hover: #0D9488;
    --footer-copyright: #94A3B8;
}

/* --- Footer Container --- */
.calc-premium-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: visible;
}

/* --- 4-Column Grid --- */
.calc-premium-footer .footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 32px;
}

/* --- Brand Column --- */
.calc-premium-footer .footer-logo {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

.calc-premium-footer .footer-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--footer-text);
    margin: 0 0 16px;
    max-width: 280px;
}

/* --- Social Icons (inline SVG) --- */
.calc-premium-footer .footer-social-icons {
    display: flex;
    gap: 12px;
    margin: 0 0 16px;
}

.calc-premium-footer .footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-premium-footer .footer-social-svg {
    width: 20px;
    height: 20px;
    fill: var(--footer-text);
    transition: fill 0.2s ease;
}

.calc-premium-footer .footer-social-icons a:hover .footer-social-svg {
    fill: var(--footer-hover);
}

/* --- Google Play Badge --- */
.calc-premium-footer .footer-app-badge {
    display: inline-block;
}

.calc-premium-footer .footer-app-badge img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.calc-premium-footer .footer-app-badge:hover img {
    opacity: 1;
}

/* --- Link Columns --- */
.calc-premium-footer .footer-col-title {
    font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--footer-heading);
    margin: 0 0 16px;
    padding: 0;
}

.calc-premium-footer .footer-link-list {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.calc-premium-footer .footer-link-list li {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.calc-premium-footer .footer-link-list a {
    font-size: 0.9rem;
    line-height: 2.2;
    color: var(--footer-text);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.calc-premium-footer .footer-link-list a:hover {
    color: var(--footer-hover);
    transform: translateX(3px);
}

/* --- Bottom Bar (Copyright) --- */
.calc-premium-footer .footer-bottom {
    border-top: 1px solid var(--footer-border);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 24px;
}

.calc-premium-footer .footer-bottom p {
    font-size: 0.8rem;
    color: var(--footer-copyright);
    margin: 0;
}

.calc-premium-footer .footer-registered {
    font-size: 0.65rem;
    vertical-align: super;
}


/* ============================================================
   Mobile (max-width: 768px)
   Matches inicio-portrait.css breakpoint
   ============================================================ */
@media (max-width: 768px) {

    .calc-premium-footer .footer-columns {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 32px 24px 8px;
    }

    /* Brand column */
    .calc-premium-footer .footer-brand {
        padding-bottom: 24px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--footer-border);
    }

    .calc-premium-footer .footer-logo {
        height: 36px;
    }

    .calc-premium-footer .footer-description {
        max-width: 100%;
    }

    /* Link columns */
    .calc-premium-footer .footer-col-title {
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .calc-premium-footer .footer-link-list a {
        line-height: 2.0;
    }

    /* Bottom bar */
    .calc-premium-footer .footer-bottom {
        padding: 16px 24px 20px;
    }

    /* Tidio safe area: 100px empty space below copyright */
    .calc-premium-footer {
        padding-bottom: 100px;
    }
}
