/* ═══════════════════════════════════════════════════════════
   HOME (2026-08-28 redesign) — main-site visual language:
   navy hero band, amber/blue notice boxes like the tazkira page,
   dropdown mission chooser, requirements list, 4-step cards.
═══════════════════════════════════════════════════════════ */

.hp-hero {
  background: linear-gradient(135deg, #14335c 0%, var(--navy) 55%, #0a1c33 100%);
  color: #fff;
  padding: 72px 20px 84px;
  text-align: center;
}
.hp-hero h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 12px; }
.hp-hero p { font-size: 1.1rem; opacity: .85; max-width: 720px; margin: 0 auto; }

.hp-wrap { max-width: 900px; margin: -36px auto 48px; padding: 0 20px; }

.hp-warn, .hp-info {
  background: #fff8ec;
  border-inline-start: 4px solid #d4a853;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.hp-warn b { display: block; margin-bottom: 6px; color: #7a5a12; }
.hp-warn p { color: #5c4a1e; margin: 0; }
.hp-info {
  background: #eef4fb;
  border-inline-start-color: var(--accent);
}
.hp-info p { color: #21456e; margin: 0; }

.hp-read {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  margin: 18px 0;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.hp-read:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--accent); }
.hp-read-icon {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-pale); color: var(--navy-mid);
}
.hp-read-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hp-read-body b { color: var(--navy-mid); }
.hp-read-body span { font-size: .92rem; color: var(--ink-mid); }
.hp-read-arrow { color: var(--accent); font-size: 1.2rem; }
html[dir="rtl"] .hp-read-arrow { transform: scaleX(-1); }

.hp-choose {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 30px 26px;
  margin: 24px 0;
  text-align: center;
}
.hp-choose h2 { color: var(--navy-mid); font-size: 1.35rem; margin-bottom: 6px; }
.hp-choose-sub { color: var(--ink-mid); margin-bottom: 18px; }
.hp-choose-row { display: flex; gap: 12px; max-width: 620px; margin: 0 auto; }
.hp-fixed-mission {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  text-align: start; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.hp-fixed-mission strong { color: var(--navy-mid); }
.hp-fixed-mission span { margin-top: 3px; font-size: .85rem; color: var(--ink-mid); }
.hp-choose-row select {
  flex: 1;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.hp-choose-row select:focus { border-color: var(--accent); }
.hp-start {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--navy-mid); color: #fff;
  font: inherit; font-weight: 700;
  cursor: pointer;
  transition: background .25s, transform .2s;
  white-space: nowrap; text-decoration: none;
}
.hp-start:hover:not(:disabled) { background: var(--accent); transform: translateY(-1px); }
.hp-start:disabled { opacity: .45; cursor: not-allowed; }
.hp-noscript { list-style: none; margin-top: 12px; }
.hp-noscript a { color: var(--accent); }

.hp-cond {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  margin: 24px 0;
}
.hp-cond h2 { color: var(--navy-mid); font-size: 1.2rem; margin-bottom: 12px; }
.hp-cond ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.hp-cond li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--ink);
}
.hp-cond li::before {
  content: '\2713';
  position: absolute;
  inset-inline-start: 0;
  color: #16803c;
  font-weight: 800;
}

.hp-steps { margin: 34px 0 10px; text-align: center; }
.hp-steps h2 { color: var(--navy-mid); font-size: 1.35rem; margin-bottom: 20px; }
.hp-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hp-step {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  transition: box-shadow .25s, transform .25s;
}
.hp-step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.hp-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-mid); color: #fff;
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 10px;
}
.hp-step h3 { font-size: 1rem; color: var(--navy-mid); margin-bottom: 6px; }
.hp-step p { font-size: .9rem; color: var(--ink-mid); margin: 0; }

@media (max-width: 760px) {
  .hp-hero h1 { font-size: 1.6rem; }
  .hp-choose-row { flex-direction: column; }
  .hp-cond ul { grid-template-columns: 1fr; }
  .hp-steps-grid { grid-template-columns: 1fr 1fr; }
}


/* ═══ language-notice popup (wizard step 1) — real modal overlay ═══ */
#lang-notice {
  position: fixed; inset: 0; z-index: 6000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 22, 40, .55);
  padding: 20px;
}
#lang-notice[hidden] { display: none; }
#lang-notice .modal {
  background: #fff;
  border-top: 4px solid #d4a853;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(10, 22, 40, .35);
  padding: 30px 28px 26px;
  max-width: 560px; width: 100%;
  animation: lnPop .25s ease;
}
@keyframes lnPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#lang-notice .modal p { line-height: 1.9; }
#lang-notice button {
  margin-top: 6px;
  padding: 12px 34px;
  border: 0; border-radius: 10px;
  background: var(--navy-mid); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
#lang-notice button:hover { background: var(--accent); }
