/* ============================================================
   YoloYachtSearch1366 — Homepage v2 blocks
   [yolo_home_hero] [yolo_home_destinations] [yolo_home_fleet] [yolo_home_why]
   [yolo_home_how] [yolo_home_guides] [yolo_home_partners]
   (includes/class-yolo-ys-home-blocks.php, public/templates/partials/home-v2/)

   Palette (docs/PUBLIC-DESIGN-BEST-PRACTICES.md): navy #173b6d / navy dark #12305a /
   ink #0f172a / muted #475569 / faint #64748b / line #cbd5e1 / line soft #e2e8f0 /
   ground #ffffff · #f8fafc / navy tint #e8eef7 / gold mark #b45309 on #fff7e6.
   Type: font inherited from the theme; eyebrows 13px/600 sentence case (never
   uppercase); h2 clamp(1.4rem, 1.1rem + 1.2vw, 2rem); subtitles 15px muted.
   Controls: 44px targets, 3px #123a71 focus rings, reduced motion respected.
   Cards (yacht card v3) come from yacht-card.css — nothing here restyles them.
   Headings, paragraphs, lists, links and images are written as
   `.yolo-home-section .x` (0,2,0) so theme rules like `.entry-content h1` or
   `.entry-content img { height: auto }` (0,1,1) cannot override them.
   No child combinators, no !important.
   ============================================================ */

