@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --red: #d82024;
    --dark: #0a0d0f;
    --line: #e1e3e4;
    --muted: #656b70
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: #15181a;
    font-family: Inter, Arial, sans-serif
}

a {
    text-decoration: none;
    color: inherit
}

.header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 4.4vw;
    border-bottom: 1px solid #eee;
    gap: 35px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100
}

.logo {
    display: flex;
    flex-direction: column
}

.logo b {
    color: var(--red);
    font-size: 27px;
    letter-spacing: -.04em
}

.logo span {
    font-size: 9px;
    font-weight: 800
}

.header nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 80px;
    gap: 30px
}

.header nav>a,
.mega-wrap>a {
    font-size: 16px;
    font-weight: 800;
    height: 80px;
    display: flex;
    align-items: center
}

.mega-wrap {
    height: 80px;
    position: static
}

.mega-wrap>a span {
    margin-left: 4px
}

.mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: #fff;
    box-shadow: 0 18px 35px #0002;
    border-top: 1px solid #eee;
    padding: 30px 4.4vw;
    display: grid;
    grid-template-columns: 210px minmax(350px, 1fr) minmax(280px, 34%);
    gap: 35px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .18s
}

.mega-wrap:hover .mega,
.mega-wrap:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: none
}

.mega-title {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.mega-title small,
.catalog>small,
.hero-copy small,
.section-title small {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em
}

.mega-title strong {
    font: 800 30px/0.9 "Barlow Condensed";
    margin: 10px 0 20px
}

.mega-title a {
    color: var(--red);
    font-size: 9px;
    font-weight: 800
}

.mega-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px
}

.mega-cats a {
    min-height: 70px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 30px 1fr 20px;
    align-items: center;
    gap: 8px;
    transition: .15s
}

.mega-cats a:nth-child(odd) {
    border-right: 1px solid var(--line);
    padding-right: 20px
}

.mega-cats a:nth-child(even) {
    padding-left: 20px
}

.mega-cats a:hover {
    color: var(--red);
    padding-left: 8px
}

.mega-cats small {
    color: #999;
    font-size: 9px
}

.mega-cats strong {
    font: 800 20px "Barlow Condensed"
}

.mega-cats i {
    font-style: normal;
    color: var(--red);
    font-size: 20px
}

