/* Fisio Prima Rehab Center — style.css */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #1976d2;
  --accent: #90caf9;
  --accent-light: #bbdefb;
  --bg: #e3f2fd;
  --bg-white: #ffffff;
  --text: #0a1929;
  --text-muted: #37474f;
  --text-light: #546e7a;
  --border: #b0bec5;
  --success: #2e7d32;
  --shadow: 0 2px 8px rgba(21,101,192,0.12);
  --shadow-lg: 0 4px 20px rgba(21,101,192,0.18);
  --radius: 10px;
  --radius-lg: 16px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 36px;
}
img { 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: #1565c0;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.demo-bar a { color: #90caf9; text-decoration: underline; }
.demo-bar a:hover { color: #fff; }

/* Typography */
h1 { font-size: 1.8rem; line-height: 1.2; }
h2 { font-size: 1.4rem; line-height: 1.3; }
h3 { font-size: 1.1rem; line-height: 1.35; }
p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

/* Utilities */
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  text-align: center;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-lg { padding: 13px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; display: block; }

/* Header / Nav */
header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 36px;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text span { color: var(--primary); display: block; font-size: 0.7rem; font-weight: 400; color: var(--text-light); }

/* Checkbox hack nav */
#nav-toggle { display: none; }
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav-toggle-label span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
#nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav ul {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 96px; left: 0; right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  box-shadow: var(--shadow);
}
#nav-toggle:checked ~ nav ul { display: flex; }
nav ul li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
nav ul li a:hover, nav ul li a.active { color: var(--primary); background: var(--bg); text-decoration: none; }
nav ul li a.active { font-weight: 700; border-left: 3px solid var(--primary); }

/* Section layout */
section { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { color: var(--primary-dark); margin-bottom: 8px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(144,202,249,0.12);
  border-radius: 50%;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.hero-badge {
  background: rgba(144,202,249,0.25);
  color: var(--accent);
  border: 1px solid rgba(144,202,249,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.hero h1 { font-size: 2rem; line-height: 1.2; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,0.88); font-size: 1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.hero-stat .lbl { font-size: 0.72rem; color: rgba(255,255,255,0.75); }

/* SVG illustration area */
.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.fisio-svg { width: 240px; height: auto; }

/* Cards grid */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent-light);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.card h3 { margin-bottom: 6px; color: var(--primary-dark); }
.card p { font-size: 0.88rem; color: var(--text-muted); }

/* Service list */
.service-list { display: flex; flex-direction: column; gap: 20px; }
.service-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.service-item h3 { color: var(--primary-dark); margin-bottom: 8px; }
.service-item ul { padding-left: 4px; }
.service-item ul li {
  padding: 4px 0 4px 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg);
}
.service-item ul li:last-child { border-bottom: none; }
.service-item ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Tarif badge */
.tarif {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 10px;
}
.tarif-paket {
  background: var(--success);
}

/* Doctor cards */
.dokter-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.dokter-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent-light);
  text-align: center;
}
.dokter-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}
.dokter-card h3 { color: var(--primary-dark); font-size: 1rem; margin-bottom: 2px; }
.dokter-card .gelar { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.dokter-card .spesialis {
  display: inline-block;
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.cert-list { text-align: left; margin-top: 10px; }
.cert-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 3px 0 3px 18px;
  position: relative;
}
.cert-list li::before {
  content: '🎓';
  position: absolute; left: 0;
  font-size: 0.75rem;
}

/* Jadwal table */
.jadwal-wrap { overflow-x: auto; }
.jadwal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.jadwal-table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.8rem;
}
.jadwal-table td {
  padding: 8px;
  border-bottom: 1px solid var(--bg);
  text-align: center;
  vertical-align: top;
  font-size: 0.8rem;
}
.jadwal-table tr:hover td { background: var(--bg); }
.terapis-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-dark);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 1px 0;
}
.sesi-waktu { font-size: 0.7rem; color: var(--text-light); display: block; }

/* Form */
.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.form-card h3 { color: var(--primary-dark); margin-bottom: 18px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* Info boxes */
.info-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.info-box h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.info-box p, .info-box li { font-size: 0.9rem; color: var(--text-muted); }
.info-box ul { padding-left: 4px; }
.info-box ul li {
  padding: 4px 0 4px 18px;
  position: relative;
}
.info-box ul li::before {
  content: '•';
  position: absolute; left: 6px;
  color: var(--primary);
  font-weight: 700;
}

/* Peta CSS */
.peta-css {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 50%, #c8e6c9 100%);
  border-radius: var(--radius-lg);
  height: 180px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.peta-css::before {
  content: '';
  position: absolute;
  top: 40%; left: 20%;
  width: 60%; height: 6px;
  background: #fff;
  border-radius: 3px;
}
.peta-css::after {
  content: '';
  position: absolute;
  top: 20%; left: 45%;
  width: 6px; height: 60%;
  background: #fff;
  border-radius: 3px;
}
.peta-pin {
  position: absolute;
  top: 30%; left: 42%;
  z-index: 2;
}
.peta-label {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  background: rgba(21,101,192,0.9);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* BPJS section */
.bpjs-banner {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.bpjs-banner h3 { color: #a5d6a7; margin-bottom: 6px; }
.bpjs-banner p { font-size: 0.88rem; color: rgba(255,255,255,0.85); }

/* Feature chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Peralatan */
.alat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alat-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent-light);
}
.alat-item .alat-icon {
  width: 44px; height: 44px;
  margin: 0 auto 8px;
  background: var(--bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.alat-item h4 { font-size: 0.85rem; color: var(--primary-dark); margin-bottom: 3px; }
.alat-item p { font-size: 0.75rem; color: var(--text-light); }

/* Testimonial */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testi-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.testi-text { font-size: 0.9rem; color: var(--text); font-style: italic; margin-bottom: 10px; }
.testi-author { font-size: 0.82rem; font-weight: 600; color: var(--primary-dark); }
.testi-cond { font-size: 0.78rem; color: var(--text-light); }
.stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 6px; }

/* Proses steps */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.step-body h4 { color: var(--primary-dark); margin-bottom: 3px; }
.step-body p { font-size: 0.85rem; color: var(--text-muted); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 10px; font-size: 1.4rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.cta-banner .btn-accent { font-size: 1rem; padding: 12px 32px; }

/* Footer */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 32px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.footer-col p, .footer-col li { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.footer-col ul li { padding-left: 0; }
.footer-col a { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* Responsive ≥ 640px */
@media (min-width: 640px) {
  h1 { font-size: 2.2rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .dokter-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-content { flex: 1; }
  .hero-visual { width: auto; }
}

@media (min-width: 900px) {
  h1 { font-size: 2.6rem; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .dokter-grid { grid-template-columns: repeat(4, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  nav ul {
    display: flex !important;
    flex-direction: row;
    position: static;
    border: none;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  nav ul li a { padding: 6px 12px; border-radius: 6px; }
  nav ul li a.active { border-left: none; border-bottom: 2px solid var(--primary); border-radius: 0; }
  .nav-toggle-label { display: none; }
}
