/* ========== PDAM Template — base styles ========== */
:root {
    --primary: #0284c7;
    --primary-dark: #0c4a6e;
    --primary-light: #e0f2fe;
    --accent: #fbbf24;
    --text: #1f2937;
    --text-soft: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --max-w: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

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

/* ========== Header ========== */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 700; }
.brand-logo {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.brand-logo svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .02em; }
.brand-text small { font-size: .72rem; opacity: .8; font-weight: 500; }

nav.main-nav ul { display: flex; gap: .25rem; list-style: none; align-items: center; }
nav.main-nav a {
    color: #fff; padding: .55rem 1rem; border-radius: 6px;
    font-weight: 500; font-size: .92rem;
    transition: background .15s;
}
nav.main-nav a:hover, nav.main-nav a.active { background: rgba(255,255,255,.18); color: #fff; }

.mobile-toggle { display: none; background: none; border: none; color: #fff; padding: .5rem; cursor: pointer; }
.mobile-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
    nav.main-nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: .5rem; gap: 0; }
    nav.main-nav.open ul { display: flex; }
    nav.main-nav a { display: block; border-radius: 0; padding: .85rem 1rem; }
    .mobile-toggle { display: block; }
}

/* ========== Hero / page-head ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0369a1 50%, var(--primary-dark) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cpath d='M0 350 Q300 250 600 350 T1200 350 V600 H0 Z' fill='rgba(255,255,255,0.06)'/%3E%3Cpath d='M0 420 Q300 320 600 420 T1200 420 V600 H0 Z' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
    background-size: cover; background-position: bottom;
}

/* Hero with bg image variant — pakai inline style background-image kalau perlu image */
.hero-with-image {
    padding: 7rem 0 6rem;
    background-color: var(--primary-dark);
    background-size: cover; background-position: center;
    background-blend-mode: multiply;
}
.hero-with-image::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(2,132,199,.85) 0%, rgba(12,74,110,.92) 100%);
}

.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; opacity: .92; max-width: 720px; }
.hero .breadcrumb { font-size: .85rem; opacity: .85; margin-bottom: 1rem; }
.hero .breadcrumb a { color: #fff; }

@media (max-width: 640px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 1.75rem; }
}

/* ========== Sections ========== */
section { padding: 4rem 0; }
section.alt { background: var(--bg-soft); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .5rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--primary-dark); margin-bottom: .75rem; }
.section-header p { color: var(--text-soft); max-width: 720px; margin: 0 auto; }

@media (max-width: 640px) {
    section { padding: 2.5rem 0; }
    .section-header h2 { font-size: 1.5rem; }
}

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

@media (max-width: 880px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 1.75rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(2,132,199,.08); border-color: rgba(2,132,199,.2); }
.card .icon-circle {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.15rem;
}
.card .icon-circle svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .95rem; }

/* ========== Buttons ========== */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.75rem; border-radius: 8px;
    font-weight: 600; font-size: .95rem;
    transition: transform .15s, box-shadow .15s;
    border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); box-shadow: 0 4px 14px rgba(251,191,36,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251,191,36,.5); color: var(--primary-dark); }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--primary-dark); }

.btn-group { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ========== Service / feature grid ========== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 880px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .service-grid { grid-template-columns: 1fr; } }

/* ========== CTA banner ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff; border-radius: 20px; padding: 3rem 2.5rem;
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    flex-wrap: wrap;
}
.cta-banner h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.cta-banner p { opacity: .9; max-width: 540px; }

/* ========== List/text content ========== */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; font-weight: 700; color: var(--primary-dark); margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); margin: 1.5rem 0 .75rem; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--primary-dark); }

.info-box {
    background: var(--primary-light); border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem; border-radius: 8px; margin: 1.5rem 0;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--primary-dark); color: #cbd5e1;
    padding: 3rem 0 1.5rem; margin-top: 0;
}
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-weight: 700; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #cbd5e1; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand { font-size: 1.1rem; color: #fff; font-weight: 700; margin-bottom: .75rem; }
.site-footer .footer-desc { font-size: .9rem; line-height: 1.65; }
.site-footer .footer-contact li { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; }
.site-footer .footer-contact svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: .2rem; opacity: .7; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; text-align: center; font-size: .85rem; opacity: .75; }

@media (max-width: 880px) {
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 580px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ========== Forms ========== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; }
.form-control {
    width: 100%; padding: .75rem 1rem; border: 1px solid var(--border);
    border-radius: 8px; font-size: .95rem; font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2,132,199,.12); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ========== Stats ========== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { background: #fff; border: 1px solid var(--border); padding: 1.5rem; border-radius: 12px; text-align: center; }
.stat .num { font-size: 2.25rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: .25rem; }
.stat .label { color: var(--text-soft); font-size: .85rem; font-weight: 500; }

@media (max-width: 880px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ========== Org chart / team ========== */
.team-card { text-align: center; }
.team-card .avatar {
    width: 110px; height: 110px; margin: 0 auto 1rem;
    border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.25rem; font-weight: 700;
}
.team-card .role { color: var(--primary); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.team-card h4 { color: var(--primary-dark); margin: .25rem 0 .35rem; font-size: 1.1rem; }
.team-card p { color: var(--text-soft); font-size: .9rem; }

/* ========== News list ========== */
.news-card { display: flex; flex-direction: column; overflow: hidden; }
.news-card .thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) center/cover;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 3rem;
    margin-bottom: 1rem;
    overflow: hidden; position: relative;
}
.news-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s;
}
.news-card:hover .thumb img { transform: scale(1.05); }

/* ========== Image-text split section ========== */
.image-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.image-split .image-col img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(2,132,199,.15); }
.image-split h2 { font-size: 1.85rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 1rem; }
.image-split p { color: var(--text); margin-bottom: 1rem; }
.image-split .btn-group { margin-top: 1.5rem; }
@media (max-width: 880px) { .image-split { grid-template-columns: 1fr; gap: 2rem; } }

/* ========== Image gallery / showcase ========== */
.image-showcase {
    border-radius: 18px; overflow: hidden;
    aspect-ratio: 16/7;
    background: var(--primary-dark) center/cover;
    position: relative; margin-bottom: 2rem;
}
.image-showcase::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(12,74,110,.65));
}
.image-showcase .caption {
    position: absolute; bottom: 1.5rem; left: 1.5rem; color: #fff; z-index: 1;
}
.image-showcase .caption h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .25rem; }
.image-showcase .caption p { opacity: .85; font-size: .9rem; }
.news-card .meta { font-size: .8rem; color: var(--text-soft); margin-bottom: .5rem; }
.news-card h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: .5rem; }
.news-card .excerpt { color: var(--text-soft); font-size: .92rem; }
.news-card .read-more { margin-top: .75rem; display: inline-block; font-weight: 600; font-size: .9rem; }
