:root {
    --dark-brown: #1e0f0a;
    --tan: #8b6347;
    --light-tan: #c49a72;
    --coral: #e07050;
    --cream: #d4b896;
    --parchment: #ede8d8;
    --pink: #c9607a;
    --olive: #6b7a3a;
    --red-orange: #d94f2b;
}

.site-footer {
    position: relative;
    width: 100vw;
    background: var(--dark-brown);
    overflow: hidden;
    line-height: 1.5;
    /* globally compress vertical rhythm */

}

.footer-tear {
    width: 100%;
    line-height: 0;
    margin-bottom: -2px;
}

.footer-tear svg {
    display: block;
    width: 100%;
    height: clamp(40px, 6vw, 80px);
}

/* ── inner spacing ── */
.footer-inner {
    padding: 2vw 6vw 1.2vw;
    /* was 5vw 7vw 3vw */
    position: relative;
    z-index: 2;
}

/* ── top row ── */
.footer-top-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2vw;
    /* reduced horizontal spacing */
    align-items: start;

    padding-bottom: 1.8vw;
    /* reduced vertical gap */

    opacity: 0;
    transform: translateY(30px);
    /* slightly less movement */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-docs {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.site-footer.reveal .footer-top-row {
    opacity: 1;
    transform: translateY(0);
}

.footer-logo {
    width: clamp(75px, 10vw, 120px);
    /* slightly smaller */
    opacity: 1;
    margin-bottom: 1rem;
    display: block;
}

.footer-tagline {
    font-family: 'Huf Script', cursive;
    font-size: clamp(1.4rem, 1.8vw, 2rem);
    /* reduced */
    color: var(--parchment);
    line-height: 1.3;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links-title {
    font-family: 'Gelato Typewriter', monospace;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 700;
    color: var(--light-tan);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.footer-link {
    font-family: 'Gelato Typewriter', monospace;
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--parchment);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--olive);
    transform: translateX(4px);
}

.footer-stamp-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-stamp {
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
    object-fit: contain;
    animation: footerSpin 20s linear infinite;
    opacity: 0.7;
}

@keyframes footerSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.footer-stamp-text {
    font-family: 'Gelato Typewriter', monospace;
    font-size: clamp(0.55rem, 0.7vw, 0.7rem);
    color: var(--parchment);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ── social row ── */
.footer-social-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    /* slightly tighter */
    padding-bottom: 1.5vw;
    /* was 3vw */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.site-footer.reveal .footer-social-row {
    opacity: 1;
    transform: translateY(0);
}

.footer-social-link {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease,
        background 0.3s ease, transform 0.3s ease;
}

.footer-social-link svg {
    width: 30px;
    height: 30px;
}

.footer-social-link:hover {
    color: var(--parchment);
    border-color: var(--coral);
    background: var(--coral);
    transform: translateY(-6px) scale(1.15);
}

/* ── divider ── */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--tan), transparent);
    opacity: 0.25;
    margin-bottom: 1.5vw;
    /* was 2.5vw */
}

/* ── bottom row ── */
.footer-bottom {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;

    font-family: 'Gelato Typewriter', monospace;
    font-size: clamp(0.55rem, 0.7vw, 0.7rem);
    color: rgba(236, 232, 229, 0.85);
    letter-spacing: 0.08em;
    text-align: center;

    opacity: 0;
    transition: opacity 1s ease 0.4s;
}

.site-footer.reveal .footer-bottom {
    opacity: 1;
}