.mega-image {
    min-height: 210px;
    background: linear-gradient(135deg, #11181d, #465057);
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 20px
}

.mega-image:before {
    content: "";
    position: absolute;
    width: 42%;
    height: 72%;
    right: 10%;
    top: 10%;
    border-radius: 45%;
    background: linear-gradient(145deg, #ddd, #555);
    transform: rotate(7deg)
}

.mega-image:after {
    content: "";
    position: absolute;
    width: 25%;
    height: 20%;
    right: 29%;
    bottom: 12%;
    background: var(--red);
    border-radius: 8px
}

.mega-image span {
    position: relative;
    z-index: 2;
    font: 800 22px/.9 "Barlow Condensed"
}


.btn {
    display: inline-block;
    padding: 13px 20px;
    font-size: 11px;
    font-weight: 800
}

.red {
    background: #c4161c;
    color: #fff;
}

.hero {
    height: 600px;
    background: url("flowmeter_adameteran.jpg") center center / cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center
}

.hero-copy {
    margin-left: 4.4vw;
    position: relative;
    z-index: 2;
    max-width: 580px
}

.hero-copy h1 {
    font: 800 54px/.92 "Barlow Condensed";
    margin: 10px 0 18px
}

.hero-copy p {
    font-size: 14px;
    line-height: 1.55;
    max-width: 500px
}

.hero-visual {
    position: absolute;
    right: 5%;
    width: 55%;
    height: 90%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 3%;
    opacity: .85
}



.section {
    padding: 35px 4.4vw;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.section.light {
    background: #f6f6f5
}

.section-title h2 {
    font: 800 29px/.92 "Barlow Condensed";
    margin: 9px 0 22px
}

.section-title a {
    font-size: 10px;
    font-weight: 800;
    color: var(--red)
}

.cat-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.cat-card,
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    transition: .15s
}

.cat-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px #00000012
}

.cat-card .visual {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cat-card .visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-card .visual span {
    font: 800 24px "Barlow Condensed";
    text-align: center;
}

.cat-card h3 {
    font: 800 16px "Barlow Condensed";
    margin: 10px 14px
}

.cat-card b,
.product-card b {
    display: block;
    color: var(--red);
    font-size: 10px;
    margin: 0 14px 14px
}

.product-card img,
.product-card .placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    object-fit: contain;
    background: linear-gradient(145deg, #eee, #ccc);
    display: grid;
    place-items: center;
    font: 300 30px "Barlow Condensed";
}



.product-card>div:last-child {
    padding: 12px 14px
}

.product-card small {
    font-size: 10px;
    color: var(--red);
    font-weight: 800
}

.product-card h3 {
    font: 800 18px/1.05 "Barlow Condensed";
    margin: 4px 0
}

/* =========================
   OUR BRANDS
========================= */

.brand-strip {
    min-height: 105px;
    padding: 0 4.4vw;

    display: flex;
    align-items: center;

    background: #fff;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    gap: 28px;

    overflow: hidden;
}


/* TITLE */

.brand-title {
    flex: 0 0 80px;

    font: 800 17px/1.05 "Barlow Condensed";

    color: #111;

    text-align: left;
}


/* LOGO AREA */

.brand-logos {
    flex: 1;

    min-width: 0;

    display: flex;
    align-items: center;

    justify-content: space-between;

    gap: 24px;

    overflow: hidden;
}


/* EACH BRAND */

.brand-logo {
    flex: 0 0 auto;

    width: 82px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition: .15s;
}


/* BRAND IMAGE */

.brand-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 82px;
    max-height: 42px;

    object-fit: contain;
}


/* FALLBACK TEXT
   jika brand belum punya gambar */

.brand-logo span {
    font: 800 13px "Barlow Condensed";

    color: #222;

    text-align: center;
}


/* HOVER */

.brand-logo:hover {
    transform: scale(1.05);
}


/* NEXT BUTTON */

.brand-next {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #ddd;
    border-radius: 50%;

    background: #fff;

    color: #111;

    font-size: 23px;
    line-height: 1;

    cursor: pointer;
}

.brand-strip > strong {
    flex: 0 0 90px;
    font-size: 17px;
    line-height: 1.05;
    color: #111;
}

.brand-strip .brand-logo {
    flex: 0 0 auto;
    width: 90px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-strip .brand-logo img {
    max-width: 90px;
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-strip .brand-logo span {
    font-size: 14px;
    font-weight: 800;
    color: #222;
}

.cta {
    padding: 45px 4.4vw;
    background: #12283d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18vw
}

.cta h2 {
    font: 800 38px/.9 "Barlow Condensed"
}

.cta p {
    font-size: 12px;
    color: #d7dce0
}

.catalog {
    padding: 70px 4.4vw;
    background: #f6f6f5;
    min-height: 70vh
}

.catalog h1 {
    font: 800 58px/.9 "Barlow Condensed";
    margin: 8px 0
}

.catalog>p {
    color: var(--muted)
}

.search {
    display: flex;
    gap: 8px;
    margin: 25px 0 30px
}

.search input,
.search select {
    padding: 13px;
    border: 1px solid var(--line);
    background: #fff;
    outline: 0
}

.search input {
    flex: 1
}

.brand-list,
.solution-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line)
}

.brand-list a {
    min-height: 160px;
    background: #fff;
    display: grid;
    place-items: center;
    font: 800 27px "Barlow Condensed"
}

.brand-list span {
    font: 700 9px Inter;
    color: var(--red)
}

.solution-list {
    grid-template-columns: repeat(3, 1fr);
    background: transparent;
    gap: 12px
}

.solution-list article {
    background: #fff
}

.solution-image {
    height: 190px;
    background: linear-gradient(135deg, #111a20, #58636a);
    color: #fff;
    display: grid;
    place-items: center;
    font: 800 55px "Barlow Condensed"
}

.solution-list article>div:last-child {
    padding: 20px
}

.solution-list h2 {
    font: 800 34px "Barlow Condensed";
    margin: 4px 0
}

.solution-list a {
    font-size: 10px;
    color: var(--red);
    font-weight: 800
}

.detail {
    padding: 60px 4.4vw;
    display: grid;
    grid-template-columns: 700px 1fr;
    gap: 60px;
    align-items: start;
}

.detail-image {
    
    width: 100%;
    aspect-ratio: 1 / 1;
}


.detail-image img,
.detail-image .placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(145deg, #eee, #ccc);
    display: grid;
    place-items: center;
    font: 800 40px "Barlow Condensed";
}

.detail h1 {
    font: 800 62px/.9 "Barlow Condensed";
    margin: 10px 0
}

.detail>div>p:not(.code) {
    color: var(--muted);
    line-height: 1.6
}

footer {
    background: #101214;
    color: #ddd;
    padding: 40px 4.4vw 16px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px
}

footer>div {
    display: flex;
    flex-direction: column;
    gap: 7px
}

footer b {
    font-size: 14px
}

footer a,
footer span,
footer p {
    font-size: 14px;
    color: #b9bec2;
    margin: 0
}

.foot-logo {
    color: var(--red);
    font-size: 20px
}

.copy {
    grid-column: 1/-1;
    border-top: 1px solid #ffffff20;
    padding-top: 14px;
    text-align: center;
    color: #8d9498
}

@media(max-width:900px) { .header nav { display: none }

    .mega {
        position: fixed;
        top: 80px;
        grid-template-columns: 1fr;
        padding: 20px 5vw
    }

    .mega-image {
        min-height: 150px
    }

    .section {
        grid-template-columns: 1fr
    }

    .cat-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .cta {
        gap: 30px
    }

    .detail {
        grid-template-columns: 1fr
    }

    .brand-list {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:560px) {
    .header {
        padding: 0 20px
    }

    .nav-btn {
        display: none
    }

    .logo b {
        font-size: 22px
    }

    .hero {
        height: 540px
    }

    .hero-copy {
        margin: 0 22px
    }

    .hero-copy h1 {
        font-size: 45px
    }

    .hero-visual {
        right: -30%;
        width: 100%;
        opacity: .45
    }

    .section,
    .catalog,
    .detail {
        padding: 35px 22px
    }

    .cat-grid,
    .product-grid {
        grid-template-columns: 1fr 1fr
    }

    .search {
        flex-wrap: wrap
    }

    .search input {
        width: 100%;
        flex-basis: 100%
    }

    .cta {
        display: block;
        padding: 35px 22px
    }

    footer {
        grid-template-columns: 1fr;
        padding: 30px 22px
    }

    .copy {
        grid-column: auto
    }
}
/* =========================================
   PRODUCTS MEGA MENU - SUB CATEGORY
========================================= */

.mega-category {
    position: relative;
}

/* Sub category awalnya tersembunyi */
.mega-subcategories {
    display: none;

    position: absolute;
    left: 0;
    top: calc(100% - 1px);

    min-width: 100%;

    background: #fff;
    border: 1px solid var(--line);

    box-shadow: 0 10px 25px #00000018;

    z-index: 999;
}

/* Muncul ketika cursor masuk ke MAIN CATEGORY */
.mega-category:hover .mega-subcategories {
    display: block;
}

/* Link sub category */
.mega-subcategories a {
    display: block;

    padding: 13px 18px;

    color: #222;
    background: #fff;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;

    border-bottom: 1px solid #eee;

    white-space: nowrap;
}

/* Hover sub category */
.mega-subcategories a:hover {
    color: var(--red);
    background: #f7f7f7;
}

/* Tanda panah di main category */
.mega-category-title::after {
    content: "›";

    float: right;

    margin-left: 15px;

    color: var(--red);
    font-size: 18px;
}

/* Panah sedikit bergerak saat hover */
.mega-category:hover .mega-category-title::after {
    transform: translateX(3px);
}



/* =========================
   SOLUTIONS
========================= */

.solutions-section {
    width: 100%;
    background: #fff;
    padding: 18px 4.4vw 22px;
    box-sizing: border-box;
}

.solutions-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 28px;
}


/* =========================
   HEADING
========================= */

.solutions-heading {
    padding-left: 0;
}

.solutions-heading span {
    display: block;

    margin-bottom: 7px;

    font: 800 13px/1 "Barlow Condensed", sans-serif;

    color: #e21e25;

    letter-spacing: .5px;
}

.solutions-heading h2 {
    margin: 0;

    font: 800 27px/.95 "Barlow Condensed", sans-serif;

    color: #111;

    text-transform: uppercase;
}


/* =========================
   CARDS
========================= */

.solutions-cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

    min-width: 0;
}


.solution-card {
    position: relative;

    height: 152px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background-size: cover;
    background-position: center;

    border-radius: 5px;

    text-decoration: none;

    color: #fff;

    isolation: isolate;
}


/* DARK IMAGE OVERLAY */

.solution-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.38),
            rgba(0,0,0,.68)
        );

    z-index: -1;

    transition: .25s ease;
}


