/* =========================================================
   journey.css — VioLev "Journey" section (client-facing)

   Journey's job: a prospective client deciding whether to work with
   VioLev. Built on the shared single-screen fit-to-viewport shell +
   portrait gate (same as the home hero, History, Adventure) — but this
   is where Journey DIVERGES from history.css: a 2×2 grid of category
   tiles + 2 action buttons, each tile opening an in-DOM modal.

   Modal mechanic (Invisible Friction — works with JS OFF, nothing to
   fail): panels are revealed by :target (pure CSS, anchor-driven). JS
   layers on top as enhancement — intercepts the clicks (no hash
   pollution), focus-trap, Escape-to-close, restores focus. CSS shows a
   panel on EITHER :target OR .is-open.

   Bones at rest, violet on interaction — the house thesis.
   ========================================================= */

/* ---- fit-to-viewport shell: one screen, footer pinned, no scroll by FIT ---- */
body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.site-footer { flex: 0 0 auto; }

/* ---- the stage: fills main; content pulled UP (top-aligned), padded just
        enough to clear the nav island so the grid gets the reclaimed height ---- */
.section-stage {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: clamp(10px, 1.6vh, 16px); text-align: center;
  padding: clamp(80px, 9vh, 96px) clamp(24px, 6vw, 64px) clamp(20px, 3vh, 30px);
}
.section-stage .label { color: var(--text-muted); }
.section-stage h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.9rem); color: var(--mist); letter-spacing: -.015em;
}
.section-stage .lead {
  max-width: 54ch; color: var(--text-secondary);
  font-size: clamp(.95rem, 1.3vw, 1.08rem); line-height: 1.6;
}

/* ---- the 2×2 category grid: fills the reclaimed height; rows split evenly
        so the four boxes grow to use the space below the headline ---- */
.journey-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr;
  gap: clamp(14px, 1.8vw, 22px);
  width: 100%; max-width: 760px;
  flex: 1 1 auto; min-height: 0;
  margin-top: clamp(8px, 1.8vh, 18px);
}
.journey-card {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  text-align: left; padding: clamp(22px, 3vh, 36px) clamp(22px, 2.4vw, 34px);
  background: var(--bg-panel); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md); cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast),
              box-shadow var(--transition-fast), background var(--transition-fast);
}
.journey-card:hover, .journey-card:focus-visible {
  transform: translateY(-3px); border-color: var(--border-active);
  box-shadow: var(--glow-violet-soft); background: rgba(24, 16, 41, 0.82);
}
.journey-card h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--mist); letter-spacing: -.01em;
}
.journey-card p {
  font-size: clamp(.86rem, 1.2vw, .98rem); color: var(--text-secondary); line-height: 1.5;
}
.journey-card .open-hint {
  margin-top: 4px; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-muted);
  transition: color var(--transition-fast);
}
.journey-card:hover .open-hint, .journey-card:focus-visible .open-hint { color: var(--violet-bright); }

/* ---- the two action buttons (navigate, not modal-read) ---- */
.journey-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: clamp(6px, 1.4vh, 14px);
}

/* =========================================================
   MODALS — in-DOM panels; :target (no-JS) OR .is-open (JS)
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 3000;        /* above the nav island (--z-nav 1200) */
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vh, 48px) clamp(14px, 4vw, 40px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
}
.modal:target, .modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
body.modal-open { overflow: hidden; }

.modal-backdrop {
  position: absolute; inset: 0; background: rgba(4, 2, 9, 0.74);
  backdrop-filter: blur(3px); cursor: pointer;
}
.modal-panel {
  position: relative; width: 100%; max-width: 640px; max-height: 84vh;
  display: flex; flex-direction: column;
  background: var(--bg-panel-strong); border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.85), var(--glow-violet-soft);
  transform: translateY(14px) scale(.985);
  transition: transform var(--transition-medium);
}
.modal:target .modal-panel, .modal.is-open .modal-panel { transform: none; }

