/* Additions for sub-pages (wasiyyah, quiz, landlord). Loaded after styles.css */

.lang-switch {
  display: inline-flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px;
  margin-left: auto;
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.lang-switch button.active {
  background: #fff;
  color: #0a6b3b;
  opacity: 1;
}
.lang-switch button:hover { opacity: 1; }

@media (max-width: 720px) {
  .lang-switch { margin-top: 8px; margin-left: 0; }
}

[dir="rtl"] body { font-family: "Inter", "Noto Naskh Arabic", system-ui, sans-serif; }
[dir="rtl"] .hero-copy, [dir="rtl"] .section-head, [dir="rtl"] .container-narrow { text-align: right; }

.subpage-hero {
  background: linear-gradient(135deg, #0a6b3b 0%, #074d2a 60%, #0c1611 100%);
  color: #fafaf7;
  padding: 80px 0 60px;
  position: relative;
}
.subpage-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 12px 0 16px; line-height: 1.1; }
.subpage-hero .lead { font-size: 18px; max-width: 640px; opacity: 0.92; }
.subpage-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: 999px;
}

.subpage-nav {
  background: rgba(0,0,0,0.18);
  padding: 14px 0;
}
.subpage-nav .container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.subpage-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.subpage-nav a:hover { color: #fff; }
.subpage-nav .brand { color: #fff; font-weight: 800; }

/* Quiz */
.quiz-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e3e0d8;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(10,55,30,0.06);
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h3 { margin-top: 0; font-size: 22px; }
.quiz-options {
  display: grid;
  gap: 10px;
  margin: 18px 0 6px;
}
.quiz-options button {
  background: #f5f3ec;
  border: 1.5px solid #e3e0d8;
  color: #1a1a1a;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: all 0.15s ease;
}
.quiz-options button:hover {
  border-color: #0a6b3b;
  background: #eef7f1;
}
.quiz-progress {
  height: 6px;
  background: #eee8db;
  border-radius: 999px;
  margin-bottom: 22px;
  overflow: hidden;
}
.quiz-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #0a6b3b, #1a9c5a);
  width: 0%;
  transition: width 0.3s ease;
}
.quiz-result {
  text-align: center;
  padding: 16px 0 8px;
}
.quiz-result .score-pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef7f1;
  color: #0a6b3b;
  margin-bottom: 12px;
}
.quiz-result.warn .score-pill { background: #fff4dd; color: #8a5a00; }
.quiz-result.danger .score-pill { background: #fee2e2; color: #991b1b; }
.quiz-result h3 { font-size: 26px; margin: 8px 0 10px; }

/* Wasiyyah */
.wasiyyah-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0 8px;
}
.wasiyyah-feature .item {
  background: #f5f3ec;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #e3e0d8;
}
.wasiyyah-feature .item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.wasiyyah-feature .item span { color: #555; font-size: 14px; }

/* Landlord */
.landlord-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.landlord-stats .stat {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e3e0d8;
  text-align: center;
}
.landlord-stats .stat strong {
  display: block;
  font-size: 30px;
  color: #0a6b3b;
  font-weight: 800;
  margin-bottom: 4px;
}
.landlord-stats .stat span { font-size: 13px; color: #555; }

/* Hidden helper */
.hidden { display: none !important; }

/* Final consultation form on result */
.followup-form {
  background: #f5f3ec;
  padding: 24px;
  border-radius: 14px;
  margin-top: 22px;
  border: 1px solid #e3e0d8;
}
