/* Safe header logo + favicon patch for Mawar Sepakat Venture
   This file is loaded after style.css so it overrides old logo sizing only. */
.site-header .navbar {
    min-height: 64px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.site-header .navbar > .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-header .navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin-right: 1rem !important;
    width: auto !important;
    max-width: 160px !important;
    min-width: 0 !important;
    height: 54px !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
    line-height: 1 !important;
}

.site-header .navbar-brand .brand-logo {
    display: block !important;
    width: 150px !important;
    max-width: 150px !important;
    height: 54px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    flex: 0 0 auto !important;
}

.site-header .navbar-brand > span,
.site-header .navbar-brand .brand-text-wrap,
.site-header .navbar-brand .brand-title-text,
.site-header .navbar-brand .brand-subtitle {
    display: none !important;
}

.site-header .navbar-collapse {
    min-width: 0;
}

.site-header .navbar-nav .nav-link {
    font-size: 0.82rem;
    padding-left: 0.48rem !important;
    padding-right: 0.48rem !important;
    white-space: nowrap;
}

.site-header .navbar .btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
}

@media (max-width: 1199.98px) {
    .site-header .navbar-brand {
        max-width: 138px !important;
        height: 50px !important;
    }

    .site-header .navbar-brand .brand-logo {
        width: 132px !important;
        max-width: 132px !important;
        height: 50px !important;
        max-height: 50px !important;
    }

    .site-header .navbar-nav .nav-link {
        font-size: 0.78rem;
        padding-left: 0.38rem !important;
        padding-right: 0.38rem !important;
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar-brand {
        max-width: 130px !important;
        height: 48px !important;
    }

    .site-header .navbar-brand .brand-logo {
        width: 124px !important;
        max-width: 124px !important;
        height: 48px !important;
        max-height: 48px !important;
    }

    .site-header .navbar-collapse {
        padding-top: 0.65rem;
    }

    .site-header .navbar-nav .nav-link {
        white-space: normal;
        padding-top: 0.45rem !important;
        padding-bottom: 0.45rem !important;
    }
}

@media (max-width: 575.98px) {
    .site-header .navbar {
        min-height: 58px;
    }

    .site-header .navbar-brand {
        max-width: 112px !important;
        height: 42px !important;
    }

    .site-header .navbar-brand .brand-logo {
        width: 108px !important;
        max-width: 108px !important;
        height: 42px !important;
        max-height: 42px !important;
    }
}


/* Stage 21: move company logo from top menu into homepage hero */
.site-header-menu-only .navbar {
    min-height: 56px !important;
    padding-top: .38rem !important;
    padding-bottom: .38rem !important;
}

.site-header-menu-only .navbar > .container {
    justify-content: flex-start !important;
}

.site-header-menu-only .navbar-brand {
    display: none !important;
}

.site-header-menu-only .navbar-collapse {
    flex-grow: 1 !important;
}

.site-header-menu-only .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.site-header-menu-only .navbar-nav .nav-link {
    font-size: .82rem !important;
    padding-left: .55rem !important;
    padding-right: .55rem !important;
}

.site-header-menu-only .btn-warning {
    padding: .42rem .72rem !important;
    font-size: .78rem !important;
}

.hero-company-logo-wrap {
    display: inline-flex;
    align-items: center;
    max-width: 360px;
    padding: .35rem .45rem;
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(18,55,95,.08);
    box-shadow: 0 10px 24px rgba(18,55,95,.07);
    backdrop-filter: blur(8px);
}

.hero-company-logo {
    display: block;
    width: 310px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1199.98px) {
    .hero-company-logo-wrap {
        max-width: 310px;
    }

    .hero-company-logo {
        width: 270px;
    }

    .site-header-menu-only .navbar-nav .nav-link {
        font-size: .78rem !important;
        padding-left: .42rem !important;
        padding-right: .42rem !important;
    }
}

@media (max-width: 991.98px) {
    .site-header-menu-only .navbar-toggler {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .site-header-menu-only .navbar-collapse {
        margin-top: .5rem;
    }

    .hero-company-logo-wrap {
        max-width: 260px;
        padding: .28rem .35rem;
    }

    .hero-company-logo {
        width: 240px;
    }
}

@media (max-width: 767.98px) {
    .hero-company-logo-wrap {
        max-width: 230px;
        border-radius: 14px;
        margin-bottom: .75rem !important;
    }

    .hero-company-logo {
        width: 210px;
    }
}


/* Stage 22: center CIDB badge directly under homepage logo */
.hero-logo-badge-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-bottom: 1rem !important;
}

.hero-logo-badge-stack .hero-company-logo-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto .7rem !important;
}

.hero-logo-badge-stack .hero-badge {
    display: inline-flex !important;
    align-self: center !important;
    margin: 0 auto !important;
    text-align: center !important;
    justify-content: center !important;
}

@media (max-width: 767.98px) {
    .hero-logo-badge-stack {
        align-items: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-logo-badge-stack .hero-badge {
        font-size: .72rem !important;
        padding: .34rem .58rem !important;
    }
}



/* Stage 23: small laptop + mobile responsive polish */
@media (max-width: 1399.98px) {
    .site-header-menu-only .navbar > .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .site-header-menu-only .navbar-nav .nav-link {
        font-size: .78rem !important;
        padding-left: .42rem !important;
        padding-right: .42rem !important;
    }

    .site-header-menu-only .navbar .btn-warning {
        padding: .38rem .68rem !important;
        font-size: .76rem !important;
    }

    .hero-section {
        padding-top: 3.1rem !important;
        padding-bottom: 3.2rem !important;
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 3.25rem) !important;
        line-height: 1.04 !important;
    }

    .hero-subtitle {
        font-size: .98rem !important;
        max-width: 640px !important;
    }

    .hero-company-logo-wrap {
        max-width: 315px !important;
    }

    .hero-company-logo {
        width: 285px !important;
    }

    .hero-feature-image {
        height: 210px !important;
    }
}

