/* =========================================================
   HIM INSTRUMENTS & CHEMICALS®
   MAIN WEBSITE CSS
   CLEAN VERSION
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f8fc;
    color: #1b2b4b;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

section {
    width: 100%;
}


/* =========================================================
   NAVBAR
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.08);
    z-index: 1050;
}

.site-header .navbar {
    min-height: 75px;
    padding: 5px 0;
}


/* BRAND */

.him-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}


/* LOGO */

.him-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}


/* COMPANY TEXT */

.him-brand-text {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.him-company-name {
    display: block;
    color: #003b75;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.him-tagline {
    display: block;
    color: #0066cc;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 3px;
    white-space: nowrap;
}


/* NAV LINKS */

.site-header .navbar-nav {
    gap: 3px;
}

.site-header .nav-link {
    color: #222222 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px !important;
    transition: 0.25s ease;
}

.site-header .nav-link:hover {
    color: #0066cc !important;
}

.site-header .nav-link.active {
    color: #0066cc !important;
}


/* SEARCH */

.him-search-form {
    display: flex;
    align-items: center;
    width: 270px;
}

.him-search-form .form-control {
    height: 38px;
    border: 1px solid #d9e1eb;
    border-radius: 22px;
    font-size: 12px;
    padding: 0 15px;
    box-shadow: none;
}

.him-search-form .form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.10);
}

.him-search-form .btn {
    height: 38px;
    border-radius: 22px;
    padding: 0 17px;
    margin-left: 6px;
    font-size: 12px;
    white-space: nowrap;
}


/* =========================================================
   HERO
========================================================= */

.him-hero {
    position: relative;
    min-height: 560px;
    padding: 130px 0 75px;
    background:
        linear-gradient(
            135deg,
            #003b75,
            #0066cc
        );
    color: #ffffff;
    overflow: hidden;
}

.him-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(255,255,255,0.10),
            transparent 35%
        );
    pointer-events: none;
}

.him-hero .container {
    position: relative;
    z-index: 2;
}

.him-hero h1 {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
    margin: 18px 0;
}

.him-hero p {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.94);
}

.hero-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 30px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 12px;
    font-weight: 600;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 10px 23px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.hero-btn-primary {
    background: #ffffff;
    color: #0066cc;
}

.hero-btn-primary:hover {
    background: #eef6ff;
    color: #003b75;
    transform: translateY(-2px);
}

.hero-btn-outline {
    border: 1px solid rgba(255,255,255,0.8);
    color: #ffffff;
    background: transparent;
}

.hero-btn-outline:hover {
    background: #ffffff;
    color: #0066cc;
}


/* HERO IMAGE */

.hero-image {
    width: 100%;
    max-width: 520px;
    height: 350px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}


/* =========================================================
   COMMON SECTION
========================================================= */

.section-title {
    text-align: center;
    color: #003b75;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 45px;
}


/* =========================================================
   LEGACY
========================================================= */

.legacy-section {
    padding: 75px 0;
    background: #ffffff;
}

.legacy-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.legacy-year {
    display: inline-block;
    background: #eaf4ff;
    color: #0066cc;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.legacy-content h2 {
    color: #003366;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
}

.legacy-content p {
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legacy-content strong {
    color: #003b75;
}


/* =========================================================
   SECTION BUTTON
========================================================= */

.section-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0066cc;
    color: #ffffff;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: 0.3s ease;
}

.section-btn:hover {
    background: #003b75;
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   FEATURED PRODUCTS
========================================================= */

.featured-products {
    padding: 75px 0;
    background: #f7faff;
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.11);
}

.product-card > img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 23px 20px;
}

.product-content h4 {
    color: #003366;
    font-size: 18px;
    font-weight: 700;
    min-height: 50px;
    margin-bottom: 10px;
}

.product-content p {
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
    min-height: 45px;
    margin-bottom: 18px;
}


/* CARD BUTTON */

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 9px 18px;
    background: #0066cc;
    color: #ffffff;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s ease;
}

.card-btn:hover {
    background: #003b75;
    color: #ffffff;
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories-section {
    padding: 75px 0;
    background: #ffffff;
}

.category-card {
    height: 100%;
    background: #ffffff;
    padding: 32px 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.07);
    transition: 0.3s ease;
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 13px 30px rgba(0,0,0,0.11);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 18px;
}

