/*
 * Footer — Figma Group 1000008954 (CTA bridge + black columns).
 * Canvas: 1920 × 861 — panels sit partly above black, ~80px into it.
 */

.tourbin-footer {
    --tourbin-footer-cta-teal: #2a9d8f;
    --tourbin-footer-cta-yellow: #fff428;
    --tourbin-footer-link: #939393;
    --tourbin-footer-progress: 1;
    position: relative;
    isolation: isolate;
    background: transparent;
    color: #fff;
    /* Clip slide-in panels (±22vw) so they never widen the page. */
    overflow-x: clip;
    overflow-y: visible;
}

/* -----------------------------------------------------------------------
 * CTA bridge — yellow RIGHT, teal LEFT (Figma). Bottom ~25% sits in black.
 * ---------------------------------------------------------------------- */

.tourbin-footer__cta {
    position: relative;
    z-index: 2;
    /* Pull panels down into the black main (~80px of 316px height). */
    margin-bottom: -90px;
    padding-top: 48px;
    overflow-x: clip;
    overflow-y: visible;
}

.tourbin-footer__cta-stage {
    /* Lock LTR so RTL page does not swap teal/yellow. */
    direction: ltr;
    position: relative;
    display: grid;
    /* Figma: 853 + 1069 on 1920 — abut so rounded caps only kiss */
    grid-template-columns: minmax(0, 853fr) minmax(0, 1069fr);
    align-items: end;
    gap: 0;
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
}

.tourbin-footer__cta-panel {
    position: relative;
    min-height: 0;
    will-change: transform;
}

.tourbin-footer__cta-panel--teal {
    z-index: 1;
    /* Same bar height as yellow (316) via matching aspect scale on 853fr column */
    aspect-ratio: 853 / 316;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: stretch;
    background: var(--tourbin-footer-cta-teal);
    /* Visual radii after Figma flip: soft outer, big inner (right) edge */
    border-radius: 0 100px 100px 0;
    /* Slide in from left; at progress=1 transform is 0 — flush with yellow */
    transform: translate3d(
        calc((1 - var(--tourbin-footer-progress)) * -22vw),
        0,
        0
    );
}

.tourbin-footer__cta-panel--yellow {
    /* Figma Group 1000008970 — 1069×377 shell, rect 316 + mascot overhang */
    z-index: 2;
    /* Figma yellow starts 2px before teal ends — kiss only, no slide-into */
    margin-left: -2px;
    height: auto;
    min-height: 0;
    padding-top: calc(61 / 1069 * 100%); /* mascot overhang above yellow rect */
    background: transparent;
    transform: translate3d(
        calc((1 - var(--tourbin-footer-progress)) * 22vw),
        0,
        0
    );
    color: #000;
}

.tourbin-footer__cta-yellow-inner {
    /* Rectangle 783: 1069×316 — flipped radii → 100px left / 20px right */
    position: relative;
    direction: ltr;
    width: 100%;
    aspect-ratio: 1069 / 316;
    background: var(--tourbin-footer-cta-yellow);
    border-radius: 100px 20px 20px 100px;
    overflow: visible;
}

/* Mascot: left 1101→250/1069, top 6831→−61px above rect, 294×276 */
.tourbin-footer__cta-mascot-wrap {
    position: absolute;
    left: calc(250 / 1069 * 100%);
    top: calc(-61 / 316 * 100%);
    width: calc(294 / 1069 * 100%);
    height: calc(276 / 316 * 100%);
    pointer-events: none;
    z-index: 2;
}

.tourbin-footer__cta-mascot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

/* Brand block shares a common right edge (~1670 on 1920 canvas) */
.tourbin-footer__cta-brand {
    position: absolute;
    inset: 0;
    direction: rtl;
    pointer-events: none;
    z-index: 1;
}

