/**
 * Footer Styles
 *
 * @package Kamagra_Kopen
 */

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
    margin-top: auto;
    background-color: var(--color-background);
    padding: var(--spacing-3xl) 0 0;
}

/* ==========================================================================
   Footer Main Section
   ========================================================================== */
.footer-main {
    padding-bottom: var(--spacing-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-xl);
}

/* Footer Columns */
.footer-column {
    min-width: 0;
}

.footer-widget-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    color: var(--color-text);
    text-transform: none;
    position: relative;
    padding-right: var(--spacing-xl);
}

.footer-widget-title::after {
    display: none;
}

/* Footer Content Wrapper */
.footer-content {
    /* Wrapper for widget content */
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* Company Column (5th column) */
.footer-column-company {
    /* Slightly wider for company info */
}

.company-info {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.company-info p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-base);
    margin-bottom: var(--spacing-sm);
}

.company-info strong {
    color: var(--color-white);
}

/* Trust Widget */
.trust-widget {
    margin-top: var(--spacing-md);
}

.trust-widget iframe {
    max-width: 100%;
    border: none;
}

/* Footer Widget Styling (for dynamic sidebars) */
.footer-widget {
    margin-bottom: var(--spacing-lg);
}

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

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

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

.footer-widget ul a {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-widget ul a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Footer Bottom / Copyright
   ========================================================================== */
.footer-bottom {
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-2xl);
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.payment-methods img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.payment-methods img:hover {
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE — consolidated media queries
   All @media rules merged from throughout the file. Order: min-width queries
   (mobile-first ascending), then max-width queries (descending so smaller
   screens override larger ones).
   ========================================================================== */

/* --- TABLET + MOBILE (≤991px) --- */
@media (max-width: 991px) {
    /* === originally at L188 === */
    /* ==========================================================================
       Responsive: Tablet / Mobile Accordion
       ==========================================================================
       At <=991px the footer flips to a dark, on-brand color block so the white
       type in the link lists, company info, and copyright actually reads. Each
       column collapses to a tappable accordion row with a circular +/- chip. */
    .site-footer {
        background-color: var(--color-primary-dark);
        padding-top: 0;
        color: rgba(255, 255, 255, 0.85);
    }

    .footer-main {
        padding: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-column {
        padding: 0 var(--spacing-md);
    }

    .footer-widget-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        margin: 0;
        cursor: pointer;
        user-select: none;
        color: #ffffff;
        font-weight: 600;
        font-size: var(--font-size-base);
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        transition: color var(--transition-base);
    }

    .footer-column:first-child .footer-widget-title {
        border-top: none;
    }

    .footer-widget-title:hover {
        color: rgba(255, 255, 255, 0.85);
    }

    /* Replace the bare "+" / "−" text marker with a polished circular chip
       that rotates 45deg on open — cleaner than swapping glyphs. */
    .footer-widget-title::after {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        content: "+";
        position: static;
        transform: none;
        width: 26px;
        height: 26px;
        margin-left: var(--spacing-md);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        font-size: 18px;
        font-weight: 400;
        line-height: 1;
        transition: transform 0.25s ease, background 0.2s ease;
    }

    .footer-widget-title.active::after {
        content: "+";
        background: rgba(255, 255, 255, 0.22);
        transform: rotate(45deg);
    }

    .footer-content {
        padding: 0 0 var(--spacing-md);
    }

    /* Link list: tighter rhythm, soft white with full-white on tap/hover. */
    .footer-links a,
    .footer-widget ul a {
        color: rgba(255, 255, 255, 0.78);
        font-size: var(--font-size-sm);
    }
    .footer-links a:hover,
    .footer-widget ul a:hover {
        color: #ffffff;
    }
    .footer-links li,
    .footer-widget ul li {
        margin-bottom: 8px;
    }

    .company-info,
    .company-info p {
        color: rgba(255, 255, 255, 0.78);
    }
    .company-info strong {
        color: #ffffff;
    }

    .footer-bottom {
        margin-top: 0;
        padding: 16px 0;
        background-color: rgba(0, 0, 0, 0.18);
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .copyright {
        font-size: var(--font-size-xs);
        color: rgba(255, 255, 255, 0.75);
    }

    .payment-methods {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .payment-methods img {
        height: 20px;
    }
}

/* --- MOBILE ONLY (≤767px) --- */
@media (max-width: 767px) {
    /* === originally at L315 === */
    /* ==========================================================================
       Responsive: Mobile Small
       ========================================================================== */
    .footer-widget-title {
        padding: 14px 0;
        font-size: var(--font-size-sm);
    }
}

