/* ============================================================
   TravlFun · home.css · v1.0 · © Luxa Grid LLC
   Page-level composition for the homepage. All components come
   from design-system/components.css; this file only arranges
   them and styles page furniture (hp- prefix = "homepage").
   ============================================================ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }

.hp-skip {
  position: absolute; left: -9999px; top: 12px; z-index: 999;
  background: var(--tf-surface); color: var(--tf-color-primary);
  padding: 10px 16px; border-radius: var(--tf-r-ctl); box-shadow: var(--tf-shadow-2);
  font: 600 13px var(--tf-font-body); text-decoration: none;
}
.hp-skip:focus-visible { left: 12px; }

/* ---- Navbar refinements ---- */
.hp-nav { transition: box-shadow var(--tf-dur-med); }
.hp-nav.is-scrolled { box-shadow: var(--tf-shadow-2); }

/* ---- Mobile drawer menu ---- */
.hp-menu__links { display: flex; flex-direction: column; gap: 4px; }
.hp-menu__links .tf-navbar__link { font-size: 15px; padding: 12px 14px; }

/* ---- Sections ---- */
.hp-section { padding: 76px 0; }
.hp-section--tight { padding: 56px 0; }
.hp-eyebrow {
  font: 600 11px/1 var(--tf-font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--tf-color-primary); margin: 0 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hp-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--tf-color-secondary); }
.hp-title { font: var(--tf-text-h1); letter-spacing: -.015em; margin: 0 0 10px; text-wrap: balance; }
.hp-lede { font: var(--tf-text-body-l); color: var(--tf-ink-2); max-width: 58ch; margin: 0 0 36px; }
.hp-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hp-section__head .hp-lede { margin-bottom: 0; }
.hp-section__head + * { margin-top: 32px; }

