/* ==========================================
   RC FOOT — Clubhouse seal footer
   Premium · unique · copper motif
========================================== */

.rc-foot {
    --ft-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ft-copper: #b87333;
    --ft-copper-light: #d4a574;
    --ft-copper-dark: #8a5524;
    --ft-ink: #0a0908;
    --ft-cream: #f4ebe0;
    position: relative;
    isolation: isolate;
    overflow: clip;
    margin-top: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #0a0a0a;
    color: var(--ft-cream);
}

.rc-foot *,
.rc-foot *::before,
.rc-foot *::after {
    box-sizing: border-box;
}

.rc-foot__grain {
    display: none;
}

.rc-foot__bloom {
    display: none;
}

.rc-foot__ghost {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 8%;
    transform: translateX(-50%);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(4.5rem, 16vw, 13rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1px rgba(238, 191, 140, 0.13);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* ---------- Seal mast ---------- */

.rc-foot__seal {
    position: relative;
    z-index: 1;
    padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 72px);
    text-align: center;
}

.rc-foot__seal-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.rc-foot__crest {
    display: inline-flex;
    margin-bottom: 22px;
    transition: transform 0.45s var(--ft-ease);
}

.rc-foot__crest img {
    display: block;
    width: auto;
    max-width: none;
    height: clamp(66px, 9vw, 82px);
    object-fit: contain;
    background: transparent;
    transition: filter 0.4s ease, transform 0.45s var(--ft-ease);
}

.rc-foot__crest:hover {
    transform: translateY(-3px);
}

.rc-foot__crest:hover img {
    filter: drop-shadow(0 0 16px rgba(184, 115, 51, 0.4));
}

.rc-foot__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--ft-copper);
    font-size: 12px;
}

.rc-foot__ornament span {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ft-copper), transparent);
}

.rc-foot__kicker {
    margin: 0 0 14px;
    color: rgba(212, 165, 116, 0.75);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.rc-foot__manifesto {
    margin: 0 0 clamp(28px, 3.5vw, 40px);
    color: #faf6f0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.rc-foot__manifesto em {
    color: var(--ft-copper-light);
    font-style: italic;
    font-weight: 600;
}

/* Twin pathways — unique CTAs */

.rc-foot__pathways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}

.rc-foot__path {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 18px;
    border-radius: 2px 16px;
    text-align: left;
    overflow: hidden;
    transition:
        transform 0.45s var(--ft-ease),
        box-shadow 0.45s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

.rc-foot__path--primary {
    border: 1px solid transparent;
    background: linear-gradient(145deg, var(--ft-copper-dark), var(--ft-copper));
    color: #fff;
    box-shadow: 0 16px 36px rgba(184, 115, 51, 0.32);
}

.rc-foot__path--ghost {
    border: 1px solid rgba(184, 115, 51, 0.35);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ft-cream);
}

.rc-foot__path:hover,
.rc-foot__path:focus-visible {
    transform: translateY(-4px);
    outline: none;
}

.rc-foot__path--primary:hover,
.rc-foot__path--primary:focus-visible {
    box-shadow: 0 22px 48px rgba(184, 115, 51, 0.42);
}

.rc-foot__path--ghost:hover,
.rc-foot__path--ghost:focus-visible {
    border-color: var(--ft-copper);
    background: rgba(184, 115, 51, 0.1);
}

.rc-foot__path-no {
    flex-shrink: 0;
    color: inherit;
    opacity: 0.55;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 700;
}

.rc-foot__path-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.rc-foot__path-label i {
    font-size: 12px;
    transition: transform 0.35s var(--ft-ease);
}

.rc-foot__path:hover .rc-foot__path-label i,
.rc-foot__path:focus-visible .rc-foot__path-label i {
    transform: translateX(5px);
}

/* ---------- Four doors ---------- */

.rc-foot__doors {
    position: relative;
    z-index: 1;
    padding: 0 0 clamp(8px, 1.5vw, 16px);
}

.rc-foot__doors-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(184, 115, 51, 0.18);
    border-bottom: 1px solid rgba(184, 115, 51, 0.18);
}

.rc-foot__door {
    position: relative;
    padding: clamp(28px, 3.5vw, 42px) clamp(18px, 2.2vw, 28px);
    border-right: 1px solid rgba(184, 115, 51, 0.14);
    transition: background 0.45s ease;
}

.rc-foot__door:last-child {
    border-right: 0;
}

.rc-foot__door::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--ft-copper), transparent);
    opacity: 0;
    transform: scaleY(0.3);
    transition: opacity 0.4s ease, transform 0.5s var(--ft-ease);
}

.rc-foot__door:hover {
    background: rgba(184, 115, 51, 0.05);
}

.rc-foot__door:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.rc-foot__door-idx {
    display: block;
    margin-bottom: 10px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(184, 115, 51, 0.35);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    transition: -webkit-text-stroke-color 0.35s ease, color 0.35s ease;
}

.rc-foot__door:hover .rc-foot__door-idx {
    color: var(--ft-copper);
    -webkit-text-stroke-color: transparent;
}

.rc-foot__door-title {
    margin: 0 0 18px;
    color: #faf6f0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.rc-foot__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rc-foot__list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    color: rgba(244, 235, 224, 0.62);
    font-size: 14px;
    transition: color 0.3s ease, transform 0.35s var(--ft-ease), padding-left 0.35s var(--ft-ease);
}

.rc-foot__list a::before {
    content: "";
    width: 0;
    height: 1px;
    background: var(--ft-copper);
    opacity: 0;
    transition: width 0.35s var(--ft-ease), opacity 0.3s ease;
}

.rc-foot__list a:hover,
.rc-foot__list a:focus-visible {
    color: var(--ft-copper-light);
    padding-left: 2px;
    outline: none;
}

