/* ========== KUA Template — calming Islamic-friendly style ==========
   Distinct dari DUKCAPIL/BPN:
   - Non-sticky regular header dengan centered nav option
   - Hero CONTAINED (bukan full-bleed) dengan decorative geometric pattern
   - Rounded soft shapes (arc-inspired) + ample whitespace
   - Wisdom-quote section dengan ornament style
   - Card grid dengan large rounded icons (Islamic geometric circle)
   - Section dividers dengan dotted ornament
====================================================== */

:root {
    --primary: #0f766e;        /* teal-700 — calming Islamic */
    --primary-dark: #134e4a;   /* teal-900 — deep night */
    --primary-light: #ccfbf1;  /* teal-100 — soft mint */
    --primary-glow: #5eead4;   /* teal-300 */
    --accent: #d97706;         /* amber-600 — warm complement */
    --accent-light: #fef3c7;   /* amber-100 */
    --accent-dark: #92400e;    /* amber-800 */
    --text: #134e4a;           /* teal-900 for readability */
    --text-body: #1f2937;      /* slate-900 */
    --text-soft: #475569;      /* slate-600 */
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-section: #f0fdfa;     /* teal-50 calming */
    --bg-warm: #fffbeb;        /* amber-50 */
    --success: #16a34a;
    --max-w: 1180px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 3px rgba(15, 78, 74, .06);
    --shadow-md: 0 8px 24px rgba(15, 78, 74, .08);
    --shadow-lg: 0 20px 48px rgba(15, 78, 74, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

/* ============= Top utility (slim) ============= */
.top-info {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .9);
    padding: .55rem 0;
    font-size: .82rem;
}
.top-info .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.top-info a { color: inherit; text-decoration: none; }
.top-info-left { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.top-info-left span { display: inline-flex; align-items: center; gap: .4rem; }
.top-info-left svg { width: 14px; height: 14px; opacity: .8; }
.top-info-right { display: flex; gap: .8rem; }
.top-info-right a { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; opacity: .75; transition: opacity .2s; }
.top-info-right a:hover { opacity: 1; color: var(--primary-glow); }
.top-info-right svg { width: 14px; height: 14px; fill: currentColor; }

/* ============= Site header (centered, non-sticky) ============= */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.site-header .container { padding-top: 1.25rem; padding-bottom: 1rem; text-align: center; }

.brand-block { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 1rem; text-decoration: none; color: var(--text); }
.brand-mark {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(15, 118, 110, .3);
    position: relative;
}
.brand-mark::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1.5px solid var(--primary-glow);
    border-radius: 50%;
    opacity: .5;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-info { text-align: left; }
.brand-info strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--primary-dark); line-height: 1.15; letter-spacing: -.01em; }
.brand-info small { display: block; font-size: .78rem; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; font-weight: 600; }

.main-nav ul { list-style: none; display: inline-flex; gap: .2rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.main-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    padding: .55rem 1.1rem;
    border-radius: 99px;
    transition: all .2s;
}
.main-nav a:hover { color: var(--primary-dark); background: var(--primary-light); }
.main-nav a.active { color: #fff; background: var(--primary); }

.mobile-toggle { display: none; background: none; border: 0; color: var(--text); padding: .5rem; cursor: pointer; position: absolute; top: 1rem; right: 1rem; }
.mobile-toggle svg { width: 24px; height: 24px; }

/* ============= Hero (contained, decorative) ============= */
.hero {
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 65%);
    opacity: .6;
    pointer-events: none;
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text .eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1rem;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.25rem;
}
.hero-text .eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
.hero-text h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.15;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}
.hero-text h1 .accent { color: var(--accent-dark); position: relative; }
.hero-text p.lead { font-size: 1.08rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 1.75rem; max-width: 540px; }
.hero-text .btn-row { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-left: auto; }
.hero-visual .visual-frame {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--bg);
    box-shadow: 0 25px 60px rgba(15, 78, 74, .2);
    background-size: cover; background-position: center;
}
.hero-visual::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border: 2px dashed var(--primary-glow);
    border-radius: 50%;
    opacity: .5;
    z-index: -1;
}
.hero-visual::after {
    content: '';
    position: absolute;
    top: 15%; right: -10%;
    width: 110px; height: 110px;
    background: var(--accent-light);
    border-radius: 50%;
    border: 6px solid var(--bg);
    box-shadow: var(--shadow-md);
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d97706'%3E%3Cpath d='M12 2L4.5 9.5h2v6h11v-6h2L12 2zm-1 12h2v-3h3l-4-4-4 4h3v3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
}

