/* ==========================================================================
   HOME HIGHLIGHTS: COMPACT CASE STUDIES + ABOUT CARD
   File: /assets/css/home-highlights.css (loaded by index.php only)
   All classes start with "hm-" so nothing else on the site is affected.
   Card data: portfolio_items (title, description, results_metrics, channels)
   ========================================================================== */

.hm-cases,
.hm-about {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 22, 36, 0.95) 0%, rgba(20, 28, 42, 0.98) 50%, rgba(15, 22, 36, 0.95) 100%);
    overflow: hidden;
}

.hm-about { padding: 80px 0 40px; }
.hm-cases { padding: 40px 0 80px; }

.hm-wrap {
    position: relative;
    z-index: 10;                      /* above the section glow overlays */
    max-width: 1240px;
    width: 90%;
    margin: 0 auto;
}

.hm-kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FF9500;
}

/* ---------- Case studies ---------- */
.hm-cases-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.hm-cases-title {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #FFFFFF;
}

.hm-cases-sub {
    margin: 8px 0 0;
    font-size: 16px;
    color: #94A3B8;
}

.hm-cases-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF9500;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.hm-cases-all:hover {
    color: #FFB340;
}

.hm-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.hm-case {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    border-radius: 22px;
    border: 2px solid rgba(255, 149, 0, 0.45);
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.05) 0%, rgba(30, 38, 55, 0.7) 50%, rgba(255, 149, 0, 0.05) 100%);
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hm-case:hover {
    color: inherit;
    border-color: #FF9500;
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(255, 149, 0, 0.25);
}

.hm-case::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-top: 2px solid rgba(255, 149, 0, 0.5);
    border-right: 2px solid rgba(255, 149, 0, 0.5);
}

.hm-case-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #FFB340;
}

.hm-case-top .fi {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}

.hm-case-num {
    display: block;
    margin-top: 16px;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #FFC870 0%, #FF9500 55%, #FF7A00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hm-case-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94A3B8;
}

.hm-case-title {
    display: block;
    margin-top: 14px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    color: #FFFFFF;
}

.hm-case-how {
    display: block;
    margin: 8px 0 16px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #94A3B8;
}

.hm-case-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
}

.hm-case-icons {
    display: flex;
    gap: 6px;
}

.hm-case-icons i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    color: #E5E5E5;
}

.hm-case-cta {
    font-size: 13px;
    font-weight: 700;
    color: #FF9500;
}

.hm-case-cta i {
    transition: transform 0.3s ease;
}

.hm-case:hover .hm-case-cta i {
    transform: translateX(4px);
}

/* ---------- About card with stats ---------- */
.hm-about-card {
    overflow: hidden;
    padding: 40px 46px 0;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.10), rgba(20, 28, 49, 0.95) 55%);
    border: 1px solid rgba(255, 149, 0, 0.35);
}

.hm-about-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 34px;
    align-items: center;
    padding-bottom: 34px;
}

.hm-about-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #FFFFFF;
}

.hm-about-text {
    margin: 12px 0 0;
    max-width: 800px;
    font-size: 16px;
    line-height: 1.75;
    color: #D0D0D0;
}

.hm-about-text b {
    color: #FFFFFF;
}

.hm-about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 40px;
    border: 2px solid rgba(255, 149, 0, 0.6);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.hm-about-btn:hover {
    color: #0A0E1A;
    background: #FF9500;
    border-color: #FF9500;
}

.hm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 -46px;
    border-top: 1px solid rgba(255, 149, 0, 0.25);
    background: rgba(10, 14, 26, 0.35);
}

.hm-stat {
    position: relative;
    padding: 28px 20px 26px;
    text-align: center;
}

.hm-stat + .hm-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.hm-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #FF9500, #FFB340);
    box-shadow: 0 0 14px rgba(255, 149, 0, 0.8);
}

.hm-stat i {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #FFB340;
    opacity: 0.85;
}

.hm-stat strong {
    display: block;
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #FFC870 0%, #FF9500 55%, #FF7A00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hm-stat strong em {
    margin-left: 2px;
    font-style: normal;
    font-size: 30px;
    vertical-align: top;
    -webkit-text-fill-color: #FFFFFF;
}

.hm-stat span {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #CBD5E1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hm-cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-about-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hm-about { padding: 60px 0 30px; }
    .hm-cases { padding: 30px 0 60px; }

    .hm-cases-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hm-cases-title {
        font-size: 30px;
    }

    /* Phone: one clear list instead of cards */
    .hm-cases-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        border-radius: 22px;
        border: 2px solid rgba(255, 149, 0, 0.45);
        background: linear-gradient(135deg, rgba(255, 149, 0, 0.05) 0%, rgba(30, 38, 55, 0.7) 50%, rgba(255, 149, 0, 0.05) 100%);
    }

    .hm-case {
        display: grid;
        grid-template-columns: 96px 1fr 18px;
        grid-template-areas: "num top arr" "num ttl arr";
        column-gap: 14px;
        align-items: center;
        padding: 16px;
        border: 0;
        border-radius: 0;
        background: none;
    }

    .hm-case:hover {
        transform: none;
        box-shadow: none;
    }

    .hm-case + .hm-case {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hm-case::before,
    .hm-case-label,
    .hm-case-how,
    .hm-case-icons {
        display: none;
    }

    .hm-case-num {
        grid-area: num;
        margin: 0;
        font-size: 30px;
    }

    .hm-case-top {
        grid-area: top;
        font-size: 11px;
    }

    .hm-case-title {
        grid-area: ttl;
        margin-top: 4px;
        font-size: 14.5px;
        line-height: 1.35;
    }

    .hm-case-foot {
        grid-area: arr;
        margin: 0;
        padding: 0;
    }

    .hm-case-cta {
        font-size: 0;
    }

    .hm-case-cta i {
        font-size: 14px;
    }

    .hm-about-card {
        padding: 30px 22px 0;
    }

    .hm-stats {
        grid-template-columns: 1fr 1fr;
        margin: 0 -22px;
    }

    .hm-stat:nth-child(3) {
        border-left: 0;
    }

    .hm-stat:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .hm-stat strong {
        font-size: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-case,
    .hm-about-btn {
        transition: none;
    }
}
