/*
 * Stock Heydari standalone footer v1.7.1
 * Independent from Elementor and theme container widths.
 */

body.shk-native-footer-hide-existing .elementor-location-footer,
body.shk-native-footer-hide-existing #colophon,
body.shk-native-footer-hide-existing .stockheydari-kit.stockheydari-footer,
body.shk-native-footer-hide-existing footer.site-footer:not(#shk-standalone-footer),
body.shk-native-footer-hide-existing .site-footer:not(#shk-standalone-footer),
body.shk-native-footer-hide-existing .footer-wrapper:not(#shk-standalone-footer),
body.shk-native-footer-hide-existing .footer-wrap:not(#shk-standalone-footer),
body.shk-native-footer-hide-existing .ast-small-footer-wrap,
body.shk-native-footer-hide-existing .ast-builder-grid-row-container.site-footer-focus-item,
body.shk-native-footer-hide-existing .footer-widgets-area,
body.shk-native-footer-hide-existing .footer-main {
    display: none !important;
}

#shk-standalone-footer,
#shk-standalone-footer * {
    box-sizing: border-box;
}

#shk-standalone-footer {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 30px 0 0;
    overflow: hidden;
    color: #f8fafc;
    background: var(--shk-footer-bg);
    background:
        radial-gradient(circle at 8% 4%, color-mix(in srgb, var(--shk-footer-accent) 18%, transparent) 0, transparent 32%),
        linear-gradient(155deg, color-mix(in srgb, var(--shk-footer-bg) 92%, #1b2230) 0%, var(--shk-footer-bg) 62%, #06080c 100%);
    border: 0;
    font-family: var(--shk-footer-font, inherit);
    direction: rtl;
}

#shk-standalone-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--shk-footer-accent) 72%, #fff), transparent);
    opacity: .65;
}

#shk-standalone-footer a {
    color: inherit;
    text-decoration: none;
}

#shk-standalone-footer svg {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

#shk-standalone-footer .shk-native-container {
    width: min(1220px, calc(100% - 36px));
    margin-inline: auto;
}

#shk-standalone-footer .shk-native-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
    padding: 18px 20px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 55px rgba(0,0,0,.17);
    backdrop-filter: blur(14px);
}

#shk-standalone-footer .shk-native-cta-copy span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: color-mix(in srgb, var(--shk-footer-accent) 70%, #fff);
    font-size: 11px;
    font-weight: 800;
}

#shk-standalone-footer .shk-native-cta-copy span::before {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--shk-footer-accent);
}

#shk-standalone-footer .shk-native-cta h2 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 1.65vw, 22px);
    font-weight: 850;
    line-height: 1.65;
    letter-spacing: -.015em;
}

#shk-standalone-footer .shk-native-cta-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

#shk-standalone-footer .shk-native-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

#shk-standalone-footer .shk-native-btn:hover {
    transform: translateY(-2px);
}

#shk-standalone-footer .shk-native-btn-primary {
    color: #fff;
    background: var(--shk-footer-accent);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--shk-footer-accent) 28%, transparent);
}

#shk-standalone-footer .shk-native-btn-primary:hover {
    background: color-mix(in srgb, var(--shk-footer-accent) 82%, #000);
}

#shk-standalone-footer .shk-native-btn-ghost {
    color: #eef2f7;
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.045);
}

#shk-standalone-footer .shk-native-btn-ghost:hover {
    border-color: rgba(255,255,255,.34);
    background: rgba(255,255,255,.08);
}

#shk-standalone-footer .shk-native-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) minmax(140px, .65fr) minmax(140px, .65fr) minmax(235px, 1fr);
    gap: 34px;
    align-items: start;
    padding: 4px 0 30px;
}

#shk-standalone-footer .shk-native-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

#shk-standalone-footer .shk-native-logo-mark {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    padding: 6px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--shk-footer-accent), color-mix(in srgb, var(--shk-footer-accent) 65%, #000));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--shk-footer-accent) 23%, transparent);
}

#shk-standalone-footer .shk-native-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#shk-standalone-footer .shk-native-logo strong,
#shk-standalone-footer .shk-native-logo small {
    display: block;
}

#shk-standalone-footer .shk-native-logo strong {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

#shk-standalone-footer .shk-native-logo small {
    margin-top: 2px;
    color: #9ca4b1;
    font-size: 9.5px;
    font-weight: 600;
}

#shk-standalone-footer .shk-native-brand>p {
    max-width: 420px;
    margin: 14px 0 13px;
    color: #aeb5bf;
    font-size: 11px;
    line-height: 2;
}

#shk-standalone-footer .shk-native-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#shk-standalone-footer .shk-native-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    color: #c8cdd5;
    background: rgba(255,255,255,.025);
    font-size: 9px;
    font-weight: 700;
}

#shk-standalone-footer .shk-native-trust svg {
    width: 15px;
    height: 15px;
    color: color-mix(in srgb, var(--shk-footer-accent) 76%, #fff);
}

#shk-standalone-footer .shk-native-column h3 {
    position: relative;
    margin: 3px 0 14px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 850;
}

#shk-standalone-footer .shk-native-column h3::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: var(--shk-footer-accent);
}

