/* ============================================================
   HAMASA / HARAPAN MASA GROUP — REDESIGN STYLESHEET
   New B2B steel-distributor design system. Loaded LAST so it
   overrides the legacy modave / style.min stylesheets.
   ============================================================ */

:root {
    --hm-green: #0B3B2D;
    --hm-green-2: #0E4A38;
    --hm-green-light: #157A4C;
    --hm-green-soft: #E8F3EE;
    --hm-green-soft-2: #DFEEE5;
    --hm-red: #E11D2A;
    --hm-red-dark: #B91720;
    --hm-text: #111827;
    --hm-text-2: #374151;
    --hm-muted: #6B7280;
    --hm-line: #E5E7EB;
    --hm-line-2: #EEF1F4;
    --hm-bg: #F7F9FB;
    --hm-white: #ffffff;
    --hm-radius: 12px;
    --hm-radius-sm: 8px;
    --hm-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .04);
    --hm-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    --hm-shadow-lg: 0 20px 40px rgba(15, 23, 42, .08);
}

/* ---------- Base reset / typography ---------- */
html, body {
    background: var(--hm-white);
    color: var(--hm-text);
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.tt-magic-cursor #magic-cursor { display: none !important; }
body { cursor: auto !important; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--hm-green-light); }

h1, h2, h3, h4, h5, h6 { color: var(--hm-text); font-weight: 700; letter-spacing: -.01em; }

.hm-container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 992px) { .hm-container { padding: 0 24px; } }

.hm-section { padding: 64px 0; }
.hm-section--sm { padding: 40px 0; }
@media (max-width: 768px) {
    .hm-section { padding: 40px 0; }
    .hm-section--sm { padding: 28px 0; }
}

.hm-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--hm-green-light); font-weight: 700;
}
.hm-eyebrow::before {
    content: ""; width: 24px; height: 2px; background: var(--hm-green-light);
}

.hm-h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 800; }
.hm-h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 800; }
.hm-h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; font-weight: 700; }
.hm-lead { color: var(--hm-text-2); font-size: 16px; line-height: 1.65; }
.hm-muted { color: var(--hm-muted); }
.hm-accent-red { color: var(--hm-red); }

