/**
 * Fanavar — services-footer-new “ticket tear” contact strip (phone + address + All Services).
 * Single source: loads on all Fanavar pages via master.blade.php (no .pc-dark coupling).
 * Colors: skin tokens (skin-fanavar-steel.css) — steel / dark steel / yellow accent.
 */

/* Full-range section lives inside .services-showcase-new which uses overflow:hidden in custom.css; allow perforation notches to paint. */
.services-showcase-new.full-range-services-section {
    overflow: visible !important;
}

.services-footer-new {
    --sfn-panel-bg: var(--quaternary);
    --sfn-notch-bg: var(--fanavar-canvas);
    --sfn-notch-size: 24px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: transparent;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    border: none;
    padding: 0;
    gap: 0;
}

.services-footer-new__panel-left {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    min-width: 100px;
    min-height: 100px;
    border-radius: var(--border-radius);
    background: var(--sfn-panel-bg) url("/assets/templates/fanavar/images/services-footer/invite-friend-l.png") no-repeat left top / cover;
    margin-inline-end: -2px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.services-footer-new__panel-left svg {
    color: var(--light);
    opacity: 0.95;
}

@media (min-width: 640px) {
    .services-footer-new__panel-left {
        min-width: 130px;
    }
}

.services-footer-new__divider {
    position: relative;
    width: 0;
    flex-shrink: 0;
    z-index: 2;
}

.services-footer-new__divider::before,
.services-footer-new__divider::after {
    content: "";
    position: absolute;
    width: var(--sfn-notch-size);
    height: var(--sfn-notch-size);
    border-radius: 50%;
    background: var(--sfn-notch-bg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.services-footer-new__divider::before {
    top: calc(var(--sfn-notch-size) / -2);
}

.services-footer-new__divider::after {
    bottom: calc(var(--sfn-notch-size) / -2);
}

.services-footer-new__perforation {
    position: absolute;
    top: calc(var(--sfn-notch-size) / 2 + 2px);
    bottom: calc(var(--sfn-notch-size) / 2 + 2px);
    left: 50%;
    width: 0;
    border-left: 2px dashed var(--light-rgba-20);
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.services-footer-new__panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: var(--border-radius);
    background: var(--sfn-panel-bg) url("/assets/templates/fanavar/images/services-footer/invite-friend-r.png") no-repeat left top / cover;
    padding: 12px 20px;
    min-height: 100px;
}

@media (min-width: 640px) {
    .services-footer-new__panel-right {
        padding: 25px 40px;
    }
}

.services-footer-new__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.services-footer-new__title {
    font-size: clamp(14px, 2.8vw, 20px);
    font-weight: 700;
    color: var(--light);
    margin: 0;
    line-height: 1.4;
}

.services-footer-new__title a {
    color: var(--light);
    text-decoration: none;
    font-weight: 700;
}

.services-footer-new__title a:hover {
    text-decoration: underline;
}

.services-footer-new__desc {
    font-size: 14px;
    line-height: 20px;
    color: var(--light-rgba-60);
    margin: 0;
}

.services-footer-new a.services-footer-new__cta[class] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 14px;
    background: var(--primary) !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    color: var(--light) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .services-footer-new__cta {
        padding: 0 24px;
    }
}

.services-footer-new a.services-footer-new__cta[class]:hover {
    background: var(--secondary) !important;
    color: var(--dark) !important;
    text-decoration: none;
}

.services-footer-new__cta-chevron {
    font-size: 9px;
    color: var(--light-rgba-70);
    transition: transform 0.2s ease, color 0.2s ease;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.services-footer-new__cta:hover .services-footer-new__cta-chevron {
    transform: translateX(3px);
    color: var(--dark);
}

html[dir="rtl"] .services-footer-new__cta:hover .services-footer-new__cta-chevron {
    transform: translateX(-3px);
}

html[dir="rtl"] .services-footer-new__title a {
    direction: ltr;
    unicode-bidi: isolate;
}

@media (max-width: 639px) {
    .services-footer-new {
        flex-direction: column;
        border-radius: var(--border-radius);
        overflow: hidden;
    }

    .services-footer-new__panel-left {
        aspect-ratio: auto;
        min-height: 72px;
        width: 100%;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        margin-inline-end: 0;
        margin-bottom: -2px;
    }

    .services-footer-new__divider {
        width: 100%;
        height: 0;
    }

    .services-footer-new__divider::before,
    .services-footer-new__divider::after {
        top: 50%;
        transform: translateY(-50%);
        left: calc(var(--sfn-notch-size) / -2);
    }

    .services-footer-new__divider::after {
        left: auto;
        right: calc(var(--sfn-notch-size) / -2);
    }

    .services-footer-new__perforation {
        top: 50%;
        bottom: auto;
        left: calc(var(--sfn-notch-size) / 2 + 2px);
        right: calc(var(--sfn-notch-size) / 2 + 2px);
        width: auto;
        height: 0;
        border-left: none;
        border-top: 2px dashed var(--light-rgba-20);
        transform: translateY(-50%);
    }

    .services-footer-new__panel-right {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 16px;
        min-height: unset;
    }

    .services-footer-new__cta {
        width: 100%;
        justify-content: center;
    }

    .services-footer-new__title {
        font-size: 14px;
        line-height: 1.35;
    }

    .services-footer-new__desc {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-footer-new__cta,
    .services-footer-new__cta-chevron {
        transition: none !important;
    }
}
