/* Site-wide polish (2026-11-27): header sign-in and phone menu, one arrow
   direction on buttons, balanced headings. Loaded after fixes.css. */

/* ---- one arrow on every "Get started" button: ↗ in English, ↖ in Arabic ---- */
.btn-site svg.fa-arrow-up,
.menu_right > li > a.btn-site svg.fa-arrow-up {
    transform: rotate(45deg);
}

[dir="rtl"] .btn-site svg.fa-arrow-up,
[dir="rtl"] .menu_right > li > a.btn-site svg.fa-arrow-up {
    transform: rotate(-45deg);
}

/* ---- headings and intros never leave one word alone on a line ---- */
.home-txt h1,
.sec_head h2,
.txt-ready h2 {
    text-wrap: balance;
}

.home-txt p,
.sec_head p,
.txt-ready p {
    text-wrap: pretty;
}

.section_home--hub .home-txt p {
    max-width: 760px;
    margin-inline: auto;
    text-wrap: balance;
}

/* ---- header ---- */
.menu_right {
    gap: 28px;
}

.menu_right > li.wk-signin > a {
    font-weight: 500;
    color: var(--main-color);
}

.menu_right > li.wk-signin > a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.wk-menu-extra,
.wk-head-cta {
    display: none !important;
}

/* Tighter desktop widths: the menu keeps one line. */
@media (min-width: 992px) and (max-width: 1299px) {
    .main_menu > li > a { padding-inline: 12px 22px; }
    .menu_right { gap: 20px; }
    .logo-site img { max-width: 140px; }
}

@media (max-width: 991px) {
    #header .container {
        gap: 12px;
    }

    .wk-head-cta {
        display: inline-flex !important;
        align-items: center;
        margin-inline: auto 0 !important;
        padding: 9px 16px !important;
        min-height: 0 !important;
        font-size: 13.5px !important;
        border-radius: 10px !important;
        white-space: nowrap;
    }

    .main_menu {
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
    }

    .main_menu li.wk-menu-extra {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        margin-top: 8px;
        padding: 16px 20px 4px;
        border-top: 1px solid #eef1ef;
    }

    .main_menu li.wk-menu-extra > a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 0;
        color: #000;
        font-size: 15px;
    }

    .wk-menu-extra__btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .wk-menu-extra .icon-lang { display: inline-block; flex: none; }

    .wk-menu-extra__btns a {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 500;
    }

    .wk-signin-btn {
        border: 1px solid rgb(15 105 57 / 28%);
        color: var(--main-color);
        background: rgb(15 105 57 / 4%);
    }
}

/* ---- footer: who we are + newsletter, then the link columns ---- */
.top-footer {
    padding: 64px 0 40px;
    border-top: 1px solid #eef1ef;
}

.wk-ft {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) 3fr;
    gap: 56px;
}

.wk-ft__cols {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
}

.wk-ft__logo img {
    display: block;
    width: 124px;
    height: auto;
}

.wk-ft__tagline {
    margin: 16px 0 26px;
    color: #4f5b55;
    font-size: 15px;
    line-height: 1.7;
    max-width: 330px;
}

.wk-ft__nl label {
    display: block;
    margin-bottom: 10px;
    color: #000;
    font-size: 14px;
    line-height: 1.6;
}

.wk-ft__nl label b {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
}

.wk-ft__nl label span {
    color: #6b7671;
    font-size: 13.5px;
}

.wk-ft__nl-row {
    display: flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid #dfe5e1;
    border-radius: 12px;
    background: #fff;
    max-width: 380px;
    transition: border-color .2s, box-shadow .2s;
}

.wk-ft__nl-row:focus-within {
    border-color: rgb(15 105 57 / 55%);
    box-shadow: 0 0 0 4px rgb(15 105 57 / 10%);
}

.wk-ft__nl-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 10px;
    font-size: 14px;
    background: transparent;
}

.wk-ft__nl-row button {
    flex: none;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    background: var(--main-color);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

.wk-ft__nl-row button:hover {
    background: #0b5530;
}

.top-footer .menu-ft h5 {
    margin-bottom: 18px;
    font-size: 15.5px;
    font-weight: 700;
}

.top-footer .menu-ft ul li {
    margin-bottom: 13px;
}

.top-footer .menu-ft ul li a {
    color: #3d4742;
    font-size: 14.5px;
    transition: color .2s;
}

.top-footer .menu-ft ul li a:hover {
    color: var(--main-color);
}

.top-footer .item-download {
    width: 100%;
    max-width: 170px;
    padding: 8px 14px;
    border-color: #cfd6d2;
}

.top-footer .item-download strong {
    white-space: nowrap;
}

.cont-bt {
    gap: 16px 24px;
    flex-wrap: wrap;
    padding: 24px 0;
}

.wk-ft__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
}

.wk-ft__legal .copyRight {
    margin: 0;
    color: #3d4742;
}

.wk-ft__legal a {
    color: #6b7671;
    font-size: 13.5px;
}

.wk-ft__legal a:hover {
    color: var(--main-color);
}

.lst-social li a {
    width: 38px;
    height: 38px;
    border-color: #cfd6d2;
    color: #2b3530;
    transition: background .2s, color .2s, border-color .2s;
}

.lst-social li a:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

@media (max-width: 1199px) {
    .wk-ft { grid-template-columns: 1fr; gap: 40px; }
    .wk-ft__brand { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: end; }
    .wk-ft__logo, .wk-ft__tagline { grid-column: 1; }
    .wk-ft__nl { grid-column: 2; grid-row: 1 / span 2; }
    .wk-ft__tagline { margin-bottom: 0; }
}