/* ---- section shell ---- */
.yolo-home-section {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px);
    font: inherit;
    line-height: 1.5;
    color: #0f172a;
    background: #ffffff;
}
.yolo-home-section.is-tinted { background: #f8fafc; }
.yolo-home-section *,
.yolo-home-section *::before,
.yolo-home-section *::after { box-sizing: border-box; }
.yolo-home-inner {
    width: 100%;
    max-width: 1440px; /* YoloYachtSearch1371: 1240 -> 1440 on the owner's ask (photos and cards grow, copy stays at 72ch / 64ch) */
    margin: 0 auto;
}
.yolo-home-section .ys-i {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    flex: 0 0 auto;
}

/* ---- section head: eyebrow · h2 · subtitle · optional link on the right ---- */
.yolo-home-section .yolo-home-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 24px;
    margin: 0 0 clamp(18px, 3vw, 28px);
}
.yolo-home-section .yolo-home-head__text {
    flex: 1 1 420px;
    min-width: 0;
    max-width: 72ch;
}
.yolo-home-section .yolo-home-eyebrow {
    margin: 0 0 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: #475569;
}
.yolo-home-section .yolo-home-h2 {
    margin: 0;
    padding: 0;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    text-wrap: balance;
}
.yolo-home-section .yolo-home-sub {
    margin: 8px 0 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #475569;
}
.yolo-home-section .yolo-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #173b6d;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}
.yolo-home-section .yolo-home-link:hover {
    color: #12305a;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.yolo-home-section .yolo-home-link:focus-visible,
.yolo-home-section .yolo-home-tile:focus-visible,
.yolo-home-section .yolo-home-guide__link:focus-visible,
.yolo-home-section .yolo-home-why__link:focus-visible {
    outline: 3px solid #123a71;
    outline-offset: 3px;
}

/* ---- hero ----
   z-index: 1 (with the isolated stacking context) lifts the whole hero above the
   later sections, which are position: relative too: the trip bar's dropdown menus
   (Departure base, Yacht type) open downwards over the destination tiles and must
   paint on top of them, not underneath. */
.yolo-home-hero {
    isolation: isolate;
    z-index: 1;
    padding-top: clamp(40px, 7vw, 88px);
    padding-bottom: clamp(32px, 5vw, 64px);
    color: #ffffff;
    background: linear-gradient(135deg, #12305a 0%, #173b6d 100%);
}
.yolo-home-hero .yolo-home-hero__img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}
/* dark scrim so the white copy stays readable on any photo */
.yolo-home-hero .yolo-home-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    background: linear-gradient(180deg, rgba(8, 20, 40, 0.62) 0%, rgba(8, 20, 40, 0.6) 45%, rgba(8, 20, 40, 0.74) 100%);
}
.yolo-home-hero.has-image .yolo-home-hero__scrim { display: block; }
.yolo-home-hero .yolo-home-hero__inner {
    position: relative;
    z-index: 2;
}
.yolo-home-hero .yolo-home-hero__title {
    margin: 0;
    padding: 0;
    max-width: 22ch;
    font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    color: #ffffff;
    text-wrap: balance;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.yolo-home-hero .yolo-home-hero__sub {
    margin: 12px 0 0;
    padding: 0;
    max-width: 64ch;
    font-size: clamp(15px, 0.9rem + 0.25vw, 17px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
/* the trip bar ([yolo_search_filters], redirect mode) inside a white card */
.yolo-home-hero .yolo-home-hero__bar {
    margin: clamp(20px, 3vw, 28px) 0 0;
    padding: clamp(10px, 1.5vw, 16px);
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 18px 44px -20px rgba(2, 12, 30, 0.6);
}
/* Our Yachts gives the bar a grey band and borders; the hero card replaces the band.
   The bar's own trust row is not rendered here ([yolo_search_filters trust="false"]):
   the hero prints the rating pill once, in its trust line. */
.yolo-home-hero .sf-v3[data-sf-mode="redirect"] .sf-trip {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}
.yolo-home-hero .sf-v3 .sf-row-main { box-shadow: none; }
.yolo-home-hero .yolo-home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}
.yolo-home-hero__trust .yolo-ys-trust--pill {
    min-height: 44px;
    margin-top: 0;
}
/* the navy focus ring is invisible on the navy hero: a white halo under it */
.yolo-home-hero__trust .yolo-ys-trust--pill:focus-visible {
    outline: 3px solid #123a71;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff;
}
.yolo-home-hero .yolo-home-fact {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 24px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.yolo-home-hero .yolo-home-fact .ys-i {
    flex-shrink: 0;
    line-height: 1.2;
    font-size: 18px;
    color: #ffffff;
}

/* ---- destinations: 4 photo tiles with live counts ---- */
.yolo-home-section .yolo-home-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.yolo-home-section .yolo-home-tiles__item {
    margin: 0;
    padding: 0;
    min-width: 0;
    list-style: none;
}
.yolo-home-section .yolo-home-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.yolo-home-section .yolo-home-tile:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px -18px rgba(23, 59, 109, 0.35);
    color: #0f172a;
    text-decoration: none;
}
.yolo-home-section .yolo-home-tile__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e8eef7;
}
.yolo-home-section .yolo-home-tile__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}
.yolo-home-section .yolo-home-tile__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 40px;
    color: #173b6d;
}
.yolo-home-section .yolo-home-tile__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
}
.yolo-home-section .yolo-home-tile__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}
/* the "Our base" mark — gold dot + text, the same mark as the YOLO fleet badge */
.yolo-home-section .yolo-home-tile__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff7e6;
    color: #b45309;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.yolo-home-section .yolo-home-tile__tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b45309;
}
.yolo-home-section .yolo-home-tile__count {
    font-size: 14px;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

/* ---- fleet: the card v3 grid (Bootstrap columns, cards from yacht-card.css, the
   carousel chrome from our-fleet.css — enqueued with the block) ---- */
.yolo-home-fleet .yolo-home-fleet__grid {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
/* our-fleet.css is written for the Our Yachts page: it pushes the grid down 30px
   and narrows the Bootstrap gutters on phones. Inside this block the section head
   sets the rhythm and the gutters stay Bootstrap's (g-4). */
.yolo-home-fleet .yolo-ys-yacht-grid { margin-top: 0; }
@media (max-width: 768px) {
    .yolo-home-fleet .yolo-ys-yacht-grid.row {
        margin-left: calc(-.5 * var(--bs-gutter-x, 1.5rem));
        margin-right: calc(-.5 * var(--bs-gutter-x, 1.5rem));
    }
    .yolo-home-fleet .yolo-ys-yacht-grid.row .yolo-yacht-item {
        padding-left: calc(.5 * var(--bs-gutter-x, 1.5rem));
        padding-right: calc(.5 * var(--bs-gutter-x, 1.5rem));
        margin-bottom: 0;
    }
}

/* ---- why: 4 points, icon tile + title + one line ---- */
.yolo-home-section .yolo-home-why__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.yolo-home-section .yolo-home-why__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 0;
    min-width: 0;
    list-style: none;
}
.yolo-home-section .yolo-home-why__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8eef7;
    color: #173b6d;
    font-size: 22px;
}
.yolo-home-section .yolo-home-why__icon.is-star {
    background: #fff7e6;
    color: #b45309;
}
.yolo-home-section .yolo-home-why__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.yolo-home-section .yolo-home-why__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}
.yolo-home-section .yolo-home-why__text {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}
.yolo-home-section .yolo-home-why__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
    color: #173b6d;
    text-decoration: none;
}
.yolo-home-section .yolo-home-why__link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* "(opens Google Maps in a new tab)" for screen readers — the theme defines the
   class too; this copy keeps it correct wherever the blocks render */
