/* ============================================================================
   TripSkyWay public website - homepage composition (design system v2)
   ----------------------------------------------------------------------------
   Consumes the tokens and components in site.css (read docs/REDESIGN.md).
   Every selector here is prefixed home- and is used only by
   app/Views/website/home.php and its partials. The hero is the page's one
   bold moment; every section after it is quiet, in bands of paper, haze and
   ink:
     hero (photo) / plan + trust (haze) / markets (paper) / journeys (haze) /
     offers (paper) / styles (haze) / why (ink) / process (paper) /
     stories (haze) / reviews (paper) / journal (haze) / news (paper) /
     partners (paper, hairline) / faq (haze) / careers (paper) / final (photo)
   ========================================================================== */

/* ---- Shared bits -------------------------------------------------------- */
/* CMS icon keys render through partials/_icon.php in two drawing grids;
   one stroke weight here makes them read as one set. */
.home-icon { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; color: var(--c-brand); }
.home-icon svg { width: 100%; height: 100%; stroke-width: 1.6; }
.home-icon svg[viewBox="0 0 32 32"] { stroke-width: 2.1; }

/* Horizontal rails (traveller stories, Google reviews): native scroll-snap,
   website.js adds previous/next on top. */
.home-rail {
    list-style: none; display: grid; grid-auto-flow: column; gap: var(--s-4);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: var(--s-1);
}
.home-rail::-webkit-scrollbar { display: none; }
.home-rail > li { scroll-snap-align: start; display: grid; min-width: 0; }
.home-rail-bar { display: flex; gap: var(--s-2); }
.home-rail-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--c-line-strong); background: var(--c-paper); color: var(--c-ink); cursor: pointer;
}
.home-rail-btn svg { width: 20px; height: 20px; }
.home-rail-btn:hover { border-color: var(--c-ink); }
.home-rail-btn:disabled { opacity: .4; cursor: default; border-color: var(--c-line-strong); }

/* ---- 1. Hero ------------------------------------------------------------ */
.home-hero {
    position: relative; display: grid; isolation: isolate; overflow: hidden;
    background: var(--c-ink); color: var(--c-on-dark);
}
/* Height: capped (as since v1.28.2) so the trip planner below starts inside
   the first screen at common laptop sizes - the lead form must not be pushed
   out of sight by the photo. */
.home-hero-slides { grid-area: 1 / 1; display: grid; min-height: clamp(480px, 64svh, 600px); }
.home-hero-slide {
    grid-area: 1 / 1; position: relative; display: grid; align-items: end;
    opacity: 0; visibility: hidden;
    transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.home-hero-slide.active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s var(--ease), visibility 0s; }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The scrim: dark from the bottom (where the words sit) and from the left. */
.home-hero-slide::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(0deg, rgba(27,31,59,.92) 0%, rgba(27,31,59,.62) 32%, rgba(27,31,59,.12) 62%, rgba(27,31,59,0) 100%),
        linear-gradient(90deg, rgba(27,31,59,.5) 0%, rgba(27,31,59,0) 62%);
}
.home-hero-content { position: relative; z-index: 1; padding-block: var(--s-8) var(--s-7); }
.has-controls .home-hero-content { padding-bottom: calc(var(--s-6) + 76px); }
.home-hero-copy { display: grid; gap: var(--s-4); justify-items: start; max-width: 780px; }
.home-hero-badge { margin-bottom: var(--s-1); }
.home-hero-title {
    color: var(--c-on-dark); font-size: var(--t-5xl); font-weight: 720;
    line-height: .98; letter-spacing: -0.035em; max-width: 14ch;
}
.home-hero-sub { font-size: var(--t-lg); font-weight: 600; line-height: 1.3; color: var(--c-on-dark); }
.home-hero-desc { font-family: var(--f-text); font-size: var(--t-md); line-height: 1.55; color: rgba(255,255,255,.88); max-width: 52ch; }
.home-hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.align-center .home-hero-copy { margin-inline: auto; justify-items: center; text-align: center; }
.align-right .home-hero-copy { margin-left: auto; justify-items: end; text-align: right; }

