/* =============================================================
   home.css — layout + typography for the coded front page
   -------------------------------------------------------------
   Step 5, 2026-11-16. Loaded only on the front page, only when the
   native homepage is active (see sc_enqueue_home_assets()).

   🔑 THIS FILE IS DELIBERATELY SMALL.
      The homepage DESIGN already lives in style.css — .section-inner,
      .accom-card, .bento-card, .hero-card, .reviews-score-block,
      .sc-cta-platforms and the rest. Elementor only ever supplied the
      section wrappers and the per-element typography in
      uploads/elementor/css/post-11.css (18,379 B), which dies with it.

      So this file provides exactly two things:
        1. the layout Elementor's .e-con / .e-con-inner wrappers gave
        2. the typography post-11.css gave, by the same values

   🔴 VALUES ARE COPIED, NOT INVENTED. Every number below was read
      from post-11.css, from style.css, or measured off the live page
      with getComputedStyle before the switch. The hero h1 clamp is
      post-11.css verbatim; the reviews h2 clamp is style.css:1508.
      5.5vw at a 1024px viewport = 56.32px, which is what the live
      page measured — that is how the clamps were confirmed rather
      than guessed.

   Everything is scoped under .sc-home so nothing leaks (ATEN rule 4).
   ============================================================= */


/* ── 1. HERO ─────────────────────────────────────────────────── */

/* Replaces `.hero-inner > .e-con-inner` in style.css, which cannot
   match now there is no Elementor wrapper. Same grid, same padding. */
.sc-home .hero-inner {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px 32px 80px;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .sc-home .hero-inner {
        grid-template-columns: 1fr;
        padding: 100px 20px 48px;
    }
}

.sc-home .hero-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/* post-11.css: .elementor-element-2b7a603f .elementor-heading-title */
.sc-home .hero-h1 {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 700;
    line-height: 1.08;
    color: #fff;
}

.sc-home .hero-lede p {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.sc-home .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* .btn-primary / .btn-ghost in style.css are written as
   `.btn-primary .sc-btn`, so the markup keeps that inner class on
   the anchor. Cheaper than duplicating the button styling.

   ✏️ RENAMED 2026-11-18 with style.css (.sc-btn -> .sc-btn).
   🔴 THIS FILE IS LOAD-BEARING FOR THE HERO BUTTONS. It supplies
   `display: inline-block` and `text-decoration: none`, which style.css
   does NOT. Renaming style.css alone broke all three buttons: display
   fell to inline, the ghost button gained an underline, and .sc-home-cta
   went 606.23px -> 579.16px. If you touch the button class again, grep
   EVERY stylesheet, not just style.css. */
.sc-home .hero-buttons .btn-primary,
.sc-home .hero-buttons .btn-ghost,
.sc-home .sc-cta-btn-wrap .btn-primary {
    display: inline-block;
}

.sc-home .btn-primary .sc-btn,
.sc-home .btn-ghost .sc-btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
}

/* post-11.css: .elementor-element-70af32c9 .elementor-heading-title */
.sc-home .hero-card-title {
    margin: 0 0 8px;
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #225322;
}

/* post-11.css: .elementor-element-10f8e116 */
.sc-home .hero-card-sub {
    margin: 0 0 24px;
    font-size: 13px;
    line-height: 1.6;
    color: #9ca3af;
}


/* ── 2. BEST PRICE STRIP ─────────────────────────────────────── */
/* Elementor container padding was 16/32/16/32. */

/* ── 1b. HERO BACKGROUND VIDEO ───────────────────────────────────────────────
   Restores the drone loop the Elementor hero played (see the long note in
   front-page.php). The video sits UNDER the green gradient, not over it:

     z 0  <video>                 the drone shot
     z 1  .sc-home-hero::after    the #225322 gradient, as an overlay
     z 2  .hero-inner             the copy and the booking card
     z 3  .hero-section::before   the amber radial glow, which was already there

   🔴 The gradient has to be REPEATED as ::after rather than left on the section.
      A section's own background paints behind its children, so with the video as
      a child the green would have sat behind it and done nothing. It stays on the
      section as well, as the fallback when the video does not play.

   🔴 `object-fit: cover` plus explicit 100%/100% — a <video> does not fill its
      container the way a background-image does, and without the height it
      letterboxes against a 100vh hero. */

