/* Structura generală Blocksy Footer. */
#footer.ct-footer {
    position: relative;
    overflow: hidden;
}

#footer [data-row="top"],
#footer [data-row="middle"],
#footer [data-row="bottom"] {
    position: relative;
    isolation: isolate;
}

/* CTA superior. */
#footer [data-row="top"] {
    border-bottom: 1px solid rgba(227, 27, 43, .78);
}

#footer [data-row="top"] .ct-container {
    min-height: 80px;
    align-items: center;
}

#footer [data-row="top"] p {
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 700;
}

#footer [data-row="top"] .wp-block-button__link {
    min-width: 170px;
    padding: 13px 22px;
    color: #fff;
    background: linear-gradient(135deg, #e31b2b, #bd1021);
    border-radius: 11px;
    box-shadow: 0 10px 24px rgba(198, 16, 34, .24);
    font-size: 15px;
    font-weight: 750;
}

/* Gradientul decorativ cerut, ieșit spre marginea dreaptă. */
#footer [data-row="middle"]::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -240px;
    bottom: -240px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(227, 27, 43, .25) 0%, rgba(173, 16, 35, .12) 34%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#footer [data-row="middle"]::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}

#footer [data-row="middle"] .ct-container {
    position: relative;
    z-index: 1;
    padding-top: 52px;
    padding-bottom: 52px;
    align-items: flex-start;
}

/* Elimină spațierile implicite ale widgeturilor și grupurilor folosite ca suport. */
#footer [data-row="middle"] .ct-widget,
#footer [data-row="middle"] .wp-block-group,
#footer [data-row="middle"] .sps-footer-block {
    margin: 0;
}

.sps-footer-block {
    color: #aeb9ca;
    font-size: 14px;
    line-height: 1.55;
}

.sps-footer-block__title {
    margin: 0 0 21px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

/* Brand. */
.sps-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sps-footer-brand__logo {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.sps-footer-brand__name {
    max-width: 145px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.sps-footer-brand__description {
    max-width: 245px;
    margin-top: 22px;
    color: #c0c8d5;
}

.sps-footer-brand__description p { margin: 0; }

.sps-footer-socials {
    display: flex;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 9px;
}

.sps-footer-socials a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #d4dae3;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.sps-footer-socials a:hover {
    color: #fff;
    background: #e31b2b;
    border-color: #e31b2b;
    transform: translateY(-2px);
}

.sps-footer-socials svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Linkuri. */
.sps-footer-links {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 11px 24px;
    list-style: none;
}

.sps-footer-block--produse .sps-footer-links {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
}

.sps-footer-links li {
    position: relative;
    margin: 0;
    padding-left: 13px;
}

.sps-footer-links li::before {
    content: "";
    position: absolute;
    top: .7em;
    left: 0;
    width: 4px;
    height: 4px;
    background: #e31b2b;
    border-radius: 50%;
}

.sps-footer-links a {
    color: #c4ccd8;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

.sps-footer-links a:hover {
    padding-left: 3px;
    color: #ff4858;
}

/* Contact. */
.sps-footer-contact {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 16px;
    list-style: none;
}

.sps-footer-contact li {
    display: grid;
    margin: 0;
    grid-template-columns: 23px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    color: #c4ccd8;
}

.sps-footer-contact svg {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    fill: none;
    stroke: #ef3344;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sps-footer-contact span {
    display: grid;
    gap: 2px;
}

.sps-footer-contact small {
    color: #8f9bae;
    font-size: 12px;
}

.sps-footer-contact a {
    overflow-wrap: anywhere;
    color: #f1f3f6;
    text-decoration: none;
}

.sps-footer-contact a:hover { color: #ff4858; }

/* Bottom footer. */
#footer [data-row="bottom"] {
    border-top: 1px solid rgba(255,255,255,.1);
}

#footer [data-row="bottom"] .ct-container {
    min-height: 68px;
}

#footer [data-row="bottom"] .ct-footer-copyright,
#footer [data-row="bottom"] .ct-footer-copyright p {
    margin: 0;
    color: #aeb8c7;
    font-size: 13px;
}

#footer [data-row="bottom"] .ct-footer-copyright a,
#footer [data-row="bottom"] .footer-menu-inline a {
    color: #d8dde5;
    text-decoration: none;
}

#footer [data-row="bottom"] .footer-menu-inline a:hover { color: #ff4858; }

@media (max-width: 999px) {
    #footer [data-row="middle"] .ct-container {
        row-gap: 42px;
    }

    #footer [data-row="middle"]::after {
        right: -300px;
        opacity: .8;
    }
}

@media (max-width: 689px) {
    #footer [data-row="top"] .ct-container {
        padding-top: 20px;
        padding-bottom: 20px;
        text-align: center;
    }

    #footer [data-row="top"] .wp-block-buttons {
        justify-content: center;
    }

    #footer [data-row="middle"] .ct-container {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .sps-footer-block--produse .sps-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #footer [data-row="bottom"] .ct-container {
        padding-top: 18px;
        padding-bottom: 18px;
        text-align: center;
    }

    #footer [data-row="bottom"] .footer-menu-inline ul {
        justify-content: center;
        row-gap: 8px;
    }
}

/**
 * Pe pagina Solicită demo ascundem rândul CTA din partea
 * superioară a footerului.
 */
body.sps-hide-footer-top #footer [data-row="top"] {
    display: none !important;
}

footer a:not(.sps-footer__button) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

footer a:not(.sps-footer__button):hover,
footer a:not(.sps-footer__button):focus-visible {
    text-decoration-thickness: 2px;
}

footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}




.ct-footer-copyright,
.ct-footer-copyright p {
    color: #c4ccd8 !important;
}

.ct-footer-copyright a {
    color: #ff5c6c !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ct-footer-copyright a:hover,
.ct-footer-copyright a:focus {
    color: #ff8b97 !important;
}

#footer-menu .ct-menu-link {
    text-transform: none !important;
}

/* Elimină limitarea Gutenberg pentru secțiunile principale pe mobil */
@media (max-width: 689px) {
    body.page .entry-content.is-layout-constrained > .wp-block-group.is-layout-constrained {
        width: 100% !important;
        max-width: none !important;
    }
}