/* ---------------------------------------------------------------
    HOME PAGE - hm-* components
    --------------------------------------------------------------- */

/* -- Shared section spacing -- */
.hm-section {
    padding: 80px 0;
}

/* -- Section header -- */
.hm-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 44px;
}

.hm-section-head.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 52px;
}

.hm-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 0 auto 18px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(0, 143, 215, 0.10);
    color: var(--pf-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hm-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.hm-accent {
    color: var(--accent-color);
}

.hm-sub {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 560px;
    line-height: 1.7;
}

.hm-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    white-space: nowrap;
    transition: gap .2s;
    flex-shrink: 0;
}

.hm-see-all:hover {
    gap: 10px;
    color: var(--accent-color);
}

.hm-empty-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 32px 0;
}

/* -- Search utility bar above banner -- */
/* -- Stats bar -- */
.hm-stats {
    margin-top: 24px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hm-stats-inner {
    display: flex;
    align-items: stretch;
}

.hm-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    text-align: center;
    gap: 2px;
}

.hm-stat-sep {
    width: 1px;
    background: var(--border-color);
    margin: 10px 0;
    align-self: stretch;
}

.hm-stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.hm-stat-lbl {
    font-size: 0.60rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* -- Category grid -- */
.hm-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hm-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-heading);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.hm-cat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 143, 215, .12);
    color: var(--text-heading);
}

.hm-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(0, 143, 215, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.hm-cat-info {
    flex: 1;
    min-width: 0;
}

.hm-cat-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hm-cat-arrow {
    font-size: 1.125rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform .2s, color .2s;
}

.hm-cat-card:hover .hm-cat-arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}

/* -- Why us -- */
.hm-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hm-why-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.hm-why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.hm-why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .15);
    border-color: rgba(0, 143, 215, .3);
}

.hm-why-card:hover::after {
    transform: scaleX(1);
}

.hm-why-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(0, 143, 215, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.hm-why-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: .07;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    position: absolute;
    top: 16px;
    right: 20px;
}

.hm-why-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 4px 0 0;
}

.hm-why-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

/* -- Portfolio grid -- */
.hm-port-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hm-port-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--card-bg);
    text-decoration: none;
}

.hm-port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.hm-port-card:hover img {
    transform: scale(1.07);
}

.hm-port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .15) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    gap: 8px;
    opacity: 0;
    transition: opacity .3s;
}

.hm-port-card:hover .hm-port-overlay {
    opacity: 1;
}

.hm-port-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 52px;
    height: 52px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity .3s, transform .3s;
}

.hm-port-card:hover .hm-port-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hm-port-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-align: center;
}

.hm-port-client {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, .65);
    margin: 0;
    text-align: center;
}

/* -- Testimonials -- */
.hm-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: 1fr;
}

.hm-testi-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    justify-content: space-between;
}

.hm-testi-stars {
    display: flex;
    gap: 3px;
    color: #f4b400;
    font-size: 0.9375rem;
    order: -2;
}

.hm-testi-text {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    font-style: italic;
    order: -1;
}

.hm-testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    order: 1;
    margin-top: auto;
}

.hm-testi-gmaps-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4285f4;
    padding-top: 4px;
    text-decoration: none;
    transition: color 0.2s;
    order: 2;
    margin-top: 8px;
}

.hm-testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hm-testi-avatar-gmaps {
    background: #4285f4;
    font-size: 1.2rem;
}

.hm-testi-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hm-testi-company {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 2px 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Google Maps review card */
.hm-testi-gmaps {
    position: relative;
}

.hm-testi-gmaps-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4285f4;
    padding-top: 4px;
    text-decoration: none;
    transition: color 0.2s;
}

.hm-testi-gmaps-badge:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.hm-testi-gmaps-badge--placeholder {
    visibility: hidden;
    pointer-events: none;
}

.hm-testi-link {
    text-decoration: none;
    color: var(--text-heading);
    transition: color 0.2s;
}

.hm-testi-link:hover {
    color: #4285f4;
    text-decoration: underline;
}

/* -- CTA WhatsApp button -- */
.hm-cta-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hm-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.hm-btn-wa:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .5);
    color: #fff !important;
}

.hm-btn-wa i {
    font-size: 1.2rem;
}

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