/* CONTENT */

.solution-content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding: 12px 15px;

    box-sizing: border-box;

    text-align: center;
}


/* ICON */

.solution-icon {
    width: 39px;
    height: 39px;

    margin: 0 auto 6px;

    display: block;

    color: #fff;
}


/* TITLE */

.solution-content h3 {
    margin: 0 0 5px;

    font: 800 17px/1 "Barlow Condensed", sans-serif;

    color: #fff;
}


/* DESCRIPTION */

.solution-content p {
    margin: 0;

    font: 400 12px/1.35 Arial, sans-serif;

    color: #fff;
}


/* HOVER */

.solution-card:hover .solution-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.25),
            rgba(0,0,0,.75)
        );
}

.solution-card:hover {
    transform: translateY(-2px);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .solutions-inner {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }

    .solutions-heading h2 {
        font-size: 24px;
    }

    .solution-card {
        height: 145px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .solutions-section {
        padding: 30px 20px;
    }

    .solutions-inner {
        display: block;
    }

    .solutions-heading {
        margin-bottom: 20px;
    }

    .solutions-heading h2 {
        font-size: 28px;
    }

    .solutions-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .solution-card {
        height: 170px;
    }

}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    display: none !important;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 700px) {
    .mobile-menu-btn {
        display: block !important;
    }
}

@media (max-width: 700px) {

    .header nav.mobile-open {
        display: flex !important;
        flex-direction: column;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background: #fff;

        padding: 20px 25px;

        box-shadow: 0 8px 20px rgba(0,0,0,.12);

        z-index: 9999;
    }


}

@media(max-width:700px) {

    .header {
        position: relative;
    }

    .header nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block !important;
    }

}
/* =========================
   RED BUTTON HOVER
========================= */

.btn.red {
    transition: background-color .25s ease,
                transform .2s ease,
                box-shadow .25s ease;
}

.btn.red:hover {
    background: #f12a30;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}
/* =========================
   PRODUCT PAGINATION
========================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.pagination-pages a.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.pagination a:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.pagination-prev,
.pagination-next {
    white-space: nowrap;
}


/* MOBILE */

@media (max-width: 600px) {

    .pagination {
        gap: 10px;
        flex-wrap: wrap;
    }

    .pagination-pages {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .pagination-prev,
    .pagination-next {
        order: 1;
    }
}