@media (max-width: 1199.98px) {
    .site-header-menu-only .navbar-nav {
        gap: .1rem !important;
    }

    .site-header-menu-only .navbar-nav .nav-link {
        font-size: .74rem !important;
        padding-left: .34rem !important;
        padding-right: .34rem !important;
    }

    .site-header-menu-only .navbar .btn-warning {
        padding: .34rem .58rem !important;
        font-size: .72rem !important;
    }

    .hero-section .row {
        --bs-gutter-x: 1.25rem;
    }

    .hero-company-logo-wrap {
        max-width: 285px !important;
    }

    .hero-company-logo {
        width: 260px !important;
    }

    .hero-feature-image {
        height: 190px !important;
    }

    .stat-grid {
        gap: .55rem !important;
    }

    .stat-box {
        padding: .65rem !important;
    }

    .stat-box strong {
        font-size: 1.05rem !important;
    }

    .stat-box span {
        font-size: .72rem !important;
    }
}

@media (max-width: 991.98px) {
    .site-header-menu-only .navbar {
        min-height: 52px !important;
    }

    .site-header-menu-only .navbar-toggler {
        margin-left: 0 !important;
        border: 1px solid rgba(18,55,95,.12) !important;
        padding: .25rem .45rem !important;
        border-radius: 10px !important;
    }

    .site-header-menu-only .navbar-collapse {
        background: #ffffff !important;
        border: 1px solid rgba(18,55,95,.08) !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 28px rgba(18,55,95,.10) !important;
        padding: .65rem !important;
        margin-top: .55rem !important;
    }

    .site-header-menu-only .navbar-nav .nav-link {
        font-size: .86rem !important;
        padding: .5rem .65rem !important;
        border-radius: 10px !important;
    }

    .site-header-menu-only .navbar-nav .nav-link:hover,
    .site-header-menu-only .navbar-nav .nav-link.active {
        background: #f1f7ff !important;
    }

    .site-header-menu-only .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: .4rem !important;
    }

    .site-header-menu-only .navbar .btn-warning {
        width: 100% !important;
        justify-content: center !important;
        display: inline-flex !important;
        font-size: .84rem !important;
        padding: .55rem .75rem !important;
    }

    .hero-section {
        text-align: center !important;
        padding-top: 2.5rem !important;
        padding-bottom: 2.7rem !important;
    }

    .hero-logo-badge-stack {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-company-logo-wrap {
        max-width: 300px !important;
    }

    .hero-company-logo {
        width: 270px !important;
    }

    .hero-service-chips {
        justify-content: center !important;
    }

    .hero-section .d-flex.flex-column.flex-sm-row {
        justify-content: center !important;
    }

    .hero-card {
        max-width: 560px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-feature-image {
        height: 210px !important;
    }

    .section-pad {
        padding-top: 2.6rem !important;
        padding-bottom: 2.6rem !important;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: .9rem !important;
    }

    .container {
        padding-left: .85rem !important;
        padding-right: .85rem !important;
    }

    .hero-section {
        padding-top: 2rem !important;
        padding-bottom: 2.25rem !important;
    }

    .hero-company-logo-wrap {
        max-width: 255px !important;
        padding: .25rem .32rem !important;
        border-radius: 14px !important;
    }

    .hero-company-logo {
        width: 235px !important;
    }

    .hero-logo-badge-stack .hero-badge {
        max-width: 92vw !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        font-size: .7rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.06 !important;
        margin-top: .85rem !important;
        margin-bottom: .55rem !important;
    }

    .hero-subtitle {
        font-size: .88rem !important;
        line-height: 1.45 !important;
        margin-bottom: 1rem !important;
    }

    .hero-section .btn {
        width: 100% !important;
        justify-content: center !important;
        display: inline-flex !important;
        padding: .62rem .85rem !important;
        font-size: .86rem !important;
    }

    .hero-service-chips {
        gap: .38rem !important;
        margin-top: .7rem !important;
    }

    .hero-service-chips span {
        font-size: .68rem !important;
        padding: .3rem .48rem !important;
    }

    .hero-card {
        border-radius: 22px !important;
        margin-top: .6rem !important;
    }

    .hero-card-inner {
        padding: .85rem !important;
    }

    .hero-feature-image {
        height: 165px !important;
        border-radius: 14px !important;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .5rem !important;
    }

    .stat-box {
        min-height: 70px !important;
        padding: .58rem !important;
        border-radius: 13px !important;
        text-align: left !important;
    }

    .section-title {
        font-size: 1.45rem !important;
        line-height: 1.16 !important;
    }

    .section-kicker {
        font-size: .68rem !important;
    }

    .service-card,
    .why-card,
    .testimonial-card,
    .info-card,
    .electric-info-card,
    .premium-overview-panel,
    .cta-box {
        border-radius: 17px !important;
        padding: .9rem !important;
    }

    .service-visual-image,
    .service-card-image {
        height: 150px !important;
        border-radius: 13px !important;
    }

    .cta-actions {
        width: 100% !important;
    }

    .cta-actions .btn {
        width: 100% !important;
        margin-bottom: .45rem !important;
    }
}

@media (max-width: 420px) {
    .hero-company-logo-wrap {
        max-width: 225px !important;
    }

    .hero-company-logo {
        width: 205px !important;
    }

    .hero-title {
        font-size: 1.72rem !important;
    }

    .hero-feature-image {
        height: 145px !important;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .stat-box span {
        font-size: .68rem !important;
    }

    .site-header-menu-only .navbar-nav .nav-link {
        font-size: .82rem !important;
    }
}

