/* ============================================================
   home-v2.css — SANDBOX overrides for home-v2.html only.
   Loaded ONLY by home-v2.html, so the live index.html is never affected.
   Progressive transformation of the live homepage into the prototype 3
   design. Each milestone appended here; verified at /home-v2.html before
   we rename the sandbox to index.html.
   ============================================================ */

/* ---- Milestone 1: Hero → prototype composition ----
   Palace photo backdrop + warm cream scrim (text stays readable), the
   aurora dialed down, and the right column becomes the "Dream Wedding"
   ornament card instead of the 3-tile collage. Search/CTA wiring untouched. */
.hero { position: relative; overflow: hidden; }
.hero__bg-layers { opacity: .18; }            /* let the palace lead; keep a hint of glow */
.hero-photo-v2 { position: absolute; inset: 0; z-index: 0; }
.hero-photo-v2 img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim-v2 {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg,
      var(--ivory) 0%,
      rgba(251,241,233,.93) 30%,
      rgba(251,241,233,.56) 52%,
      rgba(251,241,233,.16) 72%,
      rgba(92,24,69,.26) 100%);
}
.hero .wrap { position: relative; z-index: 5; }

/* Ornament card (replaces collage on the right) */
.hero-ornament { display: flex; align-items: center; justify-content: center; height: 100%; }
.hero-ornament .oc {
  background: rgba(255,255,255,.76); backdrop-filter: blur(6px);
  border: 1px solid rgba(190,148,66,.5); border-radius: 40px;
  padding: 36px 32px; text-align: center; max-width: 260px;
  box-shadow: var(--shadow-lg);
}
.hero-ornament .oc .fl { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--magenta); }
.hero-ornament .oc h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--plum); line-height: 1.15; margin: 0; }
.hero-ornament .oc h3 .g { color: var(--magenta); font-style: italic; }
.hero-ornament .oc .deco { font-family: var(--font-accent); font-style: italic; color: var(--gold); margin-top: 10px; font-size: 1.05rem; letter-spacing: .04em; }

@media (max-width: 860px) {
  .hero-ornament { display: none; }           /* on phones the scrim + text carry the hero */
  .hero-scrim-v2 { background: linear-gradient(180deg, rgba(251,241,233,.96) 0%, rgba(251,241,233,.8) 48%, rgba(92,24,69,.3) 100%); }
}

/* ---- Milestone 2: Category tiles → prototype 3 premium pink tiles ----
   Restyles the real #catGrid output (app.js .cat-card). CSS-only; the
   data-category routing and click handlers are untouched. Icon stroke is
   recolored to maroon over a soft blush tile; the per-card description and
   arrow are de-emphasized into a clean centered tile. */
#catGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
#catGrid .cat-card {
  flex-direction: column; align-items: center; text-align: center;
  background: #F8E8E0; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 14px 18px; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#catGrid .cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); background: #FBEEE8; }
#catGrid .cat-card .cat-ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: #F2D6CB !important; margin: 0;
}
#catGrid .cat-card .cat-ic svg { width: 24px; height: 24px; }
#catGrid .cat-card .cat-ic svg path { stroke: var(--magenta) !important; }
#catGrid .cat-card .cat-body { }
#catGrid .cat-card .cat-body h4 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin: 0 0 3px; }
#catGrid .cat-card .cat-body p { font-size: .76rem; color: var(--ink-faint); margin: 0; line-height: 1.35; }
#catGrid .cat-card .arrow { display: none; }  /* the whole tile is the link */
@media (max-width: 860px) { #catGrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { #catGrid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Milestone 3: lift the real search (#search) into the hero ----
   The real #search section keeps every ID/handler; we only float its card
   up so it overlaps the bottom of the hero, prototype-3 style. CSS-only. */
.hero { padding-bottom: 92px; }
#search.search-wrap { margin-top: -72px; position: relative; z-index: 20; background: transparent; }
#search .search-card {
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  border-radius: 22px; background: var(--paper);
}
#search .search-intro { margin-bottom: 10px; }
@media (max-width: 860px) {
  .hero { padding-bottom: 64px; }
  #search.search-wrap { margin-top: -48px; }
}

/* ---- Milestone 4: vendor cards → prototype 3 polish (sandbox) ----
   Real #vendors cards (app.js .vendor-card); all actions/badges kept. */
#vendors .vendor-card { border-radius: 20px; }
#vendors .vendor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
#vendors .vendor-foot .price { color: var(--magenta); font-weight: 800; }
#vendors .badge-verified { background: rgba(255,255,255,.96); color: var(--magenta); }

/* ---- Milestone 5: left icon rail (prototype 3) ----
   Fixed vertical rail below the sticky header; content shifted right on
   desktop; hidden on tablet/mobile. Links point to real routes/anchors. */
.v2-rail {
  position: fixed; left: 0; top: var(--nav-h, 84px); bottom: 0; width: 74px; z-index: 120;
  background: var(--paper); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 0; overflow-y: auto;
}
.v2-rail a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 60px; padding: 9px 0; border-radius: 12px;
  color: var(--ink-faint); font-size: .6rem; font-weight: 600; text-align: center; line-height: 1.1;
}
.v2-rail a svg { width: 20px; height: 20px; }
.v2-rail a.active { background: #F8E8E0; color: var(--magenta); }
.v2-rail a:hover { color: var(--magenta); }
@media (min-width: 1081px) { #main-content { padding-left: 74px; } }
@media (max-width: 1080px) { .v2-rail { display: none; } }

/* ---- Milestone 6: AI-planner sidebar card beside Featured Vendors ----
   Full Browse module (#vendors) kept full-width within its column; a compact
   AI card sits beside it. Stacks below 1200px. CSS-only + one wrapper div. */
.v2-feat-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.v2-feat-wrap #vendors { min-width: 0; }
.v2-ai-card {
  position: sticky; top: 100px; margin-top: 24px;
  background: var(--paper); border: 1px solid var(--gold); border-radius: 20px;
  padding: 24px 22px; box-shadow: var(--shadow-md);
}
.v2-ai-card .v2-ai-eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.v2-ai-card h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--plum); margin: 10px 0 0; line-height: 1.15; }
.v2-ai-card p { font-size: .86rem; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.5; }
.v2-ai-card .btn { width: 100%; margin-top: 16px; }
.v2-ai-card .v2-ai-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v2-ai-card .v2-ai-list li { font-size: .82rem; color: var(--ink-soft); padding-left: 22px; position: relative; }
.v2-ai-card .v2-ai-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
@media (max-width: 1200px) {
  .v2-feat-wrap { grid-template-columns: 1fr; }
  .v2-ai-card { position: static; max-width: 560px; margin-top: 0; }
}
