/* ============================================================
   WORTAL FOOTER  –  wft- prefix
   ============================================================ */

/* ---------- reset / base ---------- */
.wft-footer {
    background: #1F1F1F;
    color: #C9C9C9;
    font-family: "Plus Jakarta Sans", sans-serif;
    overflow: hidden;
}

/* ---------- top section ---------- */
.wft-top {
    padding: 56px 0 40px;
}

.wft-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    gap: 48px;
    justify-content: center;
}

/* ---------- columns ---------- */
.wft-col {
    flex: 1;
}

.wft-col--brand {
    flex: 0 0 220px;
    max-width: 220px;
}

.wft-col--links {
    flex: 0 0 160px;
}

.wft-col--badge {
    flex: 0 0 120px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* ---------- brand col ---------- */
.wft-logo img {
    width: 120px;
    display: block;
    margin-bottom: 20px;
}

.wft-social {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.wft-social__link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: border-color .2s, background .2s;
    text-decoration: none;
}

.wft-social__link svg {
    width: 16px;
    height: 16px;
}

.wft-social__link:hover {
    border-color: #E07832;
    background: rgba(224, 120, 50, .15);
}

.wft-app-label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .04em;
    margin: 0 0 12px;
}

.wft-apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wft-app-badge img {
    width: 130px;
    display: block;
}

/* ---------- link columns ---------- */
.wft-col__heading {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .05em;
    margin: 0 0 20px;
    text-transform: none;
}

.wft-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wft-links li {
    margin-bottom: 13px;
}

.wft-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color .2s;
}

.wft-links a:hover {
    color: #E07832;
}

/* ---------- ISO badge ---------- */
.wft-iso {
    width: 100px;
    display: block;
}

/* ============================================================
   Big WORTAL text section
   ============================================================ */
.wft-bigtext-wrap {
    position: relative;
    overflow: hidden;
    line-height: 1;
    padding-top: 40px;
    background-color: #1F1F1F;
    perspective: 1000px;
}

.wft-bigtext-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("https://wortal.co/wp-content/uploads/2026/06/wft-bigtext-wrap-bg.svg");
    background-repeat: repeat-x;
    top: 90px;
}

.wft-bigtext {
    font-family: "Plus Jakarta Sans", "Arial Black", sans-serif;
    font-weight: 900;
    font-size: clamp(100px, 23vw, 450px);
    letter-spacing: -0.02em;
    line-height: 0.85;
    white-space: nowrap;
    text-align: center;
    user-select: none;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

/* bottom fade to black */
.wft-bigtext-fade {
    position: relative;
    margin-top: -80px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #111);
    pointer-events: none;
    z-index: 3;
}

/* ---------- copyright bar ---------- */
.wft-bottom {
    background: #111;
    text-align: center;
    padding: 14px 40px;
    font-size: 12px;
    color: #666;
}

.wft-bottom p {
    margin: 0;
}

/* ============================================================
   Mobile sticky bar
   ============================================================ */
.mobile-sticky-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    z-index: 999;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: #fff;
    border-top: 1px solid #ddd;
}

.mobile-sticky-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.btn-Schedule-demo {
    background: #FF4000;
    color: #fff !important;
}

.cta-btn-start-free {
    background: #fff;
    color: #222 !important;
    border-left: 1px solid #eee;
}

.btn-download-app {
    background: #FF4000;
    color: #fff !important;
    border-left: 1px solid #eee;
}