/* ---- Hero ---- */
.hp-hero { position: relative; overflow: hidden; background: var(--tf-raw-navy-700); }
.hp-hero__art { position: absolute; inset: 0; }
.hp-hero__art svg { width: 100%; height: 100%; }
.hp-hero__art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,32,50,.92) 0%, rgba(11,32,50,.62) 46%, rgba(11,32,50,.12) 82%); }
.hp-hero__inner { position: relative; padding: 96px 0 150px; }
.hp-hero__content { max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.hp-hero__title { font: var(--tf-text-display); font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -.02em; color: #fff; margin: 0; text-wrap: balance; }
.hp-hero__title em { font-style: normal; color: #7FE8DB; }
.hp-hero__sub { font: var(--tf-text-body-l); color: #D7E6F3; max-width: 46ch; margin: 0; }
.hp-hero__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hp-hero__chip {
  font: 500 12.5px var(--tf-font-body); color: #EAF3FB;
  background: rgba(234,243,251,.12); border: 1px solid rgba(234,243,251,.22);
  border-radius: var(--tf-r-pill); padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 7px;
}
.hp-hero__chip svg { width: 13px; height: 13px; color: #7FE8DB; }

/* Search card overlaps the hero */
.hp-search { position: relative; margin-top: -92px; z-index: 2; }
.hp-search .tf-searchcard { max-width: 980px; margin-inline: auto; }
.hp-search__extra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hp-search__extra .tf-caption { margin-right: 2px; }

/* ---- Categories ---- */
.hp-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hp-cat {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px 16px; border-radius: 16px; text-decoration: none;
  background: var(--tf-surface); border: 1px solid var(--tf-border);
  transition: transform .15s var(--tf-ease), box-shadow .15s var(--tf-ease), border-color .15s;
}
.hp-cat:hover { transform: translateY(-2px); border-color: var(--tf-color-primary); box-shadow: var(--tf-shadow-2); }
.hp-cat__icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tf-color-primary-soft); color: var(--tf-color-primary);
}
.hp-cat__icon svg { width: 22px; height: 22px; }
.hp-cat:nth-child(3n) .hp-cat__icon { background: var(--tf-color-secondary-soft); color: var(--tf-color-secondary-active); }
.hp-cat:nth-child(4n) .hp-cat__icon { background: var(--tf-color-love-soft); color: var(--tf-color-love); }
.hp-cat span { font: 500 13px var(--tf-font-body); color: var(--tf-ink); text-align: center; }
@media (max-width: 1023px) { .hp-cats { grid-template-columns: repeat(3, 1fr); } .hp-cat:nth-child(n+7) { display: none; } }
@media (max-width: 639px)  { .hp-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---- Trending grid ---- */
.hp-trending { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1023px) { .hp-trending { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .hp-trending { grid-template-columns: 1fr; } }

/* ---- Why TravlFun ---- */
.hp-why { background: var(--tf-surface); border-block: 1px solid var(--tf-border); }
.hp-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hp-why__card { padding: var(--tf-sp-6); display: flex; flex-direction: column; gap: 12px; }
.hp-why__icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; }
.hp-why__icon svg { width: 22px; height: 22px; }
.hp-why__card h3 { font: var(--tf-text-h4); font-size: 17px; margin: 0; }
.hp-why__card p { font: var(--tf-text-body-s); color: var(--tf-ink-2); margin: 0; }
@media (max-width: 1023px) { .hp-why__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px)  { .hp-why__grid { grid-template-columns: 1fr; } }

/* ---- Trip estimate split ---- */
.hp-estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hp-estimate__copy { display: flex; flex-direction: column; gap: 18px; }
.hp-estimate__points { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 4px; padding: 0; list-style: none; }
.hp-estimate__points li { display: flex; gap: 12px; font: var(--tf-text-body); color: var(--tf-ink-2); }
.hp-estimate__points svg { width: 20px; height: 20px; flex: none; color: var(--tf-color-secondary); margin-top: 2px; }
.hp-estimate__points b { color: var(--tf-ink); font-weight: 600; }
.hp-estimate__visual { position: relative; }
.hp-estimate__visual .tf-estimate { max-width: 420px; margin-inline: auto; box-shadow: var(--tf-shadow-3); }
.hp-estimate__float {
  position: absolute; top: -18px; right: 4%;
  transform: rotate(2deg);
}
@media (max-width: 1023px) {
  .hp-estimate { grid-template-columns: 1fr; gap: 32px; }
  .hp-estimate__float { display: none; }
}

/* ---- How it works ---- */
.hp-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hp-steps__path { position: absolute; top: 34px; left: 12%; right: 12%; color: var(--tf-ink-3); z-index: 0; }
.hp-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 12px; }
.hp-step__dot {
  width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center;
  background: var(--tf-surface); border: 1px solid var(--tf-border); box-shadow: var(--tf-shadow-2);
}
.hp-step__dot svg { width: 28px; height: 28px; }
.hp-step:nth-child(2) .hp-step__dot svg { color: var(--tf-color-primary); }
.hp-step:nth-child(3) .hp-step__dot svg { color: var(--tf-raw-yellow-500); }
.hp-step:nth-child(4) .hp-step__dot svg { color: var(--tf-color-secondary); }
.hp-step__num { font: 700 12px var(--tf-font-display); color: var(--tf-color-primary); letter-spacing: .1em; }
.hp-step h3 { font: var(--tf-text-h3); margin: 0; }
.hp-step p { font: var(--tf-text-body-s); color: var(--tf-ink-2); margin: 0; max-width: 32ch; }
.hp-steps__cta { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 800px) {
  .hp-steps { grid-template-columns: 1fr; gap: 34px; }
  .hp-steps__path { display: none; }
}

/* ---- Footer: two link columns on this page (Company column removed) ---- */
.tf-footer__main { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 1023px) { .tf-footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px)  { .tf-footer__main { grid-template-columns: 1fr; } }

/* ---- Utility ---- */
.hp-hide-mobile { display: initial; }
@media (max-width: 639px) { .hp-hide-mobile { display: none; } }