/* The control rail: count, progress segments, pause/play, previous, next. */
.home-hero-rail {
    grid-area: 1 / 1; align-self: end; position: relative; z-index: 2;
    display: flex; align-items: center; gap: var(--s-4); padding-bottom: var(--s-5);
}
.home-hero-count { flex: none; min-width: 4.2em; font-size: var(--t-xs); font-weight: 650; font-variant-numeric: tabular-nums; color: var(--c-on-dark); }
.home-hero-dots { display: flex; gap: 6px; flex: 1 1 auto; max-width: 340px; }
.home-hero-dot { flex: 1 1 0; display: grid; align-items: center; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.home-hero-dot > span { position: relative; display: block; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.34); }
.home-hero-dot > span::after { content: ''; position: absolute; inset: 0; background: var(--c-on-dark); transform: scaleX(0); transform-origin: left center; }
.home-hero-dot:hover > span { background: rgba(255,255,255,.6); }
.home-hero-dot.active > span::after { transform: scaleX(1); }
.home-hero.is-playing .home-hero-dot.active > span::after { animation: home-hero-fill var(--hero-interval, 7000ms) linear both; }
@keyframes home-hero-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.home-hero-buttons { display: flex; gap: var(--s-2); margin-left: auto; }
.home-hero-btn {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.5); background: rgba(27,31,59,.3); color: var(--c-on-dark); cursor: pointer;
}
.home-hero-btn:hover { border-color: var(--c-on-dark); background: rgba(27,31,59,.5); }
.home-hero-btn svg { width: 18px; height: 18px; }
.home-hero-ico-pause, .home-hero-ico-play { display: grid; }
.home-hero-ico-play { display: none; }
.home-hero.is-paused .home-hero-ico-pause { display: none; }
.home-hero.is-paused .home-hero-ico-play { display: grid; }

/* No active slide: a calm text hero, never an empty band. */
.home-hero-calm { background: var(--c-ink); color: var(--c-on-dark); }
.home-hero-calm-inner { display: grid; gap: var(--s-5); justify-items: start; padding-block: var(--s-9) var(--s-8); }
.home-hero-calm-title { color: var(--c-on-dark); font-size: var(--t-4xl); max-width: 16ch; letter-spacing: -0.03em; }
.home-hero-calm-lede { font-family: var(--f-text); font-size: var(--t-md); color: var(--c-on-dark-2); max-width: 56ch; }

/* Laptop-height screens: a smaller headline and less air above it, so the
   planner heading and its tabs still show on the first screen. */
@media (min-width: 641px) and (max-height: 860px) {
    .home-hero-content { padding-top: var(--s-6); }
    .has-controls .home-hero-content { padding-bottom: calc(var(--s-5) + 68px); }
    .home-hero-title { font-size: var(--t-4xl); }
}

@media (max-width: 640px) {
    .home-hero-slides { min-height: 480px; }
    /* On a phone the words cover most of the photo: a taller scrim. */
    .home-hero-slide::after { background: linear-gradient(0deg, rgba(27,31,59,.92) 0%, rgba(27,31,59,.72) 45%, rgba(27,31,59,.35) 75%, rgba(27,31,59,.15) 100%); }
    .home-hero-content { padding-top: var(--s-7); }
    .home-hero-cta { width: 100%; }
    .home-hero-cta .btn { flex: 1 1 auto; }
    .home-hero-rail { gap: var(--s-3); }
    .home-hero-buttons { gap: 6px; }
}

/* ---- 2. Planner + trust (#plan) ----------------------------------------- */
.home-plan { background: var(--c-haze); border-bottom: 1px solid var(--c-line); }
.home-plan-inner { display: grid; gap: var(--s-7); padding-block: var(--s-5) var(--s-8); }
.home-planner {
    display: grid; gap: var(--s-5); padding: clamp(20px, 3vw, 36px);
    background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-media);
}
.home-planner-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.home-planner-intro { display: grid; gap: var(--s-2); max-width: 560px; }
.home-planner-title { font-size: var(--t-2xl); }
.home-planner-sub { color: var(--c-ink-2); }
.home-planner-tabs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px;
    width: min(100%, 460px); background: var(--c-haze); border-radius: calc(var(--r-control) + 4px);
}
.home-planner-tab {
    display: grid; gap: 2px; align-content: center; min-height: 56px; padding: 8px 14px;
    border: 0; border-radius: var(--r-control); background: transparent; color: var(--c-ink-2);
    text-align: left; cursor: pointer;
}
.home-planner-tab:hover { color: var(--c-ink); }
.home-planner-tab.is-active { background: var(--c-paper); color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-line); }
.home-planner-tab-t { font-weight: 650; font-size: var(--t-sm); }
.home-planner-tab-s { font-size: 0.8125rem; color: var(--c-ink-3); }
.home-planner-panel { min-width: 0; }