#shk-standalone-footer .shk-native-links {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#shk-standalone-footer .shk-native-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-height: 31px;
    color: #aeb5bf;
    font-size: 10.5px;
    transition: color .18s ease, transform .18s ease;
}

#shk-standalone-footer .shk-native-links a svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    color: var(--shk-footer-accent);
    transform: translateX(5px);
    transition: opacity .18s ease, transform .18s ease;
}

#shk-standalone-footer .shk-native-links a:hover {
    color: #fff;
    transform: translateX(-2px);
}

#shk-standalone-footer .shk-native-links a:hover svg {
    opacity: 1;
    transform: translateX(0);
}

#shk-standalone-footer .shk-native-contact {
    display: grid;
    gap: 10px;
}

#shk-standalone-footer .shk-native-contact h3 {
    margin-bottom: 5px;
}

#shk-standalone-footer .shk-native-contact>a,
#shk-standalone-footer .shk-native-contact>div {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #aeb5bf;
    font-size: 10px;
    line-height: 1.8;
}

#shk-standalone-footer .shk-native-contact>a:hover {
    color: #fff;
}

#shk-standalone-footer .shk-native-contact svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: color-mix(in srgb, var(--shk-footer-accent) 75%, #fff);
}

#shk-standalone-footer .shk-native-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    border-top: 1px solid rgba(255,255,255,.085);
}

#shk-standalone-footer .shk-native-bottom p {
    margin: 0;
    color: #7f8792;
    font-size: 9.5px;
}

#shk-standalone-footer .shk-native-socials {
    display: flex;
    align-items: center;
    gap: 7px;
}

#shk-standalone-footer .shk-native-socials a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 9px;
    color: #aeb5bf;
    background: rgba(255,255,255,.025);
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

#shk-standalone-footer .shk-native-socials a:hover {
    color: #fff;
    border-color: var(--shk-footer-accent);
    background: var(--shk-footer-accent);
    transform: translateY(-2px);
}

#shk-standalone-footer .shk-native-socials svg {
    width: 16px;
    height: 16px;
}

#shk-standalone-footer .shk-native-admin-edit {
    position: absolute;
    left: 12px;
    top: 10px;
    z-index: 3;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    color: #d9dde3;
    background: rgba(0,0,0,.35);
    font-size: 10px;
    opacity: .45;
    transition: opacity .18s ease;
}

#shk-standalone-footer .shk-native-admin-edit:hover {
    opacity: 1;
}

.shk-native-floating {
    position: fixed;
    z-index: 9998;
    left: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--shk-footer-font, inherit);
}

.shk-native-floating a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(0,0,0,.23);
    transition: transform .18s ease;
}

.shk-native-floating a:hover {
    transform: translateY(-3px);
}

.shk-native-floating svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shk-native-floating .shk-native-float-whatsapp {
    gap: 7px;
    padding: 0 13px;
    background: #168a52;
    font-size: 10px;
    font-weight: 800;
}

.shk-native-floating .shk-native-float-call {
    background: var(--shk-footer-accent, #d71920);
}

@media (max-width: 980px) {
    #shk-standalone-footer .shk-native-grid {
        grid-template-columns: minmax(280px, 1.3fr) 1fr 1fr;
        gap: 26px;
    }
    #shk-standalone-footer .shk-native-contact {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #shk-standalone-footer .shk-native-contact h3 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    #shk-standalone-footer {
        padding-top: 20px;
    }
    #shk-standalone-footer .shk-native-container {
        width: min(100% - 24px, 1220px);
    }
    #shk-standalone-footer .shk-native-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        min-height: 0;
        margin-bottom: 22px;
        padding: 16px;
        border-radius: 17px;
    }
    #shk-standalone-footer .shk-native-cta h2 {
        font-size: 16px;
    }
    #shk-standalone-footer .shk-native-cta-actions {
        width: 100%;
    }
    #shk-standalone-footer .shk-native-btn {
        flex: 1;
        min-height: 42px;
        padding-inline: 10px;
    }
    #shk-standalone-footer .shk-native-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 18px;
        padding-bottom: 22px;
    }
    #shk-standalone-footer .shk-native-brand {
        grid-column: 1 / -1;
    }
    #shk-standalone-footer .shk-native-contact {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
    #shk-standalone-footer .shk-native-contact h3 {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    #shk-standalone-footer .shk-native-cta-actions {
        flex-direction: column;
    }
    #shk-standalone-footer .shk-native-btn {
        width: 100%;
    }
    #shk-standalone-footer .shk-native-grid {
        grid-template-columns: 1fr;
    }
    #shk-standalone-footer .shk-native-brand {
        grid-column: auto;
    }
    #shk-standalone-footer .shk-native-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 13px 0;
    }
    .shk-native-floating {
        left: 12px;
        bottom: 12px;
    }
    .shk-native-floating .shk-native-float-whatsapp span {
        display: none;
    }
    .shk-native-floating .shk-native-float-whatsapp {
        width: 45px;
        padding: 0;
    }
}

/* Modular v1.0: old floating actions are managed by a separate plugin. */
.shk-native-floating,
.stockheydari-kit .floating-actions { display:none !important; }