/* ---------- Buttons ---------- */
.hm-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 22px;
    font-weight: 600; font-size: 14px;
    border-radius: 8px; border: 1px solid transparent;
    transition: all .2s ease; cursor: pointer;
    text-decoration: none; white-space: nowrap;
}
.hm-btn--primary { background: var(--hm-red); color: #fff; }
.hm-btn--primary:hover { background: var(--hm-red-dark); color: #fff; transform: translateY(-1px); }
.hm-btn--green { background: var(--hm-green); color: #fff; }
.hm-btn--green:hover { background: var(--hm-green-light); color: #fff; }
.hm-btn--outline { background: transparent; color: var(--hm-text); border-color: var(--hm-line); }
.hm-btn--outline:hover { border-color: var(--hm-green); color: var(--hm-green); }
.hm-btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hm-btn--outline-white:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.hm-btn--ghost { background: var(--hm-green-soft); color: var(--hm-green); }
.hm-btn--ghost:hover { background: var(--hm-green-soft-2); color: var(--hm-green); }
.hm-btn--block { display: flex; width: 100%; }
.hm-btn--lg { padding: 14px 28px; font-size: 15px; }
.hm-btn--sm { padding: 8px 14px; font-size: 13px; }
.hm-btn i, .hm-btn svg { font-size: 16px; }

.hm-link {
    color: var(--hm-green); font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
}
.hm-link:hover { color: var(--hm-green-light); }
.hm-link::after { content: "→"; transition: transform .2s ease; }
.hm-link:hover::after { transform: translateX(3px); }

/* ============================================================
   HEADER
   ============================================================ */
.hm-topbar {
    background: var(--hm-green);
    color: #fff;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hm-topbar__inner {
    display: flex; align-items: center; justify-content: space-around;
    gap: 16px; height: 38px;
}
.hm-topbar__item {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.92);
}
.hm-topbar__item i { color: rgba(255,255,255,.7); font-size: 14px; }
.hm-topbar__item a { color: inherit; }
.hm-topbar__item a:hover { color: #fff; }

@media (min-width: 992px) {
    .hm-topbar__inner { justify-content: flex-start; gap: 24px; font-size: 13px; }
    .hm-topbar__item:nth-child(1) { margin-right: auto; }
}
@media (max-width: 991px) {
    .hm-topbar__inner { height: 36px; font-size: 11.5px; gap: 6px; }
    .hm-topbar__item.is-desktop-only { display: none; }
    .hm-topbar__item { white-space: nowrap; }
    .hm-topbar__label { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 480px) {
    .hm-topbar__inner { font-size: 10.5px; gap: 4px; padding: 0 4px; }
    .hm-topbar__item i { font-size: 12px; }
}

.hm-header {
    position: sticky; top: 0; z-index: 1040;
    background: #fff;
    border-bottom: 1px solid var(--hm-line);
}
.hm-header__main {
    display: flex; align-items: center; gap: 24px;
    padding: 14px 0;
}
.hm-header__logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hm-header__logo img { height: 44px; width: auto; }
.hm-header__logo .est { font-size: 11px; color: var(--hm-muted); font-weight: 600; letter-spacing: .12em; }

.hm-search {
    flex: 1; max-width: 720px;
    position: relative;
    display: flex; align-items: stretch;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    overflow: visible;
    background: #fff;
}
.hm-search input.hm-search__input {
    flex: 1; min-width: 0;
    border: none !important; outline: none !important;
    padding: 12px 16px; font-size: 14px;
    background: transparent;
    border-radius: 10px 0 0 10px;
}
.hm-search__cat {
    border: none; border-left: 1px solid var(--hm-line);
    background: #fff; padding: 0 14px; font-size: 13.5px;
    color: var(--hm-text-2); outline: none; cursor: pointer;
    min-width: 140px;
}
.hm-search__btn {
    background: var(--hm-green); color: #fff;
    border: none; padding: 0 22px; cursor: pointer;
    border-radius: 0 9px 9px 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.hm-search__btn:hover { background: var(--hm-green-light); }
.hm-search__dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    box-shadow: var(--hm-shadow);
    max-height: 320px; overflow-y: auto;
    z-index: 50;
    padding: 6px;
}
.hm-search__dropdown-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px;
    color: var(--hm-text); cursor: pointer;
}
.hm-search__dropdown-item:hover { background: var(--hm-green-soft); }
.hm-search__dropdown-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

.hm-header__utils {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.hm-utility {
    display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 12px; min-width: 78px;
    color: var(--hm-text-2); font-size: 11.5px; line-height: 1.2; text-align: center;
    border-radius: 8px;
}
.hm-utility:hover { color: var(--hm-green); background: var(--hm-green-soft); }
.hm-utility i, .hm-utility svg { font-size: 20px; }

.hm-rfq-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--hm-red); color: #fff;
    padding: 12px 18px; border-radius: 8px;
    font-weight: 600; font-size: 14px;
}
.hm-rfq-cta:hover { background: var(--hm-red-dark); color: #fff; }

.hm-nav {
    border-top: 1px solid var(--hm-line);
    background: #fff;
}
.hm-nav__inner { display: flex; align-items: center; gap: 4px; }
.hm-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hm-nav__item { position: relative; }
.hm-nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 16px 16px;
    font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
    color: var(--hm-text); text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all .15s ease;
}
.hm-nav__link:hover, .hm-nav__link.active { color: var(--hm-green); border-bottom-color: var(--hm-green); }
.hm-nav__link i.caret { font-size: 16px; transform: translateY(1px); }
.hm-nav__sub {
    position: absolute; top: 100%; left: 0;
    min-width: 220px; background: #fff;
    border: 1px solid var(--hm-line); border-radius: 10px;
    box-shadow: var(--hm-shadow);
    padding: 8px; margin-top: 4px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .18s ease;
    z-index: 60;
}
.hm-nav__item:hover > .hm-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.hm-nav__sub a {
    display: block; padding: 9px 12px; border-radius: 6px;
    font-size: 13.5px; color: var(--hm-text-2);
}
.hm-nav__sub a:hover { background: var(--hm-green-soft); color: var(--hm-green); }

/* Mobile collapsible search row */
.hm-mobile-search {
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
    padding: 0 16px;
}
.hm-mobile-search.is-open {
    max-height: 80px; padding: 0 16px 12px;
}

/* Mobile header */
.hm-header__mobile {
    display: none;
}
@media (max-width: 991px) {
    .hm-header__main { display: none; }
    .hm-nav { display: none; }
    .hm-header__mobile {
        display: flex; align-items: center; gap: 4px;
        padding: 10px 0;
    }
    /* Brand: visible icon + text (smaller) on mobile, sits flush left with hamburger */
    .hm-header__mobile .hm-brand { margin-right: auto; flex-shrink: 1; min-width: 0; gap: 8px; }
    .hm-header__mobile .hm-brand__icon { width: 36px; height: 36px; flex-shrink: 0; }
    .hm-header__mobile .hm-brand__name { font-size: 14px; line-height: 1; letter-spacing: .01em; }
    .hm-header__mobile .hm-brand__est { font-size: 8.5px; letter-spacing: .12em; margin-top: 3px; }

    .hm-mobile-menu-btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border: none; background: transparent;
        font-size: 22px; color: var(--hm-text); padding: 0; flex-shrink: 0;
    }
    .hm-mobile-actions {
        display: inline-flex; align-items: center; gap: 0;
        flex-shrink: 0;
    }
    .hm-mobile-actions .hm-utility {
        min-width: auto; padding: 4px;
        width: 32px; height: 32px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .hm-mobile-actions .hm-utility i { font-size: 18px; }
    .hm-mobile-actions .hm-mobile-rfq {
        background: var(--hm-red); color: #fff;
        display: inline-flex; align-items: center; justify-content: center;
        width: 38px; height: 38px;
        margin-left: 4px;
        border-radius: 8px;
    }
    .hm-mobile-actions .hm-mobile-rfq i { font-size: 18px; }
    .hm-mobile-actions .hm-mobile-rfq:hover { background: var(--hm-red-dark); color: #fff; }
}

/* Tiny screens: hide brand text fully when there isn't room */
@media (max-width: 360px) {
    .hm-header__mobile .hm-brand__text { display: none; }
}

/* Mobile sticky bottom bar */
.hm-mobile-bottom-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--hm-green); color: #fff;
    z-index: 1030;
    padding: 8px 4px;
    box-shadow: 0 -8px 24px rgba(0,0,0,.12);
}
.hm-mobile-bottom-bar__inner { display: flex; align-items: stretch; justify-content: space-around; }
.hm-mobile-bottom-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 6px 4px; color: #fff; font-size: 11px;
}
.hm-mobile-bottom-bar a i { font-size: 20px; }
@media (max-width: 991px) {
    .hm-mobile-bottom-bar { display: block; }
    body { padding-bottom: 64px; }
}

/* Mobile offcanvas menu */
#mobileMenu .offcanvas-body {
    padding: 0;
}
#mobileMenu .hm-mobile-menu-list {
    list-style: none; padding: 0; margin: 0;
}
#mobileMenu .hm-mobile-menu-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--hm-line);
    color: var(--hm-text); font-weight: 600; font-size: 14px;
}
#mobileMenu .hm-mobile-menu-list a:hover { background: var(--hm-green-soft); color: var(--hm-green); }
#mobileMenu .hm-mobile-menu-list .sub-menu a { padding-left: 36px; font-weight: 500; font-size: 13px; color: var(--hm-text-2); }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.hm-hero {
    position: relative; overflow: hidden;
    margin: 16px auto;
    border-radius: 16px;
    max-width: calc(1320px - 32px);
}
@media (min-width: 992px) { .hm-hero { margin: 24px auto; } }
.hm-hero__slide {
    position: relative; min-height: 460px;
    display: flex; align-items: center;
    background-size: cover; background-position: center;
    border-radius: 16px;
}
.hm-hero__slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.15) 100%);
    border-radius: 16px;
}
.hm-hero__content {
    position: relative; z-index: 2; color: #fff;
    padding: 60px 40px; max-width: 640px;
}
.hm-hero__title {
    font-size: clamp(40px, 6vw, 64px); line-height: 1; font-weight: 800;
    color: #fff; margin: 0 0 20px;
}
.hm-hero__title .year { color: var(--hm-red); }
.hm-hero__sub {
    color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.6;
    margin-bottom: 28px; max-width: 480px;
}
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero__dots {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 3;
}
.hm-hero__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s ease;
}
.hm-hero__dot.active { background: #fff; width: 22px; border-radius: 4px; }

@media (max-width: 768px) {
    /* Banner is essentially edge-to-edge: cancel the container's 16 px side
       padding so the hero spans the full screen width */
    .hm-hero { margin: 0; border-radius: 10px; }
    .hm-container:has(> .hm-hero) { padding-left: 4px !important; padding-right: 4px !important; }
    .hm-hero__slide {
        min-height: 200px;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }
    .hm-hero__slide::before {
        background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.1) 100%);
        border-radius: 12px;
    }
    /* Tighter, well-balanced padding around the text */
    .hm-hero__content { padding: 16px 16px; max-width: 70%; }
    .hm-hero__title { font-size: 22px; line-height: 1.1; margin: 0 0 6px; }
    .hm-hero__sub { font-size: 11px; line-height: 1.4; margin: 0 0 10px; max-width: 100%; }
    .hm-hero__actions { gap: 8px; }
    .hm-hero__actions .hm-btn { padding: 7px 12px; font-size: 11.5px; }
    .hm-hero__actions .hm-btn--lg { padding: 8px 12px; font-size: 12px; }
    .hm-hero__actions .hm-btn i { font-size: 11px; }
    .hm-hero__dots { bottom: 8px; }
    .hm-hero__dot { width: 6px; height: 6px; }
    .hm-hero__dot.active { width: 18px; }
}
@media (max-width: 420px) {
    .hm-hero__slide { min-height: 180px; aspect-ratio: 16 / 9; }
    .hm-hero__title { font-size: 19px; line-height: 1.08; margin-bottom: 4px; }
    .hm-hero__sub { display: none; } /* keep the banner short on small phones */
    .hm-hero__content { padding: 14px 14px; max-width: 75%; }
    .hm-hero__actions .hm-btn { padding: 6px 10px; font-size: 11px; }
}