/* Title: 1419→568/1069, 6919→27/316, 252×156, 90/90 */
.tourbin-footer__cta-brand-title {
    position: absolute;
    top: calc(27 / 316 * 100%);
    right: calc(249 / 1069 * 100%);
    width: calc(252 / 1069 * 100%);
    margin: 0;
    font-family: "Liana", "Liana-soft", var(--tourbin-font);
    font-weight: 700;
    font-size: clamp(40px, calc(90 / 1920 * 100vw), 90px);
    line-height: 0.95;
    color: #000;
    text-align: right;
}

/* Tagline: 1217→366/1069, 7118→226/316, 448×50, 18/50 */
.tourbin-footer__cta-brand-tagline {
    position: absolute;
    top: calc(226 / 316 * 100%);
    right: calc(255 / 1069 * 100%);
    width: calc(448 / 1069 * 100%);
    margin: 0;
    font-family: "Liana", "Liana-soft", var(--tourbin-font);
    font-weight: 600;
    font-size: clamp(13px, calc(18 / 1920 * 100vw), 18px);
    line-height: calc(50 / 18);
    color: #000;
    text-align: right;
    white-space: nowrap;
}

.tourbin-footer__cta-teal-inner {
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
    width: min(540px, 100%);
    /* LTR parent: push block to the right (toward yellow seam) */
    margin-left: auto;
    margin-right: 0;
    padding: 40px clamp(28px, 4vw, 72px) 40px clamp(20px, 3vw, 48px);
    text-align: right;
}

.tourbin-footer__cta-teal-text {
    margin: 0;
    width: 100%;
    font-family: "Vazirmatn", var(--tourbin-font);
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    color: #fff;
    text-align: right;
}

.tourbin-footer__cta-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    direction: ltr;
}

.tourbin-footer__cta-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    text-decoration: none;
    font-family: "Vazirmatn", var(--tourbin-font);
    font-size: 15px;
    line-height: 19px;
    direction: ltr;
    transition:
        transform var(--tourbin-duration, 200ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1)),
        box-shadow var(--tourbin-duration, 200ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1)),
        background-color var(--tourbin-duration, 200ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1)),
        filter var(--tourbin-duration, 200ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1));
}

.tourbin-footer__cta-btn:hover {
    transform: translateY(-1px);
}

.tourbin-footer__cta-btn:active {
    transform: translateY(0);
}

.tourbin-footer__cta-btn--whatsapp {
    gap: 4px;
    min-width: 162px;
    background: #25d366;
    box-shadow: 0 4px 10px rgba(30, 138, 110, 0.2);
    color: #fff;
    font-weight: 700;
}

.tourbin-footer__cta-btn--whatsapp:hover {
    background: #1ebe57;
    box-shadow: var(
        --tourbin-shadow-cta-green,
        0 8px 20px rgba(37, 211, 102, 0.28)
    );
}

.tourbin-footer__cta-btn--whatsapp:active {
    box-shadow: 0 2px 8px rgba(30, 138, 110, 0.18);
}

.tourbin-footer__cta-btn--offers {
    min-width: 170px;
    padding: 10px 18px;
    background: #fff428;
    box-shadow: 0 4px 8px rgba(255, 207, 1, 0.2);
    color: #000;
    font-weight: 600;
}

.tourbin-footer__cta-btn--offers:hover {
    background: #ffe600;
    box-shadow: var(
        --tourbin-shadow-cta-yellow,
        0 8px 20px rgba(255, 207, 1, 0.35)
    );
}

.tourbin-footer__cta-btn--offers:active {
    box-shadow: 0 4px 8px rgba(255, 207, 1, 0.2);
}

.tourbin-footer__cta-btn-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
}

.tourbin-footer__cta-btn-arrow {
    width: 15px;
    height: 6px;
    flex-shrink: 0;
    transition: transform var(--tourbin-duration-micro, 120ms)
        var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1));
}

.tourbin-footer__cta-btn--offers:hover .tourbin-footer__cta-btn-arrow {
    transform: translateX(2px);
}

/* -----------------------------------------------------------------------
 * Main black footer
 * ---------------------------------------------------------------------- */

