/* ================================================
   KOPDES MERAH PUTIH — Global Stylesheet
   kopdesmp.org
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --merah:    #C8202D;
  --merah-tua:#9B1520;
  --merah-muda:#F5E6E8;
  --putih:    #FFFFFF;
  --abu-terang:#F7F7F5;
  --abu-mid:  #E8E8E4;
  --abu-teks: #6B6B6B;
  --hitam:    #1A1A1A;
  --biru-aksen:#1B3A6B;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Lora', Georgia, serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lift: 0 8px 32px rgba(0,0,0,.12);

  --max-w: 1100px;
  --side-pad: clamp(1rem, 5vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--hitam);
  background: var(--putih);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--merah); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Skip link ── */
.skip-link {
  position: absolute; top:-40px; left:0;
  background: var(--merah); color:#fff;
  padding:.5rem 1rem; z-index:9999;
  transition: top .2s;
}
.skip-link:focus { top:0; }

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--putih);
  border-bottom: 3px solid var(--merah);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.site-logo img {
  width: 52px;
  height: auto;
}
.site-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--hitam);
}
.site-logo-text span { color: var(--merah); }

.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--hitam);
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--merah);
  color: var(--putih);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: .4rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--hitam); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Breadcrumb ── */
.breadcrumb {
  font-family: var(--font-display);
  font-size: .8rem;
  color: var(--abu-teks);
  padding: .6rem 0;
  border-bottom: 1px solid var(--abu-mid);
}
.breadcrumb a { color: var(--merah); }

/* ── Hero ── */
.hero {
  background: var(--merah);
  color: var(--putih);
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--merah-tua) 0%, var(--merah) 60%, #e63946 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.hero-kicker {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.18);
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 60ch;
  opacity: .9;
  margin-bottom: 1.75rem;
}
.hero-badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-width: 180px;
  text-align: center;
  font-family: var(--font-display);
}
.hero-badge-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.hero-badge-label { font-size: .8rem; opacity: .85; margin-top: .25rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s, transform .1s;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-putih { background: var(--putih); color: var(--merah); }
.btn-putih:hover { background: #ffe6e8; }
.btn-merah { background: var(--merah); color: var(--putih); }
.btn-merah:hover { background: var(--merah-tua); }
.btn-outline { background: transparent; color: var(--putih); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ── Section headers ── */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--abu-terang); }

.section-header { margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  color: var(--hitam);
}
.section-header h2 .highlight { color: var(--merah); }
.section-header p {
  font-size: 1rem;
  color: var(--abu-teks);
  max-width: 65ch;
  margin-top: .5rem;
}
.section-header.centered { text-align: center; }
.section-header.centered p { margin-left: auto; margin-right: auto; }
.overline {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--merah);
  display: block;
  margin-bottom: .4rem;
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--putih);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-kicker {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  color: var(--merah);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.card p { font-size: .92rem; color: var(--abu-teks); line-height: 1.65; }

/* ── Stat boxes ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.stat-box {
  background: var(--merah);
  color: var(--putih);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}
.stat-box-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}
.stat-box-label { font-size: .82rem; opacity: .88; margin-top: .3rem; }

/* ── Info box ── */
.info-box {
  border-left: 4px solid var(--merah);
  background: var(--merah-muda);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.info-box-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--merah-tua);
}
.info-box p { font-size: .92rem; }

.warning-box {
  border-left: 4px solid #e6a817;
  background: #fffbef;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.warning-box-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: #7a5100;
}
.warning-box p { font-size: .92rem; }

/* ── Checklist ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.check-list li {
  display: flex;
  gap: .75rem;
  font-size: .95rem;
  align-items: flex-start;
}
.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--merah);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: .15rem;
}
.check-list.warning li::before { background: #e6a817; }
.check-list.neutral li::before { background: var(--biru-aksen); }

/* ── Accordion / FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
details.faq-item {
  border: 1px solid var(--abu-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}
details.faq-item[open] { border-color: var(--merah); }
summary.faq-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--abu-terang);
  user-select: none;
}
summary.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--merah);
  line-height: 1;
  flex-shrink: 0;
}
details[open] summary.faq-q::after { content: '−'; }
.faq-a {
  padding: 1rem 1.25rem 1.25rem;
  font-size: .93rem;
  line-height: 1.7;
  background: var(--putih);
}

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  margin: 2rem 0 .75rem;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.5rem 0 .5rem;
  color: var(--merah-tua);
}
.prose p { margin-bottom: 1rem; max-width: 72ch; }
.prose ul, .prose ol { margin: .75rem 0 1rem 1.4rem; }
.prose li { margin-bottom: .35rem; font-size: .97rem; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }

/* ── Table ── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem;
  font-family: var(--font-display);
}
th {
  background: var(--merah);
  color: var(--putih);
  text-align: left;
  padding: .7rem 1rem;
  font-weight: 700;
}
td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--abu-mid);
}
tr:nth-child(even) td { background: var(--abu-terang); }
tr:hover td { background: var(--merah-muda); }

/* ── Photo gallery ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.photo-grid img {
  width: 100%; height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.photo-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-lift); }

/* ── CTA strip ── */
.cta-strip {
  background: var(--merah);
  color: var(--putih);
  padding: 3rem 0;
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: .75rem;
}
.cta-strip p {
  opacity: .9;
  margin-bottom: 1.5rem;
  max-width: 55ch;
  margin-left: auto; margin-right: auto;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.site-footer {
  background: var(--hitam);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { width: 56px; margin-bottom: 1rem; }
.footer-brand p { font-size: .87rem; line-height: 1.65; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--putih);
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .85rem; transition: color .15s; }
.footer-col a:hover { color: var(--putih); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.flip { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--putih);
    border-bottom: 3px solid var(--merah);
    flex-direction: column;
    padding: 1rem var(--side-pad);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: .95rem; padding: .6rem .5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Utility ── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-merah { color: var(--merah); }
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-merah { background: var(--merah-muda); color: var(--merah-tua); }
.badge-hijau  { background: #e6f4ea; color: #1a5c2a; }
.badge-kuning { background: #fff8e1; color: #7a5100; }
