/* Trisakti Tourism Award 2026 — heritage editorial, committed dark red.
   Tokens: paper #FAF5EB · red #7A0F14 · ink #1A0C0D · gold #C9A227 (single locked accent).
   Shape scale: all-sharp (2px). Type: Marcellus display + Plus Jakarta Sans body. */

:root {
  --paper: #FAF5EB;
  --paper-deep: #F3EBDB;
  --red: #7A0F14;
  --red-deep: #5C0A0F;
  --ink: #1A0C0D;
  --ink-soft: #5A3E3A;
  --gold: #C9A227;
  --gold-soft: #E7C95C;
  --line: #E2D5BE;
  --red-ink-tint: #F6E3D2;
  --radius: 2px;
  --font-display: "Marcellus", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--paper); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 0; border: 2px solid var(--paper-deep); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.narrow { max-width: 780px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.section { padding: 5.5rem 0; }
.section-tight { padding-top: 1rem; }
.section-note { color: var(--ink-soft); margin: 0 0 2.5rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons (one intent label: Daftarkan Desa) ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-deep); }
.btn-light { background: var(--paper); color: var(--red); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(250, 245, 235, 0.65); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(250, 245, 235, 0.12); }
.btn-ghost-dark { border-color: var(--red); color: var(--red); background: transparent; }
.btn-ghost-dark:hover { background: var(--red); color: var(--paper); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.15rem;
}
.text-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 235, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
  max-height: 80px;
  padding-block: 0.5rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--red); margin-right: auto; }
.brand-seal { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; }
.brand-text small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.nav-links a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s var(--ease), opacity 0.2s; }
.nav-mobile { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.5rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.nav-mobile[hidden] { display: none; }
@media (min-width: 769px) {
  .nav-mobile { display: none; }
}
.nav-mobile a:not(.btn) { padding: 0.6rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 0.8rem; text-align: center; }

/* ---------- Hero (drenched red field) ---------- */
.hero {
  background: var(--red);
  color: var(--paper);
  padding: 4.5rem 0 5rem;
  border-bottom: 4px solid var(--gold);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
.hero-sub { font-size: 1.08rem; line-height: 1.6; color: var(--red-ink-tint); max-width: 34rem; margin: 0 0 1.8rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-plates { position: relative; padding-bottom: 2.2rem; }
.plate { border-radius: var(--radius); object-fit: cover; box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55); }
.plate-a { width: 82%; aspect-ratio: 4 / 5; margin-left: auto; }
.plate-b { width: 52%; aspect-ratio: 1 / 1; position: absolute; left: 0; bottom: 0; border: 3px solid var(--paper); }
.hero-seal {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  background: var(--ink);
  color: var(--gold-soft);
  padding: 0.7rem 1.1rem;
  text-align: center;
  line-height: 1.2;
  border-top: 2px solid var(--gold);
}
.hero-seal span { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-seal strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }

/* ---------- Stats band ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.6rem 0;
}
.stat { text-align: center; padding: 0.4rem 1rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--red); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Tentang ---------- */
.rule { border: 0; border-top: 3px solid var(--gold); width: 72px; margin: 0 0 1.6rem; }
.prose { max-width: 65ch; }
.prose p { margin: 0 0 1.1rem; color: var(--ink); }
.prose strong { color: var(--red); }
.wide-plate { margin: 2.8rem 0 0; }
.wide-plate img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.wide-plate figcaption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* ---------- Kategori index ---------- */
.rail { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
.rail-head { position: sticky; top: 100px; }
.rail-head p { color: var(--ink-soft); margin: 0 0 1.4rem; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 1.15rem 0.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s var(--ease), padding 0.18s var(--ease);
}
.index a:hover { background: var(--paper-deep); padding-left: 0.9rem; }
.index-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); grid-column: 1; }
.index a:hover .index-name { color: var(--red); }
.index-desc { grid-column: 1; font-size: 0.9rem; color: var(--ink-soft); }
.index svg { width: 18px; height: 18px; grid-column: 2; grid-row: 1 / span 2; color: var(--gold); transition: transform 0.2s var(--ease); }
.index a:hover svg { transform: translateX(5px); color: var(--red); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.steps li { padding: 1.8rem 1.5rem; background: var(--paper); }
.steps li + li { border-left: 1px solid var(--line); }
.steps li:nth-child(odd) { background: var(--paper-deep); }
.step-no {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--red);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.steps h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.steps p { margin: 0 0 1rem; font-size: 0.92rem; color: var(--ink-soft); }
.chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--ink);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius);
}

/* ---------- Groups (syarat) ---------- */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.group { border-top: 3px solid var(--gold); padding-top: 1.2rem; }
.group h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 0 0 1rem; color: var(--red); }
.group dl { margin: 0; }
.group dl > div { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.group dt { font-weight: 700; font-size: 0.95rem; }
.group dd { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Form ---------- */
.form-section { background: var(--paper-deep); border-block: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; }
.form-info p { color: var(--ink-soft); }
.form-info img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; margin: 1.6rem 0; width: 100%; }
.contact-line a { color: var(--red); font-weight: 700; }
.form-wrap { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field label small { font-weight: 500; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--red);
}
.field input::placeholder, .field textarea::placeholder { color: #8A6F66; opacity: 1; }
.field.check { display: flex; gap: 0.7rem; align-items: flex-start; }
.field.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--red); flex: none; }
.field.check label { font-weight: 500; font-size: 0.9rem; }
.error { color: var(--red); font-size: 0.85rem; font-weight: 600; margin: 0.35rem 0 0; }
.success { border-top: 4px solid var(--gold); padding-top: 1rem; }
.success h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 0 0 0.5rem; color: var(--red); }
.success-summary { margin: 1rem 0; border-top: 1px solid var(--line); }
.success-summary > div { display: grid; grid-template-columns: 140px 1fr; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.success-summary dt { font-weight: 700; }
.success-summary dd { margin: 0; }
.success-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1.1rem 0.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  flex: none;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.faq a { color: var(--red); font-weight: 700; }

/* ---------- Closing + footer ---------- */
.closing { background: var(--red); color: var(--paper); border-top: 4px solid var(--gold); padding: 5rem 0; text-align: center; }
.closing p { color: var(--red-ink-tint); margin: 0 0 1.8rem; }
.footer { background: var(--ink); color: #D9CFC2; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--paper); }
.footer-brand p { font-size: 0.9rem; margin: 0.5rem 0 0; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a, .footer-contact a { color: #D9CFC2; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-soft); }
.footer-base { border-top: 1px solid #3A2422; padding-top: 1.2rem; }
.footer-base small { font-size: 0.8rem; }

/* ---------- Reveal motion (fluid CSS only) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .rail, .form-grid { grid-template-columns: 1fr; }
  .rail-head { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .groups { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 3.8rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-plates { max-width: 440px; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
  .stat:nth-child(3) { border-left: 0; }
  .stat strong { font-size: 1.6rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .success-summary > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
