/* =========================================
   Carrelage Footer Pro — Stylesheet
   ========================================= */

/* ---------- Reset & Foundation ---------- */
.cf-footer,
.cf-footer *,
.cf-footer *::before,
.cf-footer *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cf-footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #111113;
    color: #a8a8b3;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: hidden;
}

/* Subtle background texture */
.cf-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 10% 0%, rgba(178, 71, 19, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 90% 100%, rgba(251, 182, 22, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}



/* ---------- Container ---------- */
.cf-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------- Main Section ---------- */
.cf-footer__main {
    padding: 56px 0 40px;
}

.cf-footer__main > .cf-footer__container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}

/* ---------- Brand Column ---------- */
.cf-footer__brand {
    padding-right: 20px;
}

.cf-footer__logo-link {
    display: inline-block;
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
}

.cf-footer__logo-link:hover {
    opacity: 0.85;
}

.cf-footer__logo {
    max-height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.cf-footer__logo-link:hover .cf-footer__logo {
    filter: brightness(0) invert(0.85);
}

.cf-footer__logo-text {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.cf-footer__logo-text:hover {
    color: #FBB616;
}

.cf-footer__tagline {
    color: #6b6b76;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 280px;
}

/* ---------- Phone ---------- */
.cf-footer__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.cf-footer__phone svg {
    color: #FBB616;
    flex-shrink: 0;
}

.cf-footer__phone a {
    color: #d4d4dc;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.cf-footer__phone a:hover {
    color: #FBB616;
}

/* ---------- Newsletter ---------- */
.cf-footer__newsletter {
    margin-top: 4px;
}

.cf-footer__newsletter-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b6b76;
    margin-bottom: 10px;
    font-weight: 500;
}

.cf-footer__newsletter-form {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 280px;
}

.cf-footer__newsletter-form:focus-within {
    border-color: rgba(178, 71, 19, 0.4);
    box-shadow: 0 0 0 3px rgba(178, 71, 19, 0.08);
}

.cf-footer__newsletter-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #e4e4e9;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.cf-footer__newsletter-form input[type="email"]::placeholder {
    color: #555560;
}

.cf-footer__newsletter-form button {
    background: linear-gradient(135deg, #B24713, #8a3610);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cf-footer__newsletter-form button:hover {
    background: linear-gradient(135deg, #c95520, #B24713);
}

.cf-footer__newsletter-form button:active {
    transform: scale(0.95);
}

/* ---------- Column Headings ---------- */
.cf-footer__heading {
    color: #e4e4e9;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-bottom: 12px;
}

.cf-footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #B24713, transparent);
    border-radius: 1px;
}

.cf-footer__heading--payment {
    margin-top: 28px;
}

.cf-footer__heading-icon {
    display: flex;
    align-items: center;
    color: #FBB616;
    opacity: 0.7;
}

/* ---------- Link Lists ---------- */
.cf-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cf-footer__links li {
    margin-bottom: 0;
}

.cf-footer__links a {
    display: inline-flex;
    align-items: center;
    color: #8e8e99;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.cf-footer__links a::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 14px;
    background: #B24713;
    border-radius: 1px;
    transition: transform 0.25s ease;
}

.cf-footer__links a:hover {
    color: #e4e4e9;
    padding-left: 12px;
}

.cf-footer__links a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* ---------- Payment Icons ---------- */
.cf-footer__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cf-footer__payment-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
    cursor: default;
}

.cf-footer__payment-card:hover {
    border-color: rgba(178, 71, 19, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.cf-footer__payment-card svg {
    display: block;
    width: 42px;
    height: 28px;
}

/* ---------- Bottom Bar ---------- */
.cf-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.cf-footer__bottom > .cf-footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cf-footer__copyright {
    color: #555560;
    font-size: 12.5px;
    letter-spacing: 0.2px;
}

.cf-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cf-footer__bottom-links a {
    color: #555560;
    text-decoration: none;
    font-size: 12.5px;
    transition: color 0.25s ease;
}

.cf-footer__bottom-links a:hover {
    color: #FBB616;
}

.cf-footer__separator {
    color: #333340;
    font-size: 10px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 1024px) {
    .cf-footer__main > .cf-footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .cf-footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }

    .cf-footer__brand .cf-footer__logo-link,
    .cf-footer__brand .cf-footer__logo-text,
    .cf-footer__brand .cf-footer__tagline,
    .cf-footer__brand .cf-footer__phone {
        grid-column: 1;
    }

    .cf-footer__brand .cf-footer__newsletter {
        grid-column: 2;
        grid-row: 1 / 4;
        align-self: center;
    }

    .cf-footer__newsletter-form {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .cf-footer__main {
        padding: 40px 0 28px;
    }

    .cf-footer__main > .cf-footer__container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cf-footer__brand {
        display: block;
    }

    .cf-footer__newsletter-form {
        max-width: 100%;
    }

    .cf-footer__heading {
        margin-bottom: 14px;
    }

    .cf-footer__bottom > .cf-footer__container {
        flex-direction: column;
        text-align: center;
    }

    .cf-footer__payments {
        justify-content: flex-start;
    }
}