.footer-coconuts {
    animation: bob 3s ease-in-out infinite;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.footer-address {
    font-family: 'Gelato Typewriter', monospace;
    font-size: clamp(0.65rem, 0.85vw, 0.82rem);
    color: rgba(210, 190, 170, 0.85);
    line-height: 1.8;
    font-style: normal;
    margin-top: 0.8rem;
}

/* ── responsive ── */
@media (max-width: 900px) {
    .footer-top-row {
        grid-template-columns: 1fr 1fr;
        gap: 6vw;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .footer-top-row {
        grid-template-columns: 1fr;
    }

    .footer-social-row {
        gap: 1.2rem;
    }
}

/* fallback — if JS observer doesn't fire, show content */
.site-footer .footer-top-row,
.site-footer .footer-social-row,
.site-footer .footer-bottom {
    transition-duration: 0.9s;
}

/* force visible after 2s regardless */
@keyframes forceShow {
    to {
        opacity: 1;
        transform: none;
    }
}

.site-footer .footer-top-row,
.site-footer .footer-social-row,
.site-footer .footer-bottom {
    animation: forceShow 0.1s ease 2s forwards;
}

.footer-bottom-address {
    font-family: 'Gelato Typewriter', monospace;
    font-size: clamp(0.75rem, 1vw, 1rem);
    /* ← increased */
    color: rgba(255, 255, 255, 0.6);
    /* ← white */
    line-height: 1.7;
    font-style: normal;
    text-align: right;
    letter-spacing: 0.03em;
}

/* ── PDF buttons ── */
.footer-docs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-doc-btn {
    background: none;
    border: none;
    padding: 0;

    font-family: 'Gelato Typewriter', monospace;
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--parchment);
    text-align: left;
    cursor: pointer;

    letter-spacing: 0.05em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-doc-btn:hover {
    color: var(--olive);
    transform: translateX(4px);
}

/* ── modal ── */
.pdf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.pdf-modal-content {
    width: 90%;
    max-width: 900px;
    height: 80%;
    background: var(--parchment);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

#pdfViewer {
    width: 100%;
    height: 100%;
}

.pdf-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark-brown);
}

.pdf-download {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: var(--coral);
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 0.8rem;
}

/* =========================
   FINAL FOOTER ALIGNMENT
========================= */

.footer-bottom {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;

    width: 100%;
    padding: 1rem 0;
    text-align: center;
}

.footer-policy-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-policy-links a {
    font-family: 'Gelato Typewriter', monospace;
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    color: var(--parchment);
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-policy-links a:hover {
    color: var(--olive);
    transform: translateX(4px);
}

/* FIX SOCIAL ICON VISIBILITY */
.footer-social-link {
    color: rgba(255, 255, 255, 0.85);
    /* ✅ light white icon */
}

.footer-social-link svg {
    stroke: currentColor;
}

/* HOVER */
.footer-social-link:hover {
    color: var(--coral);
}

/* MOBILE */
@media (max-width: 900px) {
    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .footer-policy-links {
        flex-direction: column;
        gap: 0.4rem;
    }
}

/* ── cycling logo & stamp ── */
.footer-logo-cycle {
    position: relative;
    width: clamp(75px, 10vw, 120px);
    height: clamp(75px, 10vw, 120px);
    margin-bottom: 1rem;
}

.cycle-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
    margin-bottom: 0;
    /* override the default footer-logo block margin */
    display: block;
}

.cycle-logo.active {
    opacity: 1;
}

/* ── individual logo tints: natural green → red → olive ── */
.cycle-logo:nth-child(1) {
    /* _18.svg is naturally green — no filter needed */
    filter: none;
}

.cycle-logo:nth-child(2) {
    /* red / coral */
    filter: brightness(0) saturate(100%) invert(38%) sepia(80%) saturate(600%) hue-rotate(330deg) brightness(1);
}

.cycle-logo:nth-child(3) {
    /* olive / warm green */
    filter: brightness(0) saturate(100%) invert(55%) sepia(40%) saturate(350%) hue-rotate(55deg) brightness(0.9);
}

.footer-stamp-cycle {
    position: relative;
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
}

.cycle-stamp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
    animation: none;   /* override footerSpin, JS re-applies on active */
}

.cycle-stamp.active {
    opacity: 0.7;
    animation: footerSpin 20s linear infinite;
}

/* ── cycling tagline ── */
#footer-tagline {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#footer-tagline.fade-out {
    opacity: 0;
    transform: translateY(6px);
}

#footer-tagline.fade-in {
    opacity: 1;
    transform: translateY(0);
}