/**
 * Claue V2 — Footer-specific cascade overrides
 *
 * Ensures the 5-column footer grid wins over Magento Blank's footer defaults
 * (which use a single-column ".footer-links" list). Loaded after porto.css
 * in default.xml.
 */

/* ----- Suppress the Magento default footer-links list (replaced by 5-col grid) ----- */
.page-footer .footer.content .footer.links,
.page-footer .footer.content .switcher,
.page-footer .footer.content .block.newsletter,
.page-footer .footer.content > .footer-links {
    display: none !important;
}

/* ----- 5-column grid ----- */
.cl-footer {
    background: #1a1c1f;
    color: #999;
    padding: 60px 0 0;
    margin-top: 60px;
}

.cl-footer .cl-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.cl-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
    gap: 32px;
    padding-bottom: 40px;
}

.cl-footer__col h6 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 22px;
}

.cl-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cl-footer__col ul li {
    margin-bottom: 10px;
    font-size: 13px;
    color: #999;
}

.cl-footer__col ul li a,
.cl-footer__col a {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cl-footer__col ul li a:hover,
.cl-footer__col a:hover {
    color: #fff;
}

/* ----- About col: logo + about text + contact list ----- */
.cl-footer__col--about .cl-footer__logo {
    display: inline-block;
    margin-bottom: 18px;
}

.cl-footer__col--about .cl-footer__logo img {
    max-width: 140px;
    height: auto;
}

.cl-footer__col--about p {
    color: #999;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 18px;
}

.cl-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.cl-footer__contact-list li {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}

/* ----- Social icons ----- */
.cl-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.cl-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Inline brand SVGs inherit the link color via fill="currentColor" (set as an
   attribute in footer.phtml), so the base + hover color rules recolor the glyph. */
.cl-footer__social-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.cl-footer__social a:hover {
    background: #fff;
    color: #1a1c1f;
}

/* ----- Newsletter form (column 5) ----- */
.cl-footer__col--newsletter .cl-footer__newsletter p {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.cl-footer__newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
}

.cl-footer__newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
    outline: none;
    border-radius: 0;
}

.cl-footer__newsletter-form input::placeholder {
    color: #666;
}

.cl-footer__newsletter-form button {
    padding: 10px 22px;
    background: #fff;
    color: #1a1c1f;
    border: 1px solid #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.cl-footer__newsletter-form button:hover {
    background: #ccc;
    border-color: #ccc;
    color: #1a1c1f;
}

.cl-footer__payment {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cl-footer__payment-img {
    max-height: 22px;
    width: auto;
    opacity: 0.85;
    background: #fff;
    padding: 2px 6px;
    border-radius: 3px;
}

/* ----- Bottom bar (copyright + utility links) ----- */
.cl-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
    gap: 12px;
}

.cl-footer__copyright,
.cl-footer__copyright p {
    color: #999;
    margin: 0;
}

.cl-footer__bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cl-footer__bottom-links a {
    color: #999;
    font-size: 12px;
    text-decoration: none;
}

.cl-footer__bottom-links a:hover {
    color: #fff;
}

/* ----- Responsive collapse: stack columns under 992px ----- */
@media (max-width: 992px) {
    .cl-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .cl-footer__grid {
        grid-template-columns: 1fr;
    }
    .cl-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}
