/* =========================================================
   Montecalvo Orthodontic Lab — home.css
   Home-page additions layered on top of styles.css.
   Keeps the same cream/teal/coral palette, Manrope type,
   soft glass surfaces, and pill buttons as the rest of the site.
   ========================================================= */

/* ---- Shared tokens (reuse brand vars from styles.css) ---- */
:root {
  --step-1: linear-gradient(135deg, #e46447 0%, #f29b52 100%);
  --step-2: linear-gradient(135deg, #f0b429 0%, #ffd86b 100%);
  --step-3: linear-gradient(135deg, #22a06b 0%, #71d99e 100%);
}

/* =========================================================
   HERO refinements
   ========================================================= */
.hero-home {
  /* slightly tighter so the stats strip and workflow breathe below */
  min-height: 78vh;
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(10, 26, 32, 0.18) 0%, rgba(10, 26, 32, 0.45) 100%),
    url("assets/retianer-hero.png");
  background-size: cover;
  background-position: center 42%;
}

.hero-eyebrow {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero-home h1 {
  margin: 0 auto;
}

.hero-home .hero-subtitle {
  margin-top: 1.1rem;
}

.hero-home .hero-actions {
  margin-top: 2rem;
}

.button-ghost {
  background: rgba(16, 36, 43, 0.85);
  color: #ffffff;
  border: 2px solid rgba(16, 36, 43, 0.95);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(16, 36, 43, 0.95);
  border-color: rgba(16, 36, 43, 1);
}

/* scroll hint */
.hero-scroll-hint {
  margin: 2.4rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.hero-scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  position: relative;
}

.hero-scroll-hint span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: #ffffff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

.hero-scroll-hint p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

@keyframes scroll-dot {
  0%   { transform: translate(-50%, 0);  opacity: 1; }
  70%  { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0);  opacity: 0; }
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.stats-strip .stat {
  display: grid;
  gap: 0.25rem;
  text-align: center;
  padding: 0.3rem 0.6rem;
  border-right: 1px solid var(--line);
}

.stats-strip .stat:last-child {
  border-right: none;
}

.stats-strip .stat strong {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal-dark);
  line-height: 1;
}

.stats-strip .stat span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* =========================================================
   SCROLL-DRIVEN WORKFLOW
   ========================================================= */
.workflow-journey {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 4rem auto 2rem;
  position: relative;
}

.journey-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.journey-intro h2 {
  max-width: none;
  margin: 0 auto;
}

.journey-lede {
  margin: 1rem auto 0;
  max-width: 52ch;
  line-height: 1.7;
  color: var(--muted);
}

/* Main layout: progress rail | visual (sticky) | steps */
.journey {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ------- Progress rail ------- */
.journey-rail {
  position: relative;
  justify-self: center;
  width: 4px;
  height: 100%;
  background: rgba(16, 36, 43, 0.1);
  border-radius: 999px;
  overflow: visible;
}

.journey-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #e46447 0%, #f0b429 50%, #22a06b 100%);
  border-radius: 999px;
  transition: height 120ms linear;
  will-change: height;
}

.journey-rail-dot {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid rgba(16, 36, 43, 0.18);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px rgba(21, 48, 50, 0.12);
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}

.journey-rail-dot[data-step="1"] { top: 12%; }
.journey-rail-dot[data-step="2"] { top: 50%; }
.journey-rail-dot[data-step="3"] { top: 88%; }

.journey-rail-dot.is-active[data-step="1"] {
  background: #e46447;
  border-color: #f29b52;
  transform: translate(-50%, -50%) scale(1.15);
}
.journey-rail-dot.is-active[data-step="2"] {
  background: #f0b429;
  border-color: #ffd86b;
  transform: translate(-50%, -50%) scale(1.15);
}
.journey-rail-dot.is-active[data-step="3"] {
  background: #22a06b;
  border-color: #71d99e;
  transform: translate(-50%, -50%) scale(1.15);
}

/* ------- Sticky visual column ------- */
.journey-visual-wrap {
  position: relative;
}

.journey-visual {
  position: sticky;
  top: 7rem;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255, 238, 210, 0.86), rgba(232, 247, 238, 0.84) 52%, rgba(255, 247, 204, 0.85));
  border: 1px solid rgba(16, 36, 43, 0.09);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(21, 48, 50, 0.12);
}

