/**
 * Footer Styles - Simplified
 *
 * @package De_Assis_Advocacia
 * @since 1.0.0
 */

.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-3xl) var(--container-padding) var(--spacing-lg);
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
    align-items: start;
}

/* Footer Logo Section */
.footer-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Footer Navigation */
.footer-nav h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
    font-size: var(--font-size-xl);
}

/* Footer Links */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
    font-size: var(--font-size-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-item i {
    color: var(--color-secondary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item a,
.contact-item span {
    color: var(--color-white);
    transition: var(--transition-base);
    text-decoration: none;
}

.contact-item a:hover,
.contact-item a:focus {
    color: var(--color-secondary);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-lighter);
}

.footer-bottom p {
    margin: 0;
}

.privacy-btn {
    margin-top: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-base);
}

.privacy-btn:hover,
.privacy-btn:focus {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.privacy-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    background: transparent;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.privacy-modal.active {
    visibility: visible;
    opacity: 1;
}

.privacy-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.privacy-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: rgba(3, 33, 47, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    color: var(--color-white);
    transform: translateY(30px);
    transition: transform 0.35s ease;
    z-index: 1;
}

.privacy-modal.active .privacy-modal-content {
    transform: translateY(0);
}

.privacy-modal h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

.privacy-modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    line-height: var(--line-height-relaxed);
}

.privacy-modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.privacy-modal-close:hover,
.privacy-modal-close:focus {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-secondary);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .privacy-modal {
        padding: var(--spacing-md);
    }

    .privacy-modal-content {
        padding: var(--spacing-xl);
    }
}

/* WhatsApp Floating Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: var(--z-index-tooltip);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-family-base);
    width: auto;
    pointer-events: none;
}

.whatsapp-widget > * {
    pointer-events: auto;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: white;
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-widget.active .whatsapp-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.whatsapp-header {
    background: #075E54;
    padding: 16px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-header-info {
    display: flex;
    flex-direction: column;
}

.whatsapp-title {
    font-weight: 600;
    font-size: 16px;
}

.whatsapp-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.whatsapp-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.whatsapp-body {
    padding: 20px;
    background: #E5DDD5;
    min-height: 100px;
}

.whatsapp-message-bubble {
    background: white;
    padding: 10px 15px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    position: relative;
}

.whatsapp-footer {
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
}

.whatsapp-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

#whatsapp-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

#whatsapp-input:focus {
    border-color: #25D366;
}

.whatsapp-send-btn {
    background: #25D366;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.whatsapp-send-btn:hover {
    background: #128C7E;
}

.char-counter {
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 4px;
    margin-right: 5px;
}