/* Phones: each column opens on its title */
@media (max-width: 767px) {
    .top-footer { padding: 44px 0 16px; }
    .wk-ft { gap: 28px; }
    .wk-ft__brand { display: block; }
    .wk-ft__tagline { margin: 12px 0 20px; }
    .wk-ft__nl-row { max-width: none; }
    .wk-ft__cols { display: block; border-top: 1px solid #eef1ef; }
    .top-footer .menu-ft { border-bottom: 1px solid #eef1ef; }
    .top-footer .menu-ft h5 {
        position: relative;
        margin: 0;
        padding: 16px 0;
        cursor: pointer;
        user-select: none;
    }
    .top-footer .menu-ft h5::after {
        content: "";
        position: absolute;
        inset-inline-end: 4px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 1.6px solid #5f6d66;
        border-bottom: 1.6px solid #5f6d66;
        transform: translateY(-70%) rotate(45deg);
        transition: transform .25s ease;
    }
    .top-footer .menu-ft.is-open h5::after { transform: translateY(-30%) rotate(-135deg); }
    .top-footer .menu-ft ul { display: none; padding-bottom: 8px; }
    .top-footer .menu-ft.is-open ul { display: block; }
    .top-footer .menu-ft ul li { margin-bottom: 12px; }
    .cont-bt { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---- "Ready to try Wroke": the last push, a green panel ---- */
.section_ready {
    padding: 40px 0 72px;
}

.txt-ready {
    position: relative;
    width: 100%;
    padding: 64px 32px 68px;
    border-radius: 28px;
    background:
        radial-gradient(70% 120% at 85% 0%, rgb(43 179 107 / 45%), transparent 60%),
        radial-gradient(60% 100% at 10% 110%, rgb(43 179 107 / 25%), transparent 60%),
        linear-gradient(160deg, #0f6939 0%, #0a4a28 100%);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 40px 80px -40px rgb(11 79 43 / 65%);
}

.txt-ready::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgb(255 255 255 / 13%) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
}

.txt-ready h2 {
    color: #fff;
    font-size: 38px;
    margin-bottom: 14px;
}

.txt-ready p {
    color: rgb(255 255 255 / 80%);
    margin: 0 auto 34px;
    max-width: 560px;
    font-size: 18px;
}

.txt-ready .btn-site {
    height: auto;
    padding: 14px 40px;
    background: #fff !important;
    color: var(--main-color) !important;
    border-color: #fff !important;
    font-weight: 600;
    box-shadow: 0 16px 30px -14px rgb(0 0 0 / 45%);
}

.txt-ready .btn-site:hover {
    background: #f1f8f4 !important;
}

.txt-ready .btn-site span,
.txt-ready .btn-site svg {
    color: var(--main-color) !important;
}

@media (max-width: 767px) {
    .section_ready { padding: 24px 0 48px; }
    .txt-ready { padding: 44px 20px 48px; border-radius: 22px; }
    .txt-ready h2 { font-size: 26px; }
    .txt-ready p { font-size: 15.5px; margin-bottom: 26px; }
}

.txt-ready .btn-site:before {
    background: #e3f2e9;
}

.menu_right > li.wk-signin > a,
.wk-menu-extra a {
    text-transform: none;
}

/* ---- Product menu: the ten parts of Wroke ---- */
.wk-mega {
    padding: 6px 4px 4px;
}

.wk-mega__title {
    margin: 0 0 12px;
    padding-inline: 10px;
    color: #6b7671;
    font-size: 13px;
    font-weight: 600;
}

.wk-mega__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.wk-mega__grid a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    color: #14231b;
    transition: background .2s;
}

.wk-mega__grid a:hover {
    background: var(--bg);
}

.wk-mega__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--c);
}

.wk-mega__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wk-mega__txt {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.wk-mega__txt strong {
    font-size: 14.5px;
    font-weight: 700;
}

.wk-mega__txt small {
    color: #6b7671;
    font-size: 12.5px;
    line-height: 1.45;
}

@media (max-width: 991px) {
    .wk-mega__grid { grid-template-columns: 1fr; }
    .wk-mega__grid a { padding: 8px 4px; }
}

/* menu items drawn with a line icon instead of the old icon font */
.wk-menu-svg {
    display: grid;
    place-items: center;
    color: var(--main-color);
}

.wk-menu-svg svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* "clip" hides overflow like "hidden" but keeps position: sticky working inside the page */
.main-wrapper {
    overflow: clip;
}

/* A page that opens on a dark hero (How Wroke is built): a light menu until it scrolls */
body:has(.wk-vault, .wk-dark-hero) #header:not(.fixed-header) .logo-site img {
    filter: brightness(0) invert(1);
}

body:has(.wk-vault, .wk-dark-hero) #header:not(.fixed-header) .main_menu > li > a,
body:has(.wk-vault, .wk-dark-hero) #header:not(.fixed-header) .menu_right > li > a:not(.btn-site) {
    color: #fff;
}

body:has(.wk-vault, .wk-dark-hero) #header:not(.fixed-header) .menu_right > li.wk-signin > a {
    color: #8fd9ad;
}

body:has(.wk-vault, .wk-dark-hero) #header:not(.fixed-header) .icon-lang {
    filter: brightness(0) invert(1);
}

body:has(.wk-vault, .wk-dark-hero) #header:not(.fixed-header) .dropdown-toggle::after {
    color: rgb(255 255 255 / 70%);
}

body:has(.wk-vault, .wk-dark-hero) #header:not(.fixed-header) .hamburger span {
    background: #fff;
}
