/* =========================================================
   PT. Kalyana Manunggal Jaya — Company Profile
   Palet warna diambil dari logo: teal, hijau, navy, mint
   ========================================================= */
:root {
    --navy:  #1e4a5e;
    --navy-dark: #163947;
    --teal:  #29a08b;
    --teal-dark: #1f8674;
    --green: #7dc470;
    --green-light: #a3d69a;
    --mint:  #cde8d4;
    --bg-soft: #f4faf6;
    --text:  #3a4a52;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(30, 74, 94, .10);
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(30, 74, 94, .08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.brand-mark { height: 46px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .06em;
    color: var(--navy);
}

.brand-sub {
    font-weight: 500;
    font-size: .62rem;
    letter-spacing: .32em;
    color: var(--teal);
}

.site-nav ul {
    display: flex;
    gap: .25rem;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: .5rem .85rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--navy);
    border-radius: 8px;
    transition: background .2s, color .2s;
}

.site-nav a:hover { background: var(--bg-soft); color: var(--teal); }

.site-nav a.active { background: var(--teal); color: var(--white); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: .4rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(30, 74, 94, .96), rgba(41, 160, 139, .92)),
        var(--navy);
    color: var(--white);
    padding: 6rem 0 7rem;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, rgba(125, 196, 112, .35), rgba(41, 160, 139, .15));
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    pointer-events: none;
}

.hero::before { top: -140px; right: -120px; transform: rotate(18deg); }

.hero::after { bottom: -160px; left: -140px; transform: rotate(200deg); }

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 3rem;
    align-items: center;
}

.hero-kicker {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 1rem;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.hero h1 .accent { color: var(--green-light); }

.hero p { max-width: 34rem; opacity: .92; margin-bottom: 2rem; }

.hero-logo {
    justify-self: center;
    width: min(240px, 60%);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25));
    background: var(--white);
    border-radius: 28px;
    padding: 2rem;
}

.btn {
    display: inline-block;
    padding: .8rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .15s, box-shadow .15s, background .2s;
}

.btn-primary {
    background: var(--green);
    color: var(--navy-dark);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }

.btn-outline {
    border: 2px solid rgba(255, 255, 255, .7);
    color: var(--white);
    margin-left: .6rem;
}

.btn-outline:hover { background: rgba(255, 255, 255, .12); }

.btn-teal { background: var(--teal); color: var(--white); }

.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-alt { background: var(--bg-soft); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }

.section-head.center { margin-inline: auto; text-align: center; }

.section-kicker {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--teal);
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-top: .4rem;
}

.section-head p { margin-top: .8rem; }

/* Page hero (halaman dalam) */
.page-hero {
    background:
        linear-gradient(120deg, rgba(30, 74, 94, .96), rgba(41, 160, 139, .9)),
        var(--navy);
    color: var(--white);
    padding: 3.6rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -60px;
    width: 300px;
    height: 300px;
    background: rgba(125, 196, 112, .25);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    transform: rotate(15deg);
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.page-hero p { opacity: .9; max-width: 40rem; position: relative; z-index: 1; margin-top: .5rem; }

/* ---------- Cards ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(30, 74, 94, .06);
}

.value-card { border-top: 4px solid var(--teal); }

.value-card:nth-child(2) { border-top-color: var(--green); }

.value-card:nth-child(3) { border-top-color: var(--navy); }

.value-card h3 { font-size: 1.02rem; margin-bottom: .5rem; }

.value-card p { font-size: .93rem; }

.value-num {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--teal);
    font-weight: 700;
}

/* Vision / Mission */
.vm-card { position: relative; padding: 2.2rem; }

.vm-card h3 {
    font-size: 1.3rem;
    margin-bottom: .7rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.vm-card h3::before {
    content: "";
    width: 14px;
    height: 14px;
    background: var(--teal);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.vm-card.mission h3::before { background: var(--green); }

/* ---------- Products ---------- */
.brand-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.brand-strip img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .65;
    transition: filter .2s, opacity .2s;
}

.brand-strip img:hover { filter: none; opacity: 1; }

.product-group { margin-bottom: 3.2rem; }

.product-group:last-child { margin-bottom: 0; }

.product-group-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--mint);
}

.product-group-head img { height: 42px; width: auto; object-fit: contain; }

.product-group-head h3 { font-size: 1.25rem; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border: 1px solid rgba(30, 74, 94, .08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-card .thumb {
    background: var(--bg-soft);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    padding: 1.4rem;
}

.product-card .thumb img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.product-card h4 {
    padding: 1rem 1.2rem;
    font-size: .98rem;
    font-weight: 600;
    text-align: center;
}

/* ---------- Services ---------- */
.service-card { display: flex; flex-direction: column; gap: .6rem; }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--teal), var(--green));
    color: var(--white);
    margin-bottom: .4rem;
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.15rem; }

.service-card .intro { font-weight: 500; color: var(--navy); font-size: .95rem; }

.service-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .93rem;
}

.service-card ul li {
    padding-left: 1.2rem;
    position: relative;
}

.service-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 9px;
    height: 9px;
    background: var(--green);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.service-card .service-text { font-size: .92rem; white-space: pre-line; }

/* ---------- Certificates ---------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.3rem;
}

.cert-card {
    background: var(--white);
    border: 1px solid rgba(30, 74, 94, .08);
    border-radius: var(--radius);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.cert-card .cert-img {
    height: 110px;
    display: grid;
    place-items: center;
}

.cert-card img { max-height: 110px; width: auto; max-width: 100%; object-fit: contain; }

.cert-card p { font-size: .78rem; font-weight: 500; color: var(--navy); line-height: 1.4; }

.cert-card.wide { grid-column: span 2; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.contact-info h3 { margin-bottom: .6rem; }

.contact-info .address { white-space: pre-line; }

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--teal), var(--green));
    color: var(--white);
    padding: 3.2rem 0;
    text-align: center;
}

.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, .85);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 2.5rem;
    padding: 3.2rem 0 2.4rem;
}

.footer-brand img { height: 54px; width: auto; margin-bottom: .8rem; }

.footer-brand .brand-name { color: var(--white); display: block; }

.footer-brand .brand-sub { display: block; margin-bottom: .8rem; }

.footer-brand p { font-size: .88rem; opacity: .8; }

.site-footer h4 {
    color: var(--white);
    font-size: .95rem;
    margin-bottom: .9rem;
    letter-spacing: .04em;
}

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }

.footer-nav a { color: rgba(255, 255, 255, .75); font-size: .9rem; }

.footer-nav a:hover { color: var(--green-light); }

.footer-contact p { font-size: .9rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.1rem 0;
    font-size: .82rem;
    opacity: .7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-inline: auto; }
    .hero-logo { order: -1; width: 160px; padding: 1.4rem; }
    .grid-3, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid rgba(30, 74, 94, .1);
        display: none;
        box-shadow: var(--shadow);
    }

    .site-nav.open { display: block; }

    .site-nav ul { flex-direction: column; padding: .8rem; }

    .grid-3, .grid-2, .product-grid { grid-template-columns: 1fr; }

    .cert-grid { grid-template-columns: repeat(2, 1fr); }

    .cert-card.wide { grid-column: span 2; }

    .footer-grid { grid-template-columns: 1fr; }

    .btn-outline { margin-left: 0; margin-top: .6rem; }
}
