/* ---------------------------------------------------------------------------
   Site footer — custom hardcoded chrome (global)
   ---------------------------------------------------------------------------
   Loaded site-wide because footer.php in the child theme replaces
   Flatsome's parent footer.php and pulls in template-parts/site-footer.php.

   Visual matches the original Flatsome UX Builder footer JP wanted to
   keep: dramatic full-bleed bg image (the triangular-spotlight Fundo-
   footer.jpg, now bundled as assets/images/footer-bg.webp), large centered
   logo at the top, two underlined section headings (Menu + Social Media),
   stacked nav items, copyright credit at the bottom.
*/

.fz-site-footer {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    font-family: "Lato", Arial, sans-serif;
    min-height: 600px;
    padding: 3rem 1rem 2rem;
    isolation: isolate; /* keep ::before bg image below content */
}

.fz-site-footer-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('../assets/images/footer-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0c0c3e; /* fallback */
}

.fz-site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.75rem;
}

/* ── Logos (Fun Zone + optional Escape Rooms, centered at the top) ───────── */

.fz-site-footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.fz-site-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.fz-site-footer-logo img {
    width: clamp(170px, 20vw, 290px);
    height: auto;
    display: block;
}
/* In the dual-logo lockup, scale by HEIGHT instead of width so the two
   logos read as equal-size regardless of their individual aspect ratios
   (Escape Rooms logo aspect ~1.89:1 vs Fun Zone ~2.10:1). */
.fz-site-footer-logos--dual .fz-site-footer-logo img {
    width: auto;
    height: clamp(82px, 8.8vw, 120px);
}
.fz-site-footer-logo:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.fz-site-footer-logo:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ── Two-column grid (Menu + Social Media) ───────────────────────────────── */

.fz-site-footer-cols {
    width: 100%;
    max-width: 880px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: 0 1rem;
}

.fz-site-footer-col {
    min-width: 0;
}

/* Section heading with white underline — matches the old "MENU" /
   "SOCIAL MEDIA" treatment in the previous footer. */
.fz-site-footer-heading {
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

/* ── Nav list (Menu column) ──────────────────────────────────────────────── */

.fz-site-footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fz-site-footer .fz-site-footer-nav-link,
.fz-site-footer .fz-site-footer-nav-link:link,
.fz-site-footer .fz-site-footer-nav-link:visited,
.fz-site-footer .fz-site-footer-nav-link:hover,
.fz-site-footer .fz-site-footer-nav-link:focus,
.fz-site-footer .fz-site-footer-nav-link:focus-visible,
.fz-site-footer .fz-site-footer-nav-link:active {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    padding: 0.28rem 0;
    line-height: 1.3;
    display: inline-block;
    position: relative;
    transition: color 0.18s ease, transform 0.18s ease;
}
.fz-site-footer .fz-site-footer-nav-link::before {
    content: '›';
    display: inline-block;
    margin-right: 0.45rem;
    color: rgba(4, 187, 211, 0);
    transform: translateX(-4px);
    transition: color 0.18s ease, transform 0.18s ease;
}
.fz-site-footer .fz-site-footer-nav-link:hover,
.fz-site-footer .fz-site-footer-nav-link:focus-visible {
    color: #ffffff;
    transform: translateX(4px);
}
.fz-site-footer .fz-site-footer-nav-link:hover::before,
.fz-site-footer .fz-site-footer-nav-link:focus-visible::before {
    color: #04bbd3;
    transform: translateX(0);
}
.fz-site-footer .fz-site-footer-nav-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Social icons (Social Media column) ──────────────────────────────────── */

.fz-site-footer-social {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.fz-site-footer-social-link,
.fz-site-footer-social-link:link,
.fz-site-footer-social-link:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    font-size: 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* Soft glow ring + scale on hover (real link OR placeholder both lift so the
   bar feels responsive even before URLs are populated). */
.fz-site-footer-social-link:hover,
.fz-site-footer-social-link:focus-visible {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.55);
    outline: none;
}
.fz-site-footer-social-link:focus-visible {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px rgba(4, 187, 211, 0.7);
}

/* Per-brand colour fill — kicks in on hover via the ::before sheen. */
.fz-site-footer-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}
/* z-index lift on the inner icon so it sits above the brand-colour sheen
   painted by ::before on hover. Was `> i` when icons came in as <i> via
   Font Awesome; updated 2026-06-08 to .fz-icon to match the inline-SVG
   rebuild — without this the SVG was getting covered by the sheen on
   hover and reading as "icon disappeared". */
