/* ═══════════════════════════════════════════════════════════
   IAN KENYON — project.css
   Shared styles for all project pages
═══════════════════════════════════════════════════════════ */

/* ── Project Hero ──────────────────────────────────────── */
.project-hero {
  padding-top: calc(var(--nav-h) + var(--space-12));
  padding-bottom: var(--space-16);
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--space-8);
  transition: color var(--dur-fast) var(--ease);
}
.project-back:hover { color: var(--gold); }

.project-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  align-items: center;
}

.project-hero-meta { margin-bottom: var(--space-4); }

.project-hero-title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: var(--charcoal);
}

.project-hero-desc {
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.project-hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.project-visual-placeholder {
  width: 200px;
  height: 200px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cream-dark);
}
.project-visual-placeholder svg { width: 160px; height: 160px; }

/* ── Project Sections ──────────────────────────────────── */
.project-section { padding-block: var(--space-20); }
.project-section--alt {
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.project-section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

.project-prose { max-width: 680px; }

.project-lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

.project-prose p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

/* ── How It Works ──────────────────────────────────────── */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.how-step {
  padding: var(--space-6);
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.how-step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.how-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.how-step-title { font-size: var(--text-base); font-weight: 600; color: var(--charcoal); margin-bottom: var(--space-3); }
.how-step-desc { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; }

/* ── Video placeholder ─────────────────────────────────── */
.video-placeholder {
  background: var(--cream);
  border: 1.5px dashed var(--cream-dark);
  border-radius: 12px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  padding: var(--space-12);
}
.video-placeholder-text { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--charcoal); }
.video-placeholder-sub { font-size: var(--text-sm); color: var(--muted); }

/* ── Build Stages ──────────────────────────────────────── */
.stages-trail {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: var(--space-8);
}
.stages-trail::before {
  content: '';
  position: absolute;
  left: 11px; top: 12px; bottom: 12px;
  width: 1.5px;
  background: var(--cream-dark);
}

.stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  padding-bottom: var(--space-8);
  position: relative;
}

.stage-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--cream-dark);
  background: var(--cream);
  flex-shrink: 0;
  margin-left: calc(-1 * var(--space-8));
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.stage--done .stage-dot { background: var(--gold); border-color: var(--gold); }
.stage--done .stage-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: translate(-50%, -60%) rotate(45deg);
}

.stage--current .stage-dot {
  background: var(--white);
  border-color: var(--gold);
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(200,146,42,0.15);
}
.stage--current .stage-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.stage-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: var(--space-1);
}
.stage--current .stage-label { color: var(--gold); }
.stage-title { font-size: var(--text-lg); font-weight: 600; color: var(--charcoal); margin-bottom: var(--space-2); }
.stage--future .stage-title { color: var(--muted); }
.stage-desc { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; max-width: 58ch; }
.stage--future .stage-desc { color: var(--muted-light); }

/* ── Next Steps ────────────────────────────────────────── */
.next-steps-list { display: flex; flex-direction: column; gap: var(--space-4); list-style: none; padding: 0; }
.next-steps-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.7;
}
.next-steps-list li::before { content: '→'; color: var(--gold); font-weight: 600; flex-shrink: 0; margin-top: 2px; }

/* ── Feedback section ──────────────────────────────────── */
.project-feedback { background: var(--charcoal); }
.project-feedback .project-section-title { color: var(--cream); }
.feedback-inner { max-width: 680px; }
.feedback-intro { font-size: var(--text-base); color: rgba(245,240,232,0.65); line-height: 1.7; margin-bottom: var(--space-10); }

.feedback-form { display: flex; flex-direction: column; gap: var(--space-6); }
.feedback-form fieldset { border: none; padding: 0; margin: 0; }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--cream); letter-spacing: 0.01em; }
.form-optional { font-weight: 400; color: rgba(245,240,232,0.4); }

.form-input, .form-textarea {
  background: rgba(245,240,232,0.07);
  border: 1px solid rgba(245,240,232,0.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease);
  resize: vertical;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(245,240,232,0.3); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--gold); }

/* Star rating */
.star-rating { display: flex; gap: var(--space-1); flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input[type="radio"] { position: absolute; opacity: 0; width: 0; }
.star-rating label { font-size: 2rem; color: rgba(245,240,232,0.2); cursor: pointer; transition: color var(--dur-fast) var(--ease); line-height: 1; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--gold); }

/* Radio group */
.radio-group { display: flex; flex-direction: column; gap: var(--space-3); }
.radio-option { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; font-size: var(--text-sm); color: rgba(245,240,232,0.8); transition: color var(--dur-fast) var(--ease); }
.radio-option:hover { color: var(--cream); }
.radio-option input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid rgba(245,240,232,0.3);
  border-radius: 50%; flex-shrink: 0; cursor: pointer; position: relative;
  transition: border-color var(--dur-fast) var(--ease);
}
.radio-option input[type="radio"]:checked { border-color: var(--gold); }
.radio-option input[type="radio"]:checked::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

.form-success { font-size: var(--text-sm); color: #6EE7B7; margin-top: var(--space-2); }
.form-error { font-size: var(--text-sm); color: #FCA5A5; margin-top: var(--space-2); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .project-hero-inner { grid-template-columns: 1fr; }
  .project-hero-visual { display: none; }
  .how-it-works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .project-hero { padding-top: calc(var(--nav-h) + var(--space-8)); }
  .how-it-works-grid { grid-template-columns: 1fr; }
  .project-hero-actions { flex-direction: column; }
  .project-hero-actions .btn { width: 100%; justify-content: center; }
  .stages-trail { padding-left: var(--space-6); }
}
