/**
 * Footer + pre-footer polish (iori theme).
 * Loaded after style.css — uses CSS variables from theme options where possible.
 */

.site-pre-footer {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    border-top: 1px solid rgba(7, 25, 32, 0.06);
}

.site-pre-footer__newsletter {
    margin-top: 0 !important;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}

.box-newsletter.box-newsletter--split {
    padding: 2.25rem 2rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(7, 25, 32, 0.06);
    box-shadow: 0px 0px 30px 0px rgba(14, 41, 50, 0.08);
}

.box-newsletter.box-newsletter--split::before {
    opacity: 0.35;
}

.box-newsletter.box-newsletter--split .newsletter-split__title {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.box-newsletter.box-newsletter--split .newsletter-split__lede {
    line-height: 1.55;
    max-width: 34rem;
}

.box-newsletter.box-newsletter--split .form-newsletter {
    box-shadow: 0 1px 0 rgba(7, 25, 32, 0.04);
    border: 1px solid rgba(7, 25, 32, 0.08);
}

.footer-trust-panel {
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(165deg, #ffffff 0%, #f3f8f8 100%);
    border: 1px solid rgba(0, 109, 119, 0.12);
    box-shadow: 0px 0px 30px 0px rgba(14, 41, 50, 0.08);
    align-self: stretch;
}

.footer-trust-panel__title {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
    max-width: 22rem;
}

.footer-trust-panel__media {
    margin-top: 0.5rem;
}

.footer-trust-panel__img {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(14, 41, 50, 0.1);
}

.footer--professional .footer-1 {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
    border-top: 1px solid rgba(7, 25, 32, 0.07);
    background: linear-gradient(180deg, #f9fafb 0%, var(--footer-background-color, #ffffff) 28%);
}

.footer--professional .footer-nav-column__title,
.footer--professional .footer-text-column h5 {
    position: relative;
    display: inline-block;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    padding-bottom: 12px;
    margin-bottom: 1.25rem !important;
}

.footer--professional .footer-nav-column__title::after,
.footer--professional .footer-text-column h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color, #006d77), var(--success-color, #2fb344));
    opacity: 0.9;
}

.footer--professional .footer-brand-column .font-sm,
.footer--professional .footer-brand-column p {
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.footer--professional .footer-brand-column h6 {
    margin-top: 0.5rem;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 12px !important;
}

.footer--professional .footer-brand-column .icon-socials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 109, 119, 0.15);
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.footer--professional .footer-brand-column .icon-socials img {
    max-width: 22px;
    max-height: 22px;
}

.footer--professional .footer-brand-column .icon-socials:hover {
    transform: translateY(-3px);
    box-shadow: 0px 0px 30px 0px rgba(14, 41, 50, 0.08);
}

.footer--professional .menu-footer li {
    margin-bottom: 10px;
}

.footer--professional .menu-footer li a {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 2px 0 !important;
}

.footer--professional .menu-footer li a:hover {
    padding-left: 0 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer--professional .footer-2 {
    border-top: 1px solid rgba(7, 25, 32, 0.06);
}

.footer--professional .footer-bottom {
    padding: 1.35rem 0 !important;
    font-size: 14px;
    border-top: 0 !important;
}

.footer--professional .footer__copyright {
    color: var(--footer-text-color) !important;
    opacity: 0.92;
    letter-spacing: 0.01em;
}

.footer--professional .menu-bottom--legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.footer--professional .menu-bottom--legal li {
    display: inline-block;
    margin: 0;
}

.footer--professional .menu-bottom--legal li a {
    padding: 0 !important;
    font-weight: 500;
}

.footer--professional .menu-bottom--legal li a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 992px) {
    .footer--professional .menu-bottom--legal {
        justify-content: flex-start;
    }
}

/* Aligns with custom.scss — ensures link hovers work without a full style.css rebuild */
footer {
    color: var(--footer-text-color);
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: var(--footer-heading-color) !important;
}

footer h1.color-brand-1,
footer h2.color-brand-1,
footer h3.color-brand-1,
footer h4.color-brand-1,
footer h5.color-brand-1,
footer h6.color-brand-1 {
    color: var(--footer-heading-color) !important;
}

footer p,
footer .font-sm,
footer .font-md,
footer li.font-sm {
    color: var(--footer-text-color) !important;
}

footer a {
    color: var(--footer-text-color) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--footer-heading-color) !important;
}

footer .footer-1 {
    background-color: var(--footer-background-color);
    background-image: var(--footer-background-image);
    background-repeat: no-repeat;
    background-size: cover;
}

footer .footer-2 {
    background-color: var(--footer-bottom-background-color);
}