/* Steps of the concierge form: a real sequence, so numbered. */
.home-steps { list-style: none; display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.home-steps > li { display: flex; align-items: center; gap: var(--s-3); flex: 1 1 auto; min-width: 0; }
.home-steps > li:last-child { flex: 0 1 auto; }
.home-steps > li:not(:last-child)::after { content: ''; flex: 1 1 auto; min-width: 16px; height: 1.5px; background: var(--c-line); }
.home-step {
    flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0;
    border: 0; background: none; color: var(--c-ink-3); font-weight: 600; font-size: var(--t-xs); cursor: pointer; white-space: nowrap;
}
.home-step-n {
    display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid var(--c-line-strong); color: var(--c-ink-2); font-variant-numeric: tabular-nums;
}
.home-step.is-active { color: var(--c-ink); }
.home-step.is-active .home-step-n { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-dark); }
.home-step.is-done .home-step-n { background: var(--c-brand-soft); border-color: var(--c-brand-line); color: var(--c-brand); }

.home-pane { display: grid; gap: var(--s-5); }
.home-fields { display: grid; gap: var(--s-4); align-items: start; }
.home-fields-4 { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.home-fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.home-fields-quick { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.home-quick-submit { padding-top: 26px; }
.home-quick-note { margin-top: var(--s-3); font-size: var(--t-xs); color: var(--c-ink-3); }

/* +91 prefix: the server accepts Indian mobile numbers only, so say so. */
.home-tel { display: flex; align-items: stretch; min-width: 0; }
.home-tel-cc {
    display: grid; place-items: center; flex: none; padding: 0 12px;
    border: 1.5px solid var(--c-line-strong); border-right: 0; border-radius: var(--r-control) 0 0 var(--r-control);
    background: var(--c-haze); color: var(--c-ink-2); font-weight: 600; font-variant-numeric: tabular-nums;
}
.field .home-tel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { flex: 1 1 auto; min-width: 0; border-radius: 0 var(--r-control) var(--r-control) 0; }

.home-pane-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.home-chips { display: grid; gap: var(--s-2); min-width: 0; }
.home-chips-label { font-size: var(--t-xs); font-weight: 620; color: var(--c-ink-2); }
.home-chips-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.home-chip { min-height: 44px; cursor: pointer; }
.home-chip.is-on { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-dark); }
.home-pane-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: flex-end; margin-left: auto; }
.home-pane-actions-split { justify-content: space-between; margin-left: 0; }

/* Trust row: the facts, said plainly. */
.home-trust { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--s-5) var(--s-6); }
@media (max-width: 1100px) { .home-trust { gap: var(--s-4); } .home-trust-body { display: none; } }
.home-trust-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.home-trust-text { display: grid; gap: 2px; }
.home-trust-fact { font-size: var(--t-sm); color: var(--c-ink-2); line-height: 1.35; }
.home-trust-fact strong { color: var(--c-ink); font-weight: 700; }
.home-trust-body { font-size: var(--t-xs); color: var(--c-ink-3); }

