/* Tanah Kebun Hijau Asri — style.css */
:root {
  --primary: #558b2f;
  --primary-dark: #33691e;
  --primary-light: #7cb342;
  --accent: #dce775;
  --accent-dark: #c6cc00;
  --bg: #f9fbe7;
  --bg-card: #ffffff;
  --text: #1a2200;
  --text-muted: #4a5e00;
  --text-light: #6a7c00;
  --border: #c5d890;
  --shadow: 0 2px 12px rgba(85,139,47,0.12);
  --radius: 10px;
  --font: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* RESET */
*, *::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: 15px;
  line-height: 1.6;
  padding-top: 37px;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* DEMO BAR */
.demo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #558b2f;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  line-height: 1.3;
}
.demo-bar a { color: #dce775; font-weight: 600; }
.demo-bar a:hover { text-decoration: underline; }

/* HEADER / NAV */
header {
  background: var(--primary-dark);
  position: sticky;
  top: 37px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.logo svg { flex-shrink: 0; }
.logo span { line-height: 1.2; }
.logo .sub { font-size: 0.72rem; font-weight: 400; color: var(--accent); display: block; }

/* CHECKBOX NAV HACK */
#nav-toggle { display: none; }
.nav-label {
  display: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-label span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
nav ul {
  display: flex;
  gap: 0.2rem;
}
nav ul li a {
  color: rgba(255,255,255,0.88);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--primary-light);
  color: #fff;
  text-decoration: none;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 3.5rem 1rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 800; margin-bottom: 0.75rem; line-height: 1.2; }
.hero p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 1.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-svg { margin: 1.5rem auto; max-width: 480px; }
.hero-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.18); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-green { background: var(--primary); color: #fff; }
.btn-green:hover { background: var(--primary-dark); }
.btn-wa { background: #25d366; color: #fff; }

/* SECTION COMMONS */
.section { padding: 3rem 1rem; }
.section-alt { background: #fff; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.divider {
  width: 50px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.5rem auto 2rem;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(85,139,47,0.18); }
.card-thumb {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.card-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.card-meta { font-size: 0.82rem; color: var(--text-muted); }
.card-meta span { display: inline-block; margin-right: 0.7rem; }
.card-footer { padding: 0.7rem 1.1rem; border-top: 1px solid var(--border); display: flex; gap: 0.5rem; }

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.feature-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.feature-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-text h4 { font-size: 0.9rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.2rem; }
.feature-text p { font-size: 0.82rem; color: var(--text-muted); }

/* LISTING TABLE */
.listing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.listing-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.listing-card:hover { transform: translateY(-2px); }
.listing-thumb {
  width: 70px; height: 70px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
}
.listing-info {}
.listing-id { font-size: 0.72rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; }
.listing-name { font-size: 0.97rem; font-weight: 700; color: var(--text); }
.listing-price { font-size: 0.95rem; font-weight: 800; color: var(--primary); }
.listing-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}
.chip-green { background: #e8f5e9; color: #2e7d32; }
.chip-yellow { background: #fff9c4; color: #827717; }
.chip-blue { background: #e3f2fd; color: #1565c0; }
.chip-orange { background: #fff3e0; color: #e65100; }
.listing-actions { margin-top: 0.5rem; display: flex; gap: 0.4rem; }
.listing-cards-list { display: flex; flex-direction: column; gap: 1rem; }

/* DETAIL PAGE */
.detail-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 2rem 1rem 1.5rem;
}
.detail-code { font-size: 0.8rem; opacity: 0.75; margin-bottom: 0.3rem; }
.detail-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.detail-price { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.detail-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.detail-card-header {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.detail-card-body { padding: 1rem; }
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0f4e0;
  font-size: 0.88rem;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.info-value { font-weight: 600; color: var(--text); text-align: right; max-width: 55%; }
.survey-thumb {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7, #81c784);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  margin-bottom: 0.8rem;
}
.batas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.batas-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  border: 1px solid var(--border);
}
.batas-arah { font-size: 0.72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.batas-desc { font-size: 0.82rem; color: var(--text); }

/* SIMULASI KPR */
.calc-section {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.calc-title { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.3rem; }
input[type="number"], input[type="text"], input[type="email"], input[type="tel"],
select, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); background: #fff; }
textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.result-box {
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 1rem;
  margin-top: 1rem;
}
.result-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border);
}
.result-row:last-child { border-bottom: none; }
.result-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  padding: 0.6rem 0 0;
  margin-top: 0.3rem;
  border-top: 2px solid var(--primary);
}
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}
.roi-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.8rem 0.5rem;
  text-align: center;
}
.roi-year { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.roi-value { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.roi-label { font-size: 0.72rem; color: var(--text-light); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 0.75rem; }
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.7rem;
  text-align: left;
  font-size: 0.8rem;
}
.comparison-table td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--border); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--bg); }
.highlight-row td { background: #e8f5e9 !important; font-weight: 700; color: var(--primary-dark); }

/* KONTAK */
.agent-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.agent-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.agent-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.agent-title { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.agent-contacts { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border-radius: 7px;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
}
.contact-icon {
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.map-box {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 50%, #81c784 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
}

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center;
}
.cta-band h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-band p { opacity: 0.88; margin-bottom: 1.25rem; font-size: 0.95rem; }
.cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}
.stat-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }

/* FOOTER */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 2rem 1rem 1.2rem;
  text-align: center;
  font-size: 0.85rem;
}
footer .footer-logo { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
footer .footer-tagline { color: var(--accent); font-size: 0.8rem; margin-bottom: 1rem; }
footer .footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: center; margin-bottom: 1rem; }
footer .footer-links a { color: rgba(255,255,255,0.7); font-size: 0.83rem; }
footer .footer-links a:hover { color: var(--accent); }
footer .footer-copy { color: rgba(255,255,255,0.45); font-size: 0.78rem; margin-top: 0.5rem; }

/* BREADCRUMB */
.breadcrumb {
  background: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 0.3rem; }

/* PAGE HERO (non-home) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}
.page-hero h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.page-hero p { opacity: 0.88; font-size: 0.92rem; }

/* NOTICE BOXES */
.notice {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #5d4037;
  margin-bottom: 1rem;
}
.notice-green {
  background: #e8f5e9;
  border-left-color: #4caf50;
  color: #1b5e20;
}

/* RESPONSIVE */
@media (min-width: 480px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .listing-card { grid-template-columns: 90px 1fr auto; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .roi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: 2fr 1fr; }
}

/* MOBILE NAV */
@media (max-width: 767px) {
  .nav-label { display: flex; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(37px + 58px);
    left: 0; right: 0;
    background: var(--primary-dark);
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 200;
    gap: 0.2rem;
  }
  #nav-toggle:checked ~ nav ul { display: flex; }
  nav ul li a { display: block; padding: 0.6rem 1rem; font-size: 0.92rem; border-radius: 6px; }
  .header-inner { position: relative; }
  .features-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .nav-label { display: none; }
  nav ul { display: flex !important; }
}