.rc-foot__list a:hover::before,
.rc-foot__list a:focus-visible::before {
    width: 10px;
    opacity: 1;
}

/* Connect social as typed rows */

.rc-foot__social {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rc-foot__social a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: rgba(244, 235, 224, 0.62);
    font-size: 14px;
    transition: color 0.3s ease, transform 0.35s var(--ft-ease);
}

.rc-foot__social a i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(184, 115, 51, 0.28);
    background: rgba(184, 115, 51, 0.08);
    color: var(--ft-copper-light);
    font-size: 13px;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.rc-foot__social a:hover,
.rc-foot__social a:focus-visible {
    color: #faf6f0;
    transform: translateX(3px);
    outline: none;
}

.rc-foot__social a:hover i,
.rc-foot__social a:focus-visible i {
    background: linear-gradient(145deg, var(--ft-copper-dark), var(--ft-copper));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(184, 115, 51, 0.3);
}

.rc-foot__hours {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rc-foot__hours div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rc-foot__hours dt {
    color: rgba(212, 165, 116, 0.55);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.rc-foot__hours dd {
    margin: 0;
    color: rgba(244, 235, 224, 0.78);
    font-size: 14.5px;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
}

/* ---------- Contact ribbon ---------- */

.rc-foot__ribbon {
    position: relative;
    z-index: 1;
    margin: clamp(28px, 4vw, 48px) 0 0;
    padding: 0;
}

.rc-foot__ribbon-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 6px;
    padding: 18px 20px;
    border: 1px solid rgba(184, 115, 51, 0.22);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(184, 115, 51, 0.08), rgba(255, 255, 255, 0.02) 40%, rgba(184, 115, 51, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rc-foot__rail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(244, 235, 224, 0.78);
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.3s ease, background 0.35s ease, transform 0.35s var(--ft-ease);
}

.rc-foot__rail i {
    color: var(--ft-copper-light);
    font-size: 13px;
    transition: color 0.3s ease;
}

.rc-foot__rail:hover,
.rc-foot__rail:focus-visible {
    color: #fff;
    background: rgba(184, 115, 51, 0.16);
    transform: translateY(-2px);
    outline: none;
}

.rc-foot__rail:hover i,
.rc-foot__rail:focus-visible i {
    color: var(--ft-copper-light);
}

.rc-foot__rail-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(184, 115, 51, 0.55);
    flex-shrink: 0;
}

/* ---------- Colophon ---------- */

.rc-foot__colophon {
    position: relative;
    z-index: 1;
    padding: 28px 0 32px;
}

.rc-foot__colophon-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(184, 115, 51, 0.12);
}

.rc-foot__colophon p {
    margin: 0;
    color: rgba(244, 235, 224, 0.42);
    font-size: 12.5px;
    letter-spacing: 0.3px;
}

.rc-foot__legal {
    display: flex;
    gap: 18px;
}

.rc-foot__legal a {
    color: rgba(244, 235, 224, 0.45);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.4px;
    transition: color 0.3s ease;
}

.rc-foot__legal a:hover,
.rc-foot__legal a:focus-visible {
    color: var(--ft-copper-light);
    outline: none;
}

/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 2px 14px;
    background: linear-gradient(145deg, var(--ft-copper-dark), var(--ft-copper));
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: none;
    box-shadow: 0 14px 32px rgba(184, 115, 51, 0.38);
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.4s var(--ft-ease),
        box-shadow 0.35s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(138, 85, 36, 0.48);
    outline: none;
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Reveal */
[data-footer-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s var(--ft-ease), transform 0.75s var(--ft-ease);
}

[data-footer-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .rc-foot__doors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rc-foot__door:nth-child(2) {
        border-right: 0;
    }

    .rc-foot__door:nth-child(1),
    .rc-foot__door:nth-child(2) {
        border-bottom: 1px solid rgba(184, 115, 51, 0.14);
    }

    .rc-foot__door:nth-child(3) {
        border-right: 1px solid rgba(184, 115, 51, 0.14);
    }
}

@media (max-width: 768px) {
    .rc-foot__seal {
        padding: 56px 0 40px;
    }

    .rc-foot__manifesto {
        font-size: clamp(1.7rem, 6.5vw, 2.3rem);
    }

    .rc-foot__pathways {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .rc-foot__ribbon-track {
        border-radius: 20px;
        flex-direction: column;
        gap: 4px;
        padding: 12px;
    }

    .rc-foot__rail-dot {
        display: none;
    }

    .rc-foot__rail {
        width: 100%;
        justify-content: center;
        padding: 12px 14px;
    }

    .rc-foot__colophon-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .rc-foot__ghost {
        font-size: clamp(3.2rem, 18vw, 5.5rem);
        top: 4%;
    }

    .rc-foot__doors-grid {
        grid-template-columns: 1fr;
    }

    .rc-foot__door {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(184, 115, 51, 0.14);
        padding: 24px 4px 22px;
    }

    .rc-foot__door:last-child {
        border-bottom: 0;
    }

    .rc-foot__door-title {
        font-size: 1.25rem;
    }

    .rc-foot__crest img {
        height: 62px;
    }

    .rc-foot__path {
        min-height: 58px;
    }

    .back-to-top {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-footer-reveal],
    .rc-foot__path,
    .rc-foot__path-label i,
    .rc-foot__list a,
    .rc-foot__social a,
    .rc-foot__rail,
    .back-to-top,
    .rc-foot__crest,
    .rc-foot__door {
        transition: none !important;
    }

    [data-footer-reveal] {
        opacity: 1;
        transform: none;
    }

    .rc-foot__path:hover,
    .rc-foot__rail:hover,
    .back-to-top:hover {
        transform: none;
    }
}
