/* Home page redesign (v2). Everything is scoped to body.home-v2 or hv-* classes,
   so no other page is affected. Loaded only from views/home.ejs. */

body.home-v2 {
  background: #f1edff;
  color: #0E2233;
  font-family: "Outfit", "Noto Sans Myanmar", "Pyidaungsu", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
.home-v2 h1, .home-v2 h2, .home-v2 h3 { line-height: 1.5; }
.home-v2 [hidden] { display: none !important; }

/* ---- Header (shared partial, restyled on this page only) ---- */
.home-v2 .site-header { border-bottom: 0; box-shadow: 0 4px 16px rgba(28,138,196, .08); }
.home-v2 .brand span { background: none; color: #229ED9; }
.home-v2 .main-nav a { font-weight: 600; }
.home-v2 .main-nav a:hover { color: #229ED9; }
.home-v2 .btn-nav { background: linear-gradient(90deg, #2AABEE, #1C8AC4); }
@media (min-width: 769px) {
  .home-v2 .main-nav { gap: 6px; }
  .home-v2 .main-nav a { padding: 9px 14px; border-radius: 22px; }
  .home-v2 .main-nav a[href="/"] { background: #229ED9; color: #fff; }
  .home-v2 .main-nav .btn-nav { padding: 9px 20px; }
}
.home-v2 .site-footer { margin-top: 40px; }

/* ---- Hero ---- */
.hv-hero { background: linear-gradient(180deg, #ffffff 0%, #e4dbff 100%); padding: 28px 0 24px; }
.hv-banner { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; border-radius: 20px; margin-bottom: 18px; }
.hv-hero-text { max-width: 640px; }
.hv-hero.has-banner .hv-hero-text { display: none; }
.hv-hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.5px; }
.hv-hero h1 span { color: #229ED9; }
.hv-tagline { margin: 10px 0 0; font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 600; color: #2e2760; }
.hv-lead { margin: 10px 0 0; font-size: 1rem; color: #3E5466; }
.hv-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.hv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 27px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none; touch-action: manipulation;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.hv-btn-primary { background: linear-gradient(90deg, #2AABEE, #1C8AC4); color: #fff; box-shadow: 0 8px 18px rgba(28,138,196, .28); }
.hv-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(28,138,196, .38); }
.hv-btn-outline { background: #fff; color: #1C8AC4; border: 2px solid #A8DAF5; }
.hv-btn-outline:hover { border-color: #229ED9; }
.hv-btn-ghost { min-height: 44px; padding: 0 18px; font-size: .88rem; font-weight: 600; background: #fff; color: #229ED9; border: 1.5px solid #A8DAF5; }
.hv-btn-ghost:hover { border-color: #229ED9; }
.hv-btn:focus-visible, .hv-pack:focus-visible, .hv-tab:focus-visible, .hv-cta:focus-visible { outline: 3px solid #7CC8F0; outline-offset: 2px; }

/* ---- Layout ---- */
.hv-stack { display: flex; flex-direction: column; gap: 24px; padding-top: 20px; }
.hv-card { background: #fff; border-radius: 22px; box-shadow: 0 6px 18px rgba(28,138,196, .08); padding: 24px; }
.hv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hv-head h2 { margin: 0; font-size: 1.4rem; font-weight: 700; }
.hv-sub { margin: 0; font-size: .9rem; color: #4F6475; }

/* ---- Features ---- */
.hv-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; background: #e7e0ff; box-shadow: none; padding: 20px 24px; }
.hv-feature { display: flex; align-items: center; gap: 14px; }
.hv-feature svg { flex: none; color: #229ED9; }
.hv-feature h3 { margin: 0; font-size: .98rem; font-weight: 700; }
.hv-feature p { margin: 0; font-size: .82rem; line-height: 1.5; color: #3E5466; }

/* ---- Packages ---- */
.hv-tabs { display: flex; gap: 6px; padding: 4px; background: #f1edff; border-radius: 26px; }
.hv-tab {
  min-height: 44px; padding: 0 24px; border: 0; border-radius: 22px; cursor: pointer;
  background: transparent; color: #3E5466; font: inherit; font-size: .9rem; font-weight: 600;
}
.hv-tab.active { background: #229ED9; color: #fff; }
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.hv-pack {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px 12px; border-radius: 18px; border: 2px solid #ece6fb; background: #F5FAFE;
  color: #0E2233; text-decoration: none; text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.hv-pack:hover { transform: translateY(-3px); border-color: #229ED9; box-shadow: 0 10px 22px rgba(28,138,196, .16); }
.hv-pack-amt { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.hv-pack-price { align-self: stretch; padding: 6px 8px; border-radius: 17px; background: #2AABEE; color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.4; }
.hv-pack:hover .hv-pack-price { background: #0F5A85; }

/* ---- Steps ---- */
.hv-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hv-step-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #F5FAFE; font-size: .95rem; font-weight: 600; }
.hv-step-num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #229ED9; color: #fff; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---- Recent orders ---- */
.hv-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.hv-feed-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; background: #fff; border-radius: 16px; box-shadow: 0 4px 12px rgba(28,138,196, .06); }
.hv-feed-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #ede7ff; display: flex; align-items: center; justify-content: center; }
.hv-feed-body { flex: 1; min-width: 0; line-height: 1.4; }
.hv-feed-line { font-size: .92rem; color: #4F6475; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-feed-line strong { color: #0E2233; }
.hv-feed-time { font-size: .78rem; color: #4F6475; margin-top: 2px; }
.home-v2 .badge-completed, .home-v2 .badge-approved { background: #dcfce7; color: #166534; }

/* ---- Bottom call to action ---- */
.hv-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px; border-radius: 22px; background: linear-gradient(120deg, #2AABEE, #0F5A85);
  color: #fff; text-decoration: none;
}
.hv-cta strong { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.5; }
.hv-cta small { display: block; font-size: .9rem; color: #E3F3FC; }
.hv-cta-arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #1C8AC4; display: flex; align-items: center; justify-content: center; }

/* ---- Tablet ---- */
@media (max-width: 900px) {
  .hv-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Phone ---- */
@media (max-width: 560px) {
  .hv-hero { padding: 20px 0; }
  .hv-banner { border-radius: 16px; margin-bottom: 14px; }
  .hv-cta-row { flex-direction: column; }
  .hv-btn-primary, .hv-btn-outline { width: 100%; }
  .hv-stack { gap: 20px; padding-top: 16px; }
  .hv-card { padding: 16px; border-radius: 18px; }
  .hv-head h2 { font-size: 1.25rem; }
  .hv-features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 16px 6px; background: #fff; box-shadow: 0 6px 18px rgba(28,138,196, .08); }
  .hv-feature { flex-direction: column; gap: 6px; padding: 0 4px; text-align: center; }
  .hv-feature + .hv-feature { border-left: 1px solid #e6e0f2; }
  .hv-feature svg { width: 26px; height: 26px; }
  .hv-feature h3 { font-size: .75rem; font-weight: 600; line-height: 1.5; }
  .hv-feature p { display: none; }
  .hv-tabs { width: 100%; }
  .hv-tab { flex: 1; padding: 0 8px; }
  .hv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hv-pack { padding: 12px 10px; }
  .hv-pack-gem { width: 44px; height: 37px; }
  .hv-pack-amt { font-size: .94rem; }
  .hv-step-list { gap: 8px; }
  .hv-step-list li { flex-direction: column; gap: 8px; padding: 12px 6px; text-align: center; font-size: .82rem; }
  .hv-feed { grid-template-columns: 1fr; }
  .hv-cta { padding: 20px; }
  .hv-cta strong { font-size: 1.1rem; }
  .hv-cta small { display: none; }
  .hv-cta-arrow { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-btn, .hv-pack { transition: none; }
  .hv-btn-primary:hover, .hv-pack:hover { transform: none; }
}