.sc-home-hero .hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 🔑 LIGHTER THAN THE FALLBACK GRADIENT ON PURPOSE — same hues, ~0.7x the alpha.
   style.css built that gradient at 0.72–0.88 when it WAS the hero background and
   had nothing behind it. Over video it is doing a different job, and at those
   values it flattened the footage almost completely: measured luminance spread
   across the lower hero was 0.009, i.e. a green panel with a hint of movement.
   Elementor's original was a flat #225322 at its 0.5 default.

   🔴 The numbers below are the limit, not a preference. White hero text measured
      9.52:1 against the heavy version; these alphas keep it near 7:1, still well
      clear of the 4.5:1 AA floor. Lighten further and the h1 starts to depend on
      which frame of the drone shot is on screen, which is not something a
      contrast check can hold. The fallback in style.css deliberately stays dark —
      with no video there is nothing to show through it. */
.sc-home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(160deg,
        rgba(26, 63, 26, 0.62) 0%,
        rgba(34, 83, 34, 0.58) 35%,
        rgba(61, 107, 46, 0.48) 70%,
        rgba(45, 92, 34, 0.60) 100%);
}

/* 🔴 THE AMBER GLOW WAS PAINTING OVER THE COPY AND THE BOOKING CARD.
   Mark, 2026-11-20: "the overlay on the home page video hero is over the text
   and the booking form."

   He is right, and the layer note above this block had it as intended:
   `z 3  .hero-section::before — the amber radial glow, which was already there`.
   Inherited from the Elementor build, where the glow sat over a flat background
   and there was nothing underneath it to spoil.

   style.css:1002 puts that glow at `top:-20%; right:-10%` — the top-RIGHT
   corner, which is exactly where the 440px booking card sits in the
   `1fr 440px` hero grid. So a 12% amber radial was washing the one white panel
   on the page. Measured before the fix: the card sampled rgb(253,247,237),
   16 points more red than blue on a surface that is rgba(255,255,255,.97).

   🔑 It was never a CLICK problem — every overlay here carries
      pointer-events:none, and a hit test confirmed all 14 hero controls were
      reachable. Purely a paint-order problem, which is why it reads as "washed
      out" rather than "broken".

   Fix is the ordering, not the glow: it keeps its job over the video, and stops
   where the content starts.
       z 0  .hero-video
       z 1  .sc-home-hero::after    green gradient over the video
       z 2  .sc-home-hero::before   amber glow — still atmospheric, now BELOW content
       z 3  .hero-inner             the copy and the booking card, on top */
.sc-home-hero::before { z-index: 2; }
.sc-home-hero .hero-inner { position: relative; z-index: 3; }

/* 🔑 A full-bleed autoplaying video is exactly what prefers-reduced-motion is
   for. Hidden rather than paused, so the gradient fallback shows through and the
   hero looks like it did before the video went back in. */
@media (prefers-reduced-motion: reduce) {
    .sc-home-hero .hero-video { display: none; }
}


/* 🔴 THE AMBER LIVED ON THE ELEMENTOR WRAPPER CLASS, AND THE REBUILD RENAMED IT.
   style.css:1296 still says `.price-strip { background:#e8a020 }` — but this
   section is .sc-home-pricestrip now, so that rule matches nothing, while
   .price-strip-text (#fff) and .price-strip-link (rgba(255,255,255,.25)) were
   KEPT and still apply. White text and a translucent-white pill, on what had
   become a white band: the whole "Book direct & save" banner was invisible.
   Measured at 1.08:1 against #F3F8F3 in the 2026-11-19 contrast sweep.

   🔑 The general lesson for the rest of this conversion: when a native rebuild
      renames a section wrapper, the CHILD rules survive and the WRAPPER's
      background does not. Nothing errors. Re-check the band, not the markup. */
