/* ─────────────────────────────────────────
   ZabanBom Footer — ResponsiveScaledBox
   Fixed 375px design canvas · RTL · snap-page
   v10
───────────────────────────────────────── */

/* ── Base wrapper ── */
.zb-ft {
    background: #FEF7ED;
    color: #2a1a12;
    box-sizing: border-box;
    direction: rtl;
    position: relative;
}

.zb-ft::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 50% at 50% 10%, rgba(255, 210, 160, 0.2), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── Scale viewport + 375px canvas ── */
.zb-ft__viewport {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.zb-ft__canvas {
    width: 375px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 var(--canvas-padding-x);
    transform-origin: top center;
    will-change: transform;
}

.zb-ft__stack {
    display: flex;
    flex-direction: column;
    gap: var(--content-gap);
    margin-top: var(--space-1);
}

/* ── Cards ── */
.zb-ft-card {
    background: #FFF8F0;
    /* background: #fff; */
    border-radius: 24px;
    padding: var(--space-3) var(--space-2);
    box-shadow: 0 4px 22px rgba(72, 45, 30, 0.07);
    border: 1px solid rgba(210, 185, 150, 0.18);
    box-sizing: border-box;
}

/* Card header — centered title + badge pinned to right */
.zb-ft-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.zb-ft-card__head--center {
    position: relative;
    justify-content: center;
    min-height: 52px;
    padding: 0 58px;
    margin-bottom: 10px;
}

.zb-ft-card__head--center .zb-ft-card__badge {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Title */
.zb-ft-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2a1a12;
    line-height: 1.4;
}

.zb-ft-card__title--center {
    text-align: center;
    width: 100%;
    margin-bottom: 6px;
}

/* Badge circle */
.zb-ft-card__badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fdeee4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c94a30;
}

/* SVG icons (custom) */
.zb-ft-svg {
    display: block;
    flex-shrink: 0;
    color: #c94a30;
}

.zb-ft-svg--badge {
    width: 24px;
    height: 24px;
}

.zb-ft-svg--flower {
    width: 17px;
    height: 17px;
    opacity: 0.9;
}

/* Bootstrap icon sizing inside circles */
.zb-ft-card__badge .bi,
.zb-ft-badge-icon {
    font-size: 22px;
    color: #c94a30;
    line-height: 1;
}

.zb-ft-contact__icon .bi {
    font-size: 15px;
    color: #c94a30;
    line-height: 1;
}

/* Diamond divider (about card) */
.zb-ft-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    max-width: 180px;
    margin-inline: auto;
}

.zb-ft-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5ad82, transparent);
}

.zb-ft-divider__diamond {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: #c94a30;
    transform: rotate(45deg);
}

/* Orange underline (contact card) */
.zb-ft-card__underline {
    width: 32px;
    height: 2px;
    border-radius: 99px;
    background: #c94a30;
    margin: 0 auto 12px;
}

/* Body text */
.zb-ft-card__text,
.zb-ft-card__address {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    color: #4a3428;
    text-align: center;
}

.zb-ft-card--address .zb-ft-card__head {
    margin-bottom: 0;
}

.zb-ft-card__address {
    margin-top: 10px;
}

/* ── Contact list ── */
.zb-ft-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zb-ft-contact {
    display: grid;
    grid-template-columns: 1fr auto;
    direction: ltr;
    align-items: center;
    column-gap: 12px;
    padding: 11px 0;
    min-height: 48px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(200, 175, 140, 0.25);
}

.zb-ft-contact:last-child {
    border-bottom: none;
}

.zb-ft-contact__text {
    order: 1;
    font-size: 15px;
    color: #2a1a12;
    text-decoration: none;
    text-align: left;
    line-height: 1.4;
}

/* Persian‑text row: left‑justified inside ltr grid column */
.zb-ft-contact--fa .zb-ft-contact__text {
    text-align: left;
    direction: rtl;
}

.zb-ft-contact__text:hover {
    color: #c94a30;
}

.zb-ft-contact__icon {
    order: 2;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fdeee4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c94a30;
}

/* ── Bottom branding ── */
.zb-ft-bottom {
    margin-top: 16px;
    padding: 12px 0 20px;
    text-align: center;
}

.zb-ft-bottom__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.zb-ft-bottom__line {
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5ad82);
}

