/* ==========================================================================
   CREST MODE — MINIMALIST LUXURY EDITORIAL FOOTER
   Clean, Understated, Distinctive Luxury Fashion Aesthetic
   Tailored to reflect the exact feel, typography, and palette of Crest Mode
   ========================================================================== */

:root {
    --cm-footer-bg: #14181f;               /* Deep midnight slate matching site's Pantone Dark #1A252F */
    --cm-footer-border: rgba(255, 255, 255, 0.08);
    --cm-footer-gold: #dfb76c;             /* Warm refined champagne gold */
    --cm-footer-text: #949ca8;             /* Editorial muted silver-grey */
    --cm-footer-heading: #f4f6f8;          /* Crisp soft white */
    --cm-footer-muted: #656d7b;
    --cm-footer-hover: #ffffff;
}

.cm-luxury-footer {
    background-color: var(--cm-footer-bg);
    color: var(--cm-footer-text);
    font-family: var(--secondary-font, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    border-top: none;
    padding: 68px 0 36px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* ── Couture Hand-Sewn Seam & Running Saddle-Stitch ── */
/* 1. Fabric Hem Fold with ambient depth */
.cm-luxury-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.1) 15%, 
        rgba(255, 255, 255, 0.16) 50%, 
        rgba(255, 255, 255, 0.1) 85%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 2. Hand-sewn silk thread running stitch with 3D needle-hole depth */
.cm-luxury-footer::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0px,
        rgba(223, 183, 108, 0.95) 1px,
        #f6e2b8 4px,
        rgba(223, 183, 108, 0.95) 6px,
        rgba(0, 0, 0, 0.85) 7px,
        transparent 7px,
        transparent 14px
    );
    opacity: 0.85;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

.cm-luxury-footer * {
    box-sizing: border-box;
}

.cm-footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Top Row: Editorial Brand Header & Minimalist Newsletter ── */
.cm-footer-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--cm-footer-border);
}

.cm-footer-brand-meta {
    max-width: 480px;
}

.cm-footer-logo-title {
    font-family: var(--primary-font, 'Poppins', sans-serif);
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: #ffffff;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.25s ease;
}

.cm-footer-logo-title:hover {
    color: var(--cm-footer-gold);
}

.cm-footer-tagline {
    font-family: var(--secondary-font, 'Inter', sans-serif);
    font-size: 0.84rem;
    color: var(--cm-footer-text);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Minimalist Inline Newsletter */
.cm-footer-newsletter-wrap {
    width: 100%;
    max-width: 400px;
}

.cm-footer-nl-label {
    display: block;
    font-family: var(--primary-font, 'Poppins', sans-serif);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cm-footer-heading);
    margin-bottom: 10px;
}

.cm-footer-nl-form {
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    transition: border-color 0.3s ease;
}

.cm-footer-nl-form:focus-within {
    border-color: var(--cm-footer-gold);
}

.cm-footer-nl-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.86rem;
    padding: 10px 0;
    font-family: var(--secondary-font, 'Inter', sans-serif);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.cm-footer-nl-input::placeholder {
    color: var(--cm-footer-muted);
    font-weight: 300;
}

.cm-footer-nl-btn {
    background: transparent;
    border: none;
    color: var(--cm-footer-gold);
    font-family: var(--primary-font, 'Poppins', sans-serif);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 0 8px 12px;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cm-footer-nl-btn:hover {
    color: #ffffff;
    transform: translateX(2px);
}

/* ── Middle: Clean Architectural Navigation Columns ── */
.cm-footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 48px 0 42px;
}

.cm-footer-col h4 {
    font-family: var(--primary-font, 'Poppins', sans-serif);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cm-footer-heading);
    margin: 0 0 18px;
}

.cm-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-footer-col ul li {
    margin-bottom: 11px;
}

.cm-footer-col ul li a {
    color: var(--cm-footer-text);
    text-decoration: none;
    font-family: var(--secondary-font, 'Inter', sans-serif);
    font-size: 0.83rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.cm-footer-col ul li a:hover {
    color: var(--cm-footer-hover);
    transform: translateX(3px);
}

/* Direct Concierge & Social Links */
.cm-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cm-footer-text);
    text-decoration: none;
    font-family: var(--secondary-font, 'Inter', sans-serif);
    font-size: 0.83rem;
    font-weight: 300;
    margin-bottom: 12px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cm-footer-contact-item i {
    font-size: 13px;
    color: var(--cm-footer-gold);
    width: 16px;
    text-align: center;
    transition: transform 0.2s ease;
}

.cm-footer-contact-item:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.cm-footer-contact-item:hover i {
    transform: scale(1.1);
}

/* ── Bottom Tier: Clean Legal, Studio L Credit & Payment ── */
.cm-footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--cm-footer-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--cm-footer-muted);
}

.cm-copyright {
    letter-spacing: 0.02em;
    font-weight: 300;
}

.cm-studio-credit {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--cm-footer-muted);
}

.cm-studio-credit a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cm-studio-credit a span,
.cm-studio-credit span {
    color: #d8dde6;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 1px solid rgba(216, 221, 230, 0.3);
    padding-bottom: 1px;
}

.cm-studio-credit a:hover span,
.cm-studio-credit a:hover {
    color: #ffffff;
    border-bottom-color: var(--cm-footer-gold);
}

.cm-payment-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #747c8c;
}

.cm-payment-pills span {
    display: inline-block;
}

/* ── Responsive Adjustments ── */
@media (max-width: 900px) {
    .cm-footer-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .cm-footer-newsletter-wrap {
        max-width: 100%;
    }

    .cm-footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
    }
}

@media (max-width: 768px) {
    .cm-luxury-footer {
        padding: 52px 0 30px;
    }

    .cm-footer-container {
        padding: 0 24px;
    }

    /* Center copyright, Studio L credit, and payment methods on mobile */
    .cm-footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 14px;
        width: 100%;
    }

    .cm-copyright {
        text-align: center;
        width: 100%;
    }

    .cm-studio-credit {
        text-align: center;
        width: 100%;
    }

    .cm-payment-pills {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .cm-luxury-footer {
        padding: 48px 0 28px;
    }

    .cm-footer-container {
        padding: 0 20px;
    }

    .cm-footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 34px 0 28px;
    }
}
