/* ==========================================================================
   WESTORX Premium Footer — Editorial style
   ========================================================================== */

.wstx-footer {
    background: #0a0a0a;
    color: #d4d4d4;
    padding: 80px 0 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle gold accent line at top */
.wstx-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent) 50%,
        transparent 100%);
    opacity: 0.4;
}

.wstx-footer-inner {
    padding: 0 24px;
}

/* ── Top: 4-column grid ─────────────────────────────────────────────────── */
.wstx-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1.3fr;
    gap: 60px;
    padding-bottom: 60px;
}

/* ── Column 1: Brand ────────────────────────────────────────────────────── */
.wstx-footer-col {
    display: flex;
    flex-direction: column;
}

.wstx-footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    margin-bottom: 18px;
}

.wstx-footer-tagline {
    font-family: var(--font-secondary);
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    text-transform: none;
    margin-top: 4px;
}

.wstx-footer-mission {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #9a9a9a;
    margin: 0 0 24px 0;
    max-width: 320px;
    font-weight: 300;
}

/* ── Social icons ───────────────────────────────────────────────────────── */
.wstx-footer-social {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.wstx-social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a2a;
    color: #d4d4d4;
    text-decoration: none;
    transition: border-color .25s ease, color .25s ease, background .25s ease, transform .25s ease;
}

.wstx-social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(200, 169, 110, 0.08);
    transform: translateY(-2px);
}

/* ── Column heading ─────────────────────────────────────────────────────── */
.wstx-footer-heading {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0 0 22px 0;
    position: relative;
    padding-bottom: 12px;
}
.wstx-footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 1px;
    background: var(--color-accent);
}

/* ── Column lists ───────────────────────────────────────────────────────── */
.wstx-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.wstx-footer-list a {
    color: #9a9a9a;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    transition: color .25s ease, padding-left .25s ease;
    display: inline-block;
}

.wstx-footer-list a:hover {
    color: var(--color-white);
    padding-left: 8px;
}

/* ── Newsletter column ──────────────────────────────────────────────────── */
.wstx-footer-newsletter-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #9a9a9a;
    margin: 0 0 18px 0;
    font-weight: 300;
}

.wstx-footer-newsletter-form {
    display: flex;
    align-items: stretch;
    background: transparent;
    border: 1px solid #2a2a2a;
    transition: border-color .25s ease;
    margin-bottom: 24px;
}
.wstx-footer-newsletter-form:focus-within {
    border-color: var(--color-accent);
}

.wstx-footer-newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 13px 16px;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    outline: none;
    min-width: 0;
}
.wstx-footer-newsletter-input::placeholder {
    color: #6e6e6e;
    font-weight: 300;
}

.wstx-footer-newsletter-btn {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease;
}
.wstx-footer-newsletter-btn:hover {
    background: #b8985d;
}
.wstx-footer-newsletter-btn svg {
    transition: transform .25s ease;
}
.wstx-footer-newsletter-btn:hover svg {
    transform: translateX(3px);
}

.wstx-footer-newsletter-confirm {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--color-accent);
    margin: -8px 0 16px 0;
}
.wstx-footer-newsletter-confirm[hidden] {
    display: none;
}

/* ── Contact info ───────────────────────────────────────────────────────── */
.wstx-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.wstx-footer-contact-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #9a9a9a;
    margin: 0;
}
.wstx-footer-contact-line svg {
    color: var(--color-accent);
    flex-shrink: 0;
}
.wstx-footer-contact-line a {
    color: #d4d4d4;
    text-decoration: none;
    transition: color .25s ease;
}
.wstx-footer-contact-line a:hover {
    color: var(--color-accent);
}

/* ── Bottom bar ─────────────────────────────────────────────────────────── */
.wstx-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid #1f1f1f;
}

.wstx-footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.wstx-footer-copy {
    font-size: 0.78rem;
    color: #6e6e6e;
    margin: 0;
    letter-spacing: 0.04em;
}

.wstx-footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.wstx-footer-legal a {
    font-size: 0.78rem;
    color: #9a9a9a;
    text-decoration: none;
    transition: color .25s ease;
}
.wstx-footer-legal a:hover {
    color: var(--color-accent);
}
.wstx-footer-sep {
    color: #3a3a3a;
    font-size: 0.78rem;
}

/* ── Payment icons ──────────────────────────────────────────────────────── */
.wstx-footer-payments {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wstx-footer-payment-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6e6e6e;
    font-weight: 500;
}

.wstx-footer-payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.wstx-pay-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #d4d4d4;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--font-primary);
    line-height: 1;
    height: 24px;
}

.wstx-pay-icon--ssl {
    color: var(--color-accent);
    border-color: rgba(200, 169, 110, 0.4);
}
.wstx-pay-icon--ssl svg {
    margin-right: 2px;
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wstx-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px 40px;
    }
    .wstx-footer-col--brand,
    .wstx-footer-col--newsletter {
        grid-column: span 2;
    }
    .wstx-footer-col--newsletter {
        max-width: 540px;
    }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .wstx-footer {
        padding-top: 60px;
    }

    .wstx-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .wstx-footer-col--brand,
    .wstx-footer-col--newsletter {
        grid-column: span 1;
    }

    .wstx-footer-logo {
        font-size: 1.5rem;
    }

    .wstx-footer-mission {
        font-size: 0.85rem;
    }

    .wstx-footer-heading {
        font-size: 0.68rem;
    }

    .wstx-footer-list a {
        font-size: 0.92rem;
        padding: 4px 0;
    }

    .wstx-footer-social {
        margin-top: 20px;
    }

    .wstx-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 0;
    }

    .wstx-footer-bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .wstx-footer-legal {
        gap: 8px;
    }

    .wstx-footer-payments {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .wstx-footer-payment-icons {
        gap: 6px;
    }
}

/* ── Hide old newsletter section if was duplicated ──────────────────────── */
.wstx-newsletter-footer + .wstx-footer .wstx-footer-col--newsletter {
    /* Keep both — top one is the dedicated newsletter section above footer */
}
