/* ==========================================================================
   Kompas Fit - Design System: "Gerak Tropis"
   pages.css: Hero, Quiz, Calculator, PAR-Q, Booking, Blog & Legal Layouts
   ========================================================================== */

/* --- HERO SECTION (index.html) --- */
.hero-section {
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--sand);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.compass-visual-wrap {
  width: min(320px, 80vw);
  height: min(320px, 80vw);
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-subtle);
  border: 4px solid var(--white);
}

.compass-svg {
  width: 85%;
  height: 85%;
}

#hero-compass-needle {
  transform-origin: center;
  transition: transform 0.1s linear;
}

/* --- Section Headers --- */
.section-padding {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head.centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- Bento "Cara Kerja" --- */
.step-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  opacity: 0.25;
  margin-bottom: 0.5rem;
}

/* --- Paket & Layanan Cards --- */
.package-card {
  display: flex;
  flex-direction: column;
}

.package-card.selected-card {
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 4px rgba(184, 240, 74, 0.45);
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.package-price-wrap {
  margin-bottom: 1rem;
}

.price-val {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.package-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.feature-list li {
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink);
}

.feature-list svg {
  color: #2e7d32;
  flex-shrink: 0;
  margin-top: 2px;
}

.not-included-list {
  list-style: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.not-included-list li {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- KUIS LEVEL (kuis.html) --- */
.quiz-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--sand);
  border-radius: var(--radius-pill);
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: var(--lime);
  width: 12.5%;
  transition: width 0.3s ease;
}

.quiz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--line);
}

.quiz-question-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.quiz-question-title {
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.quiz-opt-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.quiz-opt-btn:hover {
  background: var(--sand);
  border-color: var(--ink);
  transform: translateX(4px);
}

.quiz-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--line);
  text-align: center;
}

/* --- KALKULATOR (kalkulator.html) --- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-results-box {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line);
}

.calc-stat-metric {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  display: block;
}

.stat-val {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--ink);
}

.meal-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.meal-row:last-child {
  border-bottom: none;
}

/* --- CEK KESIAPAN / PAR-Q (kesiapan.html) --- */
.parq-container {
  max-width: 780px;
  margin: 0 auto;
}

.parq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .parq-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.parq-q-text {
  font-weight: 600;
  font-size: 0.98rem;
  flex: 1;
}

.parq-toggles {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.parq-btn {
  min-width: 80px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.parq-btn.selected-no {
  background: #e6f9d5;
  border-color: #48bb78;
  color: #1e5e15;
}

.parq-btn.selected-yes {
  background: #ffe8e8;
  border-color: #f56565;
  color: #a81c1c;
}

/* --- JADWAL & BOOKING (jadwal.html) --- */
.days-scroll-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.day-chip {
  flex: 0 0 auto;
  min-width: 90px;
  padding: 0.8rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.2s ease;
}

.day-chip.selected {
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 42, 34, 0.1);
}

.day-chip.day-blocked {
  opacity: 0.45;
  cursor: not-allowed;
  background: #eaeaea;
}

.day-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.day-chip.selected .day-name {
  color: var(--ink);
}

.day-num {
  font-size: 1rem;
  font-weight: 800;
}

.day-tag {
  font-size: 0.7rem;
  color: #999;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.slot-chip {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.slot-chip.selected {
  background: var(--lime);
  border-color: var(--ink);
}

.slot-chip.slot-booked {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f0f0f0;
}

.slot-time { font-size: 1rem; }
.slot-tz { font-size: 0.75rem; color: var(--muted); }
.slot-chip.selected .slot-tz { color: var(--ink); }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.8rem 0;
}

/* --- BLOG & ARTIKEL (blog/) --- */
.article-header {
  margin-bottom: 2.5rem;
  max-width: 800px;
}

.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-body {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.exercise-diagram-box {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
  text-align: center;
}

.sources-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* --- FAQ ACCORDION (faq.html) --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

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

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--ink);
  line-height: 1.6;
}

/* Print styles for PAR-Q */
@media print {
  .site-header, .site-footer, .floating-wa-btn, .cookie-banner, .btn-print, .btn-wa-share {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .bento-card, .parq-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
