/* Home page: about us + facts and figures (views/site/_about.php, _stats.php, assets/js/home-about-stats.js) */

/* ---- about: photo frame ---- */
.ab-photo {
    position: relative;
    margin-top: 12px;
    perspective: 1000px;
}
.ab-photo-img {
    display: block;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 26px 46px -22px rgba(17, 14, 45, .6);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.ab-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 8px 14px;
    border-radius: 14px;
    color: rgba(17, 14, 45, .6);
    background: #fff;
    font-size: 11.5px;
    line-height: 1.6;
    box-shadow: 0 16px 30px -14px rgba(17, 14, 45, .5);
    animation: abFloat 6s ease-in-out infinite;
}
.ab-badge strong {
    font-size: 22px;
    line-height: 1.2;
    color: #EE5D38;
}
.ab-badge-1 {
    top: 18px;
    inset-inline-end: -12px;
}
.ab-badge-2 {
    bottom: 20px;
    inset-inline-start: -12px;
    animation-delay: -3s;
}
.ab-badge-2 strong {
    color: #110E2D;
}
@keyframes abFloat {
    0%, 100% { translate: 0 -5px; }
    50% { translate: 0 5px; }
}

/* ---- about: words that light up while the block scrolls by ---- */
.ab-text {
    color: #110E2D;
}
.ab-w {
    opacity: .78;
    transition: opacity .35s ease, color .35s ease;
}
.ab-ready .ab-w {
    opacity: .16;
}
.ab-ready .ab-w.is-lit {
    opacity: .82;
}
.ab-foot {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(17, 14, 45, .12);
}
[data-about] .ab-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
[data-about] .ab-values li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    color: #110E2D;
    background: #F2F4F9;
    font-size: 13px;
    line-height: 1.6;
}
[dir="rtl"] [data-about] .ab-values li {
    padding: 6px 6px 6px 12px;
}
[data-about] .ab-values li::before {
    content: none;
}
.ab-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #EE5D38;
    background: #fff;
}
.ab-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    box-shadow: 0 12px 24px -12px rgba(238, 93, 56, .95);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.6;
    transition: transform .2s;
}
.ab-more:hover {
    transform: translateY(-2px);
}

/* ---- stats: odometers ---- */
.st-odos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 52px;
}
@media (max-width: 767px) {
    .st-odos {
        margin-top: 22px;
    }
}
.st-odo {
    display: flex;
    flex-direction: column;
}
.st-odo-label {
    margin-top: 4px;
    color: rgba(17, 14, 45, .45);
    font-size: 12px;
}
.st-odo-sep {
    width: 1px;
    height: 42px;
    background: rgba(17, 14, 45, .08);
}
.od {
    display: inline-flex;
    align-items: flex-start;
    direction: ltr;
    font-size: 40px;
    line-height: 1;
    color: #110E2D;
}
.od-col {
    display: inline-block;
    height: 1.1em;
    overflow: hidden;
}
.od-reel {
    display: flex;
    flex-direction: column;
    transform: translateY(calc(var(--t) * -5%));
}
.od-reel span {
    display: block;
    height: 1.1em;
    line-height: 1.1em;
    text-align: center;
}
.st-ready .od-reel {
    transform: translateY(0);
}
.st-ready.is-in .od-reel {
    transform: translateY(calc(var(--t) * -5%));
    transition: transform 1.9s cubic-bezier(.2, .75, .15, 1);
    transition-delay: calc(var(--k) * 200ms);
}
.od-plus {
    margin-inline-start: 2px;
    color: #EE5D38;
    font-size: .7em;
    line-height: 1.5;
}

/* ---- stats: composition bar + category cards ---- */
.st-mix {
    padding: 16px 18px 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 26px -20px rgba(17, 14, 45, .5);
}
.st-mix-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.st-mix-title {
    color: #110E2D;
    font-size: 15px;
}
.st-mix-total {
    padding: 3px 12px;
    border-radius: 999px;
    color: #fff;
    background: #110E2D;
    font-size: 12px;
}
.st-bar {
    display: flex;
    gap: 3px;
    height: 18px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #EEF0F5;
}
.st-seg {
    width: var(--w);
    background: var(--c);
    transition: opacity .25s;
}
.st-seg:first-child {
    border-start-start-radius: 999px;
    border-end-start-radius: 999px;
}
.st-ready .st-seg {
    width: 0;
}
.st-ready.is-in .st-seg {
    width: var(--w);
    transition: width 1.2s cubic-bezier(.2, .75, .15, 1) calc(var(--i) * 140ms + 300ms), opacity .25s;
}
.st-bar.has-hot .st-seg:not(.is-hot) {
    opacity: .2;
}
.st-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.st-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 10px 14px;
    border-radius: 18px;
    color: #110E2D;
    background: #EEEEEE;
    text-align: center;
    transition: background .25s, transform .25s, box-shadow .25s;
}
.st-card:hover,
.st-card:focus-visible,
.st-card.is-hot {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -18px rgba(17, 14, 45, .5);
    outline: none;
}
.st-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: var(--c);
    background: #fff;
}
.st-card:hover .st-card-icon {
    color: #fff;
    background: var(--c);
}
.st-card-count {
    margin-top: 4px;
    font-size: 26px;
    line-height: 1.2;
}
.st-card-title {
    font-size: 13px;
    line-height: 1.6;
}
.st-card-dot {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
}
@media (max-width: 1279px) {
    .st-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .st-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .od {
        font-size: 32px;
    }
    .ab-badge-1 {
        inset-inline-end: 8px;
    }
    .ab-badge-2 {
        inset-inline-start: 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ab-badge {
        animation: none;
    }
    .ab-ready .ab-w {
        opacity: .78;
    }
}