.sc-home-pricestrip {
    background: #e8a020;
    padding: 16px 32px;
}

.sc-home-pricestrip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
}


/* ── 3/5. FULL-WIDTH CONTENT SECTIONS ────────────────────────── */
/* Elementor container padding was 96/0/96/0 on both. */

.sc-home-sleep,
.sc-home-why {
    padding: 96px 0;
}


/* ── 4. EVENTS (dark band) ───────────────────────────────────── */
/* Elementor container: background #061008, padding 96/0/96/0. */

.sc-home-events {
    background: #061008;
    padding: 96px 0;
}

.sc-home-events-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-home-events-foot p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.28);
}

.sc-home-events-foot a {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding-bottom: 2px;
    text-decoration: none;
}


/* ── 6. REVIEWS ──────────────────────────────────────────────── */
/* Elementor: row, right column width 35%, gap 48px. */

/* 🔴 DOUBLE GUTTER. .reviews-section (style.css:1523) and .sc-home-elfsight both
   carry the full-bleed formula `max(32px, calc((100% - 1280px)/2 + 32px))`, which
   already resolves to 112px — the site's gutter — on its own. Their .section-inner
   child then added ANOTHER 32px, so the reviews heading, the buttons and the
   Elfsight carousel all sat at x=144 while every other band on the page sat at
   112. A 32px step that reads as the reviews band being indented.

   🔑 Caught by listing every constrained container with its resolved content x,
      not by looking — a uniform 32px inset on one full-width band is exactly the
      kind of thing the eye accepts as intentional.

   The section keeps the gutter, since it is the full-bleed element and has to;
   the inner simply stops repeating it. */
.sc-home-reviews .section-inner,
.sc-home-elfsight .section-inner { padding-inline: 0; }

/* …and the events band is the same fault again, found by the 2026-11-19 sweep:
   .sc-home-events .section-inner is 1280px + a 32px gutter, and the
   .jet-listing-grid inside it carries its own `padding: 0 32px !important`
   (style.css:2545). So the grid wrapper sat at x144 and JetEngine's -11px
   gutter compensation put the CELLS at x133 — the three event cards were 21px
   inside the heading above them.

   🔴 BUT NOT BY ZEROING .section-inner, which is what I did first. Unlike the
      reviews and Elfsight bands above, this .section-inner has a SECOND child:
      .sc-home-events-foot. Dropping the parent's gutter moved the grid onto the
      line and the foot off it, to x80 — a fix that just relocated the fault.
      The element that double-applies is the grid, so the grid is what gives it
      up, and the foot keeps inheriting the gutter it always had. */
.sc-home-events .section-inner .jet-listing-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* The price strip is a centred flex row, so its 32px-wider box was not visible
   — but it is the same shape as the faults above, and leaving one band on a
   different line is how the next one gets missed. Aligned for consistency. */
.sc-home-pricestrip { padding-left: 0; padding-right: 0; }
.sc-home-pricestrip-inner {
    padding-left: var(--sc-gutter, 32px);
    padding-right: var(--sc-gutter, 32px);
}

.sc-home-reviews-inner {
    display: grid;
    grid-template-columns: 1fr 35%;
    gap: 48px;
    align-items: center;
}

@media (max-width: 900px) {
    .sc-home-reviews-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.sc-home .reviews-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8a020;
}

/* style.css:1508 — .reviews-section .section-title .elementor-heading-title */
.sc-home .reviews-h2 {
    margin: 0 0 12px;
    font-family: 'Lato', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    color: #fff;
}

.sc-home .reviews-lede {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}


/* ── 7. ELFSIGHT ─────────────────────────────────────────────── */

