/* =============================================
   Pembasmi Hama Alam Sejahtera — style.css
   Primary:#1b5e20 Accent:#66bb6a Bg:#e8f5e9
   ============================================= */

:root {
  --primary: #1b5e20;
  --primary-dark: #0d3817;
  --primary-light: #2e7d32;
  --accent: #66bb6a;
  --accent-light: #81c784;
  --bg: #e8f5e9;
  --bg-white: #f1f8f4;
  --text: #1b3a1b;
  --text-light: #2e5c30;
  --text-muted: #558b57;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(27,94,32,0.15);
  --shadow-md: 0 4px 24px rgba(27,94,32,0.2);
  --radius: 10px;
  --radius-lg: 18px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  padding-top: 40px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── DEMO BAR ── */
.demo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.03em;
}
.demo-bar a { color: var(--accent-light); text-decoration: underline; }
.demo-bar a:hover { color: var(--white); }

/* ── CHECKBOX HACK NAV ── */
#nav-toggle { display: none; }

header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 40px;
  z-index: 1000;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: relative;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--primary);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0;
}
.nav-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
}
.nav-menu .nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px;
  margin-left: 8px;
  font-weight: 600;
  border-radius: 6px;
}
.nav-menu .nav-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

/* hamburger */
.hamburger-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger-label span {
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* mobile nav toggle */
#nav-toggle:checked ~ header .nav-menu {
  left: 0;
}
#nav-toggle:checked ~ header .hamburger-label span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
#nav-toggle:checked ~ header .hamburger-label span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked ~ header .hamburger-label span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}
.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.hero-icon-wrap {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 16px;
}
.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 32px;
  opacity: 0.95;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 32px;
}
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 800;
}
.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  text-decoration: none;
}
.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
}

/* ── STATS ── */
.stats {
  background: var(--accent);
  padding: 48px 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
  color: var(--white);
}
.stat-item strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.stat-item span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
}

/* ── SECTION ── */
.section {
  padding: 60px 20px;
}
.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  margin: 0 0 12px;
}
.divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin: 0 0 40px;
  font-size: 1.05rem;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 60px; height: 60px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 12px;
}
.card p {
  color: var(--text-light);
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.card-price {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
}

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 40px 0;
}
.step {
  display: flex;
  gap: 20px;
}
.step-num {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
}
.step-body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 8px;
}
.step-body p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

/* ── TESTIMONIALS ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars {
  color: #ffa726;
  font-size: 1rem;
  margin-bottom: 12px;
}
.testi-quote {
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 0.8;
  margin-bottom: 12px;
}
.testi-card p {
  color: var(--text-light);
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.testi-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.testi-loc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.cta-banner h2 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 12px;
}
.cta-banner p {
  font-size: 1.05rem;
  margin: 0 0 32px;
  opacity: 0.95;
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: var(--white);
  padding: 48px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
.footer-brand {
  grid-column: 1;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.footer-brand p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.footer-col h4 {
  font-weight: 800;
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom a {
  color: var(--accent-light);
}

/* ── FORM ── */
form {
  max-width: 600px;
  margin: 40px auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--bg);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}
.form-submit:hover {
  background: var(--primary-dark);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body { padding-top: 40px; }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 102px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: left 0.3s;
    gap: 0;
    box-shadow: var(--shadow);
    padding: 20px 0;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    display: block;
    padding: 14px 20px;
    border-radius: 0;
  }
  .nav-menu .nav-cta {
    margin: 12px 20px 0;
    border-radius: 6px;
  }
  .hamburger-label {
    display: flex;
  }
  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-badges {
    gap: 8px;
  }
  .badge { padding: 6px 12px; font-size: 0.85rem; }
  .hero-btns { gap: 8px; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .section { padding: 40px 20px; }
  .section-title { font-size: 1.6rem; }
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner h2 { font-size: 1.6rem; }
  .cta-banner p { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.4rem; }
  .card { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .btn { padding: 10px 16px; font-size: 0.85rem; }
}
