/* ===== FOOTER - RESTART CLINIC ===== */

:root {
    --primary-blue: #28b6f6;
    --primary-dark: #003153;
    --white: #ffffff;
    --white-soft: #f8faff;
    --text-light: #ffffff;        /* ← TUDO BRANCO */
    --text-soft: #ffffff;          /* ← TUDO BRANCO */
    --transition: all 0.3s ease;
}

/* ===== FOOTER PRINCIPAL ===== */
.site-footer {
    position: relative;
    padding: 60px 0 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff !important;        /* ← FORÇA BRANCO */
    overflow: hidden;
    background: linear-gradient(145deg, #003153 0%, #002844 100%);
}

/* Garantir que TUDO é branco por defeito */
.site-footer * {
    color: #ffffff !important;
}

/* Exceção: links mantêm cor normal mas no hover ficam azuis */
.site-footer a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-blue) !important;
}

/* Elementos decorativos - manter transparentes */
.footer-bg-elements,
.footer-bg-elements * {
    color: transparent !important;
    background: transparent !important;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    color: transparent !important;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    top: -100px;
    right: -50px;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-dark);
    bottom: -150px;
    left: -100px;
    opacity: 0.15;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* ===== GRID DE WIDGETS ===== */
.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 50px;
}

/* Colunas responsivas */
.footer-grid.single-column {
    grid-template-columns: 1fr;
}

.footer-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.footer-grid.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.footer-grid.four-columns {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== ÁREA DE WIDGET ===== */
.footer-widget-area {
    min-width: 0;
}

.widget-wrapper {
    height: 100%;
}

/* Títulos dos widgets */
.widget-wrapper h3,
.widget-wrapper .widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    position: relative;
    font-family: 'Roboto', sans-serif;
}

.widget-wrapper h3::after,
.widget-wrapper .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
}

/* Listas nos widgets */
.widget-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-wrapper ul li {
    margin-bottom: 10px;
    font-size: 15px;
    transition: var(--transition);
}

.widget-wrapper ul li:before {
    content: '›';
    color: var(--primary-blue);
    font-weight: bold;
    margin-right: 8px;
    font-size: 18px;
}

/* Texto nos widgets */
.widget-wrapper p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Widget de busca */
.widget_search .search-form {
    display: flex;
    gap: 10px;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #ffffff !important;
    font-size: 14px;
}

.widget_search input[type="search"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.widget_search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255,255,255,0.15);
}

.widget_search input[type="submit"] {
    padding: 12px 20px;
    background: var(--primary-blue);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.widget_search input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Widget de calendário */
.widget_calendar caption {
    font-weight: 600;
    margin-bottom: 10px;
}

.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.widget_calendar th {
    background: rgba(255,255,255,0.1);
}

.widget_calendar a {
    color: var(--primary-blue) !important;
    font-weight: 600;
}

/* Widget de tags */
.tagcloud a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 5px 10px 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    font-size: 13px !important;
    text-decoration: none;
    transition: var(--transition);
}

.tagcloud a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Widget de redes sociais */
.social-icons-widget {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icons-widget a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 18px;
    transition: var(--transition);
}

.social-icons-widget a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    border-color: var(--primary-blue);
}

/* ===== COPYRIGHT BAR ===== */
.copyright-bar {
    background: rgba(0,0,0,0.4);
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    font-size: 14px;
    margin: 0;
}

.credit-text {
    font-size: 14px;
    margin: 0;
}

.credit-text a {
    color: var(--primary-blue) !important;
    font-weight: 500;
}

.credit-text a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .footer-grid.three-columns,
    .footer-grid.four-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-grid.two-columns,
    .footer-grid.three-columns,
    .footer-grid.four-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .widget-wrapper h3,
    .widget-wrapper .widget-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .widget-wrapper ul li {
        font-size: 14px;
    }
    
    .widget-wrapper p {
        font-size: 14px;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-widget-area {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.footer-widget-area:nth-child(1) { animation-delay: 0.1s; }
.footer-widget-area:nth-child(2) { animation-delay: 0.2s; }
.footer-widget-area:nth-child(3) { animation-delay: 0.3s; }
.footer-widget-area:nth-child(4) { animation-delay: 0.4s; }