@media (max-width: 1024px) {
    .home-fields-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-field-wide { grid-column: 1 / -1; }
    .home-fields-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-fields-quick > :first-child, .home-quick-submit { grid-column: 1 / -1; }
    .home-quick-submit { padding-top: 0; }
}
@media (max-width: 767px) {
    .home-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-trust-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .home-plan-inner { padding-block: var(--s-5) var(--s-7); gap: var(--s-6); }
    .home-planner { padding: var(--s-5) var(--s-4); gap: var(--s-4); }
    .home-planner-tabs { width: 100%; }
    .home-fields-3 { grid-template-columns: minmax(0, 1fr); }
    .home-step:not(.is-active) .home-step-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .home-steps { margin-bottom: var(--s-4); }
    .home-pane-foot { display: grid; justify-content: stretch; }
    .home-pane-actions { margin-left: 0; }
    .home-pane-actions .btn-primary { flex: 1 1 auto; }
    .home-chips-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); }
    .home-chips-row::-webkit-scrollbar { display: none; }
    .home-chip { flex: none; }
}
@media (max-width: 560px) {
    .home-fields-4, .home-fields-2, .home-fields-quick { grid-template-columns: minmax(0, 1fr); }
    .home-planner-title { font-size: var(--t-xl); }
    .home-planner-tab { padding: 8px 10px; }
    .home-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
}

