/* footer.css — the site footer (src/templates/footer.php). Loaded on every page (header.php),
   after common.css, so it overrides any leftover footer rules there. */

.main-footer {
    background-color: var(--clr-beige);
    padding: 3rem 1rem 2rem;
    margin-top: auto;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* align-items: stretch overrides common.css's center, so every block spans the full footer width. */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3.5rem;
}

/* Logo + one-line tagline, centered over the full width. */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    opacity: 0.8;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* Four benefits in one row (2×2 on mobile). */
.footer-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: #fff;
    border-radius: var(--radius-card, 15px);
    padding: 1.35rem 1.5rem;
}

.footer-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-dark);
}

.footer-benefit--link {
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.footer-benefit--link:hover {
    background-color: rgba(115, 183, 171, 0.08);
}

.footer-benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--clr-green) 15%, #fff);
    color: var(--clr-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Link columns: 4 side by side on desktop, 2×2 on mobile. */
.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0;
}

/* Columns size to their content; the first starts at the benefits box content edge and the
   last ends at its right edge (footer-grid shares the box's horizontal padding). */
.footer-col {
    min-width: 0;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.9rem;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-list a {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
}

.footer-list a:hover {
    color: var(--clr-green);
}

.footer-hours {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-green);
    text-decoration: none;
}

.footer-social:hover {
    text-decoration: underline;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--clr-green) 15%, #fff);
    color: var(--clr-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-col-title--lang {
    margin-top: 1.25rem;
}

.footer-lang-switch {
    display: inline-flex;
    background: #fff;
    border-radius: 999px;
    padding: 4px;
}

.footer-lang-switch a {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
}

.footer-lang-switch a.active {
    background: var(--clr-green);
    color: #fff;
}

/* Thin full-width divider between the columns and the bottom bar. */
.footer-divider {
    height: 1px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.08);
}

/* Bottom row: copyright + cookies on the left, payment logos on the right. */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer-cookies {
    color: var(--text-light);
    text-decoration: none;
}

.footer-cookies:hover {
    color: var(--clr-green);
}

.footer-payments img {
    max-height: 24px;
    display: block;
}

@media (max-width: 900px) {
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-col-follow {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 1.75rem 1.25rem;
    }

}