.tourbin-footer__main {
    position: relative;
    z-index: 1;
    padding: 140px 0 40px;
    background: #000;
}

.tourbin-footer__main::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    z-index: 0;
    height: 80px;
    margin: 0;
    padding: 0;
    background-color: transparent;
    background-image: var(
        --tourbin-footer-pattern,
        url("https://tourbintravel.com/wp-content/uploads/theme-image-cache/5c/5c40bb013af57ba0bf04ba83714a5e4659240cf32bba85a36f671b07c504161d.avif")
    );
    background-repeat: repeat-x;
    background-size: 300px 80px;
    background-position: left top;
    pointer-events: none;
}

.tourbin-footer__inner {
    /* LTR track matches Figma column order: cheap → … → brand */
    position: relative;
    z-index: 1;
    direction: ltr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    max-width: 1340px;
    margin-inline: auto;
    padding: 60px clamp(16px, 4vw, 40px) 0;
}

.tourbin-footer__column {
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    flex: 0 0 auto;
    width: 140px;
    text-align: right;
}

.tourbin-footer__column:nth-child(2) {
    width: 141px;
}

.tourbin-footer__column:nth-child(3) {
    width: 142px;
}

.tourbin-footer__column:nth-child(4) {
    width: 115px;
}

.tourbin-footer__heading {
    margin: 0;
    width: 100%;
    font-family: "Liana", "Liana-soft", var(--tourbin-font);
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
    color: #fff;
    text-align: right;
}

.tourbin-footer__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.tourbin-footer__links li {
    width: 100%;
    text-align: right;
}

.tourbin-footer__link {
    display: block;
    width: 100%;
    font-family: "Vazirmatn", var(--tourbin-font);
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    color: var(--tourbin-footer-link);
    text-align: right;
    text-decoration: none;
    transition:
        color var(--tourbin-duration, 200ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1)),
        transform var(--tourbin-duration-micro, 120ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1));
}

.tourbin-footer__link:hover,
.tourbin-footer__link--highlight {
    color: #fff428;
}

.tourbin-footer__link:hover {
    transform: translateX(-2px);
}

.tourbin-footer__brand-col {
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    flex: 0 0 auto;
    width: min(320px, 100%);
    text-align: right;
}

.tourbin-footer__logo-link {
    display: inline-flex;
    align-self: flex-start;
    line-height: 0;
}

.tourbin-footer__logo {
    width: 69px;
    height: 16px;
    object-fit: contain;
    object-position: right center;
    filter: brightness(0) invert(1);
}

.tourbin-footer__brand-text {
    font-family: "Liana", "Liana-soft", var(--tourbin-font);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    text-align: right;
}

.tourbin-footer__description {
    margin: 0;
    width: 100%;
    font-family: "Vazirmatn", var(--tourbin-font);
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    color: #fff;
    text-align: right;
}

.tourbin-footer__contact-row {
    direction: rtl;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.tourbin-footer__contact-text {
    flex: 1 1 auto;
    margin: 0;
    font-family: "Vazirmatn", var(--tourbin-font);
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    color: var(--tourbin-footer-link);
    text-align: right;
    text-decoration: none;
    transition: color var(--tourbin-duration, 200ms)
        var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1));
}

.tourbin-footer__phone-link:hover {
    color: #fff428;
}

.tourbin-footer__contact-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.tourbin-footer__contact-row--phone .tourbin-footer__contact-icon {
    width: 16px;
    height: 16px;
}

.tourbin-footer__social {
    direction: ltr;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 85px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-self: flex-start;
}

.tourbin-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    opacity: 1;
    transition:
        opacity var(--tourbin-duration, 200ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1)),
        transform var(--tourbin-duration-micro, 120ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1));
}

.tourbin-footer__social-link:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.tourbin-footer__social-link:active {
    transform: translateY(0);
    opacity: 0.9;
}

.tourbin-footer__social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tourbin-footer__legal {
    position: relative;
    z-index: 1;
    margin: 48px 0 0;
    padding: 0 16px;
    color: #3a3a3a;
    text-align: center;
}

