/* ======================================================
   Site Footer — White Drives
   ====================================================== */

.wd-footer {
    position: relative;
    background: var(--ink-deep);
    color: var(--cream);
    overflow: hidden;
    isolation: isolate;
}

.wd-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--brass-rgb), .08), transparent 60%);
    border-radius: var(--radius-circle);
    transform: translateY(-40%);
    pointer-events: none;
    z-index: 0;
}

.wd-footer__inner {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 1;
}

/* ---- Masthead ---- */
.wd-footer__masthead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 80px 0 48px;
    border-bottom: 1px solid var(--rule);
}

.wd-footer__brand-wrap {
    max-width: 640px;
}

.wd-footer__brand-mark {
    display: inline-block;
    color: var(--brass-soft);
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.wd-footer__headline {
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    margin: 0;
    color: var(--cream);
    letter-spacing: -.01em;
}

.wd-footer__headline .accent {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--brass);
}

.wd-footer__masthead-cta {
    flex-shrink: 0;
}

.wd-footer__masthead-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid var(--brass);
    border-radius: var(--radius-pill);
    color: var(--brass-soft);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .3s ease;
}

.wd-footer__masthead-cta a:hover {
    background: var(--brass);
    color: var(--ink-deep);
    transform: translateY(-2px);
}

.wd-footer__masthead-cta svg {
    width: 16px;
    height: 16px;
}

/* ---- Main grid ---- */
.wd-footer__main {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 48px;
    padding: 72px 0;
    border-bottom: 1px solid var(--rule);
}

.wd-footer__col-title {
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--brass-soft);
    font-weight: 600;
    margin: 0 0 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wd-footer__col-title::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--brass);
}

/* ---- Branches tab ---- */
.wd-footer__branches {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    padding: 4px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(var(--cream-rgb), .12);
    border-radius: var(--radius-pill);
    width: fit-content;
}

.wd-footer__branches button {
    padding: 8px 22px;
    background: transparent;
    border: none;
    color: rgba(var(--cream-rgb), .65);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all .3s ease;
}

.wd-footer__branches button:hover {
    color: var(--cream);
}

.wd-footer__branches button.is-active {
    background: var(--brass);
    color: var(--ink-deep);
}

.wd-footer__branch {
    display: none;
}

.wd-footer__branch.is-active {
    display: block;
    animation: wdFade .4s ease;
}

@keyframes wdFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wd-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wd-footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(var(--cream-rgb), .8);
    font-size: 14px;
    line-height: 1.6;
}

.wd-footer__contact-list li a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.wd-footer__contact-list li a:hover {
    color: var(--brass-soft);
}

.wd-footer__contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(var(--brass-rgb), .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brass);
}

.wd-footer__contact-icon i {
    font-size: 14px;
}

/* ---- Quick links ---- */
.wd-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wd-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(var(--cream-rgb), .75);
    font-size: 15px;
    text-decoration: none;
    transition: all .25s ease;
    font-family: var(--sans);
}

.wd-footer__links a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brass);
    border-radius: var(--radius-circle);
    flex-shrink: 0;
    transition: transform .25s ease;
}

.wd-footer__links a:hover {
    color: var(--brass-soft);
    padding-right: 4px;
}

.wd-footer__links a:hover::before {
    transform: scale(1.4);
}

/* ---- Contact form ---- */
.wd-footer__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wd-footer__form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wd-footer__form-field label {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(var(--cream-rgb), .55);
    font-weight: 600;
}

.wd-footer__form-field input {
    height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(var(--cream-rgb), .15);
    background: rgba(255, 255, 255, .03);
    border-radius: var(--radius-md);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 15px;
    transition: all .25s ease;
    width: 100%;
}

.wd-footer__form-field input:focus {
    outline: none;
    border-color: var(--brass);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 4px rgba(var(--brass-rgb), .1);
}

.wd-footer__form-field input::placeholder {
    color: rgba(var(--cream-rgb), .3);
}

.wd-footer__form .error-text {
    font-size: 12px;
    color: var(--danger-light);
    margin-top: 4px;
}

.wd-footer__form-submit {
    margin-top: 8px;
    padding: 14px 24px;
    background: var(--brass);
    color: var(--ink-deep);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.wd-footer__form-submit:hover {
    background: var(--cream);
}

.wd-footer__form-submit svg {
    width: 16px;
    height: 16px;
}

/* ---- Social icons ---- */
.wd-footer__social {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.wd-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(var(--cream-rgb), .15);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .3s ease;
    font-size: 14px;
}

.wd-footer__social a:hover {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--ink-deep);
    transform: translateY(-2px);
}

/* ---- Bottom strip ---- */
.wd-footer__bottom {
    padding: 28px 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.wd-footer__copy {
    font-size: 13px;
    color: rgba(var(--cream-rgb), .5);
    margin: 0;
    letter-spacing: .01em;
}

.wd-footer__payments {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wd-footer__payments li {
    padding: 6px 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(var(--cream-rgb), .12);
    border-radius: var(--radius-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.wd-footer__payments li:hover {
    border-color: var(--brass);
    background: rgba(var(--brass-rgb), .1);
}

.wd-footer__payments img {
    height: 16px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: .85;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .wd-footer__main {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 56px 0;
    }

    .wd-footer__masthead {
        flex-direction: column;
        align-items: flex-start;
        padding: 56px 0 40px;
    }
}

@media (max-width: 640px) {
    .wd-footer__inner {
        padding: 0 20px;
    }

    .wd-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ---- Login-only minimal footer (auth pages on bone background) ---- */
.wd-log-footer {
    padding: 24px 20px 32px;
    background: transparent;
    font-family: var(--sans);
}

.wd-log-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 24px 0;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.wd-log-footer__copy {
    margin: 0;
    letter-spacing: .01em;
}

.wd-log-footer__brand {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    color: var(--ink);
}

.wd-log-footer__links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wd-log-footer__links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .25s ease;
}

.wd-log-footer__links a:hover {
    color: var(--brand);
}

.wd-log-footer__links span {
    color: var(--rule);
    font-weight: 600;
}

@media (max-width: 640px) {
    .wd-log-footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