@media (min-width: 769px) {
    .mobile-sticky-bar {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet – 2-col grid for link cols */
@media (max-width: 1024px) {
    .wft-inner {
        flex-wrap: wrap;
        gap: 36px;
    }

    .wft-col--brand {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 24px;
    }

    .wft-logo {
        flex: 0 0 100%;
    }

    .wft-col--badge {
        flex: 0 0 100%;
        justify-content: flex-start;
    }

    .wft-col--links {
        flex: 1 1 calc(50% - 24px) !important;
        min-width: 140px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .wft-inner {
        padding: 0 20px;
        gap: 28px;
    }

    .wft-col--links {
        flex: 1 1 100%;
    }

    .wft-col--brand {
        gap: 16px;
    }

    .wft-apps {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .wft-app-badge img {
        width: 110px;
    }

    .wft-iso {
        width: 80px;
    }

    .wft-bottom {
        padding: 14px 20px;
    }

    .wft-col--features {
        flex: 1 1 100% !important;
    }
}

/* Extra padding for mobile sticky bar */
@media (max-width: 768px) {
    .wft-footer {
        padding-bottom: 56px;
    }

    .wft-col--features .wft-links {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .wft-col--features .wft-links li {
        margin-bottom: 13px;
    }

    .wft-col--features {
        flex: 1 1 100% !important;
    }

    .wft-bottom-blur {
        display: none;
    }
}

.wft-col--features {
    flex: 0 0 20%;
}

.wft-col--features .wft-links {
    columns: 2;
    column-gap: 32px;
}

.wft-col--features .wft-links li {
    break-inside: avoid;
    margin-bottom: 13px;
}

/* ============================================================
   Scroll-Triggered Animation Control
   ============================================================ */

.wft-grain-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Base static state before element enters the viewport */
.wft-animate-letter {
    display: inline-block;
    font-family: "Plus Jakarta Sans", "Arial Black", sans-serif;
    font-weight: 900;
    line-height: 0.82;
    position: relative;
    opacity: 0;
    transform: translateY(-120vh) rotateX(25deg) scaleY(1.3);
    background: linear-gradient(90deg, #4E4C4B 0%, #8a5a3a 25%, #d4722e 45%, #FF9452 55%, #d4722e 75%, #4E4C4B 100%);
    background-size: 600% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: url(#wft-grain);
}

/* Animation only couples once the wrapper gains .wft-triggered */
.wft-triggered .wft-animate-letter {
    animation: wftDropIn 0.95s cubic-bezier(.32, 0, .67, 1) forwards;
}

.wft-animate-letter:nth-child(1) { background-position: 0% 0%; }
.wft-animate-letter:nth-child(2) { background-position: 20% 0%; }
.wft-animate-letter:nth-child(3) { background-position: 40% 0%; }
.wft-animate-letter:nth-child(4) { background-position: 60% 0%; }
.wft-animate-letter:nth-child(5) { background-position: 80% 0%; }
.wft-animate-letter:nth-child(6) { background-position: 100% 0%; }

.wft-animate-letter::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -4px;
    height: 16%;
    background: radial-gradient(ellipse at center, rgba(255, 148, 82, 0.7), transparent 70%);
    opacity: 0;
    filter: blur(8px);
}

.wft-triggered .wft-animate-letter::after {
    animation: wftGroundFlash 0.6s ease-out forwards;
}

@keyframes wftDropIn {
    0% {
        opacity: 0;
        transform: translateY(-120vh) rotateX(30deg) scaleY(1.4) scaleX(0.85);
    }
    55% {
        opacity: 1;
    }
    72% {
        transform: translateY(1.5vh) rotateX(-4deg) scaleY(0.9) scaleX(1.05);
    }
    84% {
        transform: translateY(-0.6vh) rotateX(2deg) scaleY(1.03) scaleX(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scaleY(1) scaleX(1);
    }
}

@keyframes wftGroundFlash {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
    }
}

.wft-shake-active {
    animation: wftSettleShake 0.45s ease-out 0s 1;
}

@keyframes wftSettleShake {
    0%, 100% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(-2px, 1.5px);
    }
    40% {
        transform: translate(2px, -1.2px);
    }
    60% {
        transform: translate(-1.2px, 1px);
    }
    80% {
        transform: translate(1px, -0.8px);
    }
}

.wft-bottom-blur {
    position: absolute;
    width: 2195px;
    height: 271px;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: #1F1F1F;
    filter: blur(44.55px);
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   Wortal CRM Bot UI Window
   ============================================================ */

#wortal-crm-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #1a73e8;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: transform 0.2s ease;
}

#wortal-crm-launcher:hover {
    transform: scale(1.08);
}

#wortal-crm-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 480px;
    background: #f8f9fa;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.w-bot-hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.w-bot-header {
    background-color: #1a73e8;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w-bot-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.w-bot-avatar {
    width: 32px;
    height: 32px;
    background: #0d47a1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.w-bot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.w-bot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.w-message {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.4;
}

.bot-msg {
    background: white;
    color: #333;
    align-self: flex-start;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-msg {
    background: #e8f0fe;
    color: #1a73e8;
    align-self: flex-end;
    border-top-right-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.system-msg {
    background: #e2e3e5;
    color: #383d41;
    align-self: center;
    font-size: 11px;
    text-align: center;
    max-width: 90%;
    border-radius: 6px;
}

.w-typing {
    font-style: italic;
    color: #777;
}

.w-bot-footer {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
    gap: 8px;
}

#wortal-bot-input {
    flex: 1;
    border: 1px solid #dadce0;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 13px;
}

#w-send-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

#w-send-btn:hover {
    background: #1557b0;
}
