/* Core Design System - MicroClimeet (Agrovia-Style Overhaul) */

:root {
  /* Agrovia Color Palette */
  --bg-gradient: linear-gradient(180deg, #FFFFFF 0%, #F8FAF5 100%);
  --bg-white: #FFFFFF;
  --bg-section-alt: #F4F7F0;
  --accent-color: #4ADE80;        /* Lime Green Accent */
  --accent-dark: #166534;         /* Deep Forest Green */
  --accent-orange: #eb5011;       /* Energetic Orange */
  --text-primary: #0A361F;        /* Deep Forest Heading Color */
  --text-secondary: #5A6B5F;      /* Muted Greenish-Grey */
  --text-body: #3D4F42;
  --white: #ffffff;
  
  /* Status Colors */
  --normal-color: #4ADE80;
  --warning-color: #F59E0B;
  --danger-color: #EF4444;
  
  /* Glassmorphism Specification */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.04);
  --glass-blur: blur(16px);
  
  /* Font Families */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Spacing */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;
}

/* Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

section[id], header[id], [id] {
  scroll-margin-top: 100px;
}

#beranda {
  scroll-margin-top: 60px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

/* Serif-italic accent for headings (Agrovia mixed typography) */
h1 em, h2 em, h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Glassmorphism Cards (Agrovia-style solid white + soft shadow) */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 28px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.08);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Buttons (Agrovia pill-shaped) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
}

.btn-primary:hover {
  background: #3CCF6E;
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #f8faf5;
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(235, 80, 17, 0.3);
}

.btn-orange:hover {
  background: #d44307;
  box-shadow: 0 8px 24px rgba(235, 80, 17, 0.4);
  transform: translateY(-2px);
}

.btn-text {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-text:hover {
  color: var(--accent-dark);
}

/* Badges (Agrovia rounded pill) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(74, 222, 128, 0.15);
  color: #166534;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #92400E;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #991B1B;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Form Inputs */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  background: #F8FAF5;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  outline: none;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.form-control:focus {
  background: var(--bg-white);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(74, 222, 128, 0.35);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.55);
}