/* 🔴 SAME TRAP AS THE PRICE STRIP, and worse because it is the review feed.
   The Elfsight carousel used to sit INSIDE the green reviews band: style.css:1662
   gives `.reviews-widget-wrap` background #225322 and the band's whole bottom
   padding. This section is .sc-home-elfsight now, so the green stopped at the end
   of .reviews-section — which carries `padding-bottom: 0 !important` precisely
   because the wrap below was supposed to supply it. The carousel, whose text is
   white because it was configured for a dark background, landed on the page
   background. Guest reviews, white on cream, unreadable.

   Horizontal padding repeats .reviews-section's own formula so the carousel lines
   up with the heading above it rather than sitting 32px inboard. */
.sc-home-elfsight {
    background: #225322;
    padding-top: 0;
    padding-bottom: 80px;
    padding-left:  max(32px, calc((100% - 1280px) / 2 + 32px));
    padding-right: max(32px, calc((100% - 1280px) / 2 + 32px));
}

@media (max-width: 767px) {
    .sc-home-elfsight {
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* ── 8. EXPLORE ──────────────────────────────────────────────── */
/* style.css already styles .explore-section and its .section-inner. */

.sc-home-explore-cta {
    text-align: right;
}


/* ── 9. CLOSING CTA ──────────────────────────────────────────── */
/* Elementor container: padding 100/0/100/0, gap 20px, centred. */

/* 🔴 THE CLOSING CTA NEVER HAD A BACKGROUND, IN EITHER BUILD.
   Mark, 2026-11-19: "Still lots of errors on the home page". This block was all
   of them — eight elements measured at 1.08:1, including a 50px <h2> reading
   "Always Book Direct & Save" that nobody could see.

   🔑 It was designed DARK and the background was simply never applied. That is
      not a judgement, it is what the existing rules say:
        .sc-cta-platform-item  background: rgba(255,255,255,0.1)   ← white at 10%
        .sc-cta-badge          background: rgba(232,160,32,0.2)    ← amber at 20%
        .sc-cta-section::before radial amber glow at 0.15
        .sc-cta-title/-lede/-alt  #FFFFFF
      White-at-10% panels and an amber glow are meaningless on cream. Every one
      of those rules resolves correctly the moment the band is dark.

   🔴 THIS DELIBERATELY DOES NOT MATCH THE SCREENGRAB. The Elementor capture shows
      the same invisible cream block — the fault predates the conversion, so
      "matching the reference" would mean shipping it broken. Flagged to Mark
      twice as pre-existing before changing it.

   #225322 rather than #111: it is the same green as the reviews band, so the page
   keeps one dark-band treatment, and it stays distinct from the #111 footer
   directly below instead of merging into it. */
.sc-home-cta {
    background: #225322;
    padding: 100px 0;
    text-align: center;
}

/* 🟡 JetEngine's own empty-state message, #333 on the near-black events band =
   1.53:1. The REAL fix is content — there are no published events, which is why
   the grid is empty — but while that is true a customer should not be reading a
   plugin's debug phrasing in unreadable grey. Made legible rather than hidden:
   hiding it would also hide the fact that the section has nothing in it. */
.sc-home .jet-listing-not-found {
    color: rgba(255, 255, 255, .55);
}

.sc-home-cta .section-inner > * {
    margin-left: auto;
    margin-right: auto;
}

/* post-11.css: .elementor-element-1d61e82 .elementor-heading-title */
.sc-home .sc-cta-title {
    margin: 20px 0 0;
    font-family: 'Lato', sans-serif;
    font-size: 50px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

@media (max-width: 767px) {
    .sc-home .sc-cta-title { font-size: 34px; }
}

.sc-home .sc-cta-lede {
    margin: 20px auto 24px;
    max-width: 680px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

.sc-home .sc-cta-btn-wrap {
    margin: 0 0 20px;
}

/* post-11.css: .elementor-element-58e970a */
.sc-home .sc-cta-alt {
    margin: 0 0 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}
