/* ============================================================
   Kelolain Yuk — stylesheet utama
   Warna diambil dari logo: biru navy & tosca
   ============================================================ */

:root {
    --navy: #0a3d86;
    --navy-700: #0b4aa3;
    --navy-900: #061f47;
    --cyan: #18c1cb;
    --cyan-600: #0ea5ae;
    --ink: #0f1b2d;
    --muted: #5a6a80;
    --line: #e2e9f3;
    --soft: #f3f7fc;
    --white: #ffffff;
    --success: #0f7b4a;
    --danger: #c0262d;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(10, 61, 134, .08);
    --shadow-lg: 0 20px 50px rgba(10, 61, 134, .14);
    --container: 1160px;
    --header-h: 76px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan-600); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { color: var(--muted); }

.eyebrow {
    display: inline-block;
    margin-bottom: .75em;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cyan-600);
}

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.5em;
    font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2;
    border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-primary { background: var(--cyan); color: var(--navy-900); box-shadow: 0 8px 20px rgba(24, 193, 203, .35); }
.btn-primary:hover { background: var(--cyan-600); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--soft); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(10,61,134,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; }
.brand-text small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.65); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.main-nav a:not(.btn):hover { color: var(--navy-700); background: var(--soft); }
.main-nav a[aria-current="page"] { color: var(--navy-700); background: var(--soft); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; color: var(--navy);
    align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline-flex; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px 20px 24px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
}

/* ---------- Hero (beranda) ---------- */
.hero { position: relative; min-height: min(86vh, 720px); background: var(--navy-900); overflow: hidden; color: #fff; }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    background-size: cover; background-position: center;
    opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
}
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(6,31,71,.92) 0%, rgba(10,61,134,.78) 45%, rgba(10,61,134,.35) 100%);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-content { position: relative; padding-block: 90px 110px; max-width: var(--container); }
.hero-content > * { max-width: 680px; }
.hero .eyebrow { color: var(--cyan); }
.hero h1, .hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.12; margin: 0 0 .45em; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.85); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-dots button {
    width: 12px; height: 12px; padding: 0; border-radius: 999px; cursor: pointer;
    border: 2px solid #fff; background: transparent; transition: width .25s, background-color .25s;
}
.hero-dots button[aria-selected="true"] { width: 32px; background: #fff; }

/* ---------- Statistik ---------- */
.stats-bar { position: relative; z-index: 3; margin-top: -48px; }
.stats-bar-flat { margin-top: 0; padding-top: 56px; }
.stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
.stats-stack { grid-template-columns: 1fr; }
.stats-stack .stat { border-right: 0; border-bottom: 1px solid var(--line); }
.stats-stack .stat:last-child { border-bottom: 0; }

/* ---------- Split (gambar + teks) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media img {
    width: 100%; max-width: 480px; margin-inline: auto;
    border-radius: 50% 50% var(--radius) var(--radius);
    background: linear-gradient(160deg, var(--cyan) 0%, var(--navy) 100%);
}
.split-text p { color: var(--muted); }
.split-text h2 { margin-bottom: .5em; }

/* ---------- Layanan ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.service-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.service-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--muted); font-size: .95rem; }
.services-grid.is-detailed { grid-template-columns: repeat(2, 1fr); }
.is-detailed .service-card { flex-direction: row; }
.is-detailed .service-card img { width: 38%; aspect-ratio: auto; }
.is-detailed .service-body { padding: 28px; }
.is-detailed .btn { align-self: flex-start; margin-top: auto; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--cyan-600); margin-top: .2em; }

/* ---------- Alasan / nilai ---------- */
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 40px; }
.reason { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section-soft .reason { border-color: transparent; box-shadow: var(--shadow); }
.reason-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--navy-700) 100%); color: #fff;
}
.reason-icon .icon { width: 26px; height: 26px; }
.reason p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Langkah kerja ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 999px; margin-bottom: 14px;
    background: var(--navy); color: #fff; font-weight: 800;
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Visi misi ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.vm-card p:last-child { color: var(--muted); margin: 0; }
.vm-card-dark { background: linear-gradient(140deg, var(--navy-900), var(--navy-700)); color: #fff; }
.vm-card-dark .eyebrow { color: var(--cyan); }
.vm-card-dark p:last-child { color: rgba(255,255,255,.8); }

/* ---------- Page hero (halaman dalam) ---------- */
.page-hero {
    padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(24,193,203,.35), transparent 40%),
        linear-gradient(120deg, var(--navy-900), var(--navy-700));
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 640px; font-size: 1.15rem; color: rgba(255,255,255,.85); margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 14px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: #fff; }

/* ---------- Klien ---------- */
.logo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.logo-grid li { display: flex; align-items: center; justify-content: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); aspect-ratio: 3 / 2; }
.logo-grid img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-grid li:hover img { filter: none; opacity: 1; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial { margin: 0; padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.02rem; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial figcaption span { color: var(--muted); font-size: .9rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips li { padding: 10px 20px; border-radius: 999px; background: var(--soft); color: var(--navy); font-weight: 600; }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info { padding: 32px; border-radius: var(--radius); background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: #fff; }
.contact-info h2 { font-size: 1.5rem; }
.contact-info .muted { color: rgba(255,255,255,.7); margin: 24px 0 10px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-size: .85rem; color: rgba(255,255,255,.7); font-weight: 600; }
.contact-list a, .contact-list span { color: #fff; word-break: break-word; }
.ci-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); flex: none; }
.ci-icon .icon { color: var(--cyan); }

.contact-form-wrap { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea {
    font: inherit; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-600); box-shadow: 0 0 0 4px rgba(24,193,203,.18); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field .error { color: var(--danger); margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 4px; }
.contact-form .small { margin: 14px 0 0; }

.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; }
.alert-success { background: #e7f7ef; color: var(--success); border: 1px solid #b8e6cf; }
.alert-error { background: #fdecec; color: var(--danger); border: 1px solid #f5c2c4; }

.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- CTA ---------- */
.cta-band {
    padding: clamp(48px, 7vw, 80px) 0; color: #fff;
    background:
        radial-gradient(circle at 10% 90%, rgba(24,193,203,.4), transparent 45%),
        linear-gradient(120deg, var(--navy-700), var(--navy-900));
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 680px; }
.cta-inner p { color: rgba(255,255,255,.8); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand p { margin: 18px 0; max-width: 320px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--cyan); margin-top: .25em; }
.footer-contact a { word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: .88rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.to-top { color: rgba(255,255,255,.75); text-decoration: none; }

.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 999px;
    background: rgba(255,255,255,.1); color: #fff; transition: background-color .15s, color .15s;
}
.social a:hover { background: var(--cyan); color: var(--navy-900); }

.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 999px;
    background: #25d366; color: #fff; box-shadow: 0 10px 25px rgba(37,211,102,.45);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }

.notfound { min-height: 50vh; display: flex; align-items: center; }

/* ---------- Animasi muncul ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .split, .vm-grid, .contact-grid { grid-template-columns: 1fr; }
    .split-media { order: -1; }
    .services-grid.is-detailed { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    :root { --header-h: 66px; }
    .container { padding-inline: 16px; }
    .services-grid, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .is-detailed .service-card { flex-direction: column; }
    .is-detailed .service-card img { width: 100%; aspect-ratio: 16 / 9; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
    .stat:last-child { border-bottom: 0; }
    .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
    .brand-text small { display: none; }
    .map iframe { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
