/* home-hybrid.css — the 2026-09 homepage redesign (staff-demo hybrid).
 *
 * Loaded by home.html ONLY, after home.css. home.css is shared by 9 pages
 * (yangtze hub, china-visa, popularpackage, …), so nothing here redefines a
 * shared class globally: new sections use em-hb-* classes, and re-skins of
 * the tour tiles are scoped under #home-tour-grid. The card MARKUP contract
 * (assets/home-card.js, baked by scripts/bake-package-listing.js) is
 * untouched — this file only restyles it into the highlights mosaic. */

:root {
  --hb-navy: #1e3a5f;
  --hb-navy-deep: #142c49;
  --hb-gold: #b8860b;
  --hb-cream: #f7f4ef;
}

/* ── Hero: big serif display line above the (kept) keyword H1 ──────────
 * home.css sets .hero-content p (base AND its later mobile block), so this
 * selector must out-rank both at every width. */
.hero-content p.em-hb-display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.12;
  max-width: 17ch;
  margin: 6px 0 10px;
  opacity: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero-content h1.em-hb-hero-h1 {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.95;
  margin: 0 0 6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ── Shared section furniture for the new sections ─────────────────────── */
.em-hb-eyebrow {
  color: var(--hb-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.em-hb-sechead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.em-hb-sechead h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--hb-navy);
}
.em-hb-sechead p {
  margin-top: 12px;
  color: #5b6570;
  font-size: 15.5px;
}

/* ── Intro manifesto ───────────────────────────────────────────────────── */
.em-hb-intro { background: #fff; padding: 70px 0 62px; }
.em-hb-intro-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: #374151;
  font-size: 16.5px;
  line-height: 1.7;
}
.em-hb-intro-body p { margin-bottom: 15px; }
.em-hb-intro-body b { color: var(--hb-navy); }
.em-hb-intro-close { font-style: italic; color: #4b5563; }

/* ── Highlights mosaic: re-skin of the existing #home-tour-grid cards ──── */
#home-tour-grid {
  gap: 16px;
  grid-auto-rows: 264px;
  grid-auto-flow: dense;
}
#home-tour-grid .home-tour-item { height: 100%; }
#home-tour-grid .tour-card { height: 100%; }
#home-tour-grid .tour-card-img {
  aspect-ratio: auto;
  height: 100%;
}
#home-tour-grid .tour-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  line-height: 1.25;
}
/* The visually-first visible card is the large mosaic tile. Before home.js
 * runs a filter, that is the first baked card; afterwards home.js marks the
 * lead explicitly (CSS `order` can reshuffle the visual order). */
@media (min-width: 768px) {
  #home-tour-grid:not(.js-filtered) > li:first-child,
  #home-tour-grid > li.home-tour-item--lead { grid-row: span 2; }
}

/* ── Themes mosaic ─────────────────────────────────────────────────────── */
.em-hb-themes {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr 1fr;
  grid-template-rows: 175px 175px;
  gap: 14px;
}
.em-hb-theme {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #333 center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-weight: 700;
  font-size: 16px;
}
.em-hb-theme > img,
.em-hb-dest > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}
.em-hb-theme:hover > img,
.em-hb-dest:hover > img { transform: scale(1.04); }
.em-hb-theme::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.55));
  transition: background 0.25s ease;
}
.em-hb-theme:hover::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0.66)); }
.em-hb-theme span { position: relative; z-index: 2; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.em-hb-theme--tall { grid-row: span 2; font-size: 20px; }

/* ── Promo bar (staff-configured; the section ships hidden) ────────────── */
.em-hb-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 26px;
  background: linear-gradient(100deg, var(--hb-navy-deep), var(--hb-navy));
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 16px;
  padding: 24px 28px;
  color: #fff;
}
.em-hb-promo-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  grid-column: 1;
}
.em-hb-promo-text { grid-column: 1; color: #d3dbe6; font-size: 14.5px; }
.em-hb-promo-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  background: #ffd700;
  color: var(--hb-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  white-space: nowrap;
}
.em-hb-promo-btn:hover { background: #eec900; }
@media (max-width: 640px) {
  .em-hb-promo { grid-template-columns: 1fr; }
  .em-hb-promo-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* ── Guide cards ───────────────────────────────────────────────────────── */
.em-hb-guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.em-hb-guides > li { min-width: 0; }
.em-hb-guide {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f0f1f4;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.em-hb-guide:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12); }
.em-hb-guide img { width: 100%; height: 168px; object-fit: cover; display: block; }
.em-hb-guide h3 { font-size: 16.5px; padding: 14px 16px 4px; font-weight: 700; color: var(--hb-navy); }
.em-hb-guide p { color: #5b6570; font-size: 13.5px; padding: 0 16px 16px; }
.em-hb-guide h3:last-child { padding-bottom: 16px; } /* card published without a blurb */

/* ── Destination tiles ─────────────────────────────────────────────────── */
.em-hb-dests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.em-hb-dest {
  position: relative;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: #333 center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
}
.em-hb-dest::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(16, 26, 44, 0.3); transition: background 0.25s ease; }
.em-hb-dest:hover::after { background: rgba(16, 26, 44, 0.16); }
.em-hb-dest span { position: relative; z-index: 2; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); }
.em-hb-dests-more { text-align: center; margin-top: 22px; }
.em-hb-dests-more a { color: var(--hb-navy); font-weight: 700; text-decoration: underline; font-size: 14.5px; }

/* ── Why East Marvel: belief + promises (inside the shared .why-section) ── */
.em-hb-why-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  align-items: start;
  text-align: left;
}
.em-hb-belief {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 34px;
}
.em-hb-belief h3,
.em-hb-promise h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2b807;
  margin-bottom: 10px;
}
.em-hb-belief h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  margin: 6px 0 12px;
}
.em-hb-belief p { color: #d3dbe6; font-size: 15px; }
.em-hb-p-item { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.em-hb-p-item:last-child { border-bottom: 0; }
.em-hb-p-item b { display: block; margin-bottom: 4px; }
.em-hb-p-item p { color: #c3cedd; font-size: 14px; }

/* ── Floating CTA pill (same treatment as the package pages) ───────────── */
.em-hb-float {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  background: #ffd700;
  color: var(--hb-navy);
  border-radius: 999px;
  padding: 12px 56px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.22);
  white-space: nowrap;
}
.em-hb-float:hover { background: #eec900; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .em-hb-themes { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 160px); }
  .em-hb-theme--tall { grid-row: span 1; }
  .em-hb-guides, .em-hb-dests { grid-template-columns: 1fr 1fr; }
  .em-hb-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .em-hb-themes, .em-hb-guides, .em-hb-dests { grid-template-columns: 1fr; }
  .em-hb-dest { height: 200px; }
  .em-hb-float { padding: 11px 40px; font-size: 14px; }
}