@media (max-width: 992px) {
    .hm-section {
        padding: 60px 0;
    }

    .hm-section-head {
        margin-bottom: 26px;
    }

    .hm-port-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hm-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hm-hero-custom {
        margin-top: 46px;
        padding: 0 0 4px;
    }

    .hm-hero-inner-custom {
        max-width: 520px;
        margin: 0 auto;
        padding: 0 14px;
        text-align: center;
    }

    .hm-hero-title-custom,
    .hm-hero-title-custom span {
        font-size: clamp(2rem, 11vw, 2.75rem);
        line-height: 1.04;
        letter-spacing: 0;
    }

    .hm-hero-title-custom {
        margin-bottom: 12px;
    }

    .hm-hero-sub-custom {
        max-width: 360px;
        margin: 0 auto;
        color: var(--text-muted);
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .hm-hero-sub-custom br {
        display: none;
    }

    .hero-button-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: min(100% - 28px, 380px);
        margin: 22px auto 0;
        padding: 0;
    }

    .btn-premium-lhtkatalog,
    .btn-premium-hubungikami {
        width: 100%;
        min-width: 0;
        height: 46px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    .hm-section {
        padding: 42px 0;
    }

    .hm-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 18px;
    }

    .hm-section-head.centered {
        margin-bottom: 24px;
    }

    .hm-label {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        margin-bottom: 6px;
    }

    .hm-title {
        font-size: 1.28rem;
        line-height: 1.2;
    }

    .hm-sub {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-top: 8px;
    }

    .hm-see-all {
        font-size: 0.78rem;
        gap: 4px;
    }

    .hm-stats-inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .hm-stat {
        flex: 1 1 auto;
        align-items: center;
        text-align: center;
        padding: 10px 8px;
        border-bottom: none;
        gap: 1px;
        min-width: 0;
    }

    .hm-stat-sep {
        display: none;
    }

    .hm-stat-num {
        font-size: 0.95rem;
        line-height: 1.1;
    }

    .hm-stat-lbl {
        font-size: 0.60rem;
        letter-spacing: 0.03em;
    }

    .hm-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hm-cat-card {
        gap: 8px;
        padding: 10px 10px;
        border-radius: 10px;
    }

    .hm-cat-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 1rem;
    }

    .hm-cat-name {
        font-size: 0.8rem;
        margin-bottom: 1px;
    }

    .hm-cat-count {
        font-size: 0.68rem;
    }

    .hm-cat-arrow {
        font-size: 0.9rem;
    }

    .hm-why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hm-why-card {
        border-radius: 12px;
        padding: 14px 12px 14px;
        gap: 6px;
    }

    .hm-why-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 1.05rem;
    }

    .hm-why-num {
        font-size: 2rem;
        top: 8px;
        right: 10px;
    }

    .hm-why-card h3 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-top: 2px;
    }

    .hm-why-card p {
        font-size: 0.75rem;
        line-height: 1.45;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
    }

    .hm-port-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hm-port-card {
        border-radius: 12px;
        overflow: hidden;
    }

    .hm-port-overlay {
        padding: 14px 12px 12px;
    }

    .hm-port-title {
        font-size: 0.84rem;
        line-height: 1.3;
    }

    .hm-port-client {
        font-size: 0.72rem;
    }

    .hm-port-view {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .hm-testi-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hm-testi-card {
        padding: 14px 12px;
        border-radius: 10px;
        gap: 8px;
    }

    .hm-testi-stars {
        font-size: 0.82rem;
    }

    .hm-testi-text {
        font-size: 0.78rem;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hm-testi-author {
        gap: 8px;
        padding-top: 10px;
        margin-top: 2px;
    }

    .hm-testi-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }

    .hm-testi-avatar-gmaps {
        font-size: 1rem;
    }

    .hm-testi-name {
        font-size: 0.82rem;
    }

    .hm-testi-company {
        font-size: 0.72rem;
    }

    .hm-testi-gmaps-badge {
        font-size: 0.72rem;
        margin-top: 4px;
    }

    .hm-home-cta .prod-cta-inner {
        padding: 16px 12px;
        gap: 10px;
        border-radius: 12px;
    }

    .hm-home-cta .prod-cta-title {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }

    .hm-home-cta .prod-cta-sub {
        font-size: 0.8rem;
        line-height: 1.45;
        margin-bottom: 0;
    }

    .hm-home-cta .hm-cta-btns {
        gap: 8px;
        width: 100%;
    }

    .hm-home-cta .hm-btn-wa,
    .hm-home-cta .btn-premium {
        padding: 10px 14px;
        font-size: 0.82rem;
        border-radius: 9px;
    }

    .home-about-text .about-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin: 20px 0 22px;
    }

    .home-about-text .stat-item {
        min-width: 0;
        padding: 12px 6px 10px;
        text-align: center;
        border-top: 3px solid var(--accent-color);
        border-radius: 10px;
        background: rgba(0, 143, 215, 0.06);
    }

    .home-about-text .stat-item::before {
        display: none;
    }

    .home-about-text .stat-item h3 {
        margin: 0 0 5px;
        color: var(--text-heading);
        font-size: 1.2rem;
        line-height: 1;
        white-space: nowrap;
    }

    .home-about-text .stat-item span {
        display: block;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .hm-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hm-hero-custom {
        margin-top: 34px;
    }

    .hm-hero-inner-custom {
        padding: 0 12px;
    }

    .hm-hero-title-custom,
    .hm-hero-title-custom span {
        font-size: clamp(1.82rem, 10.5vw, 2.25rem);
    }

    .hm-hero-sub-custom {
        max-width: 315px;
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .hero-button-wrapper {
        width: calc(100% - 24px);
        gap: 8px;
        margin-top: 18px;
    }

    .btn-premium-lhtkatalog,
    .btn-premium-hubungikami {
        height: 42px;
        border-radius: 10px;
        font-size: 0.78rem;
        padding: 0 8px;
    }

    .hm-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

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

    .hm-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hm-section {
        padding: 34px 0;
    }

    .hm-section-head {
        gap: 6px;
        margin-bottom: 16px;
    }

    .hm-section-head.centered {
        margin-bottom: 18px;
    }

    .hm-cat-card {
        padding: 9px 9px;
        gap: 7px;
    }

    .hm-cat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .hm-cat-name {
        font-size: 0.76rem;
    }

    .hm-cat-count {
        font-size: 0.64rem;
    }

    .hm-testi-card {
        padding: 12px 10px;
        gap: 7px;
    }

    .hm-testi-text {
        -webkit-line-clamp: 3;
    }

    .hm-stat {
        padding: 6px 8px;
    }

    .hm-stat-num {
        font-size: 0.75rem;
    }

    .hm-stat-lbl {
        font-size: 0.52rem;
        letter-spacing: 0.02em;
    }

    .hm-title {
        font-size: 1.15rem;
    }

    .hm-sub {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .hm-cta-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .hm-btn-wa {
        justify-content: center;
    }

    .hm-port-overlay {
        padding: 12px 10px 10px;
    }

    .hm-port-title {
        font-size: 0.8rem;
    }

    .hm-port-client {
        font-size: 0.68rem;
    }

    .hm-home-cta .prod-cta-inner {
        padding: 14px 10px;
        gap: 8px;
    }

    .hm-home-cta .prod-cta-title {
        font-size: 0.98rem;
    }

    .hm-home-cta .prod-cta-sub {
        font-size: 0.76rem;
        line-height: 1.4;
    }

    .hm-home-cta .hm-btn-wa,
    .hm-home-cta .btn-premium {
        padding: 9px 12px;
        font-size: 0.78rem;
    }

    .home-about-text .about-stats {
        gap: 6px;
        margin: 18px 0 20px;
    }

    .home-about-text .stat-item {
        padding: 10px 4px 9px;
        border-radius: 9px;
    }

    .home-about-text .stat-item h3 {
        font-size: 1.02rem;
    }

    .home-about-text .stat-item span {
        font-size: 0.6rem;
        line-height: 1.18;
    }
}

@media (max-width: 360px) {
    .hm-why-grid {
        grid-template-columns: 1fr;
    }

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

    .home-about-text .about-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-about-text .stat-item h3 {
        font-size: 0.92rem;
    }

    .home-about-text .stat-item span {
        font-size: 0.56rem;
    }
}

/* ============================================================
   Homepage product and category cards
   ============================================================ */
.hm-services {
    padding-top: 56px;
}

.hm-services > .container > .prod-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    grid-auto-rows: 348px;
}

.hm-services > .container > .prod-grid > .prod-card {
    position: relative;
    display: grid !important;
    grid-template-rows: 226px 122px !important;
    height: 348px !important;
    min-height: 0 !important;
    max-height: 348px !important;
    overflow: hidden;
    border-radius: 12px;
    align-self: start;
}

.hm-services > .container > .prod-grid > .prod-card .prod-badge {
    top: 12px;
    left: 12px;
    padding: 8px 16px;
    font-size: 0.78rem;
}

.hm-services > .container > .prod-grid > .prod-card .prod-card-img-wrap {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 4 / 5 !important;
    height: 226px !important;
    min-height: 226px !important;
    max-height: 226px !important;
    padding: 0 !important;
    background: #0b82d8 !important;
    border-bottom: 0 !important;
    overflow: hidden !important;
}

.hm-services > .container > .prod-grid > .prod-card .prod-card-img-wrap:not(.is-missing-image)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(11, 130, 216, 0.16), rgba(11, 130, 216, 0.16)),
        var(--prod-card-image) center / cover no-repeat;
    transform: scale(1.04);
}

