/* ==========================================================================
   Koperasi Sola Gratia — stylesheet tunggal untuk halaman publik
   Tidak memerlukan Bootstrap, jQuery, atau plugin tema lama.
   ========================================================================== */

:root {
    --ink: #13231d;
    --ink-soft: #5a6a64;
    --line: #e2e0da;
    --paper: #ffffff;
    --paper-alt: #f6f5f2;
    --green: #1c5a46;
    --green-dark: #164839;
    --gold: #a97f2b;

    --wrap: 1120px;
    --radius: 4px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--green-dark);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.18;
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.prose {
    max-width: 68ch;
}

.muted {
    color: var(--ink-soft);
}

/* ------------------------------ Tombol ---------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .78rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn--solid {
    background: var(--green);
    color: #fff;
}

.btn--solid:hover {
    background: var(--green-dark);
    color: #fff;
}

.btn--ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.btn--small {
    padding: .55rem 1rem;
    font-size: .85rem;
}

/* ------------------------------ Header ---------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand span {
    line-height: 1.15;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: var(--ink);
    font-size: .95rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
    border-bottom-color: var(--green);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 0 auto;
    background: var(--ink);
    content: "";
    transition: transform .2s var(--ease);
}

.nav-toggle span::before {
    transform: translateY(-6px);
}

.nav-toggle span::after {
    transform: translateY(4.5px);
}

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

    .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 20px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        display: none;
    }

    .nav[data-open="true"] {
        display: flex;
    }

    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .header-actions .btn {
        display: none;
    }
}

/* ------------------------------- Hero ----------------------------------- */
.hero {
    padding: 96px 0 72px;
    border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 2px solid var(--gold);
    color: var(--ink-soft);
    font-size: .9rem;
}

.hero h1 {
    max-width: 16ch;
    font-size: clamp(2.3rem, 6vw, 4rem);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.hero p {
    max-width: 52ch;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 64px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.facts div {
    padding: 22px 24px;
    background: var(--paper);
}

.facts dt {
    color: var(--ink-soft);
    font-size: .85rem;
}

.facts dd {
    margin: 4px 0 0;
    font-weight: 600;
    font-size: 1.05rem;
}

@media (max-width: 700px) {
    .hero {
        padding: 64px 0 48px;
    }

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

/* ----------------------------- Section ---------------------------------- */
.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section__head {
    max-width: 58ch;
    margin-bottom: 48px;
}

.section__head h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.section__head p {
    margin: 0;
    color: var(--ink-soft);
}

/* Dua kolom: penjelasan + daftar keunggulan */
.split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: start;
}

.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.checklist li {
    padding: 16px 0 16px 28px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 26px;
    width: 8px;
    height: 8px;
    border-left: 1.5px solid var(--green);
    border-bottom: 1.5px solid var(--green);
    transform: rotate(-45deg);
}

/* Tahapan — memang berurutan, jadi penomoran dipakai */
.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.steps li {
    counter-increment: step;
    list-style: none;
    padding-top: 20px;
    border-top: 2px solid var(--ink);
}

.steps li:nth-child(n+2) {
    border-top-color: var(--line);
}

.steps li::before {
    content: counter(step);
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-weight: 700;
    font-size: .95rem;
}

.steps h3 {
    font-size: 1.1rem;
}

.steps p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .95rem;
}

.steps ol {
    margin: 0;
    padding: 0;
}

@media (max-width: 820px) {
    .split,
    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section {
        padding: 56px 0;
    }
}

/* Ajakan akhir halaman */
.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 48px;
    background: var(--green);
    border-radius: var(--radius);
    color: #fff;
}

.cta h2 {
    margin: 0;
    max-width: 22ch;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #fff;
}

.cta .btn {
    background: #fff;
    color: var(--green);
}

.cta .btn:hover {
    background: #eae7df;
    color: var(--green-dark);
}

@media (max-width: 700px) {
    .cta {
        padding: 32px 24px;
    }
}

/* --------------------------- Judul halaman ------------------------------ */
.page-head {
    padding: 72px 0 40px;
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    font-size: clamp(2rem, 4.6vw, 3rem);
    margin-bottom: .3em;
}

.page-head p {
    margin: 0;
    max-width: 60ch;
    color: var(--ink-soft);
}

.breadcrumb {
    margin-bottom: 18px;
    font-size: .9rem;
    color: var(--ink-soft);
}

.breadcrumb a {
    color: var(--ink-soft);
}

.breadcrumb a:hover {
    color: var(--green);
}

/* ------------------------- Daftar pengumuman ---------------------------- */
.notices {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notice {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.notice:first-child {
    padding-top: 8px;
}

.notice__thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-alt);
    border-radius: var(--radius);
}

.notice__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice__date {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: .88rem;
}

.notice h2 {
    margin-bottom: .35em;
    font-size: 1.3rem;
}

.notice h2 a {
    color: var(--ink);
}

.notice h2 a:hover {
    color: var(--green);
}

.notice p {
    margin: 0 0 14px;
    max-width: 70ch;
    color: var(--ink-soft);
}

.notice__link {
    font-size: .92rem;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

@media (max-width: 640px) {
    .notice {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .notice__thumb {
        aspect-ratio: 16 / 9;
    }
}

.empty {
    padding: 64px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

/* --------------------------- Detail artikel ----------------------------- */
.article {
    padding: 56px 0 88px;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .92rem;
}

.article__figure {
    margin: 0 0 36px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article__body {
    max-width: 70ch;
    white-space: pre-line;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article__foot {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* ------------------------------ Footer ---------------------------------- */
.site-footer {
    padding: 64px 0 32px;
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
}

.footer-grid h3 {
    margin-bottom: .8em;
    font-size: .95rem;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li {
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: .95rem;
}

.footer-grid a {
    color: var(--ink-soft);
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .88rem;
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
