/* =========================================================================
   Arisan Umroh Desa Palbar 2 — Design tokens & styles
   Palette  : teal #0B5F66, royal blue #17457E, gold #D4AF37, cream #FBF7EE
   Type     : "Amiri" (display) + "Plus Jakarta Sans" (body/data)
   Signature: Roda Kocokan — circular rotation wheel motif for the monthly
              draw mechanic (order = real information here).
   ========================================================================= */

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

:root {
  --teal: #0B5F66;
  --teal-dark: #06393e;
  --blue: #17457E;
  --gold: #D4AF37;
  --gold-light: #f1ddaa;
  --cream: #FBF7EE;
  --cream-2: #F3ECDA;
  --ink: #22261F;
  --ink-soft: #5b5f56;
  --line: #e6ddc6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 95, 102, 0.25);
  --font-display: 'Amiri', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0 0 .5em;
  line-height: 1.2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8912a);
  color: var(--teal-dark);
  box-shadow: 0 8px 22px -8px rgba(212,175,55,.65);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-teal { background: var(--teal); color: #fff; }

/* ---------------- Navbar ---------------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,238,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; color: var(--teal-dark); font-size: 19px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--teal), var(--blue), var(--gold), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.nav-links { display: flex; gap: 30px; font-weight: 600; font-size: 14.5px; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .btn { padding: 11px 22px; font-size: 14px; }
.nav-cta .btn-outline { border-color: var(--teal); color: var(--teal); }
.burger { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 160% at 15% -10%, #14707a 0%, var(--teal-dark) 55%, #052528 100%);
  color: #fff;
  padding: 96px 0 130px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(212,175,55,.25), transparent 45%),
    radial-gradient(circle at 8% 85%, rgba(23,69,126,.55), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #fff; font-size: 46px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 17.5px; color: #dfeeee; max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.hero-stats div span { font-size: 12.5px; color: #bcd6d6; text-transform: uppercase; letter-spacing: .06em; }

/* --- Roda Kocokan (signature element) --- */
.roda-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.roda {
  --n: 12;
  position: relative;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.06), transparent 60%);
  border: 1px dashed rgba(212,175,55,.4);
  animation: spin 60s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .roda { animation: none; } }
.roda-seg {
  position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold), #a9821f);
  color: var(--teal-dark);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.45);
  animation: counterspin 60s linear infinite;
}
.roda-seg:nth-child(4n) { background: linear-gradient(160deg, #ffffff, #cfd9d9); }
.roda-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 148px; height: 148px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--font-display); font-size: 14px; color: #eaf3f3;
  padding: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counterspin { to { transform: rotate(-360deg); } }

/* ---------------- Section shells ---------------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 16px; }
.bg-cream2 { background: var(--cream-2); }
.bg-teal { background: var(--teal-dark); color: #fff; }
.bg-teal h2, .bg-teal h3 { color: #fff; }

/* ---------------- Cards: paket / skema ---------------- */
.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pkg-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.pkg-card.featured { border-color: var(--gold); }
.pkg-card .tag {
  position: absolute; top: 22px; right: -34px;
  background: var(--gold); color: var(--teal-dark);
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  padding: 5px 40px; transform: rotate(35deg);
}
.pkg-card h3 { font-size: 22px; margin-bottom: 4px; }
.pkg-card .peserta-count { color: var(--gold); font-weight: 700; font-size: 14px; margin-bottom: 20px; }
.pkg-price { font-family: var(--font-display); font-size: 34px; color: var(--teal); margin: 6px 0 2px; }
.pkg-price small { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.pkg-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.pkg-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.pkg-list li::before { content: '✓'; color: var(--teal); font-weight: 800; }
.pkg-target {
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.pkg-target strong { font-family: var(--font-display); font-size: 21px; color: var(--gold); }

/* ---------------- Akad / cara kerja ---------------- */
.akad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; counter-reset: akad; }
.akad-card { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.akad-card .num {
  counter-increment: akad;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; margin-bottom: 16px;
}
.akad-card .num::before { content: counter(akad); }
.akad-card h4 { font-size: 18px; margin-bottom: 10px; }
.akad-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------------- Hak & kewajiban (2 kolom) ---------------- */
.hk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hk-col h4 { font-size: 17px; color: var(--gold); margin-bottom: 16px; }
.hk-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hk-col li { padding-left: 24px; position: relative; font-size: 14.5px; color: #dfeeee; }
.hk-col li::before { content: '◆'; color: var(--gold); position: absolute; left: 0; font-size: 10px; top: 5px; }

/* ---------------- Ketentuan khusus (timeline) ---------------- */
.timeline { position: relative; margin-left: 10px; padding-left: 34px; border-left: 2px dashed var(--line); display: grid; gap: 30px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute; left: -42px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { font-size: 16px; margin-bottom: 6px; color: var(--teal-dark); }
.timeline-item p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------------- CTA ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--gold), #c79a2c);
  color: var(--teal-dark);
  border-radius: 24px;
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--teal-dark); margin-bottom: 6px; }
.cta-band p { margin: 0; font-weight: 500; }
.cta-band .btn-teal { box-shadow: 0 10px 24px -8px rgba(11,95,102,.5); }

/* ---------------- Footer ---------------- */
footer { background: var(--teal-dark); color: #cfe3e3; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: #fff; font-family: var(--font-body); font-size: 15px; margin-bottom: 16px; }
footer p, footer a { font-size: 14px; color: #a9c6c6; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 13px; text-align: center; color: #8fb0b0; }

/* ---------------- Forms (used by daftar.php & admin) ---------------- */
.card-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.form-section-title {
  background: var(--gold); color: var(--teal-dark);
  font-weight: 800; font-size: 14px; letter-spacing: .03em;
  padding: 14px 28px;
}
.form-body { padding: 30px 28px; display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form-body.single { grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--ink-soft); }
input[type=text], input[type=tel], input[type=date], input[type=password], select, textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 14.5px; background: #fff; color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,95,102,.14);
}
.radio-row, .checkbox-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.radio-row label, .checkbox-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.form-actions { padding: 24px 28px 32px; }
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14.5px; margin-bottom: 20px; }
.alert-success { background: #e4f4ea; color: #1c6b3f; border: 1px solid #b9e3c9; }
.alert-error { background: #fbe9e7; color: #a4341f; border: 1px solid #f3c3ba; }
.required::after { content: ' *'; color: #c0392b; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .roda-wrap { order: -1; }
  .pkg-grid, .akad-grid, .hk-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .roda { display: none; }
  .hero h1 { font-size: 32px; }
  section { padding: 60px 0; }
  .form-body { grid-template-columns: 1fr; padding: 22px 18px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
}