.hm-services > .container > .prod-grid > .prod-card .prod-card-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    transform: none !important;
    transition: transform 0.35s ease !important;
    opacity: 0 !important;
}

.hm-services > .container > .prod-grid > .prod-card:hover .prod-card-img {
    transform: none !important;
}

.hm-services > .container > .prod-grid > .prod-card .prod-card-img-wrap.is-missing-image::before {
    content: '\ea4a';
    font-family: 'boxicons';
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(0, 143, 215, 0.1);
    color: var(--accent-color);
    font-size: 1.9rem;
}

.hm-services > .container > .prod-grid > .prod-card .prod-card-body {
    height: 122px !important;
    min-height: 122px !important;
    max-height: 122px !important;
    padding: 10px 11px 11px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.hm-services .prod-card-name {
    min-height: 2.1em !important;
    max-height: 2.1em !important;
    margin: 0 0 4px !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
}

.hm-services .prod-card-name a {
    font-size: inherit;
    line-height: inherit;
}

.hm-services .prod-card-desc {
    display: -webkit-box !important;
    min-height: 2.55em !important;
    max-height: 2.55em !important;
    margin: 0 0 6px !important;
    font-size: 0.68rem !important;
    line-height: 1.28 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.hm-services .prod-card-footer {
    margin-top: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

.hm-services .prod-card-price {
    min-height: 36px !important;
    padding: 8px 10px !important;
}

.hm-services .prod-btn {
    display: none !important;
}

.hm-services .category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.hm-services .category-card {
    position: relative;
    min-height: 98px;
    padding: 18px 18px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(19, 26, 54, 0.92), rgba(12, 18, 42, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.hm-services .category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(0, 143, 215, 0.18), transparent 42%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.hm-services .category-card:hover {
    color: #ffffff;
    border-color: rgba(0, 143, 215, 0.42);
    box-shadow: 0 18px 42px rgba(0, 143, 215, 0.16);
    transform: translateY(-2px);
}

.hm-services .category-card:hover::before {
    opacity: 1;
}

.hm-services .category-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: #ffffff;
    font-size: 1.75rem;
    box-shadow: 0 10px 24px rgba(0, 143, 215, 0.24);
}

.hm-services .category-icon i {
    line-height: 1;
}

.hm-services .category-info,
.hm-services .category-arrow {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hm-services .category-title {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-services .category-count {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.74rem;
    font-weight: 600;
}

.hm-services .category-arrow {
    color: var(--accent-light);
    font-size: 1.18rem;
    justify-self: end;
    transition: transform 0.22s ease, color 0.22s ease;
}

.hm-services .category-card:hover .category-arrow {
    color: #ffffff;
    transform: translateX(3px);
}

[data-theme="light"] .hm-services .category-card {
    color: var(--text-heading);
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hm-services .category-card:hover {
    color: var(--text-heading);
    border-color: rgba(0, 143, 215, 0.24);
    box-shadow: 0 18px 36px rgba(0, 143, 215, 0.12);
}

[data-theme="light"] .hm-services .category-title {
    color: var(--text-heading);
}

[data-theme="light"] .hm-services .category-count {
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .hm-services > .container > .prod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-services .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hm-services > .container > .prod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 320px;
    }

    .hm-services > .container > .prod-grid > .prod-card {
        grid-template-rows: 198px 122px !important;
        height: 320px !important;
        max-height: 320px !important;
    }

    .hm-services > .container > .prod-grid > .prod-card .prod-card-img-wrap {
        height: 198px !important;
        min-height: 198px !important;
        max-height: 198px !important;
    }

    .hm-services > .container > .prod-grid > .prod-card .prod-card-body {
        height: 122px !important;
        min-height: 122px !important;
        max-height: 122px !important;
    }

    .hm-services .category-card {
        min-height: 78px;
        padding: 12px 12px;
        grid-template-columns: 44px minmax(0, 1fr) 16px;
        gap: 10px;
    }

    .hm-services .category-icon {
        width: 44px;
        height: 44px;
        border-radius: 11px;
        font-size: 1.35rem;
    }

    .hm-services .category-title {
        font-size: 0.8rem;
    }

    .hm-services .category-count {
        font-size: 0.66rem;
    }

    .hm-services .category-arrow {
        font-size: 1rem;
    }
}
