/* ============================================================
   CBFooter Module - Coriace Business Style
   ============================================================ */

/* --- Base Footer Container --- */
.cbfooter-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    font-family: 'Open Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    background-color: #12345e; /* Default dark blue from the image */
}

/* Remove wave and glassmorphism */
.cbfooter-wave {
    display: none !important;
}

/* --- Container & Grid --- */
.cbfooter-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cbfooter-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding: 40px 0;
}

@media (max-width: 991px) {
    .cbfooter-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .cbfooter-main { grid-template-columns: 1fr; }
}

/* --- Typography & Titles --- */
.cbfooter-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.cbfooter-media-text p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #ffffff;
}

.cbfooter-media-text a, 
.cbfooter-custom a {
    color: #ffffff;
    text-decoration: none;
}

.cbfooter-media-text a:hover, 
.cbfooter-custom a:hover {
    text-decoration: underline;
}

/* --- Column 1 (Logo area) --- */
.cbfooter-brand {
    text-align: center;
    margin-bottom: 15px;
}

.cbfooter-logo-wrapper {
    display: inline-block;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
}

.cbfooter-logo-img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* --- Contact List --- */
.cbfooter-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cbfooter-contact li {
    font-size: 13px;
    margin-bottom: 10px;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
}

.cbfooter-contact li i {
    margin-right: 10px;
    margin-top: 4px;
    font-size: 14px;
}

/* --- Quick Links (NOS SERVICES style) --- */
.cbfooter-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cbfooter-links li {
    margin-bottom: 8px;
}

.cbfooter-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.cbfooter-links li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* --- Social Networks --- */
.cbfooter-social {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cbfooter-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #2b5082; /* Lighter blue circle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cbfooter-social a:hover {
    background-color: #3b6baf;
}

/* --- TinyMCE content resets inside footer --- */
.cbfooter-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cbfooter-column ul li {
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cbfooter-column ul li a {
    color: #fff;
    text-decoration: none;
}
.cbfooter-column ul li a:hover {
    text-decoration: underline;
}

/* --- Animations --- */
.cbfooter-fade-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cbfooter-fade-up.visible {
    opacity: 1;
    transform: none;
}

/* --- Back to Top --- */
.cbfooter-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background: #12345e;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cbfooter-back-top.show,
.cbfooter-back-top.visible {
    opacity: 1;
    visibility: visible;
}

.cbfooter-back-top:hover {
    background: #2b5082;
}

/* --- Newsletter Form --- */
.cbfooter-newsletter-group {
    display: flex;
    gap: 0;
    margin-top: 10px;
}

.cbfooter-newsletter-group input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.25);
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: rgba(255,255,255,0.08);
    color: inherit;
    font-size: 13px;
    outline: none;
}

.cbfooter-newsletter-group input[type="email"]::placeholder {
    color: rgba(255,255,255,0.55);
}

.cbfooter-layout-minimal .cbfooter-newsletter-group,
.cbfooter-layout-minimal .cbfooter-social,
.cbfooter-layout-minimal .cbfooter-column {
    justify-content: center;
    text-align: center;
}

.cbfooter-newsletter-group button {
    padding: 9px 16px;
    border: none;
    border-radius: 0 4px 4px 0;
    background: #f0a500;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cbfooter-newsletter-group button:hover {
    background: #d18f00;
}

/* Copyright Bar style */
.cbfooter-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
