/* ==========================================================================
   Suara Nusantara — Festival Mendongeng Cerita Rakyat
   Color Palette Extracted Directly from Logo:
   - Mint Sage Swirl:     #D8EAE0 / #EAF4EE / #F6FBF8
   - Crimson Maroon Text: #8E1619 / #6F1013
   - Tropical Forest:     #1B6627 / #2D8A3E
   - Warm Wood & Deer:    #D88835 / #F1B97A / #8C4A19
   - Storybook Parchment: #F3E2BA / #FFFDF7
   - Plum Book Spine:     #6F1D46
   - Stone Charcoal:      #2C352E / #525E54
   ========================================================================== */

:root {
  --bg-mint-light: #f4faf6;
  --bg-mint-soft: #dfeee5;
  --bg-parchment: #fffdf8;
  --bg-parchment-warm: #f6e7c4;

  --crimson-primary: #8e1619;
  --crimson-dark: #6b0f12;
  --crimson-soft: rgba(142, 22, 25, 0.09);

  --forest-primary: #1b6627;
  --forest-light: #2d8a3e;
  --forest-soft: rgba(27, 102, 39, 0.1);

  --wood-amber: #d88835;
  --wood-light: #f2c083;
  --wood-brown: #7c4217;
  --wood-soft: rgba(216, 136, 53, 0.15);

  --book-plum: #6f1d46;

  --stone-dark: #232b25;
  --stone-muted: #526056;
  --border-sage: rgba(27, 102, 39, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 24px 60px -12px rgba(27, 65, 35, 0.12), 0 4px 18px -4px rgba(142, 22, 25, 0.05);
  --shadow-wood: 0 4px 12px rgba(124, 66, 23, 0.12);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--stone-dark);
  background-color: var(--bg-mint-light);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(216, 234, 224, 0.85) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(246, 231, 196, 0.65) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #ffffff 0%, var(--bg-mint-light) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================================
   Ambient Background & Botanical Accents
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.watercolor-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.65;
}

.orb-sage {
  width: 520px;
  height: 520px;
  background: #cfe6d8;
  top: -120px;
  left: -100px;
}

.orb-amber {
  width: 450px;
  height: 450px;
  background: #f5dfb8;
  bottom: -140px;
  right: -80px;
}

.orb-crimson {
  width: 320px;
  height: 320px;
  background: rgba(142, 22, 25, 0.08);
  top: 35%;
  right: 18%;
}

.leaf-decor {
  position: absolute;
  width: 240px;
  height: 240px;
  color: var(--forest-primary);
}

.leaf-top-left {
  top: 0;
  left: 0;
}

.leaf-bottom-right {
  bottom: 0;
  right: 0;
}

/* ==========================================================================
   Layout Wrapper
   ========================================================================== */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   Top Status Bar
   ========================================================================== */
.top-bar {
  display: flex;
  justify-content: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--border-sage);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-primary);
  box-shadow: 0 4px 15px rgba(27, 102, 39, 0.06);
  backdrop-filter: blur(8px);
}

.status-pill-maintenance {
  color: var(--crimson-primary);
  border-color: rgba(142, 22, 25, 0.2);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--wood-amber);
  box-shadow: 0 0 0 0 rgba(216, 136, 53, 0.7);
  animation: pulseAmber 2s infinite;
}

.pulse-dot.pulse-crimson {
  background-color: var(--crimson-primary);
  box-shadow: 0 0 0 0 rgba(142, 22, 25, 0.7);
  animation: pulseCrimson 2s infinite;
}

@keyframes pulseCrimson {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(142, 22, 25, 0.65);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(142, 22, 25, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(142, 22, 25, 0);
  }
}

@keyframes pulseAmber {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(216, 136, 53, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(216, 136, 53, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(216, 136, 53, 0);
  }
}

/* ==========================================================================
   Main Hero Card (Storybook & Sage Swirl Aesthetic)
   ========================================================================== */
.hero-card {
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid var(--border-sage);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle bottom book-spine border accent inspired by the open book in logo */
.hero-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--forest-primary) 0%,
    var(--wood-amber) 35%,
    var(--crimson-primary) 70%,
    var(--book-plum) 100%
  );
}

/* ==========================================================================
   Left Column: Logo Showcase
   ========================================================================== */
.visual-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.logo-stage {
  position: relative;
  width: 100%;
  max-width: 470px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 24px;
  background: radial-gradient(circle, #ffffff 35%, rgba(216, 234, 224, 0.45) 100%);
  border: 1px solid rgba(216, 234, 224, 0.8);
  box-shadow: inset 0 0 30px rgba(216, 234, 224, 0.35);
}

.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(44, 53, 46, 0.08));
  animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