.tourbin-footer__credit {
    margin: 0;
    font-family: "Vazirmatn", var(--tourbin-font);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.7;
    color: inherit;
}

.tourbin-footer__copyright {
    margin: 0;
    font-family: "Vazirmatn", var(--tourbin-font);
    font-weight: 500;
    font-size: 16px;
    line-height: 25px;
    color: #ffffff;
}

.tourbin-footer__credit {
    margin-top: 2px;
}

.tourbin-footer__credit a {
    color: inherit;
    text-decoration: none;
}

.tourbin-footer__credit a:hover,
.tourbin-footer__credit a:focus-visible {
    color: #6a6a6a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* -----------------------------------------------------------------------
 * Reduced motion
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .tourbin-footer {
        --tourbin-footer-progress: 1;
    }

    .tourbin-footer__cta-panel--teal,
    .tourbin-footer__cta-panel--yellow {
        transform: none;
    }

    .tourbin-footer__cta-btn,
    .tourbin-footer__cta-btn-arrow,
    .tourbin-footer__link,
    .tourbin-footer__social-link {
        transition: none !important;
    }

    .tourbin-footer__cta-btn:hover,
    .tourbin-footer__cta-btn:active,
    .tourbin-footer__link:hover,
    .tourbin-footer__social-link:hover,
    .tourbin-footer__social-link:active,
    .tourbin-footer__cta-btn--offers:hover .tourbin-footer__cta-btn-arrow {
        transform: none !important;
    }

    @media (max-width: 1100px),
        (orientation: landscape) and (min-width: 768px) and (max-width: 1366px) and (min-height: 560px) and (max-height: 900px) {
        .tourbin-footer__cta.has-scroll-reveal:not(.is-in-view)
            .tourbin-footer__cta-panel--yellow,
        .tourbin-footer__cta.has-scroll-reveal:not(.is-in-view)
            .tourbin-footer__cta-panel--teal,
        .tourbin-footer__cta.has-scroll-reveal.is-in-view
            .tourbin-footer__cta-panel--yellow,
        .tourbin-footer__cta.has-scroll-reveal.is-in-view
            .tourbin-footer__cta-panel--teal {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }
}

/* -----------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 1100px),
    (orientation: landscape) and (min-width: 768px) and (max-width: 1366px) and (min-height: 560px) and (max-height: 900px) {
    .tourbin-footer__cta {
        display: flex;
        justify-content: center;
        margin-bottom: -24px;
        padding: 24px 16px 0;
    }

    .tourbin-footer__cta-stage {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 480px;
        margin-inline: auto;
        min-height: 0;
        direction: rtl;
    }

    .tourbin-footer__cta-panel--teal,
    .tourbin-footer__cta-panel--yellow {
        margin: 0;
        min-height: 0;
        width: 100%;
        transform: none;
        will-change: opacity, transform;
    }

    .tourbin-footer__cta-panel--yellow {
        order: 1;
        z-index: 1;
        padding-top: 0;
        margin-left: 0;
    }

    .tourbin-footer__cta-panel--teal {
        order: 2;
        z-index: 1;
        aspect-ratio: auto;
        overflow: visible;
        display: flex;
        align-items: stretch;
        border-radius: 24px;
        box-shadow: 0 12px 28px rgba(42, 157, 143, 0.18);
    }

    .tourbin-footer__cta-yellow-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        aspect-ratio: auto;
        min-height: 0;
        width: 100%;
        padding: 28px 20px 24px;
        border-radius: 24px;
        direction: rtl;
        overflow: visible;
    }

    .tourbin-footer__cta-mascot-wrap {
        position: static;
        width: min(180px, 52vw);
        height: auto;
        aspect-ratio: 294 / 276;
        margin: 0 auto;
    }

    .tourbin-footer__cta-brand {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        pointer-events: auto;
        direction: rtl;
    }

    .tourbin-footer__cta-brand-title {
        position: static;
        width: 100%;
        font-size: clamp(32px, 9vw, 48px);
        line-height: 1;
        text-align: center;
    }

    .tourbin-footer__cta-brand-tagline {
        position: static;
        width: min(100%, 300px);
        margin-inline: auto;
        font-size: clamp(14px, 3.6vw, 16px);
        line-height: 1.5;
        text-align: center;
        white-space: normal;
    }

    .tourbin-footer__cta-teal-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 24px 20px;
        gap: 20px;
        direction: rtl;
        text-align: center;
    }

    .tourbin-footer__cta-teal-text {
        width: 100%;
        max-width: 360px;
        margin-inline: auto;
        font-size: 16px;
        line-height: 1.65;
        text-align: center;
    }

    .tourbin-footer__cta-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        max-width: 360px;
        margin-inline: auto;
        direction: rtl;
    }

    .tourbin-footer__cta-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        height: 48px;
        box-sizing: border-box;
        direction: rtl;
    }

    .tourbin-footer__cta-btn--offers,
    .tourbin-footer__cta-btn--whatsapp {
        direction: rtl;
    }

    .tourbin-footer__cta-btn-label {
        text-align: center;
    }

    .tourbin-footer__cta-btn-icon,
    .tourbin-footer__cta-btn-arrow {
        flex-shrink: 0;
    }

    /* Scroll reveal — fade up only, no overlap shift */
    .tourbin-footer__cta.has-scroll-reveal:not(.is-in-view)
        .tourbin-footer__cta-panel--yellow,
    .tourbin-footer__cta.has-scroll-reveal:not(.is-in-view)
        .tourbin-footer__cta-panel--teal {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    .tourbin-footer__cta-panel--yellow,
    .tourbin-footer__cta-panel--teal {
        transition:
            opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .tourbin-footer__cta.has-scroll-reveal.is-in-view
        .tourbin-footer__cta-panel--yellow {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition-delay: 0.05s;
    }

    .tourbin-footer__cta.has-scroll-reveal.is-in-view
        .tourbin-footer__cta-panel--teal {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition-delay: 0.16s;
    }

    .tourbin-footer__main {
        padding-top: 64px;
    }

    .tourbin-footer__inner {
        flex-wrap: wrap;
        justify-content: flex-start;
        direction: rtl;
    }

    .tourbin-footer__brand-col {
        order: -1;
        width: 100%;
        max-width: none;
    }

    .tourbin-footer__column {
        width: calc(50% - 12px);
    }
}

@media (max-width: 640px) {
    .tourbin-footer__cta {
        margin-bottom: -16px;
        padding: 20px 12px 0;
    }

    .tourbin-footer__cta-stage {
        gap: 10px;
    }

    .tourbin-footer__cta-yellow-inner {
        padding: 24px 16px 20px;
        gap: 10px;
    }

    .tourbin-footer__cta-mascot-wrap {
        width: min(150px, 48vw);
    }

    .tourbin-footer__cta-brand-title {
        font-size: clamp(30px, 11vw, 40px);
    }

    .tourbin-footer__cta-brand-tagline {
        font-size: 14px;
    }

    .tourbin-footer__cta-teal-inner {
        padding: 22px 16px 20px;
        gap: 16px;
    }

    .tourbin-footer__cta-teal-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .tourbin-footer__cta-actions {
        gap: 10px;
    }

    .tourbin-footer__cta-btn {
        height: 46px;
        font-size: 14px;
    }

    .tourbin-footer__brand-col {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .tourbin-footer__logo-link {
        align-self: center;
    }

    .tourbin-footer__logo {
        width: min(220px, 72vw);
        height: auto;
        min-height: 48px;
        object-position: center;
    }

    .tourbin-footer__brand-text {
        font-size: 1.5rem;
        text-align: center;
    }

    .tourbin-footer__description {
        text-align: center;
    }

    .tourbin-footer__column {
        width: 100%;
    }

    .tourbin-footer__copyright,
    .tourbin-footer__credit {
        font-size: 11px;
    }
}
