/* ═══════════════════════════════════════════════════════════
   HOME + shared page band — mfa.gov.af look (2026-09-10):
   navy band with the flower lattice and a gold rule, white
   10px cards with the soft 0 0 10px shadow, gold step numbers.
═══════════════════════════════════════════════════════════ */

/* ── navy title band (home hero + every inner page) ──────── */
.hp-hero, .page-band {
  position: relative;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
}
.hp-hero::after, .page-band::after {
  content: '';
  position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-br), transparent);
  opacity: .8;
}
.hp-hero { padding: 64px 20px 78px; }
.hp-hero-inner { max-width: 820px; margin: 0 auto; }
.hp-hero h1 { font-size: 2.35rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hp-hero p { font-size: 1.12rem; color: rgba(255,255,255,.88); max-width: 720px; margin: 0 auto; }
.hp-hero-kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 14px;
  border: 1px solid rgba(212,179,90,.55); border-radius: 999px;
  color: var(--gold-br); font-size: .9rem; letter-spacing: .2px;
  background: rgba(15,42,94,.35);
}

.page-band { padding: 26px 20px 30px; }
.page-band-inner { max-width: 1080px; margin: 0 auto; }
.page-band-title { font-size: 1.45rem; font-weight: 700; margin: 0; line-height: 1.4; }
.page-band-sub { margin: 4px 0 0; color: var(--gold-br); font-size: 1rem; font-weight: 700; }

/* the home page owns the full width: the hero band runs edge to edge */
.page--home { max-width: none; padding: 0 0 2rem; }

/* ── content column ──────────────────────────────────────── */
.hp-wrap { max-width: 940px; margin: -40px auto 56px; padding: 0 20px; position: relative; z-index: 1; }

.hp-warn, .hp-info {
  background: var(--gold-l);
  border: 1px solid #ead9a8;
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.hp-warn b { display: block; margin-bottom: 6px; color: var(--gold-d); }
.hp-warn p { color: #5c4a1e; margin: 0; }
.hp-info { background: var(--accent-pale); border-color: #cfdaf0; border-inline-start-color: var(--navy); }
.hp-info p { color: var(--navy-mid); margin: 0; }

.hp-read {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: 1px 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(--gold); color: var(--ink); }
.hp-read-icon {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-pale); color: var(--navy);
  border: 1px solid #cfdaf0;
}
.hp-read-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hp-read-body b { color: var(--navy); }
.hp-read-body span { font-size: .92rem; color: var(--ink-mid); }
.hp-read-arrow { color: var(--gold); font-size: 1.2rem; }
html[dir="rtl"] .hp-read-arrow { transform: scaleX(-1); }

/* mission chooser — the main white card with the gold top rule */
.hp-choose {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
  margin: 24px 0;
  text-align: center;
}
.hp-choose h2 { color: var(--navy); font-size: 1.4rem; margin-bottom: 6px; }
.hp-choose-sub { color: var(--ink-mid); margin-bottom: 18px; }
.hp-choose-row { display: flex; gap: 12px; max-width: 640px; margin: 0 auto; }
.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(--navy); outline: 3px solid var(--accent-pale); outline-offset: 0; }
.hp-start {
  padding: 13px 32px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--gold); color: #fff;
  font: inherit; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(174,137,37,.3);
  transition: background .25s, transform .2s;
  white-space: nowrap;
}
.hp-start:hover:not(:disabled) { background: var(--gold-d); transform: translateY(-1px); }
.hp-start:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.hp-noscript { list-style: none; margin-top: 12px; }
.hp-noscript a { color: var(--navy); }

.hp-cond {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  margin: 24px 0;
}
.hp-cond h2 { color: var(--navy); 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: var(--gold); font-weight: 800;
}

/* four-step strip — gold numbered circles like the MFA service pages */
.hp-steps { margin: 34px 0 10px; text-align: center; }
.hp-steps h2 { color: var(--navy); font-size: 1.4rem; margin-bottom: 20px; position: relative; display: inline-block; padding-bottom: 8px; }
.hp-steps h2::after {
  content: ''; position: absolute; inset-inline: 30%; bottom: 0; height: 3px;
  background: var(--gold); border-radius: 3px;
}
.hp-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hp-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 14px 20px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.hp-step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gold); }
.hp-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #fff;
  font-weight: 800; font-size: 1.15rem;
  margin-bottom: 10px;
  box-shadow: 0 0 0 4px var(--gold-l);
}
.hp-step h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; }
.hp-step p { font-size: .92rem; color: var(--ink-mid); margin: 0; }

.home-links { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

@media (max-width: 760px) {
  .hp-hero { padding: 44px 16px 60px; }
  .hp-hero h1 { font-size: 1.6rem; }
  .hp-hero p { font-size: 1rem; }
  .page-band { padding: 18px 16px 22px; }
  .page-band-title { font-size: 1.2rem; }
  .hp-wrap { margin-top: -30px; }
  .hp-choose { padding: 24px 18px; }
  .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) — modal overlay ═══ */
#lang-notice {
  position: fixed; inset: 0; z-index: 6000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 42, 94, .55);
  padding: 20px;
}
#lang-notice[hidden] { display: none; }
#lang-notice .modal {
  background: #fff;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(15, 42, 94, .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: var(--radius-sm);
  background: var(--navy); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
#lang-notice button:hover { background: var(--navy-mid); }
