/* ==========================================================================
   TicketDeals4U — home page only
   Hero on sea-green with a horizontal quote bar, a departure-board facts
   strip, outlined-numeral steps, a photo bento for products, and a giant
   phone number on ticket-yellow.
   ========================================================================== */

/* --- hero ---------------------------------------------------------------- */
.h-hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 28px 0 0;
  isolation: isolate;
}
/* flight photo behind the hero copy, darkened on the left so text stays readable */
.h-hero__bg { position: absolute; inset: 0 0 120px; z-index: -2; overflow: hidden; background: var(--ink); }
.h-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.h-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 38, 58, .92) 0%, rgba(18, 38, 58, .74) 45%, rgba(18, 38, 58, .35) 100%),
    linear-gradient(0deg, rgba(18, 38, 58, 1) 0%, rgba(18, 38, 58, 0) 45%);
}
.h-hero::after { /* lower part of the quote bar sits on the board colour */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: var(--ink); z-index: -1;
}
.h-hero__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.h-hero__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 14px; margin: 0 0 12px; }
.h-hero__title {
  font-size: clamp(38px, 4.6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em;
  margin: 0;
}
.h-hero__lede { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .9); margin: 0; max-width: 50ch; }
.h-hero__points {
  list-style: none; margin: 20px 0 0; padding: 16px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  display: flex; flex-wrap: wrap; gap: 10px 32px;
}
.h-hero__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; }
.h-hero__points li::before {
  content: ''; flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: var(--stub) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312263A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* quote bar */
.h-quote {
  position: relative; z-index: 5;
  background: var(--white); color: var(--ink);
  border-radius: 24px; padding: 26px 28px 20px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.h-quote__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 2px dashed var(--line); }
.h-quote__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.h-quote__sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.h-quote__row { display: grid; gap: 12px; }
.h-quote__row--trip { grid-template-columns: 1.25fr 1.25fr 1fr 1fr .9fr; margin-bottom: 12px; }
.h-quote__row--you { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
.h-quote__submit { margin: 0; width: auto; min-width: 190px; height: 48px; padding: 0 28px; background: var(--stub); color: var(--ink); border-radius: var(--r-sm); }
.h-quote__submit:hover { background: var(--stub-deep); }
.h-quote__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 14px; }
.h-quote__foot .qform__note { margin: 0; }
.h-quote__phone { margin: 0; font-size: 14px; color: var(--muted); }
.h-quote__phone a { font: 800 17px/1 var(--display); color: var(--ink); text-decoration: none; margin-left: 6px; }
.h-quote__phone a:hover { color: var(--sea-deep); }
.h-quote .trip-toggle { background: var(--paper); }

@media (max-width: 1080px) {
  .h-quote__row--trip { grid-template-columns: 1fr 1fr; }
  .h-quote__row--trip #f-pax-wrap { grid-column: 1 / -1; }
  .h-quote__row--you { grid-template-columns: 1fr 1fr; }
  .h-quote__row--you #q-name-wrap { grid-column: 1 / -1; }
  .h-quote__submit { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 900px) {
  .h-hero__top { grid-template-columns: 1fr; gap: 14px; }
  .h-hero__lede { font-size: 16.5px; }
}
@media (max-width: 760px) {
  .h-hero { padding-top: 20px; }
  .h-hero__lede { display: none; }
  .h-hero__title { font-size: 34px; }
  .h-hero__points { flex-direction: column; gap: 8px; margin-top: 18px; padding: 14px 0 22px; }
  .h-hero__points li { font-size: 14.5px; }
  .h-hero__bg::after { background: linear-gradient(180deg, rgba(18, 38, 58, .8) 0%, rgba(18, 38, 58, .72) 70%, rgba(18, 38, 58, 1) 100%); }
  .h-quote { padding: 20px 18px 18px; border-radius: 20px; }
  .h-quote__top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .h-quote__row--trip, .h-quote__row--you { grid-template-columns: 1fr; }
}

/* --- departure board ----------------------------------------------------- */
.h-board { background: var(--ink); color: var(--white); padding: 64px 0 72px; }
.h-board__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.h-board__item p { margin: 14px 0 0; color: #AFC0CF; font-size: 15px; max-width: 22ch; }
.h-flaps { display: flex; gap: 5px; perspective: 400px; min-height: 66px; }
.h-flap {
  position: relative; width: 46px; height: 66px; border-radius: 6px;
  display: grid; place-items: center;
  background: #0A1826; color: var(--stub);
  font: 800 40px/1 var(--display);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .04);
  transform-origin: 50% 50%;
}
.h-flap::after { /* the split line across every tile */
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ink); opacity: .9;
}
.h-flap--space { background: transparent; width: 14px; }
.h-flap--space::after { display: none; }
.h-board.is-live .h-flap { animation: flap .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes flap { from { transform: rotateX(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) { .h-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } }
@media (max-width: 560px) {
  .h-flaps { gap: 4px; min-height: 48px; }
  .h-flap { width: 32px; height: 48px; font-size: 27px; border-radius: 5px; }
  .h-flap--space { width: 8px; }
}

/* --- steps --------------------------------------------------------------- */
.h-steps { padding: 104px 0; background: var(--paper); }
.h-steps__grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 72px; align-items: start; }
.h-steps__head { position: sticky; top: 120px; }
.h-steps__title { font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.h-steps__list { list-style: none; margin: 0; padding: 0; }
.h-steps__list li { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.h-steps__list li:first-child { border-top: 1px solid var(--line); }
.h-steps__num {
  font: 800 128px/.8 var(--display); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 2px var(--sea);
  text-align: center;
}
.h-steps__list li:last-child .h-steps__num { color: var(--stub); -webkit-text-stroke: 2px var(--ink); }
.h-steps__list h3 { font-size: 26px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.015em; }
.h-steps__list p { margin: 0; color: var(--muted); font-size: 17px; max-width: 44ch; }
@media (max-width: 900px) {
  .h-steps { padding: 72px 0; }
  .h-steps__grid { grid-template-columns: 1fr; gap: 28px; }
  .h-steps__head { position: static; }
  .h-steps__list li { grid-template-columns: 72px 1fr; gap: 18px; padding: 24px 0; }
  .h-steps__num { font-size: 84px; }
  .h-steps__list h3 { font-size: 21px; }
}

/* --- products bento ------------------------------------------------------ */
.h-products { padding: 104px 0; background: var(--white); }
.h-products__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: end; margin-bottom: 40px; }
.h-products__title { font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.h-products__aside p { color: var(--muted); font-size: 17px; margin-bottom: 20px; }
.h-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 280px); gap: 16px; }
.h-tile {
  position: relative; overflow: hidden; border-radius: 20px;
  background: var(--sea-tint); color: var(--ink); text-decoration: none;
  display: block;
}
.h-tile--big { grid-column: span 2; grid-row: span 2; }
.h-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.h-tile:hover img { transform: scale(1.04); }
.h-tile__plate {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white); border-radius: 14px; padding: 14px 16px;
}
.h-tile__name { font: 800 21px/1.1 var(--display); }
.h-tile--big .h-tile__name { font-size: 30px; }
.h-tile__text { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.h-tile__go { font-size: 14px; font-weight: 700; color: var(--sea-deep); margin-top: 4px; }
.h-tile:hover .h-tile__go { text-decoration: underline; }
.h-tile--big .h-tile__plate { right: auto; max-width: 360px; padding: 20px 22px; }
@media (max-width: 1000px) {
  .h-products { padding: 72px 0; }
  .h-products__head { grid-template-columns: 1fr; gap: 16px; }
  .h-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 360px repeat(2, 260px); }
}
@media (max-width: 560px) {
  .h-bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .h-tile--big { grid-column: auto; grid-row: span 1; }
  .h-tile__text { display: none; }
  .h-tile--big .h-tile__text { display: block; }
  .h-tile--big .h-tile__plate { right: 12px; max-width: none; padding: 16px 18px; }
  .h-tile--big .h-tile__name { font-size: 24px; }
}

/* --- giant call ---------------------------------------------------------- */
.h-call { background: var(--stub); color: var(--ink); padding: 96px 0; text-align: center; }
.h-call__inner { display: flex; flex-direction: column; align-items: center; }
.h-call__kicker { font-weight: 700; font-size: 15px; margin: 0 0 10px; }
.h-call__title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 28px; }
.h-call__num {
  display: inline-flex; align-items: center; gap: 22px;
  font: 800 clamp(40px, 8vw, 104px)/1 var(--display); letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.h-call__num:hover { color: var(--sea-deep); }
.h-call__icon { width: clamp(56px, 7vw, 92px); height: clamp(56px, 7vw, 92px); border-radius: 50%; background: var(--ink); color: var(--stub); display: grid; place-items: center; flex: none; }
.h-call__num:hover .h-call__icon { background: var(--sea-deep); }
.h-call__note { margin: 22px 0 0; font-weight: 600; color: rgba(18, 38, 58, .75); }
@media (max-width: 560px) { .h-call { padding: 72px 0; } .h-call__num { gap: 12px; flex-direction: column; } }