.yolo-home-section .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/* ---- how: 3 numbered step cards ---- */
.yolo-home-section .yolo-home-how__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.yolo-home-section .yolo-home-how__step {
    margin: 0;
    padding: 22px;
    min-width: 0;
    list-style: none;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}
.yolo-home-section .yolo-home-how__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #173b6d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.yolo-home-section .yolo-home-how__title {
    margin: 12px 0 6px;
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}
.yolo-home-section .yolo-home-how__text {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
}

/* ---- guides: 3 uniform post cards ---- */
.yolo-home-section .yolo-home-guides__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.yolo-home-section .yolo-home-guides__item {
    margin: 0;
    padding: 0;
    min-width: 0;
    list-style: none;
}
.yolo-home-section .yolo-home-guide {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.yolo-home-section .yolo-home-guide:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px -18px rgba(23, 59, 109, 0.35);
}
.yolo-home-section .yolo-home-guide__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e8eef7;
}
.yolo-home-section .yolo-home-guide__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}
.yolo-home-section .yolo-home-guide__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 40px;
    color: #173b6d;
}
.yolo-home-section .yolo-home-guide__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 14px;
}
.yolo-home-section .yolo-home-guide__cat {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
.yolo-home-section .yolo-home-guide__title {
    margin: 0;
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.yolo-home-section .yolo-home-guide__link {
    color: #0f172a;
    text-decoration: none;
}
.yolo-home-section .yolo-home-guide__link:hover {
    color: #173b6d;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.yolo-home-section .yolo-home-guide__excerpt {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
}
.yolo-home-section .yolo-home-guide__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #173b6d;
    text-decoration: none;
}

/* ---- partners: quiet logo / name pills ---- */
.yolo-home-section .yolo-home-partners__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.yolo-home-section .yolo-home-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin: 0;
    padding: 10px 18px;
    list-style: none;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
}
.yolo-home-section .yolo-home-partner img {
    display: block;
    width: auto;
    max-width: 160px;
    height: auto;
    max-height: 40px;
    margin: 0;
    object-fit: contain;
}

/* ---- breakpoints (320 · 390 · 430 · 768 · 992 · 1024 · 1440 · 1920: no horizontal overflow) ---- */
@media (max-width: 991.98px) {
    .yolo-home-section .yolo-home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yolo-home-section .yolo-home-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .yolo-home-section .yolo-home-head { align-items: flex-start; }
    .yolo-home-section .yolo-home-how__list,
    .yolo-home-section .yolo-home-guides__list { grid-template-columns: minmax(0, 1fr); }
    .yolo-home-hero .yolo-home-hero__title { max-width: none; }
}
@media (max-width: 575.98px) {
    .yolo-home-section .yolo-home-why__list { grid-template-columns: minmax(0, 1fr); }
    .yolo-home-hero .yolo-home-hero__trust { gap: 10px 16px; }
    .yolo-home-hero .yolo-home-hero__bar { padding: 10px; }
    .yolo-home-section .yolo-home-partner { min-height: 48px; padding: 8px 14px; font-size: 14px; }
}
@media (max-width: 399.98px) {
    .yolo-home-section .yolo-home-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .yolo-home-section .yolo-home-tile,
    .yolo-home-section .yolo-home-guide,
    .yolo-home-section .yolo-home-link { transition: none; }
    .yolo-home-section .yolo-home-tile:hover,
    .yolo-home-section .yolo-home-guide:hover { transform: none; }
}
