:root {
  --primary-color: #5A9F77;
  --secondary-color: #3D7A58;
  --accent-color: #C0E0B1;
  --light-color: #F2FAF5;
  --dark-color: #1E3528;
  --gradient-primary: linear-gradient(135deg, #5A9F77 0%, #3D7A58 100%);
  --hover-color: #3D7A58;
  --background-color: #F8FCF9;
  --text-color: #2C3E30;
  --border-color: rgba(90, 159, 119, 0.22);
  --divider-color: rgba(61, 122, 88, 0.12);
  --shadow-color: rgba(90, 159, 119, 0.12);
  --highlight-color: #F0A55A;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Lato', sans-serif;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.hamburger .line {
  width: 28px;
  height: 3px;
  background-color: var(--light-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

#menu-toggle { display: none; }

#menu-toggle:checked ~ .mobile-nav {
  max-height: 400px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 1000;
}

.mobile-nav ul {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.mobile-nav li { margin: 1rem 0; }

.mobile-nav a {
  display: block;
  padding: 1.2rem 1.8rem;
  color: var(--light-color);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  border: 2px solid transparent;
}

.mobile-nav a:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(5px);
}

/* Feature Cards — vertical, centered icon on top */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem 2.4rem;
  border: 2px solid var(--border-color);
  border-bottom: 5px solid var(--primary-color);
  box-shadow: 0 4px 18px var(--shadow-color);
  transition: all 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 36px rgba(90, 159, 119, 0.22);
  border-bottom-color: var(--highlight-color);
}

.feature-icon {
  flex-shrink: 0;
  font-size: 2.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background: var(--light-color);
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  color: var(--primary-color);
  transition: all 0.35s ease;
  margin: 0 auto 1.8rem auto;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--highlight-color);
  box-shadow: 0 8px 22px rgba(90,159,119,0.35);
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: 0.9rem;
}

/* Testimonials */
.testimonial {
  background: white;
  border-radius: 16px;
  padding: 2.6rem;
  margin: 1.4rem 0;
  border: 2px solid var(--border-color);
  border-bottom: 5px solid var(--primary-color);
  box-shadow: 0 4px 14px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 5rem;
  color: var(--accent-color);
  opacity: 0.5;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(90,159,119,0.22);
}

/* FAQ */
.faq-item {
  background: white;
  border-radius: 14px;
  padding: 2.6rem;
  margin: 1.4rem 0;
  border: 2px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 3px 12px var(--shadow-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(90,159,119,0.2);
  border-top-width: 6px;
}

/* Forms */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1.2rem;
  background-color: white;
  color: var(--text-color);
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(90,159,119,0.14);
  transform: translateY(-2px);
}

input:hover, textarea:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px var(--shadow-color);
}

/* Buttons */
button, .btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.3rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 6px 18px rgba(90,159,119,0.35);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

button:hover, .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(90,159,119,0.45);
  background: linear-gradient(135deg, #3D7A58 0%, #1E3528 100%);
}

html { scroll-behavior: smooth; }
.hero { position: relative; background: var(--primary-color); }

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  line-height: 1.35;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .container { padding: 0 1.2rem; }
  .feature-card, .testimonial, .faq-item { padding: 1.8rem; }
  #contact .contact-grid { max-width: 100% !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .feature-card, .testimonial, .faq-item { margin: 0.8rem 0; padding: 1.4rem; }
}

@media (min-width: 768px) {
  #contact .contact-grid { max-width: 80% !important; }
}

header {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 1.4rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(90,159,119,0.3);
}

footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 2rem 0 1rem;
}

header img[alt="logo"],
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid var(--highlight-color);
  outline-offset: 2px;
}

/* Pattern bg — warm organic shapes */
.pattern-bg {
  background-color: var(--background-color);
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(90,159,119,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 75%, rgba(192,224,177,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 55% 95%, rgba(61,122,88,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 15%, rgba(240,165,90,0.05) 0%, transparent 45%);
  background-size: 900px 900px, 1100px 1100px, 700px 700px, 800px 800px;
  background-position: 10% 20%, 90% 75%, 55% 95%, 75% 15%;
}

/* Random Block: Before / After comparison table */
.compare-section {
  padding: 5rem 0;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.compare-table thead tr th {
  padding: 1.4rem 2rem;
  font-family: var(--main-font);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.compare-table thead .th-bad {
  background: #c0392b;
  color: white;
  border-radius: 16px 0 0 0;
}

.compare-table thead .th-good {
  background: var(--secondary-color);
  color: white;
  border-radius: 0 16px 0 0;
}

.compare-table thead .th-label {
  background: rgba(0,0,0,0.5);
  color: white;
}

.compare-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.06);
}

.compare-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,0.03);
}

.compare-table tbody tr:hover td {
  background: rgba(255,255,255,0.12);
}

.compare-table td {
  padding: 1.2rem 2rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: middle;
}

.compare-table td.td-label {
  font-weight: 600;
  color: white;
  background: rgba(255,255,255,0.08) !important;
  width: 30%;
}

.compare-table td.td-bad {
  color: #ffb3ab;
}

.compare-table td.td-good {
  color: #b6f5cc;
}

.compare-icon {
  display: inline-block;
  margin-right: 0.5rem;
}

@media (max-width: 640px) {
  .compare-table thead .th-label { display: none; }
  .compare-table td.td-label { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table thead { display: none; }
  .compare-table tr {
    margin-bottom: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .compare-table td {
    padding: 1rem 1.4rem;
  }
  .compare-table td::before {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
    opacity: 0.6;
  }
  .compare-table td.td-bad::before { content: "Tanpa kebiasaan baik"; }
  .compare-table td.td-good::before { content: "Dengan kebiasaan baik"; }
}