/*
 * Components used by the content pages (/tentang-kami, /faq, /perbandingan, /glosarium).
 * Loaded after document.css, which supplies the navbar, hero, footer and prose shell.
 */

/* ===== COMPARISON TABLE ===== */

.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cmp-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.cmp-table th,
.cmp-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.cmp-table thead th {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.cmp-table tbody tr:hover { background: #f8fdfa; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table th[scope="row"] { font-weight: 600; color: var(--ink); }

.cmp-yes,
.cmp-no,
.cmp-partial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
}

.cmp-yes { color: var(--green-500); }
.cmp-no { color: #b42318; }
.cmp-partial { color: #9a6700; }

.cmp-highlight { background: #f2faf6; }

.cmp-note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
}

/* ===== PACKAGE CARDS ===== */

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.pkg-card {
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg-card.is-featured {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.pkg-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--green-dark);
}

.pkg-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.pkg-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

.pkg-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-mid);
}

.pkg-card ul li::before {
  content: '✓';
  color: var(--green-500);
  font-weight: 700;
  margin-right: 7px;
}

/* ===== FAQ ACCORDION ===== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--green-200);
  box-shadow: var(--shadow-sm);
}

.faq-item > summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--green-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--green);
  transition: transform .2s;
}

.faq-item[open] > summary::after {
  content: '−';
}

.faq-item > summary:hover { background: var(--green-pale); }

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-mid);
}

.faq-answer a { color: var(--green-600); }

/* ===== GLOSSARY ===== */

.gloss-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.gloss-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.gloss-search input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}

.gloss-search svg { width: 18px; height: 18px; color: var(--text-light); flex-shrink: 0; }

.gloss-count {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

.gloss-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 22px;
}

.gloss-alpha button {
  min-width: 32px;
  padding: 5px 9px;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}

.gloss-alpha button:hover { background: var(--green-pale); }
.gloss-alpha button.is-active { background: var(--green); color: #fff; border-color: var(--green); }

.gloss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.gloss-term {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.gloss-term dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--green-dark);
  margin-bottom: 5px;
}

.gloss-term dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
}

.gloss-term dd a { color: var(--green-600); }

.gloss-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

/* ===== ABOUT / STATS ===== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.1;
}

.stat-card span {
  font-size: 13px;
  color: var(--text-light);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--green-dark);
  margin-bottom: 7px;
}

.value-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
}

.timeline {
  list-style: none;
  border-left: 2px solid var(--green-100);
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline li { position: relative; }

.timeline li::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--green-100);
}

.timeline strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--green-dark);
  font-size: 15px;
}

.timeline p { font-size: 14px; color: var(--ink-mid); line-height: 1.7; }

/* ===== CONTACT PAGE ===== */

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}

.contact-channel:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
}

.contact-channel-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-600);
}

.contact-channel strong {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--green-dark);
}

.contact-channel span:last-child {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mid);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.office-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.office-city {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 4px;
}

.office-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.office-card address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
}

.office-map {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-600);
  text-decoration: none;
}

.office-map:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .gloss-grid { grid-template-columns: 1fr; }
  .cmp-table { font-size: 13px; }
  .contact-channel-grid,
  .office-grid { grid-template-columns: 1fr; }
}