/* Stats row */
.hm-stats {
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--hm-shadow-sm);
    margin-top: -24px; position: relative; z-index: 2;
}
.hm-stats__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hm-stat { display: flex; align-items: center; gap: 14px; }
.hm-stat__icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--hm-green-soft); color: var(--hm-green);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.hm-stat__value { font-size: 24px; font-weight: 800; color: var(--hm-text); line-height: 1.1; }
.hm-stat__label { font-size: 13px; color: var(--hm-muted); }
@media (max-width: 768px) {
    /* Mobile stats: icon LEFT + value/label RIGHT, with | dividers between */
    .hm-stats {
        padding: 10px 6px;
        border-radius: 10px;
        border: 1px solid var(--hm-line);
        box-shadow: none;
    }
    .hm-stats__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
    .hm-stat {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        padding: 0 6px;
        position: relative;
        min-width: 0;
    }
    /* Stroke-only icon, no green badge */
    .hm-stat__icon {
        background: transparent !important;
        border: 0;
        border-radius: 0;
        width: 24px; height: 24px;
        font-size: 22px;
        color: var(--hm-text);
        flex-shrink: 0;
        margin: 0;
    }
    .hm-stat > div { min-width: 0; flex: 1; }
    .hm-stat__value {
        display: block;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        color: var(--hm-text);
        margin: 0 0 2px;
    }
    .hm-stat__label {
        display: block;
        font-size: 8.5px;
        line-height: 1.2;
        color: var(--hm-muted);
        font-weight: 500;
    }
    /* | divider between cells */
    .hm-stat + .hm-stat::before {
        content: "";
        position: absolute;
        left: 0; top: 50%;
        transform: translateY(-50%);
        width: 1px; height: 65%;
        background: var(--hm-line);
    }
}
@media (max-width: 380px) {
    .hm-stats { padding: 8px 4px; }
    .hm-stat { gap: 4px; padding: 0 4px; }
    .hm-stat__icon { width: 20px; height: 20px; font-size: 18px; }
    .hm-stat__value { font-size: 11.5px; }
    .hm-stat__label { font-size: 8px; }
}

/* Section headings */
.hm-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.hm-section-head__title { margin: 0; font-size: 28px; font-weight: 800; }
.hm-section-head__sub { color: var(--hm-muted); font-size: 14px; margin-top: 4px; }

/* Category cards */
.hm-catalog-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
@media (max-width: 1200px) { .hm-catalog-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .hm-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.hm-cat-card {
    background: #fff; border: 1px solid var(--hm-line);
    border-radius: 12px; padding: 14px 16px;
    /* Desktop default: HORIZONTAL — icon left, text right */
    display: flex; flex-direction: row; align-items: center;
    text-align: left;
    gap: 14px;
    min-height: 92px;
    transition: all .2s ease;
    color: var(--hm-text);
}
.hm-cat-card:hover {
    border-color: var(--hm-green); transform: translateY(-2px);
    box-shadow: var(--hm-shadow); color: var(--hm-text);
}
.hm-cat-card__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--hm-green-soft);
    display: flex; align-items: center; justify-content: center;
    margin: 0; overflow: hidden; flex-shrink: 0;
}
.hm-cat-card__icon img { max-width: 60%; max-height: 60%; object-fit: contain; }
.hm-cat-card__body { display: flex; flex-direction: column; min-width: 0; }
.hm-cat-card__name { font-size: 16px; font-weight: 700; margin: 0 0 2px; line-height: 1.2; }
.hm-cat-card__sub { font-size: 12.5px; color: var(--hm-muted); line-height: 1.3; }

/* Featured products */
.hm-tabs {
    display: flex; gap: 22px;
    border-bottom: 1px solid var(--hm-line); margin-bottom: 24px;
}
.hm-tab {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding: 10px 2px;
    font-size: 14px; font-weight: 600;
    color: var(--hm-muted); cursor: pointer;
    margin-bottom: -1px;
    outline: none !important;
    font-family: inherit;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}
.hm-tab:focus, .hm-tab:focus-visible { outline: none !important; box-shadow: none !important; }
.hm-tab::before, .hm-tab::after { display: none !important; content: none !important; }
.hm-tab.active { border-bottom: 2px solid var(--hm-green) !important; }
.hm-tab.active, .hm-tab:hover { color: var(--hm-green); border-bottom-color: var(--hm-green); }