/* ============= Button ============= */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 99px; font-weight: 700; font-size: .94rem; text-decoration: none; transition: all .25s; cursor: pointer; border: 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(15, 118, 110, .3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 78, 74, .35); }
.btn-outline { background: var(--bg); color: var(--primary-dark); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(217, 119, 6, .3); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--primary); }

/* ============= Sections ============= */
section { padding: 5rem 0; position: relative; }
section.alt { background: var(--bg-section); }
section.warm { background: var(--bg-warm); }

.section-head { text-align: center; margin-bottom: 3rem; position: relative; }
.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .35rem .85rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 99px;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}
.section-head .eyebrow::before, .section-head .eyebrow::after {
    content: ''; display: block; width: 12px; height: 1.5px; background: var(--primary);
}
.section-head h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -.02em;
    margin-bottom: .85rem;
    line-height: 1.2;
}
.section-head p { font-size: 1rem; color: var(--text-soft); max-width: 660px; margin: 0 auto; }

/* Ornament divider */
.ornament {
    text-align: center; padding: 1.5rem 0;
    color: var(--primary);
    font-size: 1.4rem;
    letter-spacing: 1rem;
    opacity: .35;
}

/* ============= Card grid (services) ============= */
.layanan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.layanan-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.layanan-card:hover { transform: translateY(-6px); border-color: var(--primary-light); box-shadow: var(--shadow-lg); }
.layanan-card::before {
    content: '';
    position: absolute;
    top: -50px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 100px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: .35;
    transition: all .4s;
}
.layanan-card:hover::before { width: 140px; height: 140px; opacity: .5; }
.layanan-icon-circle {
    width: 84px; height: 84px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 118, 110, .28);
    position: relative;
    z-index: 1;
}
.layanan-icon-circle svg { width: 38px; height: 38px; }
.layanan-card h3 { font-size: 1.18rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .6rem; line-height: 1.3; position: relative; z-index: 1; }
.layanan-card p { font-size: .92rem; color: var(--text-soft); line-height: 1.65; position: relative; z-index: 1; }

/* ============= Wisdom quote block ============= */
.wisdom-block {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-md);
}
.wisdom-block::before, .wisdom-block::after {
    content: '"';
    position: absolute;
    color: var(--primary-light);
    font-size: 7rem;
    line-height: 1;
    font-family: Georgia, serif;
}
.wisdom-block::before { top: 1rem; left: 1.5rem; }
.wisdom-block::after { bottom: -3rem; right: 1.5rem; }
.wisdom-block .quote-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.wisdom-block .quote-source {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ============= Stats block ============= */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all .2s;
}
.stat-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.stat-item .num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.025em;
    line-height: 1;
    margin-bottom: .25rem;
}
.stat-item .label { font-size: .85rem; color: var(--text-soft); font-weight: 600; }

/* ============= Process steps (alternative timeline) ============= */
.steps-list { max-width: 760px; margin: 0 auto; }
.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px dashed var(--border);
}
.step:last-child { border-bottom: 0; }
.step-num {
    width: 56px; height: 56px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}
.step-body h4 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .4rem; }
.step-body p { color: var(--text-soft); line-height: 1.65; font-size: .95rem; }

