/* ============================================================
   Layout v2 — structure only, original colors untouched
   ============================================================ */

/* ---------- home hero ---------- */
.hero-grid.hero-solo {
  display: block !important;
  max-width: 860px;
  margin: 0;
}
.hero-solo h1 { max-width: 800px; }
.hero-solo .lead { max-width: 680px; }

/* ---------- cost band (hero card moved below) ---------- */
.cost-band {
  position: relative;
  z-index: 6;
  margin-top: -46px;
  padding-bottom: 10px;
}
.cost-band .hero-card {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 30px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 34px;
  align-items: flex-start;
}
.cost-band .hero-card h3 {
  flex: 1 0 100%;
  margin: 4px 0 10px;
}
.cost-band .stat-row {
  flex: 1 1 17%;
  min-width: 150px;
  border-bottom: 0;
  border-right: 1px dashed var(--line);
  padding: 8px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.cost-band .stat-row:last-child { border-right: 0; }
.cost-band .stat-row .us { margin: 0 8px 0 0; }

/* the fact bar no longer needs to overlap the hero */
.cost-band + .factbar-wrap,
.factbar-wrap { margin-top: 18px; }

/* ---------- why section: three cards -> alternating rows ---------- */
.why-rows .grid.grid-3 {
  grid-template-columns: 1fr;
  gap: 24px;
}
.why-rows .card.photo {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
  min-height: 260px;
}
.why-rows .card.photo .card-img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.why-rows .card.photo .photo-body {
  padding: 30px 34px;
  justify-content: center;
}
.why-rows .card.photo .photo-body .icon {
  margin: 0 0 12px;
  position: static;
}
.why-rows .card.photo:nth-child(even) {
  grid-template-columns: 58% 42%;
}
.why-rows .card.photo:nth-child(even) .card-img { order: 2; }
.why-rows .card.photo:nth-child(even) .photo-body { order: 1; }

/* ---------- conditions: index + horizontal specialty rows ---------- */
.specialty-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.specialty-index {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.specialty-index b {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
}
.specialty-index a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
}
.specialty-index a:last-child { border-bottom: 0; }
.specialty-index a:hover { color: var(--teal-deep); text-decoration: none; }
.specialty-list.grid.grid-3 {
  grid-template-columns: 1fr;
  gap: 22px;
}
.specialty-list .card.photo {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: stretch;
  min-height: 270px;
}
.specialty-list .card.photo .card-img {
  height: 100%;
  min-height: 270px;
  width: 100%;
  object-fit: cover;
}
.specialty-list .card.photo .photo-body {
  padding: 26px 30px;
}
.specialty-list .card.photo .photo-body .icon {
  margin: 0 0 10px;
  position: static;
}
.specialty-list .card.photo h3 { margin-top: 0; }
.specialty-list .card.photo .why { margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .specialty-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
  .specialty-list .card.photo { grid-template-columns: 260px minmax(0, 1fr); }
  .cost-band .stat-row { flex: 1 1 30%; }
}
@media (max-width: 820px) {
  .hero-grid.hero-solo { max-width: 100%; }
  .why-rows .card.photo,
  .why-rows .card.photo:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .why-rows .card.photo:nth-child(even) .card-img { order: 0; }
  .why-rows .card.photo:nth-child(even) .photo-body { order: 0; }
  .why-rows .card.photo .card-img { height: 230px; min-height: 0; }
  .cost-band { margin-top: 0; }
  .cost-band .hero-card { display: block; padding: 22px; }
  .cost-band .stat-row {
    border-right: 0;
    border-bottom: 1px dashed var(--line);
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
  .cost-band .stat-row:last-child { border-bottom: 0; }
  .specialty-layout { display: block; }
  .specialty-index {
    position: static;
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 10px 6px;
    margin-bottom: 18px;
    white-space: nowrap;
  }
  .specialty-index b { display: none; }
  .specialty-index a {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 5px 12px;
    flex: none;
  }
  .specialty-list .card.photo { grid-template-columns: 1fr; }
  .specialty-list .card.photo .card-img { height: 220px; min-height: 0; }
}


/* homepage why rows: fixed height, no giant empty block */
.why-rows .card.photo { height: 360px; min-height: 0; }
.why-rows .card.photo .card-img { height: 100%; min-height: 0; object-fit: cover; }
.why-rows .card.photo .photo-body { height: 100%; justify-content: center; padding: 28px 34px; }
@media (max-width: 820px) {
  .why-rows .card.photo { height: auto; }
  .why-rows .card.photo .card-img { height: 230px; }
  .why-rows .card.photo .photo-body { height: auto; }
}


/* journey: grid of cards -> horizontal step rows */
.journey {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}
.journey .jstep {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  box-shadow: none;
}
.journey .jstep:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.journey .jstep:nth-child(even) .jimg { order: 2; }
.journey .jstep:nth-child(even) .jbody { order: 1; }
.journey .jimg {
  position: relative;
  height: 100%;
  min-height: 220px;
}
.journey .jimg img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.journey .jbody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
}
.journey .jbody h3 { margin: 0 0 10px; }
.journey .jbody p { margin: 0; }

@media (max-width: 1024px) {
  .journey .jstep,
  .journey .jstep:nth-child(even) { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .journey .jstep,
  .journey .jstep:nth-child(even) { grid-template-columns: 1fr; }
  .journey .jstep .jimg,
  .journey .jstep:nth-child(even) .jimg { order: 0; height: 230px; min-height: 0; }
  .journey .jstep:nth-child(even) .jbody { order: 0; }
  .journey .jbody { padding: 22px 22px 24px; }
}


/* journey: one row of six vertical cards */
.journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
}
.journey .jstep,
.journey .jstep:nth-child(even) {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  min-height: 0;
  border-radius: 12px;
}
.journey .jstep .jimg,
.journey .jstep:nth-child(even) .jimg {
  order: 0;
  height: 170px;
  min-height: 170px;
}
.journey .jstep .jimg img {
  height: 170px;
  min-height: 170px;
}
.journey .jstep .jbody,
.journey .jstep:nth-child(even) .jbody {
  order: 0;
  flex: 1;
  justify-content: flex-start;
  padding: 16px 15px 18px;
}
.journey .jstep .jbody h3 { font-size: 16px; line-height: 1.35; margin-bottom: 7px; }
.journey .jstep .jbody p { font-size: 12.5px; line-height: 1.55; }
.journey .jimg .jnum { font-size: 11px; padding: 3px 8px; }
.journey .jimg .jtime { font-size: 11px; padding: 3px 8px; }

/* keep one row on smaller screens: swipe horizontally */
@media (max-width: 1200px) {
  .journey {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .journey .jstep,
  .journey .jstep:nth-child(even) {
    flex: 0 0 250px;
    scroll-snap-align: start;
  }
  .journey .jstep .jimg,
  .journey .jstep:nth-child(even) .jimg { height: 160px; min-height: 160px; }
  .journey .jstep .jimg img { height: 160px; min-height: 160px; }
}

/* phones: the struck US figure goes on its own line above the China figure, so the pair never widens the row */
@media (max-width: 480px) {
  .cost-band .stat-row > span:last-child { text-align: right; }
  .cost-band .stat-row .us { display: block; margin: 0; }
}

/* longer figures ("≈ 700 USD (modèle de Nanjing)") may wrap instead of running past the card */
.cost-band .stat-row b { white-space: normal; }
