:root {
  --bg-cream: #fbf8f3;
  --bg-surface: #ffffff;
  --bg-warm: #f4ede2;
  --text-dark: #1f1a17;
  --text-muted: #5c534d;
  --primary: #9c3d1e;       /* Terracotta / Bata Sunda */
  --primary-dark: #7a2d14;
  --accent: #d49a35;        /* Emas Keraton */
  --emerald: #1f4e43;       /* Hijau Zamrud */
  --border: #e6ddd0;
  --shadow-sm: 0 4px 14px rgba(31, 26, 23, 0.06);
  --shadow-md: 0 12px 30px rgba(31, 26, 23, 0.1);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 14px 24px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(156, 61, 30, 0.28);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 84px;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(212, 154, 53, 0.14), transparent 45%),
                    radial-gradient(circle at 10% 80%, rgba(156, 61, 30, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.text-gradient {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
}

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

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-visual {
  position: relative;
}

.hero-image-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
  background: linear-gradient(135deg, var(--emerald), var(--primary));
  aspect-ratio: 4 / 4.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-fallback {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 24px;
}

.hero-img-fallback span {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
}

.floating-card {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}

.floating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-warm);
  color: var(--primary);
}

.floating-icon svg {
  width: 20px;
  height: 20px;
}

.floating-card strong {
  display: block;
  font-size: 0.92rem;
}

.floating-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

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

/* About */
.about {
  background: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-cream);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.25s ease;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--primary);
  margin-bottom: 14px;
}

.about-icon svg {
  width: 24px;
  height: 24px;
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Divisions */
.division-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.division-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.division-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fffdf9 0%, #fff 100%);
  box-shadow: var(--shadow-md);
}

.division-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.division-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-warm);
  padding: 4px 12px;
  border-radius: 999px;
}

.division-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--primary);
}

.division-emoji svg {
  width: 24px;
  height: 24px;
}

.division-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.division-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.division-list {
  list-style: none;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.division-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.division-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Gallery */
.gallery {
  background: var(--bg-surface);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-cream);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-cream);
  transition: transform 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item.hidden {
  display: none;
}

.gallery-thumb {
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 8px;
}

.tone-1 { background: linear-gradient(135deg, #9c3d1e, #d49a35); }
.tone-2 { background: linear-gradient(135deg, #1f4e43, #3b7a69); }
.tone-3 { background: linear-gradient(135deg, #6b2d5c, #b55d4c); }
.tone-4 { background: linear-gradient(135deg, #433227, #9c3d1e); }

.gallery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-icon svg {
  width: 40px;
  height: 40px;
}

.gallery-cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}

.gallery-caption {
  padding: 20px;
}

.gallery-caption h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.gallery-caption p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Schedule */
.schedule-box {
  background: var(--emerald);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.schedule-box .section-tag {
  color: var(--accent);
}

.schedule-box .section-title {
  color: #fff;
}

.schedule-info > p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px 18px;
  border-radius: 12px;
}

.schedule-day {
  font-weight: 700;
  background: var(--accent);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 8px;
  min-width: 78px;
  text-align: center;
}

.schedule-detail strong {
  display: block;
  font-size: 0.95rem;
}

.schedule-detail span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

.schedule-cta-card {
  background: #fff;
  color: var(--text-dark);
  padding: 32px;
  border-radius: 18px;
}

.schedule-cta-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.schedule-cta-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* Register */
.register-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 44px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-cream);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-feedback {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--emerald);
}

/* Footer */
.footer {
  background: #1f1a17;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .division-grid,
  .schedule-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    left: 12px;
    bottom: 12px;
  }

  .schedule-box {
    padding: 32px 24px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-cream);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .gallery-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .register-wrapper {
    padding: 28px 20px;
  }
}
