/* ──────────────────────────────────────────────────────────────────────────
   Sekolah Al Hijrah — public site
   Editorial, typography-first system: white ground, hairline rules, a single
   deep-green accent. Components are shared across all public pages.
   ────────────────────────────────────────────────────────────────────────── */

:root {
    --bg: #ffffff;
    --paper: #f6f7f5;
    --ink: #1b211d;
    --body-c: #414b45;
    --muted: #707a73;
    --line: #e5e8e4;
    --green: #176437;
    --green-dark: #0f4c28;
    --green-deep: #12341f;
    --soft: #eef4ef;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1120px;
    --pad: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--body-c);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 650; letter-spacing: -0.015em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 3px; }

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

/* ───────────── Typography helpers ───────────── */

.kicker {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}

.lead { font-size: 17.5px; color: var(--muted); max-width: 620px; }

.section { padding: 88px 0; }
.section--line { border-top: 1px solid var(--line); }
.section--tinted { background: var(--paper); }

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; }
.section-head .lead { margin-top: 12px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.section-foot { margin-top: 44px; }
.section-foot.center { text-align: center; }

/* Arrow text link */
.tlink { font-weight: 600; color: var(--green); font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.tlink i { transition: transform 0.18s ease; font-size: 14px; }
.tlink:hover i { transform: translateX(3px); }

/* ───────────── Buttons ───────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: #cfd4cf; }
.btn-outline:hover { border-color: var(--ink); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-dark); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: #e9efe9; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-block { width: 100%; }

/* ───────────── Header ───────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text .bt { font-weight: 700; font-size: 16.5px; color: var(--ink); letter-spacing: -0.01em; }
.brand-text .bs { font-size: 12px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--body-c); padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--green); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }

.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 42px;
    height: 42px;
    font-size: 20px;
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ───────────── Fullscreen mobile menu ───────────── */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.24s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { opacity: 1; }
.mm-head { border-bottom: 1px solid var(--line); }
.mm-head .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mm-close {
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 42px;
    height: 42px;
    font-size: 17px;
    cursor: pointer;
    color: var(--ink);
}
.mm-links { display: flex; flex-direction: column; padding-top: 20px; padding-bottom: 20px; }
.mm-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.mm-links a i { color: var(--muted); font-size: 15px; }
.mm-links a.active { color: var(--green); }
.mm-foot { margin-top: auto; padding-top: 20px; padding-bottom: 34px; }
.mm-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14.5px; }
.mm-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--body-c); }
.mm-contact i { color: var(--green); }

/* ───────────── Photo slots & placeholders ───────────── */

.site-photo { width: 100%; object-fit: cover; border-radius: var(--radius); }
.site-photo.is-flat { border-radius: 0; }

.site-photo--ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        linear-gradient(135deg, rgba(23, 100, 55, 0.05), rgba(23, 100, 55, 0) 55%),
        var(--paper);
    border: 1px solid var(--line);
    color: #99a39b;
}
.site-photo--ph i { font-size: 26px; }
.site-photo--ph span { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }

/* ───────────── Hero (Beranda) ───────────── */

