/* =========================================================
   TECHNOTO FOOTER
   Isolated styles - safe to store in the database Styles field
   ========================================================= */

.tn-footer {
    --tn-bg: #071321;
    --tn-bg-soft: #0d1d30;
    --tn-text: #f4f7fb;
    --tn-muted: #a0aec0;
    --tn-line: rgba(174, 194, 218, .14);
    --tn-accent: #37c8b1;
    --tn-accent-light: #77e4d2;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--tn-text);
    background:
        radial-gradient(ellipse at 78% 0%, rgba(55, 200, 177, .12), transparent 34%),
        linear-gradient(135deg, #071321 0%, #0b192a 54%, #081523 100%);
    font-family: inherit;
    direction: rtl;
}

.tn-footer,
.tn-footer * {
    box-sizing: border-box;
}

.tn-footer a {
    color: inherit;
    text-decoration: none;
}

.tn-footer__ambient {
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .13;
    pointer-events: none;
}

.tn-footer__ambient--top {
    top: -250px;
    right: 12%;
    background: var(--tn-accent);
}

.tn-footer__ambient--bottom {
    bottom: -260px;
    left: 5%;
    background: #527cff;
}

.tn-footer__container {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.tn-footer__main {
    display: grid;
    grid-template-columns: 1.35fr .8fr 1fr 1fr;
    gap: 42px;
    padding-block: 72px 52px;
}

.tn-footer__brand {
    min-width: 0;
}

.tn-footer__logo {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    margin-bottom: 19px;
}

.tn-footer__logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 54px;
    object-fit: contain;
}

.tn-footer__about {
    max-width: 340px;
    margin: 0;
    color: var(--tn-muted);
    font-size: 13px;
    line-height: 2.2;
}

.tn-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.tn-footer__social a {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid var(--tn-line);
    border-radius: 12px;
    color: #c7d3e1;
    background: rgba(255, 255, 255, .035);
    transition: .25s ease;
}

.tn-footer__social a:hover {
    transform: translateY(-3px);
    border-color: rgba(55, 200, 177, .55);
    color: var(--tn-accent-light);
    background: rgba(55, 200, 177, .08);
}

.tn-footer__social svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tn-footer__title {
    position: relative;
    margin: 7px 0 24px;
    padding-bottom: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
}

.tn-footer__title::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tn-accent), transparent);
    content: "";
}

.tn-footer__links {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tn-footer__links a {
    display: inline-block;
    color: var(--tn-muted);
    font-size: 13px;
    line-height: 1.9;
    transition: color .2s ease, transform .2s ease;
}

.tn-footer__links a:hover {
    transform: translateX(-4px);
    color: var(--tn-accent-light);
}

.tn-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    color: var(--tn-muted) !important;
    font-size: 13px;
    line-height: 1.9;
    transition: color .2s ease;
}

.tn-footer__contact-item:hover {
    color: var(--tn-accent-light) !important;
}

.tn-footer__icon {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(55, 200, 177, .2);
    border-radius: 11px;
    color: var(--tn-accent);
    background: rgba(55, 200, 177, .07);
}

.tn-footer__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tn-footer__callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 27px 30px;
    border: 1px solid rgba(130, 163, 195, .19);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 0%, rgba(55, 200, 177, .11), transparent 38%),
        linear-gradient(110deg, rgba(17, 39, 60, .94), rgba(12, 29, 47, .94));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .13);
}

.tn-footer__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--tn-accent-light);
    font-size: 12px;
    font-weight: 700;
}

.tn-footer__callout h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 800;
    line-height: 1.8;
}

.tn-footer__callout p {
    margin: 0;
    color: var(--tn-muted);
    font-size: 13px;
    line-height: 1.9;
}

.tn-footer__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(55, 200, 177, .55);
    border-radius: 12px;
    color: #06201d !important;
    background: linear-gradient(135deg, #77e4d2, #37c8b1);
    box-shadow: 0 8px 24px rgba(55, 200, 177, .16);
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tn-footer__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(55, 200, 177, .25);
}

.tn-footer__button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tn-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding-block: 21px;
    border-top: 1px solid var(--tn-line);
}

.tn-footer__copyright {
    margin: 0;
    color: #8798ad;
    font-size: 12px;
    line-height: 1.9;
}

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

.tn-footer__bottom-links a,
.tn-footer__top-button {
    color: #9eacbf;
    font-size: 12px;
    transition: color .2s ease;
}

.tn-footer__bottom-links a:hover,
.tn-footer__top-button:hover {
    color: var(--tn-accent-light);
}

.tn-footer__top-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.tn-footer__top-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--tn-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1050px) {
    .tn-footer__main {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 36px 28px;
    }

    .tn-footer__brand {
        grid-column: 1 / -1;
    }

    .tn-footer__about {
        max-width: 620px;
    }
}

@media (max-width: 700px) {
    .tn-footer__container {
        width: min(100% - 32px, 560px);
    }

    .tn-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
        padding-block: 48px 36px;
    }

    .tn-footer__brand,
    .tn-footer__contact {
        grid-column: 1 / -1;
    }

    .tn-footer__callout {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 19px;
    }

    .tn-footer__button {
        width: 100%;
    }

    .tn-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-top: 24px;
    }
}

@media (max-width: 380px) {
    .tn-footer__main {
        grid-template-columns: 1fr;
    }

    .tn-footer__brand,
    .tn-footer__contact {
        grid-column: auto;
    }
}