.fz-site-footer-social-link > .fz-icon {
    position: relative;
    z-index: 1;
}

.fz-site-footer-social-link--facebook::before {
    background: #1877f2;
}
.fz-site-footer-social-link--instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.fz-site-footer-social-link--tiktok::before {
    background: linear-gradient(135deg, #25f4ee 0%, #000000 50%, #fe2c55 100%);
}

.fz-site-footer-social-link:hover::before,
.fz-site-footer-social-link:focus-visible::before {
    opacity: 1;
}

.fz-site-footer-social-link:hover {
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(4, 187, 211, 0.25);
}

/* Placeholder state — URL not set yet. Still visible + lifts on hover, but
   pointer-events stay disabled so misclicks before launch don't 404 anyone. */
.fz-site-footer-social-link.is-placeholder {
    opacity: 0.55;
    cursor: not-allowed;
}
.fz-site-footer-social-link.is-placeholder:hover {
    transform: translateY(-1px);
    box-shadow: none;
}
.fz-site-footer-social-link.is-placeholder:hover::before {
    opacity: 0;
}

.fz-site-footer-social-note {
    margin: 0.9rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* ── Bottom credit row ───────────────────────────────────────────────────── */

.fz-site-footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fz-site-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.fz-site-footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.18s ease;
}
.fz-site-footer-bottom a:hover,
.fz-site-footer-bottom a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    outline: none;
}

/* ── Hide any legacy inline UX Builder footer Section ─────────────────
   Several pages (home, about-us) still have [section class="footer"]
   from before the global footer.php override existed. Hidden globally
   so we don't render two footers anywhere. Our custom footer uses the
   .fz-site-footer class — no collision. Can be removed once every
   page's inline Section is deleted in WP admin. */
.section.footer {
    display: none;
}

/* Legacy UX Builder credit-row text — `[ux_text class="small-footer"]`
   and the mobile-only `small-footer-mobile` variant live inside the
   home's Contact section and render the "Fun Zone — All Rights Reserved"
   line. Now that the global footer.php carries that credit, hide the
   duplicates to avoid showing it twice. */
.small-footer,
.small-footer-mobile {
    display: none;
}

/* ── Tablet (721–1024px) ─────────────────────────────────────────────────── */

@media (min-width: 721px) and (max-width: 1024px) {
    .fz-site-footer-cols {
        max-width: 720px;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .fz-site-footer-logos {
        gap: 1.5rem;
    }
}

/* ── Mobile (≤720px) ─────────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .fz-site-footer {
        min-height: auto;
        padding: 2.5rem 1rem 1.5rem;
    }
    .fz-site-footer-inner {
        gap: 2.75rem;
    }
    .fz-site-footer-logos {
        flex-direction: column;
        gap: 1.25rem;
    }
    .fz-site-footer-logos--dual .fz-site-footer-logo img {
        width: auto;
        height: clamp(94px, 23.5vw, 135px);
    }
    .fz-site-footer-cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
        text-align: center;
    }
    .fz-site-footer-heading {
        font-size: 1.15rem;
        margin-bottom: 0.9rem;
    }
    .fz-site-footer-nav-list {
        align-items: center;
    }
    .fz-site-footer .fz-site-footer-nav-link::before {
        display: none; /* centered list — chevron read awkward */
    }
    .fz-site-footer .fz-site-footer-nav-link:hover,
    .fz-site-footer .fz-site-footer-nav-link:focus-visible {
        transform: none;
    }
    .fz-site-footer-social {
        justify-content: center;
    }
    .fz-site-footer-social-note {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fz-site-footer-logo,
    .fz-site-footer-nav-link,
    .fz-site-footer-nav-link::before,
    .fz-site-footer-social-link,
    .fz-site-footer-social-link::before {
        transition: none;
    }
}