.zb-ft-bottom__line:last-child {
    background: linear-gradient(90deg, #c5ad82, transparent);
}

.zb-ft-bottom__slogan {
    margin: 0 0 6px;
    font-size: 14px;
    color: #c94a30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.6;
}

.zb-ft-bottom__dot {
    color: #c94a30;
    font-size: 9px;
}

.zb-ft-bottom__brand {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: #a8876a;
    text-transform: uppercase;
}

/* ── Full-page snap integration ── */
.fullpage-scroll .footer-group {
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    width: 100%;
    height: var(--page-h, 100dvh) !important;
    min-height: var(--page-h, 100dvh) !important;
    max-height: var(--page-h, 100dvh) !important;
    overflow: hidden !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    position: relative;
}

.fullpage-scroll .footer-group__inner {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100%;
    transform: none !important;
}

.fullpage-scroll .zb-ft {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: calc(var(--nav-h, var(--mobile-nav-h, 4.25rem)) + 10px) 0
        calc(12px + env(safe-area-inset-bottom, 0px));
}

.fullpage-scroll .zb-ft__viewport,
.fullpage-scroll .zb-ft__viewport.footer-content__fit {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    gap: 0 !important;
    padding: 0 !important;
}

/* ── Mobile footer page chrome (navbar visible on is-on-footer) ── */
@media (max-width: 899.98px) {
    body.is-on-footer {
        background: #faf4ec !important;
    }

    body.is-on-footer #navbar.navbar-custom {
        transform: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    body.is-on-footer .fullpage-scroll .zb-ft {
        padding-top: calc(var(--nav-h, var(--mobile-nav-h, 4.25rem)) + 12px);
    }
}

/* Override premium.css mobile snap rules */
@media (max-width: 767.98px) {
    .fullpage-scroll .footer-group {
        display: flex !important;
        height: var(--page-h, 100dvh) !important;
        min-height: var(--page-h, 100dvh) !important;
        max-height: var(--page-h, 100dvh) !important;
        overflow: hidden !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }

    .fullpage-scroll .footer-group__inner {
        display: flex !important;
        height: 100% !important;
        transform: none !important;
    }

    .fullpage-scroll .zb-ft__viewport.footer-content__fit {
        gap: 0 !important;
        padding: 0 !important;
    }
}

/* ── Desktop / wide: 3-column layout (no ResponsiveScaledBox) ── */
@media (min-width: 900px) {
    .zb-ft__viewport {
        align-items: center;
        justify-content: center;
        padding: 0 var(--page-gutter);
    }

    .zb-ft__canvas {
        width: min(100%, 1100px) !important;
        max-width: 1100px;
        padding: 0 var(--space-4);
        transform: none !important;
        will-change: auto;
    }

    .zb-ft__stack {
        flex-direction: row;
        align-items: stretch;
        gap: var(--space-3);
    }

    .zb-ft__stack > .zb-ft-card:nth-child(1) { flex: 1.15; }
    .zb-ft__stack > .zb-ft-card:nth-child(2) { flex: 1; }
    .zb-ft__stack > .zb-ft-card:nth-child(3) { flex: 0.85; }

    .zb-ft-card {
        padding: 1.5rem 1.35rem;
        border-radius: 20px;
    }

    .zb-ft-card__head--center {
        min-height: 46px;
        padding: 0 52px;
    }

    .zb-ft-card__title {
        font-size: 1.2rem;
    }

    .zb-ft-card__badge {
        width: 46px;
        height: 46px;
    }

    .zb-ft-svg--badge {
        width: 1.3rem;
        height: 1.3rem;
    }

    .zb-ft-svg--contact {
        width: 0.95rem;
        height: 0.95rem;
    }

    .zb-ft-card__text,
    .zb-ft-card__address {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .zb-ft-contact {
        padding: 0.6rem 0;
    }

    .zb-ft-contact__text {
        font-size: 0.9rem;
    }

    .zb-ft-contact__icon {
        width: 34px;
        height: 34px;
    }

    .zb-ft-bottom {
        margin-top: 1.6rem;
        padding: 1.2rem 0 2rem;
    }

    .zb-ft-bottom__slogan {
        font-size: 0.88rem;
    }

    .zb-ft-bottom__brand {
        font-size: 0.72rem;
    }

    .fullpage-scroll .zb-ft {
        padding: calc(var(--nav-h, 4.5rem) + 1rem) 0
            calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    .fullpage-scroll .zb-ft__viewport,
    .fullpage-scroll .zb-ft__viewport.footer-content__fit {
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .zb-ft__canvas {
        padding: 0 2.5rem;
    }
}