.journey-art {
  position: absolute;
  inset: 1.5rem;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.94) translateY(18px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.journey-art svg {
  width: 100%;
  height: 100%;
  max-width: 380px;
  max-height: 380px;
}

.journey-art.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* mini animations inside SVGs */
@keyframes print-head-move {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(-50px); }
}

.journey-art[data-art="2"].is-active .print-head {
  transform-origin: center;
  animation: print-head-move 3.2s ease-in-out infinite;
}

@keyframes float-up {
  0%,100% { transform: translate(200px, 140px); }
  50%     { transform: translate(200px, 128px); }
}

.journey-art[data-art="3"].is-active .floating-retainer {
  animation: float-up 3.2s ease-in-out infinite;
}

/* ------- Scrolling steps ------- */
.journey-steps {
  display: grid;
  gap: 1rem;
}

.journey-step {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  opacity: 0.4;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease, box-shadow 420ms ease;
}

.journey-step.is-active {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 30px 60px rgba(21, 48, 50, 0.14);
}

.step-index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.step-num {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--ink);
  opacity: 0.12;
}

.journey-step.is-active .step-num {
  opacity: 1;
  background: var(--step-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 300ms ease;
}

.journey-step[data-step="2"].is-active .step-num { background: var(--step-2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.journey-step[data-step="3"].is-active .step-num { background: var(--step-3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.step-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 6px 14px rgba(21, 48, 50, 0.15);
}

.step-pill-1 { background: var(--step-1); }
.step-pill-2 { background: var(--step-2); color: #473100; }
.step-pill-3 { background: var(--step-3); }

.journey-step h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.3rem;
}

.journey-step > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.2rem;
}

.step-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.step-facts li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
}

.step-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--step-1);
  box-shadow: 0 0 0 3px rgba(228, 100, 71, 0.15);
}

.journey-step[data-step="2"] .step-facts li::before {
  background: var(--step-2);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
}

.journey-step[data-step="3"] .step-facts li::before {
  background: var(--step-3);
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.18);
}

/* closing CTA under the journey */
.journey-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 3rem;
}

/* =========================================================
   WHAT WE MAKE
   ========================================================= */
.what-we-make {
  margin-top: 3rem;
}

.what-we-make .section-heading {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.what-we-make .section-heading h2 {
  max-width: none;
  margin: 0 auto;
}

.make-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.make-card {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.make-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 58px rgba(21, 48, 50, 0.14);
}

.make-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 109, 115, 0.14), rgba(212, 111, 77, 0.14));
  color: var(--teal-dark);
}

.make-icon svg {
  width: 60%;
  height: 60%;
}

.make-card h3 {
  margin-bottom: 0.4rem;
}

.make-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.cta-actions-centered {
  justify-content: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats-strip .stat:nth-child(2) { border-right: 1px solid var(--line); }
  .stats-strip .stat { border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; }
  .stats-strip .stat:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0.3rem; }

  .make-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Collapse journey to single column, keep inline visuals */
  .journey {
    grid-template-columns: 28px 1fr;
    gap: 1rem;
  }

  .journey-visual-wrap {
    grid-column: 1 / -1;
    order: -1;
  }

  .journey-visual {
    position: relative;
    top: 0;
    max-width: 340px;
    aspect-ratio: 1 / 1;
  }

  .journey-steps {
    grid-column: 2 / -1;
  }

  .journey-step {
    min-height: auto;
    padding: 1.6rem;
  }

  .journey-rail-dot[data-step="1"] { top: 14%; }
  .journey-rail-dot[data-step="2"] { top: 50%; }
  .journey-rail-dot[data-step="3"] { top: 86%; }
}

@media (max-width: 680px) {
  .stats-strip {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }
  .stats-strip .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0;
  }
  .stats-strip .stat:last-child { border-bottom: none; }

  .make-grid {
    grid-template-columns: 1fr;
  }

  .journey {
    grid-template-columns: 22px 1fr;
  }

  .journey-visual {
    max-width: 100%;
    padding: 1rem;
  }

  .step-num { font-size: 2.6rem; }

  .journey-step {
    padding: 1.4rem;
  }

  .hero-home {
    min-height: 70vh;
  }
}