.hero { padding: 84px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.9fr; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.028em; font-weight: 700; margin-bottom: 22px; }
.hero .intro { font-size: 17.5px; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-media { min-width: 0; }

.hero-meta {
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 20px 48px;
}
.hero-meta b { display: block; color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.hero-meta span { font-size: 13.5px; color: var(--muted); }

/* ───────────── Inner page hero ───────────── */

.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.page-hero .crumbs a { color: var(--green); font-weight: 500; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; font-weight: 700; }
.page-hero p { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 600px; }
.page-hero .article-meta { font-size: 14.5px; }

/* ───────────── Split rows (media + prose) ───────────── */

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-row.reverse .feature-media { order: 2; }

.prose p { margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin-bottom: 18px; }

/* Simple dash list */
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 12px;
    height: 2px;
    background: var(--green);
}

/* ───────────── Numbered editorial list (values, reasons) ───────────── */

.num-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.num-item { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.num-item .n { font-size: 14px; font-weight: 600; color: var(--green); padding-top: 3px; letter-spacing: 0.04em; }
.num-item h3 { font-size: 17px; margin-bottom: 6px; }
.num-item p { font-size: 15px; color: var(--muted); }

/* ───────────── Plain definition rows (facilities, legal info) ───────────── */

.def-list { border-top: 1px solid var(--line); }
.def-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.def-row b { color: var(--ink); font-weight: 600; font-size: 15.5px; }
.def-row span, .def-row p { font-size: 15px; color: var(--muted); }

/* ───────────── Program split (Beranda + Program) ───────────── */

.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.prog-item .kicker { margin-bottom: 10px; }
.prog-item h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.015em; }
.prog-item p { font-size: 15.5px; color: var(--muted); margin-bottom: 14px; }
.prog-item .prog-media { margin-bottom: 22px; }

/* ───────────── News ───────────── */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 36px; }
.news-card { display: flex; flex-direction: column; }
.news-card .nc-media { display: block; overflow: hidden; border-radius: var(--radius); }
.news-card .nc-media .site-photo { transition: transform 0.35s ease; }
.news-card:hover .nc-media img.site-photo { transform: scale(1.03); }
.nc-date { font-size: 13px; color: var(--muted); margin: 16px 0 8px; letter-spacing: 0.01em; }
.news-card h3 { font-size: 17.5px; line-height: 1.4; letter-spacing: -0.01em; }
.news-card h3 a:hover { color: var(--green); }
.news-card .nc-excerpt {
    font-size: 14.5px;
    color: var(--muted);
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chip {
    display: inline-block;
    background: var(--soft);
    color: var(--green);
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

/* Article (berita show) */
.article { max-width: 760px; }
.article-hero { width: 100%; border-radius: var(--radius); margin-bottom: 36px; }
.article-body p { margin-bottom: 18px; font-size: 16.5px; }
.article-back { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pg { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--green); }
.pg.disabled { color: #b9c0ba; cursor: default; }
.pg-info { font-size: 14px; color: var(--muted); }

.empty-state { text-align: center; padding: 72px 0; color: var(--muted); }
.empty-state i { font-size: 34px; display: block; margin-bottom: 12px; color: #b9c0ba; }

/* ───────────── PPDB steps ───────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; }
.step { padding: 26px 0; border-top: 1px solid var(--line); }
.step .n { font-size: 13.5px; font-weight: 600; color: var(--green); letter-spacing: 0.06em; margin-bottom: 12px; }
.step b { display: block; color: var(--ink); font-size: 16px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ───────────── CTA panel ───────────── */

.cta-panel {
    background: var(--green-deep);
    border-radius: 18px;
    padding: 64px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-panel h2 { color: #fff; font-size: clamp(23px, 2.8vw, 30px); letter-spacing: -0.02em; max-width: 480px; }
.cta-panel p { color: rgba(255, 255, 255, 0.75); margin-top: 10px; max-width: 480px; font-size: 15.5px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────────── Gallery ───────────── */

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid .gg-item.wide { grid-column: span 2; }
.muted-note { margin-top: 28px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.muted-note code { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; font-size: 12.5px; }

/* ───────────── Teachers ───────────── */

.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 56px; }
.teacher-card { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.teacher-card .avatar {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    background: var(--soft);
    color: var(--green);
    font-weight: 650;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}
.teacher-card .tn { font-weight: 600; color: var(--ink); font-size: 15.5px; letter-spacing: -0.01em; }
.teacher-card .tr { font-size: 13.5px; color: var(--green); font-weight: 500; }
.teacher-card .tm { font-size: 13px; color: var(--muted); }

/* ───────────── Contact ───────────── */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-list { border-top: 1px solid var(--line); }
.contact-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .cl { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding-top: 2px; }
.contact-item .cv { font-size: 15.5px; color: var(--ink); }
.contact-item .cv a { color: var(--green); font-weight: 500; }
.contact-item .cv a:hover { text-decoration: underline; }

.contact-cta { margin-top: 24px; }

#map { width: 100%; height: 420px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }

/* ───────────── Visi & Misi ───────────── */

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.vm-col h3 { font-size: 20px; letter-spacing: -0.015em; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.vm-label {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin: 26px 0 10px;
}
.misi-list { list-style: none; display: grid; gap: 10px; }
.misi-list li { padding-left: 24px; position: relative; font-size: 15px; color: var(--body-c); }
.misi-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 12px;
    height: 2px;
    background: var(--green);
}

/* ───────────── Curriculum ───────────── */

.curri-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.curri-item { padding: 26px 0; border-top: 1px solid var(--line); }
.curri-item h3 { font-size: 17px; margin-bottom: 12px; }
.curri-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.curri-tags span {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--body-c);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
}

/* ───────────── Footer ───────────── */

.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 48px; }
.fbrand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.fbrand img { width: 34px; height: 34px; object-fit: contain; }
.fbrand b { color: var(--ink); font-size: 15.5px; letter-spacing: -0.01em; }
.footer p { color: var(--muted); }
.footer-col h4 {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--muted); padding: 4.5px 0; }
.footer-col a:hover { color: var(--green); }
.footer-col p { padding: 4.5px 0; }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    font-size: 13.5px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
}
.footer-bottom a { color: var(--green); font-weight: 500; }

/* ───────────── Responsive ───────────── */

@media (max-width: 960px) {
    .section { padding: 64px 0; }
    .nav-links { display: none; }
    .hamburger { display: inline-flex; }
    .nav-ppdb { display: none; }

    .hero { padding: 56px 0 64px; }
    .hero-grid, .feature-row, .prog-grid, .vm-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .feature-row.reverse .feature-media { order: 0; }
    .hero-meta { grid-template-columns: 1fr 1fr; }

    .num-list, .curri-grid { grid-template-columns: 1fr; }
    .news-grid, .teacher-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-panel { padding: 44px 32px; }
}

@media (max-width: 640px) {
    .news-grid, .teacher-grid, .steps { grid-template-columns: 1fr; }
    .def-row, .contact-item { grid-template-columns: 1fr; gap: 4px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
