/* ════════════════════════════════════════════════════════════
   AMBER & BARK — v4 Redesigns
   1. Legacy Showcase (pure CSS, no images)
   2. Horizontal Craft Steps
════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   1. LEGACY IN NUMBERS SHOWCASE
   Premium dark ambient section with floating
   particles and animated stat counters.
   Zero images — no loading issues.
────────────────────────────────────────────── */
.legacy-showcase {
  position: relative;
  background: linear-gradient(160deg, #120600 0%, #1e0b02 40%, #2a1004 70%, #140700 100%);
  padding: 6rem 2rem;
  overflow: hidden;
}

/* Ambient radial glow backgrounds */
.legacy-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,112,42,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 10%, rgba(201,168,76,0.07) 0%, transparent 40%);
  pointer-events: none;
}

/* Horizontal gold accent line at top */
.legacy-showcase::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.45), transparent);
}

/* CSS particles */
.legacy-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lp {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: lpFloat 14s ease-in-out infinite;
}
.lp1 { width: 2px; height: 2px; left: 8%;  top: 30%; animation-delay: 0s;    animation-duration: 12s; }
.lp2 { width: 3px; height: 3px; left: 22%; top: 70%; animation-delay: 2s;    animation-duration: 16s; }
.lp3 { width: 2px; height: 2px; left: 45%; top: 20%; animation-delay: 4s;    animation-duration: 11s; }
.lp4 { width: 4px; height: 4px; left: 65%; top: 60%; animation-delay: 1s;    animation-duration: 18s; }
.lp5 { width: 2px; height: 2px; left: 80%; top: 35%; animation-delay: 6s;    animation-duration: 13s; }
.lp6 { width: 3px; height: 3px; left: 90%; top: 80%; animation-delay: 3s;    animation-duration: 15s; }
.lp7 { width: 2px; height: 2px; left: 35%; top: 85%; animation-delay: 5s;    animation-duration: 10s; }
.lp8 { width: 4px; height: 4px; left: 55%; top: 45%; animation-delay: 7s;    animation-duration: 20s; }
@keyframes lpFloat {
  0%   { opacity: 0;    transform: translateY(20px) scale(0.8); }
  25%  { opacity: 0.55; }
  75%  { opacity: 0.30; }
  100% { opacity: 0;    transform: translateY(-60px) scale(1.3); }
}

.legacy-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.legacy-over {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.65);
  margin-bottom: 3.5rem;
}

/* Stats row */
.legacy-stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.legacy-stat {
  flex: 1;
  min-width: 0;
  padding: 0 2.5rem;
  position: relative;
}

.legacy-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.25), transparent);
  flex-shrink: 0;
  align-self: center;
}

/* The big number */
.ls-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

/* Unit label e.g. BCE, Empires */
.ls-unit {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

/* Description label */
.ls-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(250,247,242,0.45);
  line-height: 1.65;
  max-width: 200px;
  margin: 0 auto;
}

/* Bottom italic quote */
.legacy-quote {
  margin-top: 4rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: rgba(250,247,242,0.38);
  letter-spacing: 0.03em;
}

/* Bottom accent line */
.legacy-showcase .legacy-inner::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(201,168,76,0.35);
  margin: 2.5rem auto 0;
}

/* Mobile: stack stats */
@media (max-width: 700px) {
  .legacy-stats { flex-direction: column; gap: 2.5rem; }
  .legacy-divider { width: 60px; height: 1px; align-self: center; background: linear-gradient(to right, transparent, rgba(201,168,76,0.25), transparent); }
  .legacy-stat { padding: 0; }
}

/* ──────────────────────────────────────────────
   2. HORIZONTAL CRAFT STEP CARDS
   Five equal cards in a horizontal row.
   Each has: number, icon, title, short text.
   Connected by a dashed gold progress line.
   On mobile they stack vertically.
────────────────────────────────────────────── */
.craft {
  background: var(--cream);
}

/* Craft header — side-by-side heading + tagline */
.craft-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 5rem;
  align-items: end;
  margin-bottom: 4rem;
}
.craft-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  padding-bottom: 0.35rem;
  border-left: 2px solid rgba(200,112,42,0.25);
  padding-left: 1.5rem;
}

/* Steps container */
.craft-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  gap: 0;
}

/* Connecting horizontal line behind cards */
.craft-steps::before {
  content: '';
  position: absolute;
  top: 3.2rem;               /* vertically centres on the icon row */
  left: calc(10% + 1.5rem);  /* starts from centre of first card icon */
  right: calc(10% + 1.5rem);
  height: 1px;
  background: linear-gradient(to right, var(--amber), rgba(201,168,76,0.4), var(--amber));
  z-index: 0;
}

/* Individual step card */
.craft-step {
  position: relative;
  z-index: 1;
  padding: 0 1rem 1.5rem;
  text-align: center;
  transition: transform var(--transition);
  cursor: default;
}
.craft-step:hover { transform: translateY(-5px); }
.craft-step:hover .cs-icon {
  background: var(--amber);
  color: var(--cream);
  transform: scale(1.1);
}

/* Step number (top, small) */
.cs-number {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 0.8rem;
}

/* Icon circle */
.cs-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid rgba(200,112,42,0.3);
  margin: 0 auto 1.2rem;
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(92,46,14,0.08);
  position: relative;
  z-index: 2;
}

/* Title */
.cs-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

/* Short description */
.cs-text {
  font-size: 0.78rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.75;
}

/* Vertical connector dot at top of each card (sits on the line) */
.craft-step::before {
  content: '';
  position: absolute;
  top: 3.05rem;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  z-index: 3;
  box-shadow: 0 0 0 3px rgba(200,112,42,0.15);
  transition: box-shadow var(--transition), background var(--transition);
}
.craft-step:hover::before {
  background: var(--brown);
  box-shadow: 0 0 0 5px rgba(92,46,14,0.12);
}

/* Mobile: stack vertically, hide horizontal line */
@media (max-width: 900px) {
  .craft-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .craft-tagline { border-left: none; padding-left: 0; border-top: 1px solid rgba(200,112,42,0.2); padding-top: 1.2rem; }
  .craft-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .craft-steps::before { display: none; }
  .craft-step::before  { display: none; }
  .craft-step { padding: 1.2rem; background: #fff; border: 1px solid rgba(200,112,42,0.1); border-radius: 2px; }
}
@media (max-width: 500px) {
  .craft-steps { grid-template-columns: 1fr; }
}
