/* ── Footer ── */
.cp-footer {
    background: #0D0C0A;
    border-top: 1px solid var(--color-divider);
}

/* ── 3-column grid ── */
.cp-footer__grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .cp-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .cp-footer__col--location {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1100px) {
    .cp-footer__grid {
        grid-template-columns: 1fr 1.4fr 1fr;
        gap: 5rem;
    }
    .cp-footer__col--location {
        grid-column: auto;
    }
}

/* ── Column label ── */
.cp-footer__col-label {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: block;
}

/* ── Col 1: Brand ── */
.cp-footer__col--brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cp-footer__logo-link {
    display: inline-block;
}

.cp-footer__logo {
    width: 72px;
    height: auto;
    filter: brightness(0) invert(1);
}

.cp-footer__logo-text {
    color: var(--color-text);
    line-height: 1;
}

.cp-footer__tagline {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 220px;
}

/* Quick links */
.cp-footer__quicklinks ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0;
}

.cp-footer__quicklink {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
}

.cp-footer__quicklink::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.cp-footer__quicklink:hover {
    color: var(--color-text);
}

.cp-footer__quicklink:hover::after {
    width: 100%;
}

/* ── Col 2: Location ── */
.cp-footer__col--location {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cp-footer__address {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.2s;
    display: block;
}

.cp-footer__address:hover {
    color: var(--color-accent);
}

/* Map */
.cp-footer__map-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border: 1px solid var(--color-divider);
}

.cp-footer__map {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* dark mode via CSS filter */
    filter: grayscale(100%) invert(92%) contrast(80%) brightness(0.85) hue-rotate(180deg);
}

/* Barber pole pin overlay */
.cp-footer__map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
    z-index: 2;
}

/* Transparent overlay link to open Google Maps on click */
.cp-footer__map-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
}

.cp-footer__directions {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-block;
}

.cp-footer__directions:hover {
    opacity: 0.75;
}

.cp-footer__hours-wrap {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-divider);
}

.cp-footer__hours {
    font-family: var(--font-mono);
    font-size: var(--fs-caption);
    color: var(--color-text);
    line-height: 2;
}

/* ── Col 3: Social ── */
.cp-footer__col--social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cp-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cp-footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-divider);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cp-footer__social-icon:hover {
    color: var(--color-text);
    border-color: var(--color-accent);
    background: rgba(200, 107, 42, 0.08);
}

/* Placeholder icons (no URL set yet) */
.cp-footer__social-icon--placeholder {
    opacity: 0.3;
    cursor: default;
}

.cp-footer__phone-wrap {
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-divider);
}

.cp-footer__phone {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-text);
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.cp-footer__phone:hover {
    color: var(--color-accent);
}

.cp-footer__book {
    align-self: flex-start;
    margin-top: auto;
}

/* ── Bottom bar ── */
.cp-footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
    border-top: 1px solid var(--color-divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cp-footer__copyright {
    color: var(--color-text-muted);
}

/* Back to top */
.cp-footer__top-btn {
    background: none;
    border: 1px solid var(--color-divider);
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
}

.cp-footer__top-btn:hover {
    color: var(--color-text);
    border-color: var(--color-accent);
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .cp-footer__book {
        width: 100%;
        justify-content: center;
    }

    .cp-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