/* ============= CTA banner ============= */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::after {
    content: '';
    position: absolute;
    right: -50px; top: -50px;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(217, 119, 6, .25) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner h3 { font-size: 1.7rem; color: #fff; margin-bottom: .75rem; line-height: 1.2; }
.cta-banner p { color: rgba(255, 255, 255, .9); font-size: 1rem; }
.cta-banner .cta-action { text-align: right; }

/* ============= Prose ============= */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; font-weight: 800; color: var(--primary-dark); margin: 2rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 .75rem; }
.prose p { font-size: 1rem; color: var(--text-body); margin-bottom: 1rem; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; padding: 0; }
.prose li { margin-bottom: .55rem; line-height: 1.7; }
.prose ul li::marker { color: var(--primary); }
.prose ol li::marker { color: var(--accent); font-weight: 700; }
.prose strong { color: var(--primary-dark); font-weight: 700; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--accent-light); }

.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--primary-dark);
}
.info-box.warm {
    background: var(--accent-light);
    border-left-color: var(--accent);
    color: var(--accent-dark);
}
.info-box strong { color: inherit; }

/* ============= News cards ============= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s;
    display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.news-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-cat { display: inline-block; padding: .2rem .65rem; background: var(--primary-light); color: var(--primary-dark); font-size: .7rem; font-weight: 700; border-radius: 99px; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; align-self: flex-start; }
.news-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.4; color: var(--primary-dark); margin-bottom: .55rem; }
.news-excerpt { font-size: .9rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.news-meta { font-size: .78rem; color: var(--text-soft); margin-top: auto; display: flex; align-items: center; gap: .35rem; }
.news-meta svg { width: 14px; height: 14px; }

/* ============= Form ============= */
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-size: .85rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .4rem; }
.contact-form .form-control {
    width: 100%; padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: .95rem;
    background: var(--bg);
    font-family: inherit;
    transition: all .2s;
}
.contact-form .form-control:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.contact-form textarea.form-control { min-height: 130px; resize: vertical; }

/* ============= Footer ============= */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .82);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}
.footer-brand-wrap { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.footer-mark { width: 44px; height: 44px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.footer-mark svg { width: 24px; height: 24px; color: #fff; }
.footer-brand-text strong { display: block; color: #fff; font-size: 1.05rem; line-height: 1.2; }
.footer-brand-text small { font-size: .72rem; color: var(--primary-glow); text-transform: uppercase; letter-spacing: .08em; }
.footer-desc { font-size: .9rem; line-height: 1.75; margin-bottom: 1.25rem; }

.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); border-radius: 50%; color: rgba(255, 255, 255, .7); transition: all .2s; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.site-footer h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .9rem; transition: color .2s; }
.site-footer a:hover { color: var(--primary-glow); }

.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--accent); }

.copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
}

/* ============= Lokasi/Maps placeholder ============= */
.lokasi-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.lokasi-icon-wrap {
    width: 80px; height: 80px;
    margin: 0 auto 1.25rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.lokasi-icon-wrap svg { width: 40px; height: 40px; }
.lokasi-card h3 { color: var(--primary-dark); font-size: 1.3rem; margin-bottom: .35rem; }
.lokasi-card p { color: var(--text-soft); font-size: .95rem; margin-bottom: 1.5rem; }

/* ============= Responsive ============= */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { margin: 0 auto; max-width: 360px; }
    .stat-grid, .layanan-grid, .news-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-banner { grid-template-columns: 1fr; text-align: center; }
    .cta-banner .cta-action { text-align: center; }
}

@media (max-width: 640px) {
    .stat-grid, .layanan-grid, .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .main-nav ul { display: none; flex-direction: column; gap: .25rem; background: var(--bg); padding: 1rem 0; }
    .main-nav.open ul { display: flex; }
    .mobile-toggle { display: inline-flex; }
    .site-header .container { text-align: center; padding-bottom: .5rem; position: relative; }
    .brand-block { margin-bottom: .5rem; }
    .wisdom-block { padding: 2.5rem 1.5rem; }
    .wisdom-block::before { font-size: 4rem; }
    .wisdom-block .quote-text { font-size: 1.05rem; }
}
