/**
 * Footer Style 2 — Brand + Widgets
 * Col-4: Logo (configurable) + Slogan + Contacto vertical (como footer 1)
 * Col-8: Widget footer-1 (full width) + Widgets footer-2/3/4 (grid)
 * Footer bottom: Copyright + Author (como footer 1)
 *
 * @package Petsure_Core
 */

.site-footer.footer-v2 {
    background: var(--petsure-primary);
    color: rgba(var(--petsure-background-rgb), 0.78);
    font-family: 'Bricolage Grotesque', sans-serif;
    margin: 20px;
    margin-top: 0;
    padding: 60px 60px 0;
    border-radius: var(--petsure-border-radius-lg);
}

/* =============================================
   Background Pattern
   ============================================= */
.footer-v2[data-has-pattern="1"] {
    position: relative;
}

.footer-v2[data-has-pattern="1"]::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--petsure-pattern-url, url("../../images/patterns/pattern-foot.png"));
    background-repeat: repeat;
    background-size: var(--petsure-pattern-size, 500px);
    opacity: var(--petsure-pattern-opacity, 0.5);
    z-index: 1;
}

.footer-v2[data-has-pattern="1"]>* {
    position: relative;
    z-index: 2;
}

/* =============================================
   Columna de 4 — Brand: Logo + Slogan + Contacto
   ============================================= */
.footer-v2 .footer-brand-col {
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Logo */
.footer-v2 .footer-brand-logo .footer-logo {
    display: flex;
    align-items: center;
}

.footer-v2 .footer-brand-logo .footer-logo img,
.footer-v2 .footer-brand-logo .footer-logo svg {
    max-height: 80px;
    width: auto;
    margin: auto;
    display: block;
}

.footer-v2 .footer-brand-logo .footer-logo a:after,
.footer-v2 .footer-brand-logo .footer-logo a:after {
    content: none;
}

/* Slogan */
.footer-v2 .footer-brand-slogan {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--petsure-white);
}

/* Contacto vertical (como footer 1) */
.footer-v2 .footer-brand-contact .petsure-contact-icon-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-v2 .footer-brand-contact .footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(var(--petsure-background-rgb), 0.72);
}

.footer-v2 .footer-brand-contact .footer-contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--petsure-accent-rgb), 0.12);
    border-radius: 50%;
    color: var(--petsure-accent);
    font-size: 0.95rem;
    transition: background 0.6s ease, color 0.6s ease;
}

.footer-v2 .footer-brand-contact .footer-contact-line:hover .footer-contact-icon {
    background: var(--petsure-accent);
    color: var(--petsure-white);
}

.footer-v2 .footer-brand-contact .footer-contact-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-v2 .footer-brand-contact .footer-contact-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(var(--petsure-background-rgb), 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: left;
}

.footer-v2 .footer-brand-contact .footer-contact-text {
    font-size: 17px;
    color: var(--petsure-background);
    line-height: 1.4;
}

.footer-v2 .footer-brand-contact .footer-contact-text a {
    color: var(--petsure-background);
    text-decoration: none;
    transition: color 0.6s ease;
}

.footer-v2 .footer-brand-contact .footer-contact-text a:hover {
    color: var(--petsure-accent);
}

/* =============================================
   Columna de 8 — Widgets
   ============================================= */

/* Widget footer-1 — full width con borde inferior */
.footer-v2 .footer-widget-full {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(var(--petsure-background-rgb), 0.07);
}

.footer-v2 .footer-widget-full .widget:last-child {
    margin-bottom: 0;
}

/* Widget grid (footer-2, footer-3, footer-4) */
.footer-v2 .footer-widget-grid {
    padding-top: 0;
}

/* Widget genérico */
.footer-v2 .widget {
    margin-bottom: 32px;
}

.footer-v2 .widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--petsure-background);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.footer-v2 .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-v2 .widget ul li {
    margin-bottom: 10px;
}

.footer-v2 .widget ul li a {
    color: rgba(var(--petsure-background-rgb), 0.68);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    position: relative;
    transition: color 0.6s ease;
}

.footer-v2 .widget ul li a:hover {
    color: var(--petsure-accent);
}

/* =============================================
   Footer bottom — Copyright + Author (como footer 1)
   ============================================= */
.footer-v2 .footer-row-3 {
    padding: 22px 0;
    font-size: 0.85rem;
    color: rgba(var(--petsure-background-rgb), 0.48);
    border-top: 1px solid rgba(var(--petsure-background-rgb), 0.07);
}

.footer-v2 .footer-row-3 .row {
    padding: 4px 0;
}

.footer-v2 .footer-copyright {
    margin: 0;
}

.footer-v2 .footer-author {
    margin: 0;
}

.footer-v2 .footer-copyright a,
.footer-v2 .footer-author a {
    color: var(--petsure-accent);
    text-decoration: none;
    transition: all ease-in-out .6s;
}

.footer-v2 .footer-author a {
    margin-right: 2px;
}

.footer-v2 .footer-copyright a:hover,
.footer-v2 .footer-author a:hover {
    color: var(--petsure-secondary);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 991px) {
    .footer-v2 .footer-brand-col {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .footer-v2 .footer-row-3 {
        text-align: center;
    }
}