.hm-prod-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 1200px) { .hm-prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .hm-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.hm-prod-card {
    background: #fff; border: 1px solid var(--hm-line);
    border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: all .2s ease;
}
.hm-prod-card:hover { border-color: var(--hm-green); box-shadow: var(--hm-shadow); }
.hm-prod-card__img {
    position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f5f5f5;
}
.hm-prod-card__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.hm-prod-card:hover .hm-prod-card__img img { transform: scale(1.04); }
.hm-prod-card__badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--hm-green); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 5px 10px; border-radius: 6px; letter-spacing: .02em;
}
.hm-prod-card__body { padding: 16px; }
.hm-prod-card__name {
    font-size: 15px; font-weight: 700; margin: 0 0 4px;
    color: var(--hm-text); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 40px;
}
.hm-prod-card__name a { color: inherit; }
.hm-prod-card__name a:hover { color: var(--hm-green); }
.hm-prod-card__meta { font-size: 12px; color: var(--hm-muted); margin-bottom: 8px; }
.hm-prod-card__status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--hm-green-light);
    margin-bottom: 10px;
}
.hm-prod-card__status::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--hm-green-light);
}
.hm-prod-card__cta {
    display: inline-block; width: 100%; text-align: center;
    padding: 9px 12px; border: 1px solid var(--hm-line);
    border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--hm-text);
    background: #fff;
}
.hm-prod-card__cta:hover { background: var(--hm-green); color: #fff; border-color: var(--hm-green); }

/* Major projects */
.hm-projects-feature {
    display: grid; grid-template-columns: 2fr 1fr; gap: 16px;
}
@media (max-width: 991px) { .hm-projects-feature { grid-template-columns: 1fr; } }
.hm-project-big, .hm-project-small {
    position: relative; overflow: hidden; border-radius: 14px;
    color: #fff; display: block;
}
.hm-project-big { min-height: 360px; }
.hm-project-small { min-height: 172px; }
.hm-project-big img, .hm-project-small img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.hm-project-big:hover img, .hm-project-small:hover img { transform: scale(1.04); }
.hm-project-big::after, .hm-project-small::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.8) 100%);
}
.hm-project-info {
    position: absolute; bottom: 16px; left: 18px; right: 18px; z-index: 2;
    color: #fff;
}
.hm-project-info__tag {
    display: inline-block; background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em;
}
.hm-project-info__title { color: #fff; font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.hm-project-info__loc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.85); }
.hm-project-small-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.hm-project-small .hm-project-info__title { font-size: 17px; }

/* Why choose */
.hm-why { background: var(--hm-bg); border-radius: 14px; padding: 30px; }
.hm-why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
@media (max-width: 991px) { .hm-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hm-why-grid { grid-template-columns: 1fr; } }
.hm-why-item { display: flex; gap: 14px; align-items: flex-start; }
.hm-why-item__icon {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px;
    background: #fff; border: 1px solid var(--hm-line);
    display: flex; align-items: center; justify-content: center;
    color: var(--hm-green); font-size: 22px;
}
.hm-why-item__title { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.hm-why-item__sub { font-size: 12.5px; color: var(--hm-muted); line-height: 1.45; }

/* Final dark CTA */
.hm-cta-dark {
    background: var(--hm-green); color: #fff;
    border-radius: 14px; padding: 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.hm-cta-dark__copy h3 { color: #fff; margin: 0 0 6px; font-size: 24px; }
.hm-cta-dark__copy p { color: rgba(255,255,255,.85); margin: 0; font-size: 14px; }
.hm-cta-dark__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page hero / breadcrumb */
.hm-page-hero {
    position: relative; padding: 60px 0 40px;
    background: var(--hm-bg);
    overflow: hidden;
}
.hm-page-hero--with-img { background: linear-gradient(to right, rgba(11,59,45,.65), rgba(11,59,45,.35)), var(--hm-bg); color: #fff; }
.hm-page-hero--with-img h1, .hm-page-hero--with-img .hm-breadcrumb a, .hm-page-hero--with-img .hm-breadcrumb span { color: #fff; }
.hm-page-hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
}
.hm-page-hero__inner { position: relative; z-index: 1; }
.hm-page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 8px 0 12px; }
.hm-page-hero p { color: var(--hm-text-2); max-width: 640px; font-size: 15px; }
.hm-page-hero--with-img p { color: rgba(255,255,255,.85); }

.hm-breadcrumb {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--hm-muted);
}
.hm-breadcrumb a { color: inherit; }
.hm-breadcrumb a:hover { color: var(--hm-green); }
.hm-breadcrumb span { color: var(--hm-text); font-weight: 600; }
.hm-breadcrumb .sep { color: var(--hm-line); }

/* ============================================================
   PRODUCT LISTING
   ============================================================ */
.hm-listing { padding: 32px 0 80px; }
.hm-listing__grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
@media (max-width: 991px) { .hm-listing__grid { grid-template-columns: 1fr; } }

.hm-filter-card {
    background: #fff; border: 1px solid var(--hm-line);
    border-radius: 12px; padding: 18px;
}
.hm-filter-card h5 {
    font-size: 15px; font-weight: 700; margin: 0 0 12px;
    display: flex; align-items: center; justify-content: space-between;
}
.hm-filter-card + .hm-filter-card { margin-top: 16px; }
.hm-filter-search {
    display: flex; align-items: stretch;
    border: 1px solid var(--hm-line); border-radius: 8px; overflow: hidden;
}
.hm-filter-search input { flex: 1; border: 0; padding: 9px 12px; font-size: 13px; outline: none; }
.hm-filter-search button { background: var(--hm-green); color: #fff; border: 0; padding: 0 12px; }

.hm-filter-list { list-style: none; padding: 0; margin: 0; }
.hm-filter-list li { margin-bottom: 8px; }
.hm-filter-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 10px; border-radius: 7px;
    font-size: 13.5px; color: var(--hm-text-2);
}
.hm-filter-list a:hover { background: var(--hm-green-soft); color: var(--hm-green); }
.hm-filter-list a.active { background: var(--hm-green); color: #fff; font-weight: 600; }
.hm-filter-list a.active .hm-count { color: rgba(255,255,255,.8); }
.hm-count { font-size: 12px; color: var(--hm-muted); }

.hm-filter-check { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; color: var(--hm-text-2); cursor: pointer; }
.hm-filter-check input[type=checkbox] {
    width: 16px; height: 16px; accent-color: var(--hm-green);
}

.hm-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.hm-toolbar__count { font-size: 13.5px; color: var(--hm-muted); }
.hm-toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.hm-toolbar__sort select {
    padding: 8px 14px; border: 1px solid var(--hm-line); border-radius: 8px;
    font-size: 13.5px; min-width: 140px;
}

/* Pagination */
.hm-pagination {
    display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 28px 0 0;
    flex-wrap: wrap; justify-content: center;
}
.hm-pagination .page-item .page-link,
.hm-pagination a, .hm-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--hm-line); border-radius: 8px;
    font-size: 13.5px; font-weight: 600; color: var(--hm-text-2);
    background: #fff; cursor: pointer;
}
.hm-pagination .page-item.active .page-link,
.hm-pagination .active a, .hm-pagination .active span {
    background: var(--hm-green); border-color: var(--hm-green); color: #fff;
}
.hm-pagination a:hover, .hm-pagination .page-link:hover {
    border-color: var(--hm-green); color: var(--hm-green);
}
.hm-pagination .disabled .page-link, .hm-pagination .disabled span { opacity: .5; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.hm-pd { padding: 32px 0 80px; }
.hm-pd__grid {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px;
}
@media (max-width: 991px) { .hm-pd__grid { grid-template-columns: 1fr; gap: 24px; } }

.hm-pd__gallery {
    background: #fff; border: 1px solid var(--hm-line); border-radius: 14px; padding: 14px;
}
.hm-pd__main-img {
    position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px;
    background: #f5f5f5;
}
.hm-pd__main-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-pd__badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--hm-green); color: #fff;
    padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700;
}
.hm-pd__thumbs {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px;
}
.hm-pd__thumb {
    aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent;
}
.hm-pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hm-pd__thumb.active { border-color: var(--hm-green); }

.hm-pd__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 6px; }
.hm-pd__sku { color: var(--hm-muted); font-size: 14px; margin-bottom: 14px; }
.hm-pd__stock {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--hm-green-light); font-weight: 600; font-size: 13px; margin-bottom: 18px;
}
.hm-pd__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hm-green-light); }

