/* Mahera Karya Nusantara — Corporate portfolio */
:root {
    --navy: #081F4D;
    --gold: #D4A017;
    --bg: #F8F9FA;
    --text: #222;
    --muted: #647080;
    --white: #fff;
    --shadow: 0 18px 42px rgba(8, 31, 77, .12)
}

* {
    box-sizing: border-box
}
.grid {
    margin: 0 auto;
}
/* isotope */
.grid-sizer,
.grid-item {
    width: 20%;
}

/* 2 columns wide */
.grid-item--width2 {
    width: 40%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px
}

body {
    font-family: Montserrat, Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7
}

a {
    text-decoration: none
}

.section-space {
    padding: 110px 0
}

.section-muted {
    background: var(--bg)
}

.section-kicker {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    margin-bottom: .65rem
}

.section-head {
    max-width: 660px;
    margin-bottom: 44px
}

.section-head h2,
.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2
}

.section-head p {
    color: var(--muted)
}

.text-gold {
    color: #efc15a !important
}

.btn {
    border-radius: 2px;
    padding: .8rem 1.35rem;
    font-size: .83rem;
    font-weight: 700;
    transition: all .3s ease
}

.btn-gold {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #fff
}

.btn-gold:hover {
    background: #b9870f;
    border-color: #b9870f;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(212, 160, 23, .28)
}

/* Loader */
#preloader {
    align-items: center;
    background: var(--navy);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    transition: opacity .4s, visibility .4s
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden
}

.loader-mark,
.brand-mark {
    align-items: center;
    background: var(--gold);
    color: #fff;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    letter-spacing: -.05em;
    width: 34px
}

.loader-mark {
    animation: pulse 1s infinite;
    height: 55px;
    width: 55px
}

@keyframes pulse {
    50% {
        transform: scale(1.13);
        opacity: .7
    }
}

/* Navbar */
.navbar {
    padding: 18px 0;
    transition: all .35s ease
}

.navbar.scrolled {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 5px 28px rgba(8, 31, 77, .1);
    padding: 10px 0
}

.navbar-brand {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: .88rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: .07em
}

.navbar-brand small {
    display: block;
    font-size: .48rem;
    font-weight: 600;
    letter-spacing: .12em
}

.navbar.scrolled .navbar-brand {
    color: var(--navy)
}

.nav-link {
    color: rgba(255, 255, 255, .88);
    font-size: .76rem;
    font-weight: 700;
    margin: 0 .35rem
}

.nav-link:hover,
.nav-link.active,
.navbar.scrolled .nav-link:hover {
    color: var(--gold)
}

.navbar.scrolled .nav-link {
    color: var(--navy)
}

.nav-contact {
    border: 1px solid rgba(255, 255, 255, .7);
    padding: .5rem .8rem !important
}

.navbar.scrolled .nav-contact {
    border-color: var(--gold)
}

.navbar-toggler {
    border: 0;
    color: #fff;
    font-size: 1.5rem
}

.navbar.scrolled .navbar-toggler {
    color: var(--navy)
}

/* Hero */
.hero-section {
    background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=85') center/cover fixed;
    min-height: 100vh;
    position: relative
}

.hero-overlay {
    background: linear-gradient(100deg, rgba(8, 31, 77, .94), rgba(8, 31, 77, .66));
    inset: 0;
    position: absolute
}

.hero-section h1 {
    color: #fff;
    font-size: clamp(2.7rem, 6.3vw, 5.75rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.03
}

.hero-copy {
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 1.5rem 0 .65rem
}

.hero-service {
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    margin-bottom: 1.8rem;
    text-transform: uppercase
}

.hero-service span {
    color: #efc15a
}

.scroll-cue {
    bottom: 35px;
    height: 48px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 25px
}

.scroll-cue span {
    border: 1px solid #fff;
    border-radius: 20px;
    display: block;
    height: 100%;
    position: relative
}

.scroll-cue span:after {
    animation: scroll 1.6s infinite;
    background: var(--gold);
    border-radius: 50%;
    content: "";
    height: 5px;
    left: 9px;
    position: absolute;
    top: 8px;
    width: 5px
}

@keyframes scroll {
    to {
        opacity: 0;
        transform: translateY(24px)
    }
}

/* Cards and filtering */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
    margin-bottom: 38px
}

.filter-btn {
    background: transparent;
    border: 1px solid #dce1e7;
    border-radius: 2px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    padding: .6rem 1rem;
    transition: .25s
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff
}

.portfolio-item {
    transition: opacity .35s, transform .35s
}

.portfolio-item.is-hidden {
    display: none
}

.portfolio-tile {
    display: block;
    height: 270px;
    overflow: hidden;
    position: relative
}

.portfolio-tile:after {
    background: linear-gradient(transparent 35%, rgba(8, 31, 31, .88));
    content: "";
    inset: 0;
    position: absolute
}

