/* =========================================================================
   Website Profil Anggota DPR RI — stylesheet situs publik
   Palet warna & tone mengikuti identitas visual Partai NasDem (partainasdem.id):
   navy tegas + kuning restorasi sebagai aksen, tipografi tebal & uppercase
   untuk label/eyebrow. Nama variabel warna lama (navy/terracotta) dipertahankan
   agar semua template yang sudah memakainya otomatis ikut berubah.
   Ditulis tangan, mobile-first, tanpa perlu proses build apa pun.
   ========================================================================= */

:root {
  --color-navy-900: #001333;
  --color-navy-800: #001b4d;
  --color-navy-700: #0d2d66;
  --color-terracotta-600: #f8b900;
  --color-terracotta-700: #c99600;
  --color-bg: #f4f7ff;
  --color-surface: #ffffff;
  --color-border: #dde4f5;
  --color-text: #1c2333;
  --color-text-muted: #5a6478;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-btn: 4px;
  --shadow-card: 0 1px 3px rgba(0, 27, 77, 0.08), 0 4px 14px rgba(0, 27, 77, 0.06);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
}

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

a {
  color: var(--color-navy-700);
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

/* ---------------------------------------------------------------------- */
/* Header & navigasi */
/* ---------------------------------------------------------------------- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-navy-900);
  text-decoration: none;
}

.site-header__brand .badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-navy-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  cursor: pointer;
}

.main-nav {
  display: none;
  width: 100%;
}

.main-nav.is-open {
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--color-navy-900);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-md);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-navy-800);
  background: rgba(0, 27, 77, 0.06);
  padding-left: 10px;
}

@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }
  .main-nav {
    display: block;
    width: auto;
  }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 26px;
    padding: 0;
  }
  .main-nav a {
    padding: 8px 2px;
  }
  .main-nav a:hover,
  .main-nav a.is-active {
    padding-left: 2px;
    background: none;
    box-shadow: inset 0 -3px 0 var(--color-terracotta-600);
  }
  .main-nav .btn {
    margin-left: 6px;
  }
}

.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------------- */
/* Tombol & badge */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: var(--radius-btn);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 19, 51, 0.18);
}

.btn-primary {
  background: var(--color-terracotta-600);
  color: var(--color-navy-900);
}

.btn-primary:hover {
  background: var(--color-terracotta-700);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--color-navy-800);
  color: var(--color-navy-800);
}

.pill-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(248, 185, 0, 0.16);
  color: var(--color-navy-800);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------- */
/* Hero (Beranda) */
/* ---------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(ellipse 60% 90% at 85% 30%, rgba(248, 185, 0, 0.14), transparent 60%),
    linear-gradient(160deg, var(--color-navy-900), var(--color-navy-800) 65%);
  color: #fff;
  padding: 72px 0 84px;
}

.hero__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-terracotta-600);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-terracotta-600);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 .text-accent {
  color: var(--color-terracotta-600);
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  max-width: 46ch;
}

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

.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

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

/* ---------------------------------------------------------------------- */
/* Kartu pilar & grid umum */
/* ---------------------------------------------------------------------- */

.section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 1.85rem;
  color: var(--color-navy-900);
  margin: 6px 0 10px;
}

.section-heading p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.pillar-card {
  background: var(--color-navy-800);
  border: none;
  box-shadow: none;
}

.pillar-card .pill-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--color-terracotta-600);
  color: var(--color-terracotta-600);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.pillar-card h3 {
  color: #fff;
  margin: 6px 0 10px;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.pillar-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

.pillar-card a {
  color: var(--color-terracotta-600);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

/* ---------------------------------------------------------------------- */
/* Statistik / dashboard */
/* ---------------------------------------------------------------------- */

.stat-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 24px 0 36px;
}

.stat-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-tile .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-navy-800);
  display: block;
}

.stat-tile .stat-label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------- */
/* Linimasa aktivitas (kartu, bukan tabel) */
/* ---------------------------------------------------------------------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.timeline-item time {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.timeline-item .activity-type {
  color: var(--color-terracotta-700);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 4px;
}

.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--color-navy-900);
}

.timeline-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------------- */
/* Artikel / kartu post */
/* ---------------------------------------------------------------------- */

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 27, 77, 0.14);
}

.post-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--color-navy-800);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  overflow: hidden;
}

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

.post-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__body h3 {
  margin: 6px 0 10px;
  font-size: 1.08rem;
  color: var(--color-navy-900);
}

.post-card__body p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  flex: 1;
}

.post-card__meta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-radius: 999px;
  padding: 3px 10px;
}

.article-body {
  font-size: 1.02rem;
  max-width: 72ch;
}

.article-body p {
  margin: 0 0 18px;
}

/* ---------------------------------------------------------------------- */
/* Kutipan media & video */
/* ---------------------------------------------------------------------- */

.quote-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy-700);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.quote-card .source {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy-700);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.quote-card blockquote {
  margin: 8px 0;
  font-style: italic;
  color: var(--color-text);
}

.quote-card a.source-link {
  font-size: 0.85rem;
  font-weight: 600;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------------------------------------------- */
/* Formulir (kontak & admin) */
/* ---------------------------------------------------------------------- */

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--color-navy-900);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-navy-700);
  outline-offset: 1px;
}

.form-hint {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--color-text);
}

.form-field-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.form-field select:disabled {
  background: var(--color-surface);
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------- */
/* Flash messages */
/* ---------------------------------------------------------------------- */

.flash-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

.flash-success {
  background: #e7f6ec;
  color: #1f7a3d;
  border: 1px solid #bfe6cc;
}

.flash-error {
  background: #fcebe9;
  color: #b3311c;
  border: 1px solid #f3c6c0;
}

/* ---------------------------------------------------------------------- */
/* Footer */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--color-navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 28px;
  margin-top: 64px;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 36px 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--color-terracotta-600);
  border-color: var(--color-terracotta-600);
  color: var(--color-navy-900);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-terracotta-600);
  color: var(--color-navy-900);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 27, 77, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.back-to-top.is-visible {
  display: flex;
}

/* ---------------------------------------------------------------------- */
/* Util */
/* ---------------------------------------------------------------------- */

.text-muted {
  color: var(--color-text-muted);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

/* ---------------------------------------------------------------------- */
/* Detail pengungkap (mis. field opsional di formulir kontak) */
/* ---------------------------------------------------------------------- */

details.form-field {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--color-bg);
}

details.form-field summary {
  list-style: none;
}

details.form-field summary::-webkit-details-marker {
  display: none;
}

details.form-field summary::after {
  content: "+ Klik untuk buka";
  margin-left: 8px;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

details.form-field[open] summary::after {
  content: "− Sembunyikan";
}

:focus-visible {
  outline: 2px solid var(--color-navy-700);
  outline-offset: 2px;
}