.hm-pd__quick-info {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0;
}
.hm-pd__qi {
    display: flex; gap: 10px; align-items: center;
    padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 10px;
}
.hm-pd__qi i { font-size: 22px; color: var(--hm-green); }
.hm-pd__qi-label { font-size: 11.5px; color: var(--hm-muted); }
.hm-pd__qi-value { font-size: 13.5px; font-weight: 700; color: var(--hm-text); }

.hm-pd__desc { color: var(--hm-text-2); line-height: 1.6; font-size: 14.5px; margin: 12px 0 20px; }

.hm-pd__sidebar-card {
    background: #fff; border: 1px solid var(--hm-line); border-radius: 14px;
    padding: 18px; margin-bottom: 14px;
}
.hm-pd__sidebar-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.hm-pd__check-list { list-style: none; padding: 0; margin: 0; }
.hm-pd__check-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.hm-pd__check-list li .lbl { color: var(--hm-muted); display: inline-flex; align-items: center; gap: 8px; }
.hm-pd__check-list li .lbl i { color: var(--hm-green); }
.hm-pd__check-list li .val { font-weight: 600; color: var(--hm-text); }

.hm-pd__tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--hm-line); margin: 30px 0 20px; }
.hm-pd__spec-table {
    width: 100%; border-collapse: collapse; font-size: 14px;
}
.hm-pd__spec-table th, .hm-pd__spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--hm-line-2); text-align: left; }
.hm-pd__spec-table th { width: 200px; color: var(--hm-muted); font-weight: 500; }
.hm-pd__spec-table td { color: var(--hm-text); font-weight: 600; }
.hm-pd__spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 768px) { .hm-pd__spec-grid { grid-template-columns: 1fr; } }
.hm-pd__spec-card { background: var(--hm-bg); border-radius: 12px; padding: 18px; }
.hm-pd__spec-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }

/* Mobile-only product summary slot (hidden on desktop) */
.hm-pd__mobile-summary { display: none; }

/* ============================================================
   PRODUCT DETAIL — MOBILE FIXES
   ============================================================ */
@media (max-width: 991px) {
    .hm-pd { padding: 16px 0 32px; }

    /* Simple vertical stack — left column first (gallery, mobile summary,
       tabs, panels), then right column (sidebar cards) below. */
    .hm-pd__grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .hm-pd__grid > div { display: flex; flex-direction: column; gap: 14px; }

    /* Compact gallery — shorter on phones */
    .hm-pd__gallery { padding: 6px; border-radius: 12px; }
    .hm-pd__main-img {
        border-radius: 8px;
        aspect-ratio: 4 / 3;
    }
    .hm-pd__badge { font-size: 10px; padding: 4px 8px; top: 10px; left: 10px; }
    .hm-pd__thumbs {
        gap: 6px; margin-top: 8px;
        grid-auto-flow: column;
        grid-auto-columns: 56px;
        grid-template-columns: none;
        justify-content: flex-start;
    }
    .hm-pd__thumb { border-radius: 6px; }

    /* Mobile summary block — title + stock + Request Quotation right under gallery */
    .hm-pd__mobile-summary {
        display: block;
        background: #fff;
        border: 1px solid var(--hm-line);
        border-radius: 12px;
        padding: 14px;
    }
    .hm-pd__mobile-title {
        font-size: 20px;
        line-height: 1.2;
        font-weight: 800;
        margin: 0 0 6px;
        color: var(--hm-text);
    }
    .hm-pd__mobile-meta {
        display: flex; flex-wrap: wrap; align-items: center;
        gap: 6px 10px;
        font-size: 12px;
        margin-bottom: 12px;
    }
    .hm-pd__mobile-stock {
        display: inline-flex; align-items: center; gap: 6px;
        color: var(--hm-green-light); font-weight: 600;
    }
    .hm-pd__mobile-stock .dot {
        width: 7px; height: 7px; border-radius: 50%;
        background: var(--hm-green-light);
    }
    .hm-pd__mobile-sku { color: var(--hm-muted); }
    .hm-pd__mobile-summary .hm-btn { padding: 11px 14px; font-size: 13px; }

    /* Sidebar cards: tighter padding, hide the duplicate title/stock on mobile
       (already shown in the mobile-summary above) */
    .hm-pd__sidebar-card { padding: 14px; border-radius: 12px; margin-bottom: 12px; }
    .hm-pd__sidebar-card h4 { font-size: 15px; margin-bottom: 10px; }
    .hm-pd__sidebar-card .hm-pd__title,
    .hm-pd__sidebar-card .hm-pd__sku,
    .hm-pd__sidebar-card .hm-pd__stock { display: none; }
    .hm-pd__sidebar-card > div:has(.bi-star-fill) { display: none; }

    /* Quick info: 3 cards stacked on phones for readability */
    .hm-pd__quick-info {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 4px 0 12px;
    }
    .hm-pd__qi { padding: 10px 12px; gap: 12px; }
    .hm-pd__qi i { font-size: 20px; }
    .hm-pd__qi-label { font-size: 11px; }
    .hm-pd__qi-value { font-size: 13px; }

    .hm-pd__desc { font-size: 13.5px; margin: 10px 0 14px; }

    /* Highlights list */
    .hm-pd__check-list li {
        grid-template-columns: 92px 1fr;
        gap: 8px;
        padding: 6px 0;
        font-size: 12.5px;
    }
    .hm-pd__check-list li .lbl { gap: 6px; }
    .hm-pd__sidebar-card .hm-pd__check-list li[style*="28px"] {
        grid-template-columns: 24px 1fr !important;
        font-size: 12.5px;
    }

    /* Spec tabs: smaller + scrollable. Fade right edge as scroll hint. */
    .hm-pd__tabs {
        gap: 16px;
        margin: 4px 0 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        position: relative;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
                mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    }
    .hm-pd__tabs::-webkit-scrollbar { display: none; }
    .hm-pd__tabs .hm-tab {
        flex-shrink: 0;
        font-size: 12.5px;
        padding: 8px 0;
        white-space: nowrap;
    }

    /* Spec card */
    .hm-pd__spec-card { padding: 14px; border-radius: 10px; }
    .hm-pd__spec-card h4 { font-size: 14px; margin-bottom: 10px; }
    .hm-pd__spec-table { font-size: 13px; }
    .hm-pd__spec-table th, .hm-pd__spec-table td { padding: 9px 10px; }
    .hm-pd__spec-table th { width: 130px; }
    .hm-pd__spec-grid { gap: 12px; }

    /* CTA buttons in sidebar */
    .hm-pd__sidebar-card .hm-btn { padding: 11px 14px; font-size: 13px; }

    /* "You May Also Need" — horizontal scroll */
    .hm-pd .hm-prod-grid {
        grid-template-columns: repeat(8, 42%);
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }
    .hm-pd .hm-prod-grid::-webkit-scrollbar { display: none; }
    .hm-pd .hm-prod-grid > .hm-prod-card { scroll-snap-align: start; }

    /* Hide redundant floating WhatsApp on product detail (bottom bar already has it) */
    body:has(.hm-pd) .hm-wa-fab { display: none; }
}

