:root {
    --color-primary: #0F172A;
    --color-secondary: #1D4ED8;
    --color-accent: #FBBF24;
    --color-bg: #F9FAFB;
    --color-card-bg: #FFFFFF;
    --color-border: #E5E7EB;
    --color-text-main: #111827;
    --color-text-muted: #6B7280;
    --radius-md: 8px;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --max-width: 1120px;
    --spacing-section: 4rem;
}

/* Reset dasar */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
}

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

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

a:hover {
    text-decoration: underline;
}

/* Layout utilitas */

.container {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 1.5rem;
    margin: 0 auto;
}

.section {
    padding: var(--spacing-section) 0;
}

.section-alt {
    background-color: #EEF2FF;
}

.section-title {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.section-intro {
    max-width: 640px;
    margin-bottom: 2rem;
}

.section-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.section-grid .section-content {
    order: 1;
}

.section-grid .section-media {
    order: 2;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #FFFFFF;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* gambar di dalam logo */
.logo-mark img {
    width: 100%;
    height: 100%;
    display: block;
}


.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Nav */

.site-nav {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
}

/* Nav toggle (mobile) */

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background-color: var(--color-text-main);
    margin: 4px 0;
}

/* Hero */

.hero {
    padding: 4rem 0 3rem;
    background: radial-gradient(circle at top left, #E0F2FE, transparent 55%),
                radial-gradient(circle at bottom right, #E0E7FF, transparent 55%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 2.5rem;
    line-height: 1.15;
    margin: 0.5rem 0;
    color: var(--color-primary);
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0.25rem 0 0.75rem;
}

.hero-text {
    max-width: 540px;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: #FFFFFF;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: #1E40AF;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--color-secondary);
    border-color: #BFDBFE;
}

.btn-secondary:hover {
    background-color: #EFF6FF;
    text-decoration: none;
}

.btn-light {
    background-color: #FFFFFF;
    color: var(--color-secondary);
}

.btn-light:hover {
    background-color: #E5E7EB;
}

/* Media placeholders */

.media-placeholder {
    border-radius: var(--radius-md);
    background: none;                  /* buang pattern garis */
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* kalau ada pseudo-element buat pattern, matikan juga */
.media-placeholder::before {
    content: none !important;
    display: none !important;
}


.media-placeholder.small {
    padding: 2rem 1.25rem;
}

.media-placeholder.tiny {
    padding: 2.5rem 1rem;
}

/* Cards & grids */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Logo grid */

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.logo-placeholder {
    border-radius: var(--radius-md);
    border: 1px dashed #CBD5F5;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background-color: #F9FAFB;
}

/* CTA sections */

.section-cta {
    background: linear-gradient(135deg, #1D4ED8, #6366F1);
    color: #FFFFFF;
}

.section-cta .cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.section-cta .cta-content h2 {
    margin: 0 0 0.5rem;
}

.section-cta .cta-content p {
    margin: 0;
}

.section-cta .btn-light {
    border-color: transparent;
}

/* Page header */

.page-header {
    padding: 3rem 0 2rem;
    background-color: #EEF2FF;
    border-bottom: 1px solid #E5E7EB;
}

.page-header h1 {
    font-family: "Poppins", system-ui, sans-serif;
    margin-bottom: 0.5rem;
}

.page-header p {
    max-width: 640px;
    color: var(--color-text-muted);
}

/* Vision & mission */

.vision-mission {
    display: grid;
    gap: 1.5rem;
}

.quote {
    font-style: italic;
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
}

/* Data perusahaan */

.company-data dl {
    margin: 0;
}

.data-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.data-row:last-child {
    border-bottom: none;
}

.data-row dt {
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Timeline */

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.timeline li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.timeline .step {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background-color: var(--color-secondary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Portfolio */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-chip {
    border-radius: 999px;
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.9rem;
    background-color: #FFFFFF;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-chip.is-active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #FFFFFF;
}

.portfolio-card h3 {
    margin-top: 0.75rem;
    margin-bottom: 0.4rem;
}

/* Klien */

.logo-detail-grid .card h3 {
    margin-top: 0;
}

/* Kontak */

.contact-layout {
    display: grid;
    gap: 2rem;
    align-items: flex-start;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 0.35rem;
}

.office-hours {
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Form */

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.75rem;
    font: inherit;
    color: inherit;
    background-color: #FFFFFF;
    outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.form-field textarea {
    resize: vertical;
}

/* Map */

.section-map .map-placeholder {
    height: 320px;
    border-radius: var(--radius-md);
    border: 1px dashed #CBD5F5;
    background-color: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

/* Footer */

.site-footer {
    background-color: #020617;
    color: #CBD5F5;
    padding: 2.5rem 0 2rem;
    margin-top: 2rem;
}

.footer-inner {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: flex-start;
}

.footer-address {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    color: #94A3B8;
}

.footer-contact h3 {
    margin-top: 0;
    font-size: 1rem;
}

.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.footer-contact li {
    margin-bottom: 0.25rem;
}

.footer-meta {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #64748B;
    border-top: 1px solid #1F2937;
    padding-top: 0.75rem;
}

/* Misc */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.centered {
    text-align: center;
    margin-top: 1.5rem;
}

/* Responsif */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        order: -1;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .site-nav {
        position: absolute;
        inset-inline: 0;
        top: 72px;
        background-color: #FFFFFF;
        border-bottom: 1px solid #E5E7EB;
        display: none;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.5rem 1.25rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .section-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vision-mission {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-cta .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-section: 3rem;
    }

    .header-inner {
        padding-inline: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero {
        padding-top: 3rem;
    }
}
.hero-media img,
.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}
/* Hero Slider */
.hero-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background-color: #F9FAFB;

    /* penting: frame tinggi tetap */
    height: 380px;           /* sesuaikan selera, misal 360–420px */
    max-height: 420px;
}

/* di layar kecil, tinggi dikurangi biar proporsional */
@media (max-width: 768px) {
    .hero-slider {
        height: 260px;
    }
}


.hero-slide {
    display: none;
}

.hero-slide.is-active {
    display: block;
    animation: heroFade 0.9s ease-in-out;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Tombol next / prev */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.35);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.hero-slider-btn--prev {
    left: 12px;
}

.hero-slider-btn--next {
    right: 12px;
}

.hero-slider-btn:hover {
    background: rgba(15, 23, 42, 0.5);
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.hero-slider-btn:focus-visible {
    outline: 2px solid var(--color-primary, #2563EB);
    outline-offset: 2px;
}

/* Titik (dots) indikator */
.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-slider-dot.is-active {
    width: 16px;
    background: var(--color-primary, #2563EB);
}

/* Sedikit kecil di mobile */
@media (max-width: 768px) {
    .hero-slider-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
/* Override placeholder khusus yang pakai foto di Sistem Pelayanan */
.media-placeholder.media-photo {
    background: none !important;      /* buang pola garis diagonal */
    box-shadow: none;                 /* kalau sebelumnya ada shadow */
    padding: 0;                       /* hilangkan padding dalam */
}
.media-placeholder.media-photo img {
    display: block;
    margin: 0 auto;
    width: 100%;          /* lebar ikut frame */
    max-height: 260px;    /* atur tinggi frame (boleh 200–280px, sesuaikan selera) */
    object-fit: cover;    /* atau "contain" kalau tidak mau terpotong */
    border-radius: 16px;  /* sudut ikut frame */
}
/* Layout kartu portfolio dengan foto */
.portfolio-card {
    display: flex;
    flex-direction: column;
}

/* Perbaiki tampilan foto di kartu portfolio */
.portfolio-thumb {
    width: 100%;
    height: 230px;          /* lebih tinggi supaya foto lebih lega */
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 8px;           /* beri sedikit jarak dari tepi */
    background: #F3F4F6;    /* abu-abu muda sebagai background */
    box-sizing: border-box;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;    /* seluruh gambar terlihat, tidak terpotong */
    object-position: center;
    display: block;
    border-radius: 12px;
}

/* container teks di kartu */
.portfolio-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* ===== Slider klien: Brand & Retail ===== */

.client-slider {
    position: relative;
    margin-top: 1.5rem;
}

.client-slider-window {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
}

.client-slider-track {
    display: flex;
    gap: 1.5rem;
}

/* card klien mengikuti style .card, tapi lebar diatur untuk slider */
.client-card {
    flex: 0 0 25%;          /* sekitar 4 card per layar di desktop */
    scroll-snap-align: start;
}

@media (max-width: 960px) {
    .client-card {
        flex: 0 0 50%;      /* 2 card per layar di tablet */
    }
}

@media (max-width: 640px) {
    .client-card {
        flex: 0 0 100%;     /* 1 card per layar di mobile */
    }
}

/* Tombol panah kiri/kanan */
/* ===== Slider Klien: Brand & Retail ===== */

.client-slider {
    position: relative;
    margin-top: 1.5rem;
}

.client-slider-window {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;

    /* sembunyikan scrollbar */
    scrollbar-width: none;         /* Firefox */
}

.client-slider-window::-webkit-scrollbar {
    display: none;                 /* Chrome, Edge, Safari */
}


/* ini yang bikin kartunya berjejer ke samping */
.client-slider-track {
    display: flex;
    gap: 1.5rem;
}

.client-card {
    flex: 0 0 25%;           /* ~4 kartu per layar desktop */
    scroll-snap-align: start;
}

@media (max-width: 960px) {
    .client-card {
        flex: 0 0 50%;       /* 2 kartu per layar di tablet */
    }
}

@media (max-width: 640px) {
    .client-card {
        flex: 0 0 100%;      /* 1 kartu per layar di mobile */
    }
}

/* Tombol panah kiri/kanan */
.client-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    z-index: 2;
}

.client-nav--prev {
    left: -18px;
}

.client-nav--next {
    right: -18px;
}

.client-nav:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.client-nav:active {
    transform: translateY(-50%) scale(0.96);
}

/* Di mobile, panah disembunyikan, user tinggal swipe/scroll */
@media (max-width: 640px) {
    .client-nav {
        display: none;
    }
}
/* Warna logo & teks di footer */
.site-footer .logo-mark,
.site-footer .logo-title,
.site-footer .logo-tagline {
    color: #F9FAFB;          /* putih */
}

/* Kalau ada link di footer ikut jadi terang */
.site-footer,
.site-footer a {
    color: #E5E7EB;
}
/* Logo klien di beranda (Dipercaya oleh Berbagai Brand & Institusi) */
.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.trusted-logo {
    flex: 0 1 150px;              /* lebar tiap kotak */
    padding: 12px 20px;
    border-radius: 12px;
    background-color: #FFFFFF;
    border: 1px dashed #E5E7EB;   /* mirip desain sebelumnya */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.trusted-logo-img {
    max-width: 100%;
    max-height: 50px;             /* tinggi logo diseragamkan */
    object-fit: contain;
    display: block;
}
/* Foto kantor / fasilitas produksi di Sekilas Tentang Kami */
.media-placeholder.tiny.about-photo {
    background: none;          /* hilangkan pola placeholder */
    padding: 0;
    max-width: 520px;          /* batasi lebar foto */
    margin-top: 1rem;
    margin-left: 0;            /* atau auto kalau mau di tengah */
    border-radius: 16px;
    overflow: hidden;
}

.media-placeholder.tiny.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;         /* isi frame rapi */
    object-position: center;
}