/* ---- 3. Travel markets -------------------------------------------------- */
.home-markets-inner { display: grid; gap: var(--s-6); }
.home-markets:not(.is-ready) .home-mk-tabs { display: none; }
.home-markets:not(.is-ready) .home-mk + .home-mk { padding-top: var(--section-y); }
.home-mk-tabs {
    display: flex; gap: var(--s-6); overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--c-line);
}
.home-mk-tabs::-webkit-scrollbar { display: none; }
.home-mk-tab {
    flex: none; min-height: 52px; padding: 0; margin-bottom: -1px;
    border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer;
    font-family: var(--f-ui); font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.01em; color: var(--c-ink-3);
}
.home-mk-tab:hover { color: var(--c-ink); }
.home-mk-tab[aria-selected="true"] { color: var(--c-ink); border-bottom-color: var(--c-marigold); }
.home-mk { min-width: 0; }
.home-mk-price { margin-top: var(--s-4); color: var(--c-ink-2); }
.home-mk-price strong { color: var(--c-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.home-mk-pkgs { display: grid; gap: var(--s-5); margin-top: var(--s-8); }
.home-mk-pkgs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.home-mk-pkgs-title { font-size: var(--t-xl); }

/* The .mosaic is drawn for four tiles (one 2x2 feature, three around it).
   These count modifiers keep 1-3 tiles from leaving holes. */
.home-mosaic-1 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: clamp(320px, 34vw, 460px); }
.home-mosaic-1 > :first-child { grid-column: auto; grid-row: auto; }
.home-mosaic-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(320px, 30vw, 440px); }
.home-mosaic-2 > :first-child { grid-column: auto; grid-row: auto; }
.home-mosaic-3 > :nth-child(n + 2) { grid-column: span 2; }
@media (max-width: 1024px) {
    /* .dest-tile has min-height 280px; the shared 260px rows let tiles overlap. */
    .home-mosaic { grid-auto-rows: 280px; }
    .home-mosaic-3 > :nth-child(n + 2) { grid-column: auto; }
    .home-mosaic-4 > :nth-child(4) { grid-column: span 2; }
    .home-mk-tab { font-size: var(--t-md); }
    .home-mk-tabs { gap: var(--s-5); }
}
@media (max-width: 560px) {
    .home-mosaic > * { grid-column: auto; grid-row: auto; }
    .home-mosaic > :nth-child(n) { grid-column: auto; }
    .home-mosaic { grid-auto-rows: 360px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
    .home-mosaic-1 { grid-auto-columns: 100%; }
    .home-mk-tab { font-size: var(--t-sm); }
    .home-mk-tabs { gap: var(--s-4); }
}

/* ---- 4. Curated journeys ------------------------------------------------ */
.home-tickets { list-style: none; display: grid; gap: var(--s-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-tickets > li { display: grid; min-width: 0; }
.home-tickets-n1 { grid-template-columns: minmax(0, 440px); }
.home-tickets-n2, .home-tickets-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* "See all" cell: fills the hole an odd count leaves (5 of 6 on desktop,
   3 of 4 or 5 of 6 on tablet); a 3-up desktop row of three needs none. */
.home-tickets-more { display: none; }
.home-tickets-n5 > .home-tickets-more { display: grid; }
.home-more-panel {
    display: grid; place-content: center; justify-items: center; gap: var(--s-3); min-height: 220px; padding: var(--s-6);
    border: 1.5px dashed var(--c-line-strong); border-radius: var(--r-media); color: var(--c-brand);
    font-weight: 650; font-size: var(--t-md); text-align: center; text-decoration: none;
}
.home-more-panel:hover { border-color: var(--c-brand); background: var(--c-paper); }
.home-more-panel svg { width: 32px; height: 32px; color: var(--c-marigold-text); }
@media (max-width: 1024px) {
    .home-tickets, .home-tickets-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-tickets-n3 > .home-tickets-more { display: grid; }
    .home-tickets-n1 { grid-template-columns: minmax(0, 440px); }
}
@media (max-width: 640px) {
    /* Phones: one row with the next ticket peeking in. */
    .home-tickets {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
        margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: var(--s-1);
    }
    .home-tickets::-webkit-scrollbar { display: none; }
    .home-tickets > li, .home-offers-list > li { scroll-snap-align: start; }
    .home-offers-list {
        grid-auto-flow: column; grid-auto-columns: 84%;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
        margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: var(--s-1);
    }
    .home-offers-list::-webkit-scrollbar { display: none; }
    .home-offers-list > li { display: grid; }
    .home-tickets-n1 { grid-auto-columns: 100%; }
    .home-tickets > .home-tickets-more { display: grid; }
}
/* Desktop only (the tablet rules above stop at 1024px): four whole tickets
   across. Four journeys fill one row; five or six (.home-tickets-rail, see
   _home_journeys.php) become a one-row scroll-snap carousel of four, which
   website.js pages a whole ticket at a time. The 6px padding, taken back by
   the negative margin, keeps a focused ticket's ring and the cards' edges
   inside the scroller instead of clipped by it. The scrollbar stays as the
   no-JavaScript way along the row and is hidden once the arrows show. */
@media (min-width: 1025px) {
    .home-tickets-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-tickets-rail .home-tickets {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--s-5)) / 4);
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
        padding: 6px; margin: -6px; scroll-padding-inline: 6px;
    }
    .home-tickets-rail .home-tickets > li { scroll-snap-align: start; }
    .home-tickets-rail:has([data-cj-bar]:not([hidden])) .home-tickets { scrollbar-width: none; }
    .home-tickets-rail:has([data-cj-bar]:not([hidden])) .home-tickets::-webkit-scrollbar { display: none; }
    /* The arrows sit with "See all" at the end of the heading row (as on
       Traveller Stories) and never wrap under the heading on a narrow desktop. */
    .home-tickets-rail .section-head-row { flex-wrap: nowrap; justify-content: flex-start; }
    .home-tickets-rail .section-head-row > .section-head { min-width: 0; margin-right: auto; }
    .home-tickets-rail .section-head-row > .link-action, .home-tickets-rail .home-rail-bar { flex: none; }
    /* A quarter-width ticket: the no-photo panel's name is set smaller and
       stops at three lines rather than running out of the panel, and the
       "View trip" arrow keeps its size beside a wrapped price. */
    .home-tickets-rail .media-placeholder, .home-tickets-n4 .media-placeholder { font-size: var(--t-lg); }
    .home-tickets-rail .media-placeholder > span, .home-tickets-n4 .media-placeholder > span {
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    .home-tickets-rail .ticket-cta svg, .home-tickets-n4 .ticket-cta svg { flex: none; }
}

/* ---- 5. Offers ------------------------------------------------------------ */
.home-offers-grid { display: grid; gap: var(--s-6) var(--s-8); }
.home-offers-head { margin-bottom: 0; align-content: start; }
.home-offers-list { list-style: none; }
@media (min-width: 1100px) {
    .home-offers-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
    .home-offers-head { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}

/* ---- 6. Travel styles: an index, not a wall of photos -------------------- */
.home-styles-list { list-style: none; display: grid; gap: var(--s-3) var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.home-style {
    display: flex; align-items: center; gap: var(--s-4); height: 100%; padding: var(--s-3);
    background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-media);
    color: var(--c-ink); text-decoration: none; transition: border-color .15s var(--ease);
}
.home-style:hover { border-color: var(--c-ink-3); color: var(--c-ink); }
.home-style-img { flex: none; width: 76px; height: 76px; overflow: hidden; border-radius: 10px; background: var(--c-haze-2); }
.home-style-img img { width: 100%; height: 100%; object-fit: cover; }
.home-style-text { display: grid; gap: 2px; min-width: 0; }
.home-style-name { font-weight: 680; font-size: var(--t-md); letter-spacing: -0.01em; line-height: 1.2; }
.home-style-desc { font-size: var(--t-xs); color: var(--c-ink-2); line-height: 1.4; }

/* ---- 7. Why TripSkyWay (the ink band) ------------------------------------ */
.home-why-grid { display: grid; gap: var(--s-7) var(--s-8); }
.home-why-intro { display: grid; gap: var(--s-4); align-content: start; }
.home-why-lede { font-family: var(--f-text); font-size: var(--t-md); line-height: 1.6; color: var(--c-on-dark-2); max-width: 46ch; }
.home-why-cta {
    display: inline-flex; min-height: 44px; align-items: center; color: var(--c-on-dark); font-weight: 620; text-decoration: none;
    border-bottom: 2px solid var(--c-marigold);
}
.home-why-cta:hover { color: var(--c-on-dark); border-bottom-color: var(--c-on-dark); }
.home-why-list { list-style: none; display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.home-why-item { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.16); }
.home-why-icon { color: var(--c-marigold); width: 32px; height: 32px; margin-bottom: var(--s-1); }
.home-why-title { color: var(--c-on-dark); font-size: var(--t-lg); }
.home-why-text { font-family: var(--f-text); color: var(--c-on-dark-2); line-height: 1.55; }
@media (min-width: 960px) { .home-why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---- 8. The process: stops on a route ------------------------------------ */
.home-steps-route { list-style: none; display: grid; gap: var(--s-5); grid-template-columns: repeat(var(--count, 5), minmax(0, 1fr)); }
.home-stop { position: relative; display: grid; gap: var(--s-3); align-content: start; }
.home-stop:not(:last-child)::after {
    content: ''; position: absolute; top: 21px; left: 56px; right: calc(-1 * var(--s-5) + 10px);
    border-top: 2.5px dashed var(--c-marigold);
}
.home-stop-n {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--c-paper); border: 2.5px solid var(--c-marigold);
    font-weight: 720; font-size: var(--t-md); font-variant-numeric: tabular-nums; color: var(--c-ink);
}
.home-stop:first-child .home-stop-n, .home-stop:last-child .home-stop-n { background: var(--c-marigold); }
.home-stop-title { font-size: var(--t-md); line-height: 1.25; }
.home-stop-text { font-family: var(--f-text); font-size: var(--t-sm); line-height: 1.55; color: var(--c-ink-2); }
.home-process-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6);
    margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line);
}
.home-process-values { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-weight: 600; }
.home-process-values li { display: inline-flex; align-items: center; gap: var(--s-2); }
.home-process-values svg { width: 18px; height: 18px; color: var(--c-success); }
@media (max-width: 900px) {
    .home-steps-route { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
    .home-stop { grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-1); }
    .home-stop-n { grid-row: span 2; }
    .home-stop:not(:last-child)::after { top: 52px; bottom: calc(-1 * var(--s-6) + 8px); left: 21px; right: auto; border-top: 0; border-left: 2.5px dashed var(--c-marigold); }
    .home-stop-title { padding-top: 10px; }
}