.modal-head {
  flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: clamp(22px, 3vh, 30px) clamp(22px, 3vw, 32px) 14px;
  border-bottom: 1px solid var(--border-secondary);
}
.modal-head .label { display: block; margin-bottom: 8px; }
.modal-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--mist); letter-spacing: -.015em;
}
.modal-close {
  flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-primary); border-radius: var(--radius-sm);
  color: var(--haze); font-size: 1.2rem; line-height: 1; cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.modal-close:hover, .modal-close:focus-visible { color: var(--mist); border-color: var(--border-active); background: rgba(139,92,255,.10); }

.modal-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: clamp(18px, 2.6vh, 26px) clamp(22px, 3vw, 32px) clamp(24px, 3vh, 32px);
  -webkit-overflow-scrolling: touch;
}
.modal-body > * + * { margin-top: 18px; }
.modal-intro { color: var(--text-secondary); font-size: .98rem; line-height: 1.65; }

/* ---- Process: numbered phases (a real sequence, so it's numbered) ---- */
.phase { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; }
.phase-num {
  font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  color: var(--violet-bright); padding-top: 2px;
}
.phase h3 { font-family: var(--display); font-size: 1.04rem; font-weight: 600; color: var(--mist); margin-bottom: 4px; }
.phase p  { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- Pricing ---- */
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-secondary);
}
.price-row .pr-name { color: var(--mist); font-size: .96rem; }
.price-row .pr-name small { display: block; color: var(--text-muted); font-size: .8rem; margin-top: 3px; line-height: 1.45; }
.price-row .pr-fig {
  flex: 0 0 auto; font-family: var(--mono); font-size: .92rem; color: var(--violet-bright); white-space: nowrap;
}
.price-row .pr-fig.free { color: var(--cyan); }
.price-note {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--text-muted);
  line-height: 1.6; padding-top: 4px;
}

/* ---- Reason / FAQ shared list ---- */
.qa h3 { font-family: var(--display); font-size: 1.02rem; font-weight: 600; color: var(--mist); margin-bottom: 5px; }
.qa p  { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* =========================================================
   CONTACT FORM modal — distinct from read panels (it's an action)
   ========================================================= */
.modal--form .modal-panel { border-color: var(--violet-deep); }
.cform { display: flex; flex-direction: column; gap: 14px; }
.cfield { display: flex; flex-direction: column; gap: 6px; }
.cfield label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--haze);
}
.cfield label .opt { color: var(--text-muted); letter-spacing: .06em; }
.cfield input, .cfield textarea {
  width: 100%; font-family: var(--body); font-size: .95rem; color: var(--mist);
  background: rgba(6,4,12,.6); border: 1px solid var(--border-primary); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.cfield textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.cfield input:focus, .cfield textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: var(--glow-violet-soft);
}
.cfield input::placeholder, .cfield textarea::placeholder { color: rgba(185,175,212,.4); }
.cform .btn-primary { align-self: flex-start; margin-top: 4px; }

/* honeypot: off-screen, never seen by a human; a filled value = a bot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* form status banners (success / error from the handler redirect) */
.form-status { border-radius: var(--radius-sm); padding: 14px 16px; font-size: .92rem; line-height: 1.55; }
.form-status.ok  { border: 1px solid var(--border-active); background: rgba(139,92,255,.08); color: var(--mist); }
.form-status.err { border: 1px solid rgba(255,120,120,.4); background: rgba(255,80,80,.07); color: var(--mist); }
.form-status .label { display:block; margin-bottom: 6px; color: var(--violet-bright); }
.form-status.err .label { color: #ff9a9a; }

/* ---- portrait gate (phones + tablets): rotate-to-landscape wall ---- */
.rotate-nag { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  .rotate-nag {
    display: flex; position: fixed; inset: 0; z-index: 9999;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 18px; padding: 40px; text-align: center; background: var(--void);
  }
  .rotate-nag-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 7vw, 2rem); color: var(--mist); }
  .rotate-nag-sub  { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--haze); max-width: 32ch; line-height: 1.7; }
}

/* ---- narrow landscape (small phones): keep 2×2 but ease the type ---- */
@media (max-width: 560px) {
  .journey-grid { gap: 10px; }
  .journey-card { padding: 14px 16px; }
}
