/* "How Wroke is built" and "Why Wroke" (resources/views/website/company/*).
   Built on product-page.css (.wk-pp-*), with these additions. */

.wk-co svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wk-co-hero {
    padding-bottom: 64px;
}

/* ---- trust: three layers a request passes ---- */
.wk-co-layers {
    position: relative;
    display: grid;
    gap: 12px;
    max-width: 560px;
    margin: 44px auto 0;
}

.wk-co-layer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--pp-line);
    box-shadow: 0 18px 36px -26px rgb(12 50 30 / 45%);
    color: var(--pp-ink);
    font-size: 16px;
    font-weight: 700;
    margin-inline: calc(var(--n) * 28px) calc((2 - var(--n)) * 28px);
    opacity: 0;
    transform: translateY(10px);
    animation: wkCoIn .6s cubic-bezier(.2, .8, .3, 1) forwards;
    animation-delay: calc(var(--n) * 160ms + 200ms);
}

.wk-co-layer i {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--c);
}

.wk-co-layer svg {
    width: 21px;
    height: 21px;
}

@keyframes wkCoIn {
    to { opacity: 1; transform: none; }
}

/* ---- the grid of rules / principles ---- */
.wk-co-grid-sec {
    padding: 72px 0 40px;
}

.wk-co .sec_head h2,
.wk-co .sec_head > span {
    text-transform: none;
}

.wk-co-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.wk-co-grid.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wk-co-card {
    padding: 22px 20px 24px;
    border-radius: 18px;
    border: 1px solid var(--pp-line);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.wk-co-card:hover {
    transform: translateY(-3px);
    border-color: rgb(15 105 57 / 30%);
    box-shadow: 0 20px 40px -26px rgb(15 105 57 / 55%);
}

.wk-co-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 13px;
    background: var(--bg);
    color: var(--c);
}

.wk-co-card__icon svg {
    width: 22px;
    height: 22px;
}

.wk-co-card h3 {
    margin: 0 0 8px;
    color: var(--pp-ink);
    font-size: 16.5px;
    line-height: 1.4;
}

.wk-co-card p {
    margin: 0;
    color: var(--pp-muted);
    font-size: 14.5px;
    line-height: 1.75;
    text-wrap: pretty;
}

/* ---- trust: the speed band ---- */
.wk-co-band {
    padding: 24px 0 8px;
}

.wk-co-band__box {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px 34px;
    border-radius: 22px;
    background: linear-gradient(160deg, #0f6939 0%, #0a4a28 100%);
    color: #fff;
}

.wk-co-band__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgb(255 255 255 / 14%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%);
}

.wk-co-band__icon svg {
    width: 28px;
    height: 28px;
}

.wk-co-band small {
    color: rgb(255 255 255 / 70%);
    font-size: 13px;
    font-weight: 600;
}

.wk-co-band h2 {
    margin: 4px 0 6px;
    color: #fff;
    font-size: 24px;
}

.wk-co-band p {
    margin: 0;
    color: rgb(255 255 255 / 82%);
    font-size: 15.5px;
    line-height: 1.7;
}

/* ---- why: before and after ---- */
.wk-co-before {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    max-width: 920px;
    margin: 44px auto 0;
}

.wk-co-before__side {
    padding: 22px;
    border-radius: 20px;
    border: 1px dashed #d5ddd8;
    background: #fafbfa;
    min-height: 100%;
}

.wk-co-before__side small {
    display: block;
    margin-bottom: 12px;
    color: #6b7671;
    font-size: 13px;
    font-weight: 700;
}

.wk-co-before__side ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wk-co-before__side li {
    padding: 7px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e3e8e5;
    color: #6b7671;
    font-size: 13.5px;
    transform: rotate(calc((var(--i) - 3) * .8deg));
}

.wk-co-before__side.is-after {
    border: 1.5px solid rgb(15 105 57 / 35%);
    background: #fff;
    box-shadow: 0 24px 48px -30px rgb(15 105 57 / 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wk-co-before__side.is-after small {
    color: var(--main-color);
}

.wk-co-before__side.is-after img {
    display: block;
    width: 120px;
    height: auto;
    margin-bottom: 12px;
}

.wk-co-before__side.is-after p {
    margin: 0;
    color: var(--pp-ink);
    font-size: 15px;
    line-height: 1.7;
}

.wk-co-before__arrow svg {
    display: block;
    width: 30px;
    height: 30px;
    color: var(--main-color);
    stroke-width: 2.2;
}

[dir="rtl"] .wk-co-before__arrow svg {
    transform: scaleX(-1);
}

.wk-co-more {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
    margin-top: 36px;
}

/* ---- smaller screens ---- */
@media (max-width: 1199px) {
    .wk-co-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .wk-co-grid, .wk-co-grid.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wk-co-before { grid-template-columns: 1fr; }
    .wk-co-before__arrow { justify-self: center; transform: rotate(90deg); }
    [dir="rtl"] .wk-co-before__arrow { transform: rotate(90deg); }
}

@media (max-width: 680px) {
    .wk-co-grid, .wk-co-grid.is-three { grid-template-columns: 1fr; }
    .wk-co-layer { margin-inline: 0; font-size: 15px; }
    .wk-co-band__box { flex-direction: column; align-items: flex-start; padding: 24px; }
    .wk-co-band h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .wk-co-layer { animation: none; opacity: 1; transform: none; }
}
