/* ==========================================================================
   Fiubags Footer — "Calma + Oficio"
   bg: #f8f9fa  ·  accent: #6eaba5
   ========================================================================== */

.footer8-section:has(.ff-footer) {
    padding: 0 !important;
    background: transparent !important;
}

.ff-footer {
    --ff-bg: #f8f9fa;
    --ff-accent: #6eaba5;
    --ff-accent-soft: rgba(110, 171, 165, 0.12);
    --ff-accent-line: rgba(110, 171, 165, 0.28);
    --ff-text: #1f2937;
    --ff-muted: #64748b;
    --ff-border: #e5e7eb;

    position: relative;
    background: var(--ff-bg);
    color: var(--ff-text);
    font-family: "Poppins", "Inter", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow: hidden;
    isolation: isolate;
}

/* Stitched top edge — evokes fabric / canvas seam */
.ff-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-image: linear-gradient(
        90deg,
        var(--ff-accent-line) 0,
        var(--ff-accent-line) 8px,
        transparent 8px,
        transparent 14px
    );
    background-size: 14px 1px;
}

/* Soft sage glow — atmospheric depth, low-key */
.ff-footer::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(
        circle at center,
        var(--ff-accent-soft) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.ff-footer__container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 24px 32px;
}

/* ----- Main grid ----- */
.ff-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
    gap: 48px 32px;
    margin-bottom: 56px;
}

/* ----- Brand column ----- */
.ff-footer__brand {
    max-width: 360px;
}

.ff-footer__logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: opacity 0.2s ease;
}

.ff-footer__logo:hover { opacity: 0.8; }

.ff-footer__logo img {
    max-width: 160px;
    height: auto;
    display: block;
}

.ff-footer__tagline {
    color: var(--ff-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 320px;
}

.ff-footer__tagline strong {
    color: var(--ff-text);
    font-weight: 600;
}

/* ----- Social icons ----- */
.ff-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.ff-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--ff-border);
    background: #fff;
    color: var(--ff-text);
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.ff-footer__social a:hover,
.ff-footer__social a:focus-visible {
    background: var(--ff-accent);
    border-color: var(--ff-accent);
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

.ff-footer__social a:focus-visible {
    box-shadow: 0 0 0 3px var(--ff-accent-soft);
}

.ff-footer__social svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ----- Column titles ----- */
.ff-footer__title {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ff-text);
    margin: 0 0 24px;
    padding-bottom: 12px;
    position: relative;
}

.ff-footer__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--ff-accent);
    border-radius: 2px;
}

/* ----- Link lists ----- */
.ff-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ff-footer__links a {
    color: var(--ff-muted);
    font-size: 14px;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease, transform 0.25s ease;
}

.ff-footer__links a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--ff-accent);
    transition: width 0.3s ease;
}

.ff-footer__links a:hover,
.ff-footer__links a:focus-visible {
    color: var(--ff-accent);
    transform: translateX(3px);
    outline: none;
}

.ff-footer__links a:hover::before,
.ff-footer__links a:focus-visible::before {
    width: 100%;
}

/* ----- Contact column ----- */
.ff-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ff-footer__contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--ff-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ff-footer__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--ff-accent);
    stroke-width: 1.6;
}

.ff-footer__contact a {
    color: var(--ff-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ff-footer__contact a:hover,
.ff-footer__contact a:focus-visible {
    color: var(--ff-accent);
    outline: none;
}

/* ----- Divider ----- */
.ff-footer__divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--ff-border) 20%,
        var(--ff-border) 80%,
        transparent 100%
    );
    margin: 0 0 28px;
}

/* ----- Bottom bar ----- */
.ff-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.ff-footer__copy {
    margin: 0;
    font-size: 13px;
    color: var(--ff-muted);
    line-height: 1.55;
}

.ff-footer__copy a {
    color: var(--ff-text);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ff-footer__copy a:hover,
.ff-footer__copy a:focus-visible {
    color: var(--ff-accent);
    border-bottom-color: var(--ff-accent);
    outline: none;
}

.ff-footer__payments {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ff-footer__payments img {
    max-height: 28px;
    width: auto;
    opacity: 0.85;
    filter: grayscale(15%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.ff-footer__payments:hover img {
    opacity: 1;
    filter: grayscale(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .ff-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 40px 28px;
    }
    .ff-footer__brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .ff-footer__container {
        padding: 56px 20px 28px;
    }
    .ff-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px;
        margin-bottom: 40px;
    }
    .ff-footer__brand {
        grid-column: 1 / -1;
    }
    .ff-footer__bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    .ff-footer__payments {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ff-footer__grid {
        grid-template-columns: 1fr;
    }
    .ff-footer__title {
        margin-bottom: 18px;
    }
    .ff-footer__logo img {
        max-width: 140px;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .ff-footer *,
    .ff-footer *::before,
    .ff-footer *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .ff-footer__links a:hover,
    .ff-footer__social a:hover {
        transform: none;
    }
}