.portfolio-tile img,
.project-card img,
.gallery-card img,
.service-card img {
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    width: 100%
}

.portfolio-tile:hover img,
.project-card:hover img,
.gallery-card:hover img,
.service-card:hover img {
    transform: scale(1.08)
}

.portfolio-tile span {
    bottom: 25px;
    color: #fff;
    left: 25px;
    position: absolute;
    z-index: 1
}

.portfolio-tile small {
    display: block;
    color: #efc15a;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase
}

.portfolio-tile strong {
    font-size: 1.2rem
}

.project-card,
.gallery-card,
.service-card {
    background: #fff;
    box-shadow: var(--shadow);
    height: 100%;
    overflow: hidden;
    transition: .35s
}

.project-card:hover,
.gallery-card:hover,
.service-card:hover {
    transform: translateY(-8px)
}

.project-card img {
    height: 210px
}

.project-content {
    padding: 24px
}

.project-content h3,
.gallery-card h3,
.service-card h3 {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 800;
    margin: .6rem 0
}

.project-content p,
.gallery-card p {
    color: var(--muted);
    font-size: .82rem;
    margin: 0
}

.status {
    color: #27814f;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.gallery-card img {
    height: 185px
}

.gallery-card>div {
    padding: 20px
}

.service-card img {
    height: 155px
}

.service-card h3 {
    font-size: .92rem;
    padding: 18px;
    margin: 0
}

.service-card {
    min-width: 0
}

/* Statistics & slider */
.stat-section {
    background: var(--navy);
    padding: 85px 0
}

.stat strong {
    color: var(--gold);
    display: block;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1
}

.stat span {
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase
}

.commitment-swiper {
    padding: 7px 4px 46px
}

.commitment-swiper .swiper-slide {
    background: var(--bg);
    min-height: 210px;
    padding: 35px;
    text-align: center
}

.commitment-swiper i {
    color: var(--gold);
    font-size: 2rem
}

.commitment-swiper h3 {
    color: var(--navy);
    font-size: 1.12rem;
    font-weight: 800;
    margin: 15px 0 8px
}

.commitment-swiper p {
    color: var(--muted);
    font-size: .82rem
}

.swiper-pagination-bullet-active {
    background: var(--gold)
}

/* CTA & footer */
.cta-section {
    background: var(--navy);
    padding: 100px 0
}

.cta-section h2 {
    color: #fff;
    margin: 0 auto 27px;
    max-width: 740px
}

footer {
    background: #051431;
    color: #bdc5d2;
    padding: 70px 0 0
}

footer h3 {
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    margin-bottom: 17px
}

footer p,
footer address,
footer a {
    color: #bdc5d2;
    font-size: .8rem
}

footer a:hover {
    color: var(--gold)
}

.footer-brand {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: .84rem;
    font-weight: 800;
    gap: 9px;
    letter-spacing: .05em
}

.social-links {
    display: flex;
    gap: 8px
}

.social-links a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    display: flex;
    font-size: 1rem;
    height: 36px;
    justify-content: center;
    width: 36px
}

.social-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .72rem;
    margin-top: 45px;
    padding: 22px 0
}

/* Floating buttons */
.whatsapp-float,
#backToTop {
    align-items: center;
    border: 0;
    border-radius: 50%;
    bottom: 25px;
    color: #fff;
    display: flex;
    height: 48px;
    justify-content: center;
    position: fixed;
    right: 25px;
    width: 48px;
    z-index: 20
}

.whatsapp-float {
    background: #25D366;
    font-size: 1.5rem;
    bottom: 82px;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .3)
}

#backToTop {
    background: var(--navy);
    opacity: 0;
    pointer-events: none;
    transition: .3s
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto
}

@media(min-width:1200px) {
    .home-sec {
        margin-top: 100px;
    }
}

@media(max-width:991px) {
    .navbar {
        background: rgba(8, 31, 77, .97);
        padding: 10px 0
    }

    .navbar.scrolled {
        background: rgba(255, 255, 255, .97)
    }

    .navbar-collapse {
        padding: 16px 0
    }

    .nav-link {
        padding: .6rem 0
    }

    .nav-contact {
        border: 0;
        padding: .6rem 0 !important
    }

    .hero-section {
        background-attachment: scroll
    }

    .section-space {
        padding: 75px 0
    }

}

@media(max-width:575px) {
    .section-space {
        padding: 65px 0
    }

    .hero-section h1 {
        font-size: 2.7rem
    }

    .hero-copy {
        font-size: .94rem
    }

    .portfolio-tile {
        height: 235px
    }

    .stat-section {
        padding: 58px 0
    }

    .whatsapp-float,
    #backToTop {
        right: 15px
    }
}