@media (max-width: 420px) {
    .hm-pd__mobile-title { font-size: 18px; }
    .hm-pd__check-list li { grid-template-columns: 78px 1fr; font-size: 11.5px; }
    .hm-pd .hm-prod-grid { grid-template-columns: repeat(8, 50%); }
}

/* ============================================================
   PROJECTS LISTING
   ============================================================ */
.hm-project-card {
    position: relative; overflow: hidden; border-radius: 14px;
    color: #fff; display: block;
    aspect-ratio: 4/3;
}
.hm-project-card img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.hm-project-card:hover img { transform: scale(1.05); }
.hm-project-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%);
}
.hm-project-card__badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 5px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em;
}
.hm-project-card__bookmark {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.hm-project-card__info {
    position: absolute; bottom: 16px; left: 16px; right: 16px; z-index: 2;
}
.hm-project-card__title { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.hm-project-card__loc { color: rgba(255,255,255,.85); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.hm-project-card__meta {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: space-between; font-size: 12px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.hm-contact-grid { display: grid; grid-template-columns: 320px 1fr 280px; gap: 24px; }
@media (max-width: 1199px) { .hm-contact-grid { grid-template-columns: 1fr; } }
.hm-contact-card { background: #fff; border: 1px solid var(--hm-line); border-radius: 14px; padding: 22px; }
.hm-contact-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.hm-office-list { list-style: none; padding: 0; margin: 0; }
.hm-office {
    display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--hm-line);
}
.hm-office:last-child { border-bottom: none; }
.hm-office img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--hm-bg); }
.hm-office h5 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.hm-office .addr { font-size: 12.5px; color: var(--hm-muted); margin-bottom: 6px; }
.hm-office .meta { font-size: 12.5px; color: var(--hm-text-2); display: inline-flex; align-items: center; gap: 6px; }

.hm-form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 768px) { .hm-form-grid { grid-template-columns: 1fr; } }
.hm-form-grid .col-2 { grid-column: span 2; }
.hm-form-grid .col-3 { grid-column: span 3; }
@media (max-width: 768px) {
    .hm-form-grid .col-2, .hm-form-grid .col-3 { grid-column: span 1; }
}

.hm-field label { display: block; font-size: 13px; color: var(--hm-text-2); font-weight: 500; margin-bottom: 6px; }
.hm-field input, .hm-field select, .hm-field textarea {
    width: 100%; border: 1px solid var(--hm-line); border-radius: 8px;
    padding: 11px 14px; font-size: 14px; background: #fff; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hm-field input:focus, .hm-field select:focus, .hm-field textarea:focus {
    border-color: var(--hm-green); box-shadow: 0 0 0 3px rgba(11,59,45,.08);
}
.hm-field textarea { min-height: 130px; resize: vertical; }

.hm-quick-links { list-style: none; padding: 0; margin: 0; }
.hm-quick-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 10px;
    margin-bottom: 8px;
}
.hm-quick-links a:hover { border-color: var(--hm-green); background: var(--hm-green-soft); }
.hm-quick-links a .ic {
    width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px;
    background: var(--hm-green-soft); color: var(--hm-green);
    display: flex; align-items: center; justify-content: center;
}
.hm-quick-links a strong { display: block; font-size: 13.5px; color: var(--hm-text); }
.hm-quick-links a span { display: block; font-size: 12px; color: var(--hm-muted); }