.story-quote {
  max-width: 390px;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgba(243, 226, 186, 0.45), rgba(216, 234, 224, 0.35));
  border-left: 3px solid var(--wood-amber);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--wood-brown);
}

/* ==========================================================================
   Right Column: Content & Controls
   ========================================================================== */
.content-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Wooden signpost inspired badge */
.wooden-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  background: linear-gradient(180deg, #f6cf96 0%, #e5a95c 100%);
  color: #164f20;
  border: 1.5px solid #b8732a;
  box-shadow: var(--shadow-wood), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 0.38rem 0.95rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--stone-dark);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.text-crimson {
  color: var(--crimson-primary);
  position: relative;
  display: inline-block;
}

.text-crimson::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background: rgba(216, 136, 53, 0.28);
  z-index: -1;
  border-radius: 4px;
}

.subheadline {
  font-size: 1rem;
  color: var(--stone-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ==========================================================================
   Progress Box (Storybook Parchment Theme)
   ========================================================================== */
.progress-box {
  background: linear-gradient(180deg, #fffdf9 0%, #fbf3df 100%);
  border: 1px solid #e6d1a3;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wood-brown);
}

.progress-percent {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--crimson-primary);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(124, 66, 23, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 78%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest-primary) 0%, var(--wood-amber) 55%, var(--crimson-primary) 100%);
  position: relative;
}

.progress-fill-indeterminate {
  width: 45%;
  animation: maintenanceSlide 2.4s ease-in-out infinite;
}

@keyframes maintenanceSlide {
  0% {
    transform: translateX(-85%);
  }
  50% {
    transform: translateX(130%);
  }
  100% {
    transform: translateX(-85%);
  }
}

.milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--stone-muted);
  padding-top: 0.15rem;
}

.milestone.done {
  color: var(--forest-primary);
}

.milestone.active {
  color: var(--crimson-primary);
  font-weight: 700;
}

/* ==========================================================================
   Countdown Timer
   ========================================================================== */
.countdown-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.countdown-item {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-sage);
  border-bottom: 3px solid var(--bg-mint-soft);
  border-radius: 14px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(27, 102, 39, 0.04);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--crimson-primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-muted);
  margin-top: 0.2rem;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wood-amber);
}

/* ==========================================================================
   Highlights Grid
   ========================================================================== */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-sage);
}

.highlight-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-forest {
  background: var(--forest-soft);
  color: var(--forest-primary);
}

.icon-amber {
  background: var(--wood-soft);
  color: var(--wood-brown);
}

.highlight-card h2 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--stone-dark);
  margin-bottom: 0.15rem;
}

.highlight-card p {
  font-size: 0.78rem;
  color: var(--stone-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Notify Form
   ========================================================================== */
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone-dark);
}

.input-group {
  display: flex;
  gap: 0.6rem;
}

.input-group input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1.5px solid #cbdcd1;
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--stone-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--forest-primary);
  box-shadow: 0 0 0 3px rgba(27, 102, 39, 0.14);
}

.input-group input:user-invalid {
  border-color: var(--crimson-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--crimson-primary) 0%, var(--crimson-dark) 100%);
  color: #fffdf8;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(142, 22, 25, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(142, 22, 25, 0.5);
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: translateY(0);
}

.form-feedback {
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 1.2rem;
}

.form-feedback.success {
  color: var(--forest-primary);
}

/* ==========================================================================
   Under Maintenance Actions & Status
   ========================================================================== */
.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-sage);
  background: #ffffff;
  color: var(--forest-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-mint-soft);
  border-color: var(--forest-primary);
  transform: translateY(-2px);
}

.last-checked {
  font-size: 0.8rem;
  color: var(--stone-muted);
}

.last-checked span {
  font-weight: 600;
  color: var(--wood-brown);
}

/* ==========================================================================
   Footer & Color Swatches
   ========================================================================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0;
  font-size: 0.84rem;
  color: var(--stone-muted);
}

.footer strong {
  color: var(--crimson-primary);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.palette-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  border: 1px solid var(--border-sage);
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.swatch-sage { background: #d8eae0; }
.swatch-forest { background: #1b6627; }
.swatch-wood { background: #d88835; }
.swatch-crimson { background: #8e1619; }
.swatch-parchment { background: #f3e2ba; }

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-sage);
  color: var(--forest-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--crimson-primary);
  color: #ffffff;
  border-color: var(--crimson-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 960px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .logo-stage {
    max-width: 380px;
  }

  .content-column {
    align-items: center;
    text-align: center;
  }

  .wooden-tag {
    align-self: center;
  }

  .progress-box,
  .countdown-wrapper,
  .highlights-grid,
  .notify-form {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .page-wrapper {
    padding: 1rem;
  }

  .hero-card {
    padding: 1.5rem 1.15rem;
    border-radius: 22px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}
