/* ===== Footer ===== */
.site-footer {
    position: relative;
    padding-top: clamp(56px, 7vw, 88px);
    background: var(--color-bg);
    border-top: 1px solid rgba(217, 192, 138, 0.08);
    color: rgba(237, 228, 211, 0.6);
}
/* Gold line that draws out from the centre when the footer comes into view */
.site-footer::before {
    content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold) 50%, transparent);
    opacity: 0.7;
    transform: scaleX(0);
    transition: transform 1.6s var(--ease-out);
}
.site-footer.is-visible::before { transform: scaleX(1); }

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    padding-bottom: clamp(48px, 6vw, 72px);
}

/* ----- Brand ----- */
.footer-logo { display: inline-block; }
.footer-logo img { height: 56px; width: auto; transition: transform 0.4s var(--ease-out), opacity 0.3s ease; }
.footer-logo:hover img { transform: translateY(-2px); opacity: 0.9; }
.footer-tagline { max-width: 340px; margin-top: 22px; font-size: 0.92rem; line-height: 1.9; }

/* ----- Columns ----- */
.footer-heading {
    margin-bottom: 18px;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--color-gold);
}

/* Two columns, filled top to bottom (first four links, then the rest) */
.footer-links {
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto);
    gap: 14px 40px; justify-content: start;
}
.footer-links a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.92rem;
    transition: color 0.3s ease;
}
/* Gold underline grows from the left on hover */
.footer-link-text {
    background: linear-gradient(var(--color-gold), var(--color-gold)) no-repeat left bottom / 0 1px;
    padding-bottom: 2px;
    transition: background-size 0.4s var(--ease-out);
}
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--color-cream); }
.footer-links a:hover .footer-link-text, .footer-links a[aria-current="page"] .footer-link-text { background-size: 100% 1px; }
.footer-links .badge-soon { padding: 2px 7px 2px 6px; gap: 4px; font-size: 0.55rem; letter-spacing: 0.1em; transform: rotate(-6deg); }
.footer-links .badge-dot { width: 4px; height: 4px; }
.footer-links a:hover .badge-soon { animation: badgeWiggle 0.6s ease-in-out; }

.footer-address { font-size: 0.92rem; font-style: normal; line-height: 1.9; }
.footer-phone {
    display: inline-block; margin-top: 12px;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em;
    color: var(--color-cream);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.footer-phone:hover { color: var(--color-gold); }
.footer-directions {
    display: flex; align-items: center; gap: 10px; width: fit-content;
    margin-top: 14px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--color-gold);
    transition: color 0.3s ease;
}
.footer-directions i { font-size: 0.75rem; transition: transform 0.35s var(--ease-out); }
.footer-directions:hover { color: var(--color-gold-light); }
.footer-directions:hover i { transform: translateX(5px); }

/* ----- Bottom bar ----- */
.footer-bottom { border-top: 1px solid rgba(217, 192, 138, 0.08); }
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
    padding-top: 20px; padding-bottom: 20px;
    font-size: 0.8rem; color: rgba(237, 228, 211, 0.45);
}
.back-to-top {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid rgba(217, 192, 138, 0.3); border-radius: 50px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(237, 228, 211, 0.75);
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.back-to-top i { font-size: 0.7rem; transition: transform 0.35s var(--ease-out); }
.back-to-top:hover { border-color: var(--color-gold); color: var(--color-gold); background: rgba(217, 192, 138, 0.06); }
.back-to-top:hover i { transform: translateY(-3px); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-tagline { max-width: 420px; }
}

/* Phones: one centred column */
@media (max-width: 575px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; text-align: center; }
    .footer-logo img { height: 48px; }
    .footer-tagline { max-width: 320px; margin: 18px auto 0; font-size: 0.88rem; }
    .footer-heading { margin-bottom: 14px; }
    .footer-links { gap: 14px 32px; justify-content: center; justify-items: center; }
    /* Shop under Tournaments, Blog under Book Now
       (nth-child follows the $footerLinks order in config.php) */
    .footer-links li:nth-child(7) { grid-column: 1; grid-row: 4; } /* Shop */
    .footer-links li:nth-child(4) { grid-column: 2; grid-row: 3; } /* Blog */
    .footer-directions { margin-left: auto; margin-right: auto; }
    .footer-bottom-inner { flex-direction: column-reverse; text-align: center; }
}

@media (max-width: 359px) {
    .footer-links { gap: 12px 20px; }
    .footer-logo img { height: 42px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .site-footer::before { transform: none; }
}


/* Footer Contact Details */

.footer-hours,
.footer-contact {
    margin-top: 12px;
    font-size: 0.92rem;
    font-style: normal;
    line-height: 1.9;
    color: inherit;
}

.footer-hours strong,
.footer-contact strong,
.footer-address strong {
    font-weight: 700;
    color: var(--color-cream);
}

.footer-contact .footer-phone {
    margin-top: 4px;
}