.category-card h4 {
    color: #003b75;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-card p {
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   SERVING
========================================================= */

.serving-section {
    padding: 70px 0;
    background: #f5f8fc;
}

.serving-content {
    max-width: 950px;
    margin: auto;
    text-align: center;
}

.serving-content p {
    color: #666666;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

.serving-content strong {
    color: #003b75;
}


/* =========================================================
   BRANDS
========================================================= */

.brands-section {
    padding: 75px 0;
    background: #ffffff;
}

.brand-card {
    height: 100%;
    padding: 23px 15px;
    background: #ffffff;
    border: 1px solid #edf1f6;
    border-radius: 12px;
    text-align: center;
    color: #003366;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.brand-card:hover {
    background: #0066cc;
    color: #ffffff;
    transform: translateY(-5px);
}


/* =========================================================
   WHY US
========================================================= */

.why-section {
    padding: 75px 0;
    background: #f7faff;
}

.why-card {
    height: 100%;
    background: #ffffff;
    padding: 32px 24px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.07);
    transition: 0.3s ease;
}

.why-card:hover {
    transform: translateY(-7px);
}

.why-icon {
    font-size: 40px;
    margin-bottom: 18px;
    color: #0066cc;
}

.why-card h4 {
    color: #003b75;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.why-card p {
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   STATS
========================================================= */

.stats-section {
    padding: 65px 0;
    background: #003b75;
    color: #ffffff;
}

.stats-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-section p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}


/* =========================================================
   CTA
========================================================= */

.home-cta {
    padding: 75px 0;
    background: #0066cc;
    color: #ffffff;
}

.home-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.home-cta p {
    max-width: 700px;
    margin: 0 auto 25px;
    font-size: 16px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    background: #ffffff;
    color: #0066cc;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: #eef6ff;
    color: #003b75;
    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 65px 0 25px;
    background: #111827;
    color: #ffffff;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.footer-brand h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.site-footer p {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.7;
}

.site-footer h5 {
    font-size: 16px;
    margin-bottom: 18px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 10px;
}

.site-footer ul li a {
    color: #cbd5e1;
    transition: 0.25s ease;
}

.site-footer ul li a:hover {
    color: #ffffff;
}

.site-footer hr {
    margin: 35px 0 20px;
    border-color: rgba(255,255,255,0.15);
}

.footer-bottom {
    color: #94a3b8;
    font-size: 12px;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.22);
    z-index: 9999;
    transition: 0.3s ease;
}

.whatsapp-btn:hover {
    color: #ffffff;
    transform: scale(1.08);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .site-header .navbar {
        min-height: 68px;
    }

    .him-logo {
        width: 52px;
        height: 52px;
    }

    .him-company-name {
        font-size: 16px;
    }

    .him-tagline {
        font-size: 8px;
    }

    .site-header .navbar-collapse {
        background: #ffffff;
        padding: 15px 0 10px;
    }

    .site-header .navbar-nav {
        align-items: flex-start !important;
    }

    .site-header .nav-link {
        padding: 8px 0 !important;
    }

    .him-search-form {
        width: 100%;
        margin-top: 10px;
        margin-left: 0 !important;
    }

    .him-hero {
        min-height: auto;
        padding: 120px 0 60px;
        text-align: center;
    }

    .him-hero h1 {
        font-size: 36px;
    }

    .him-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        height: 300px;
        margin-top: 15px;
    }

    .section-title {
        font-size: 30px;
    }

    .legacy-content h2 {
        font-size: 30px;
    }

    .home-cta h2 {
        font-size: 30px;
    }

}


@media (max-width: 575px) {

    .him-brand-text {
        margin-left: 7px;
    }

    .him-company-name {
        font-size: 14px;
    }

    .him-tagline {
        font-size: 7px;
    }

    .him-logo {
        width: 46px;
        height: 46px;
    }

    .him-hero {
        padding-top: 110px;
    }

    .him-hero h1 {
        font-size: 30px;
    }

    .him-hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 220px;
    }

    .hero-image {
        height: 240px;
    }

    .section-title {
        font-size: 27px;
    }

    .whatsapp-btn {
        width: 52px;
        height: 52px;
        right: 15px;
        bottom: 15px;
        font-size: 25px;
    }

}