/* ---- 9. Traveller stories ------------------------------------------------ */
.home-stories .section-head-row { align-items: end; }
/* Four to a view on desktop (the engine pages by whole cards, so the rail
   never ends on a clipped one); bleeding to the screen edge with a peek on
   smaller screens. */
.home-stories-rail { grid-auto-columns: calc((100% - 3 * var(--s-4)) / 4); }
.home-story { position: relative; }
.home-story-card { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--r-media); cursor: pointer; }
.home-story-media {
    position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-media);
    background: linear-gradient(160deg, var(--c-brand-strong), var(--c-ink));
}
.home-story-blank { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); }
.home-story-blank svg { width: 40px; height: 40px; }
.home-story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-story-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,31,59,0) 55%, rgba(27,31,59,.55) 100%); }
.home-story-play {
    position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 1;
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--c-paper); color: var(--c-ink);
}
.home-story-play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.home-story-card:hover .home-story-play { background: var(--c-marigold); }
.home-story-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; border-radius: var(--r-media); background: var(--c-ink); }
.home-story-stop {
    position: absolute; top: var(--s-2); right: var(--s-2); z-index: 3;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(27,31,59,.78); color: var(--c-on-dark); cursor: pointer;
}
.home-story-stop svg { width: 20px; height: 20px; }
@media (max-width: 1023px) {
    .home-stories-rail { grid-auto-columns: calc((100% - 2 * var(--s-4) - var(--gutter)) / 3.2); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
@media (max-width: 640px) { .home-stories-rail { grid-auto-columns: 62%; } }

/* ---- 10. Google reviews -------------------------------------------------- */
.home-reviews-grid { display: grid; gap: var(--s-6) var(--s-8); }
.home-reviews-summary { display: grid; gap: var(--s-4); align-content: start; }
.home-reviews-summary h2 { font-size: var(--t-2xl); }
.home-score { display: flex; align-items: center; gap: var(--s-3); }
/* Google's logo, at its own proportions (square): 64px on a wide desktop,
   56px where the summary column is narrow, 48px on phones. */
.home-score-logo { flex: none; width: clamp(56px, 4.5vw, 64px); height: auto; aspect-ratio: 1; }
@media (max-width: 640px) { .home-score-logo { width: 48px; } }
.home-score-num { font-size: var(--t-3xl); font-weight: 720; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.home-score-meta { display: grid; gap: 4px; font-size: var(--t-xs); color: var(--c-ink-2); }
.home-stars { display: inline-flex; gap: 2px; }
.home-star { display: grid; color: var(--c-line-strong); }
.home-star svg { width: 18px; height: 18px; }
.home-star.is-on { color: var(--c-marigold); }
.home-star.is-on svg { fill: currentColor; }
.home-reviews-rail { display: grid; gap: var(--s-4); min-width: 0; }
.home-reviews-rail .home-rail { grid-auto-columns: min(360px, 86%); }
.home-review {
    display: flex; flex-direction: column; gap: var(--s-3); height: 100%; margin: 0; padding: var(--s-5);
    background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-media);
}
.home-review-text {
    margin: 0; font-family: var(--f-text); font-size: var(--t-md); line-height: 1.6; color: var(--c-ink);
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.home-review.is-open .home-review-text { display: block; -webkit-line-clamp: unset; }
.home-review-more { align-self: flex-start; min-height: 36px; padding: 0; border: 0; background: none; color: var(--c-brand); font-weight: 620; cursor: pointer; }
.home-review-more:hover { text-decoration: underline; }
.home-review-by { display: grid; gap: 2px; margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--c-line); }
.home-review-name { font-weight: 650; }
.home-review-src { font-size: var(--t-xs); color: var(--c-ink-3); }
.home-reviews-summary .link-action svg { width: 16px; height: 16px; }
@media (min-width: 1024px) { .home-reviews-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) { .home-reviews-rail .home-rail { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }

/* ---- 11. Travel journal --------------------------------------------------- */
.home-journal-grid { list-style: none; display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.home-post { position: relative; display: grid; gap: var(--s-4); align-content: start; }
.home-post-media { aspect-ratio: 3 / 2; }
.home-post-media img { transition: transform .5s var(--ease); }
.home-post:hover .home-post-media img { transform: scale(1.03); }
.home-post-body { display: grid; gap: var(--s-2); }
.home-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: var(--t-xs); color: var(--c-ink-3); }
.home-post-cat { font-weight: 650; color: var(--c-marigold-text); }
.home-post-title { font-size: var(--t-lg); line-height: 1.2; }
.home-post-title a { color: var(--c-ink); text-decoration: none; }
.home-post-title a::after { content: ''; position: absolute; inset: 0; }
.home-post-title a:hover { text-decoration: underline; }
.home-post:focus-within { box-shadow: var(--focus); border-radius: var(--r-media); }
.home-post-title a:focus-visible { box-shadow: none; }
.home-post-excerpt { font-family: var(--f-text); color: var(--c-ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
    /* After the first article, compact rows keep the page short. */
    .home-post:not(.is-lead) { grid-template-columns: 104px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
    .home-post:not(.is-lead) .home-post-media { aspect-ratio: 1; border-radius: 10px; }
    .home-post:not(.is-lead) .home-post-media .media-placeholder svg { display: none; }
    .home-post:not(.is-lead) .home-post-excerpt { display: none; }
    .home-post:not(.is-lead) .home-post-title { font-size: var(--t-md); }
}

/* ---- 12. In the news ------------------------------------------------------ */
.home-news-list { list-style: none; display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.home-press { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 2px solid var(--c-ink); }
.home-press-source { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); font-size: var(--t-xs); color: var(--c-ink-3); }
.home-press-pub { font-weight: 650; color: var(--c-ink-2); }
.home-press-logo { height: 24px; width: auto; max-width: 140px; object-fit: contain; }
.home-press-title { font-size: var(--t-lg); line-height: 1.25; }
.home-press-title a { color: var(--c-ink); text-decoration: none; }
.home-press-title a:hover { color: var(--c-brand); text-decoration: underline; }
.home-press-text { font-family: var(--f-text); color: var(--c-ink-2); line-height: 1.55; }

/* ---- 13. Partners logo rail ----------------------------------------------- */
.home-partners { border-top: 1px solid var(--c-line); }
.home-partners-inner { display: grid; gap: var(--s-5) var(--s-7); align-items: center; padding-block: var(--s-7); }
.home-partners-head { display: grid; gap: var(--s-1); }
.home-partners-head h2 { font-size: var(--t-lg); letter-spacing: -0.01em; }
.home-partners-head p { font-size: var(--t-xs); color: var(--c-ink-3); }
.home-logos { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.home-logos::-webkit-scrollbar { display: none; }
.home-logos-track { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-7); }
.home-logos.is-live { -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 94%, transparent); mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 94%, transparent); }
.home-logos.is-live .home-logos-track { flex-wrap: nowrap; }
.home-logo { flex: none; display: grid; place-items: center; min-height: 48px; }
.home-logo img { height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: opacity .15s var(--ease), filter .15s var(--ease); }
.home-logo a { display: grid; place-items: center; min-height: 48px; }
.home-logo a:hover img, .home-logo a:focus-visible img { filter: none; opacity: 1; }
@media (min-width: 900px) { .home-partners-inner { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }

/* ---- 14. FAQ ------------------------------------------------------------------ */
.home-faq-grid { display: grid; gap: var(--s-5) var(--s-8); }
.home-faq-head { margin-bottom: 0; align-content: start; }
@media (min-width: 960px) {
    .home-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
    .home-faq-head { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}

/* ---- 15. Careers ------------------------------------------------------------- */
.home-careers-grid { display: grid; gap: var(--s-6) var(--s-8); align-items: center; }
.home-careers-media { aspect-ratio: 4 / 3; }
.home-careers-body { display: grid; gap: var(--s-4); justify-items: start; }
@media (min-width: 860px) { .home-careers-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* ---- 16. Final call to action ------------------------------------------------ */
.home-final { position: relative; isolation: isolate; overflow: hidden; background: var(--c-ink); color: var(--c-on-dark); }
.home-final-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.home-final::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(27,31,59,.9) 0%, rgba(27,31,59,.66) 55%, rgba(27,31,59,.34) 100%);
}
.home-final-inner { display: grid; gap: var(--s-4); justify-items: start; padding-block: var(--s-9); }
.home-final-inner h2 { color: var(--c-on-dark); max-width: 18ch; }
.home-final-lede { font-family: var(--f-text); font-size: var(--t-md); line-height: 1.55; color: rgba(255,255,255,.9); max-width: 52ch; }
.home-final-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
@media (max-width: 480px) {
    .home-final-cta { width: 100%; }
    .home-final-cta .btn { flex: 1 1 100%; }
}