.hm-tech-cta {
    background: var(--hm-green); color: #fff;
    border-radius: 14px; padding: 20px; margin-top: 16px;
    position: relative; overflow: hidden;
}
.hm-tech-cta h4 { color: #fff; margin: 0 0 6px; font-size: 16px; }
.hm-tech-cta p { color: rgba(255,255,255,.85); font-size: 13px; margin: 0 0 12px; }

/* Partners strip */
.hm-partners {
    background: #fff; border: 1px solid var(--hm-line); border-radius: 14px;
    padding: 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.hm-partners__title { font-weight: 700; font-size: 14px; flex-shrink: 0; max-width: 170px; }
.hm-partners__logos { flex: 1; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-around; }
.hm-partners__logos img { max-height: 50px; max-width: 120px; object-fit: contain; filter: grayscale(.3); opacity: .85; transition: all .2s ease; }
.hm-partners__logos img:hover { filter: none; opacity: 1; }

/* ============================================================
   ABOUT / OUR GROUP
   ============================================================ */
.hm-group-hero {
    background: linear-gradient(rgba(11,59,45,.85), rgba(11,59,45,.85)), url('/images/home/banner1.webp') center/cover;
    color: #fff; padding: 60px 0; border-radius: 0; margin-bottom: 0;
}
.hm-group-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.05; }
.hm-group-hero p { color: rgba(255,255,255,.85); font-size: 15px; max-width: 480px; }

.hm-group-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .hm-group-stats { grid-template-columns: repeat(2, 1fr); } }
.hm-group-stat { color: #fff; }
.hm-group-stat__icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: rgba(255,255,255,.7); }
.hm-group-stat__value { font-size: 36px; font-weight: 800; line-height: 1; color: var(--hm-green-light); margin-bottom: 4px; }
.hm-group-stat__value.is-light { color: rgba(255,255,255,.95); }
.hm-group-stat__label { font-weight: 700; font-size: 14px; color: #fff; }
.hm-group-stat__sub { font-size: 12.5px; color: rgba(255,255,255,.7); }

.hm-values-grid { display: grid; grid-template-columns: repeat(5, 1fr) 280px; gap: 28px; align-items: stretch; }
@media (max-width: 1199px) { .hm-values-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .hm-values-grid { grid-template-columns: 1fr 1fr; } }
.hm-value-card { padding: 14px 6px; }
.hm-value-card__icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--hm-green-soft); color: var(--hm-green);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    margin-bottom: 10px;
}
.hm-value-card h5 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.hm-value-card p { font-size: 12.5px; color: var(--hm-muted); line-height: 1.5; margin: 0; }
.hm-purpose-card { background: var(--hm-green); color: #fff; border-radius: 14px; padding: 22px; }
.hm-purpose-card h5 { color: #fff; }
.hm-purpose-card p { color: rgba(255,255,255,.85); font-size: 13px; }

.hm-entities-list { background: #fff; border: 1px solid var(--hm-line); border-radius: 14px; padding: 8px; }
.hm-entity {
    display: grid; grid-template-columns: 44px 1fr auto;
    gap: 14px; align-items: center;
    padding: 12px; border-bottom: 1px solid var(--hm-line);
}
.hm-entity:last-child { border-bottom: none; }
.hm-entity__logo {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--hm-green-soft); color: var(--hm-green);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.hm-entity strong { font-size: 14px; font-weight: 700; display: block; }
.hm-entity span { font-size: 12.5px; color: var(--hm-muted); }

.hm-facility { background: #fff; border: 1px solid var(--hm-line); border-radius: 14px; overflow: hidden; }
.hm-facility img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hm-facility-body { padding: 14px; }
.hm-facility h5 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.hm-facility p { font-size: 12.5px; color: var(--hm-muted); margin: 0 0 8px; line-height: 1.4; }

.hm-cert { background: #fff; border: 1px solid var(--hm-line); border-radius: 14px; padding: 20px; }
.hm-cert-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; align-items: end; }
.hm-cert-logos img { max-height: 80px; max-width: 100%; object-fit: contain; margin: 0 auto; display: block; }

/* ============================================================
   ARTICLES / NEWS
   ============================================================ */
.hm-article-card {
    background: #fff; border: 1px solid var(--hm-line); border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column; transition: all .2s ease;
}
.hm-article-card:hover { border-color: var(--hm-green); box-shadow: var(--hm-shadow); }
.hm-article-card__img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f5f5f5; }
.hm-article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hm-article-card:hover .hm-article-card__img img { transform: scale(1.04); }
.hm-article-card__tag {
    position: absolute; top: 12px; left: 12px;
    background: var(--hm-green); color: #fff;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
}
.hm-article-card__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.hm-article-card__meta { font-size: 12px; color: var(--hm-muted); margin-bottom: 8px; }
.hm-article-card__title {
    font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-article-card__sub { font-size: 13px; color: var(--hm-text-2); line-height: 1.5; margin: 0 0 12px; flex: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.hm-footer {
    background: var(--hm-green); color: rgba(255,255,255,.75);
    margin-top: 0;
}
.hm-footer__top {
    padding: 56px 0 32px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.2fr; gap: 32px;
}
@media (max-width: 1199px) { .hm-footer__top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 768px) { .hm-footer__top { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* Mobile: trim the footer — hide Locations & Newsletter, pack link sections
   in a 2-col grid under a slim brand row, tight spacing. */
@media (max-width: 768px) {
    .hm-footer__top {
        padding: 20px 0 10px;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
    }
    .hm-footer__col--locations,
    .hm-footer__col--newsletter,
    .hm-footer__col--group { display: none; }

    /* Brand row spans both cols on top */
    .hm-footer__about { grid-column: 1 / -1; margin-bottom: 4px; }
    .hm-footer__about .hm-brand--footer { margin-bottom: 8px !important; }
    .hm-footer__about p {
        font-size: 12.5px; line-height: 1.5; max-width: none;
        margin: 0 0 8px;
    }
    .hm-footer__socials { gap: 6px; margin-top: 6px; }
    .hm-footer__socials a { width: 30px; height: 30px; font-size: 13px; }

    .hm-footer h6 { font-size: 11.5px; margin: 0 0 6px; letter-spacing: .06em; }
    .hm-footer ul li { margin-bottom: 2px; }
    .hm-footer ul a { font-size: 12.5px; }

    /* Cap products list (8 → 4 visible + View All) */
    .hm-footer__top > div:nth-child(2) ul > li:nth-child(n+5):not(:last-child) { display: none; }

    .hm-footer__bottom {
        flex-direction: column; align-items: flex-start;
        gap: 4px; font-size: 11px; padding: 8px 0;
    }
    .hm-footer__bottom-links { gap: 12px; flex-wrap: wrap; }
}
.hm-footer h6 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .03em; margin: 0 0 14px; }
.hm-footer ul { list-style: none; padding: 0; margin: 0; }
.hm-footer ul li { margin-bottom: 8px; }
.hm-footer ul a { color: rgba(255,255,255,.75); font-size: 13.5px; }
.hm-footer ul a:hover { color: #fff; }
.hm-footer__logo img { height: 36px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.hm-footer__about p { font-size: 13.5px; line-height: 1.6; max-width: 320px; color: #fff; }
.hm-footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.hm-footer__socials a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.hm-footer__socials a:hover { background: var(--hm-red); }
.hm-footer__contact-line { font-size: 13px; line-height: 1.7; }
.hm-footer__contact-line i { color: rgba(255,255,255,.6); margin-right: 6px; }
.hm-footer__newsletter { position: relative; }
.hm-footer__newsletter input {
    width: 100%; padding: 12px 50px 12px 14px;
    background: rgba(255,255,255,.08); color: #fff;
    border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
    font-size: 13.5px; outline: none;
}
.hm-footer__newsletter input::placeholder { color: rgba(255,255,255,.5); }
.hm-footer__newsletter button {
    position: absolute; top: 4px; right: 4px;
    width: 38px; height: calc(100% - 8px);
    background: var(--hm-red); color: #fff;
    border: 0; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.hm-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0; font-size: 12.5px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.hm-footer__bottom-links { display: flex; gap: 18px; }
.hm-footer__bottom-links a { color: rgba(255,255,255,.7); }

/* WhatsApp floating */
.hm-wa-fab {
    position: fixed; bottom: 88px; right: 18px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
    z-index: 1025;
}
.hm-wa-fab:hover { background: #1ebd5b; color: #fff; }
@media (min-width: 992px) { .hm-wa-fab { bottom: 24px; } }

/* Featured Items horizontal scroll on mobile */
.hm-scroll-x {
    display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.hm-scroll-x > * { flex: 0 0 78%; scroll-snap-align: start; }
.hm-scroll-x::-webkit-scrollbar { height: 4px; }
.hm-scroll-x::-webkit-scrollbar-thumb { background: var(--hm-line); border-radius: 4px; }

/* Cart sidebar styles preserved but in brand colors */
#cartSidebar .cart-sidebar-footer .btn-danger { background: var(--hm-red); border-color: var(--hm-red); }

/* Utility */
.hm-text-green { color: var(--hm-green); }
.hm-text-red { color: var(--hm-red); }
.hm-bg-green { background: var(--hm-green); color: #fff; }
.hm-bg-soft { background: var(--hm-bg); }

.hm-fade-in { animation: hmFadeUp .6s ease both; }
@keyframes hmFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Override stale legacy classes that affect layout */
.no-bottom.no-top#content { padding: 0; }
header.header-area.style-1 { display: none !important; }

/* ============================================================
   KILL LEGACY MODAVE PRELOADER / WRAPPERS that block the page.
   These were causing the homepage to render empty on mobile.
   ============================================================ */
body.preload-wrapper,
body.popup-loader,
body.tt-magic-cursor { cursor: auto !important; }

.preload,
.preload-container,
.preload-wrapper > .preload,
body > .preload {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#magic-cursor, #ball { display: none !important; }

/* ============================================================
   COMPOSED BRAND LOGO (icon + text)
   Replaces the legacy logo image so it matches the new design
   on every screen. No image asset has the right styling baked in.
   ============================================================ */
.hm-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--hm-text); text-decoration: none;
    flex-shrink: 0;
}
.hm-brand:hover { color: var(--hm-text); }
.hm-brand__icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: #fff; border-radius: 50%;
    border: 2px solid var(--hm-green);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 4px;
}
.hm-brand__icon img { width: 100%; height: 100%; object-fit: contain; }
.hm-brand__text { display: flex; flex-direction: column; line-height: 1; }
.hm-brand__name {
    font-size: 18px; font-weight: 800; letter-spacing: .02em;
    color: var(--hm-text); white-space: nowrap;
}
.hm-brand__est {
    font-size: 10px; font-weight: 700; letter-spacing: .14em;
    color: var(--hm-muted); margin-top: 4px;
}
@media (max-width: 991px) {
    .hm-brand__icon { width: 36px; height: 36px; }
    .hm-brand__name { font-size: 15px; }
    .hm-brand__est { font-size: 9px; margin-top: 2px; }
}

/* Footer brand variant (light text) */
.hm-brand--footer .hm-brand__name { color: #fff; font-size: 17px; }
.hm-brand--footer .hm-brand__est { color: rgba(255,255,255,.6); }
.hm-brand--footer .hm-brand__icon { background: #fff; border-color: rgba(255,255,255,.2); }

/* Mobile menu drawer brand (light) */
#mobileMenu .hm-brand__name { color: #fff; }
#mobileMenu .hm-brand__est { color: rgba(255,255,255,.7); }
#mobileMenu .hm-brand__icon { background: #fff; }

/* ============================================================
   MOBILE FINE-TUNES
   - Cleaner header layout
   - Hero a touch tighter
   - Ensure content has a min-height so nothing collapses
   ============================================================ */
@media (max-width: 991px) {
    /* Force the homepage content not to collapse behind the footer */
    #wrapper > section { min-height: 1px; }

    /* Hero margin tightened on mobile (sizing handled in <=768 block) */
    .hm-hero { margin: 0 12px; }

    /* Stats card on mobile sits below hero (no overlap) */
    .hm-stats { padding: 18px; margin-top: 0; }

    /* Section spacing tighter */
    .hm-section { padding: 36px 0; }

    /* Section heads: title + "View all" link on a single row */
    .hm-section-head { gap: 8px; flex-wrap: nowrap; align-items: center; margin-bottom: 14px; }
    .hm-section-head__title { font-size: 16px !important; line-height: 1.2; font-weight: 700; }
    .hm-section-head__sub { font-size: 10.5px; margin-top: 2px; }
    .hm-section-head .hm-link { font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
    .hm-section-head .hm-link::after { font-size: 12px; }
}
@media (max-width: 380px) {
    .hm-section-head__title { font-size: 14.5px !important; }
    .hm-section-head__sub { font-size: 10px; }
    .hm-section-head .hm-link { font-size: 11px; }
}

/* Mobile bottom bar refinement to match design */
.hm-mobile-bottom-bar { padding: 6px 0; }
.hm-mobile-bottom-bar a { padding: 6px 2px; font-size: 10.5px; line-height: 1.1; }
.hm-mobile-bottom-bar a i { font-size: 22px; }

/* Make hero dots positioned correctly on mobile */
.hm-hero__dots { bottom: 18px; }

/* Featured products tabs on mobile center */
@media (max-width: 768px) {
    .hm-tabs {
        gap: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch;
        justify-content: center;
    }
    .hm-tabs::-webkit-scrollbar { display: none; }
    .hm-tab { white-space: nowrap; flex-shrink: 0; font-size: 13px; }
}

/* Major projects on mobile: 1 big, 2 small stacked under */
@media (max-width: 991px) {
    .hm-projects-feature { grid-template-columns: 1fr; gap: 12px; }
    .hm-project-big { min-height: 260px; }
    .hm-project-small-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .hm-project-small { min-height: 140px; }
}

/* Catalog grid on mobile: 4 cols × 2 rows = only 8 items shown */
@media (max-width: 991px) {
    .hm-cat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 6px;
        min-height: 0;
        gap: 6px;
    }
    .hm-cat-card__icon { width: 64px; height: 64px; }
    .hm-cat-card__name { font-size: 13px; line-height: 1.2; }
    .hm-cat-card__sub { font-size: 10.5px; }
    .hm-catalog-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    /* Show only the first 8 items on mobile */
    .hm-catalog-grid > .hm-cat-card:nth-child(n+9) { display: none; }
}
@media (max-width: 380px) {
    .hm-catalog-grid { gap: 8px; }
    .hm-cat-card { padding: 12px 4px; }
    .hm-cat-card__icon { width: 56px; height: 56px; }
    .hm-cat-card__name { font-size: 12px; }
    .hm-cat-card__sub { font-size: 10px; }
}

/* Featured products on mobile: compact horizontal scroll */
@media (max-width: 768px) {
    .hm-prod-grid {
        grid-template-columns: repeat(8, 38%);
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .hm-prod-grid::-webkit-scrollbar { display: none; }
    .hm-prod-grid > .hm-prod-card { scroll-snap-align: start; }
    .hm-prod-card { border-radius: 10px; }
    .hm-prod-card__img { aspect-ratio: 1 / 1; }
    .hm-prod-card__body { padding: 8px 10px 10px; }
    .hm-prod-card__badge { font-size: 8.5px; padding: 2px 6px; top: 6px; left: 6px; border-radius: 4px; }
    .hm-prod-card__name { font-size: 11.5px; min-height: 28px; margin-bottom: 2px; line-height: 1.25; }
    .hm-prod-card__meta { font-size: 9.5px; margin-bottom: 3px; }
    .hm-prod-card__status { font-size: 9.5px; margin-bottom: 6px; gap: 4px; }
    .hm-prod-card__status::before { width: 5px; height: 5px; }
    .hm-prod-card__cta { padding: 6px 8px; font-size: 10.5px; border-radius: 5px; }
}
@media (max-width: 420px) {
    .hm-prod-grid { grid-template-columns: repeat(8, 46%); }
}

/* Header utility text wrap fix */
.hm-utility span { display: block; }

/* Top utility bar — match the mockup spacing */
@media (min-width: 992px) {
    .hm-topbar__inner { font-size: 13px; }
}

/* Search bar dropdown for category select — visual polish */
.hm-search__cat:focus { outline: none; }

/* Sticky bottom bar should not overlap WhatsApp FAB on mobile */
@media (max-width: 991px) {
    .hm-wa-fab { bottom: 80px; right: 14px; width: 50px; height: 50px; font-size: 24px; }
}

/* Stats icons subtle bg + flex layout fix on tiny screens */
@media (max-width: 480px) {
    .hm-stat { gap: 10px; }
    .hm-stat__icon { width: 40px; height: 40px; font-size: 20px; }
    .hm-stat__value { font-size: 22px; }
    .hm-stat__label { font-size: 12px; }
}
