/* ---------- Home hero -- "For Special Corporate Events" banner
     Loaded from <head> via style.blade.php so it survives Vue mounting on
     #app. Targets sections/hero_banner.blade.php -- the CMS-driven top
     banner on the home page. No blade data is touched; only the visual
     wrapper is added by dropping `vf-home-hero` onto the section tag.

     Reference matches the "Catering / FOR SPECIAL CORPORATE EVENTS" Figma:
     a solid peach banner, copy on the leading half, delivery scooter on
     the trailing half over a darker peach diagonal accent, then the
     highlights row on white underneath.
   -------------------------------------------------------------------- */

.vf-home-hero {
    position: relative;
    /* Whole banner is white now; the accent is a purple diagonal wedge
       behind the scooter on the trailing side. */
    background: #ffffff !important;
    padding: 60px 0 40px !important;
    margin-bottom: 30px !important;
    overflow: hidden;
    /* Keep the banner tall enough even when the CMS content is empty
       (the wedge, scooter and layout rely on a minimum height so they do
       not collapse into a thin strip). */
    min-height: 460px;
}

/* No separate white strip needed any more -- the whole section is white.
   ::before is kept as a safety layer so any future accent can slot in
   without touching the ::after used for the wedge. */
.vf-home-hero::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: #ffffff;
    z-index: 0;
}

/* Purple diagonal wedge behind the scooter. Sits in the trailing half of
   the banner. Same top/bottom anchoring pattern as before -- the shape
   never disappears because it does not depend on parent height. */
.vf-home-hero .vf-hh-wedge,
.vf-home-hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 180px;                 /* stops above the highlights row */
    inset-inline-end: 0;
    width: 62%;
    max-width: 900px;
    background: #5b2a86;            /* brand purple */
    clip-path: polygon(180px 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}
[dir="rtl"] .vf-home-hero::after {
    clip-path: polygon(0 0, calc(100% - 180px) 0, 100% 100%, 0 100%);
}

/* Scooter photo. Save at
   public/assets/images/frontend/home/delivery-scooter.png.
   Its own layer above the wedge so it can size independently. */
.vf-home-hero .vf-hh-scooter {
    position: absolute;
    top: 40px;
    bottom: 200px;
    inset-inline-end: 40px;
    width: 46%;
    max-width: 500px;
    background: url('/assets/images/frontend/home/delivery-scooter.png') center right/contain no-repeat;
    pointer-events: none;
    z-index: 1;
}
/* We render the scooter via a background layer, not the ::after (which is
   used for the wedge). CSS only gives one ::after per element, so the
   scooter uses a nested pseudo on the container instead. */
.vf-home-hero .container::after {
    content: '';
    position: absolute;
    /* Pulled up another 40px so the rider sits noticeably higher in
       the wedge -- closer to the eyebrow line, matching the reference. */
    top: -80px;
    bottom: 100px;
    inset-inline-end: -40px;
    width: 50%;
    background: url('/assets/images/frontend/home/delivery-scooter.png') center right/contain no-repeat;
    pointer-events: none;
    z-index: 2;
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
}
/* Rider must face the copy. Source faces LEFT:
     LTR -- text on left, scooter on right   -> no flip, already faces text
     RTL -- text on right, scooter on left   -> scaleX(-1) so it faces text
   Two selectors so we catch both dir="rtl" on <html> and body.rtl (this
   theme sets both), and !important defeats any legacy `transform: none`
   in earlier bundled sheets. */
html[dir="rtl"] .vf-home-hero .container::after,
body.rtl .vf-home-hero .container::after,
.vf-home-hero--rtl .container::after {
    transform: scaleX(1) !important;
    -webkit-transform: scaleX(1) !important;
}

/* Mobile: kill the wedge and the diagonal, drop the scooter under the
   copy so nothing collides on a narrow viewport. */
@media (max-width: 767px) {
    .vf-home-hero { padding: 30px 0 20px !important; }
    .vf-home-hero::before { height: 160px; }
    .vf-home-hero::after {
        width: 100%;
        clip-path: none;
        bottom: 160px;
    }
    .vf-home-hero .container::after {
        position: relative;
        top: auto;
        bottom: auto;
        inset-inline-end: auto;
        transform: none;
        width: 100%;
        max-width: 260px;
        height: 180px;
        /* Pulled up on mobile too so the rider sits above the highlights
           row instead of on top of it. */
        margin: -40px auto 10px;
        display: block;
    }
    html[dir="rtl"] .vf-home-hero .container::after,
    body.rtl .vf-home-hero .container::after,
    .vf-home-hero--rtl .container::after {
        transform: scaleX(1) !important;
        -webkit-transform: scaleX(1) !important;
    }
}

/* Keep the copy over both peach layers, on the leading half. */
.vf-home-hero .container { position: relative; z-index: 2; }
.vf-home-hero .row > .col-12,
.vf-home-hero .row > [class*="col-lg-"] {
    max-width: 50%;
    position: relative;
    z-index: 3;
}
@media (max-width: 767px) {
    .vf-home-hero .row > .col-12,
    .vf-home-hero .row > [class*="col-lg-"] { max-width: 100%; }
}

/* ---------- restyle the CMS hero_banner markup ---------- */
.vf-home-hero .vf-hero__eyebrow {
    color: #d64545 !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: capitalize !important;
    font-size: 15px !important;
    margin: 0 0 10px !important;
    font-style: italic;
}
.vf-home-hero .vf-hero__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
    font-weight: 800 !important;
    color: #2a2a3a !important;
    line-height: 1.15 !important;
    margin: 0 0 16px !important;
    text-transform: uppercase !important;
    letter-spacing: .01em;
}
.vf-home-hero .vf-hero__lede {
    color: #4a4a56 !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    margin: 0 0 22px !important;
    max-width: 460px;
}
.vf-home-hero .vf-hero__ctas {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 !important;
}
.vf-home-hero .vf-hero__ctas .vf-btn {
    padding: 11px 30px !important;
    font-size: 14px !important;
    border-radius: 30px !important;   /* pill button to match reference */
    font-weight: 600 !important;
    text-transform: none !important;
}
.vf-home-hero .vf-hero__ctas .vf-btn--primary {
    background: #d64545 !important;
    border-color: #d64545 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(214, 69, 69, .25);
}
.vf-home-hero .vf-hero__ctas .vf-btn--primary:hover {
    background: #b93838 !important;
    border-color: #b93838 !important;
}
.vf-home-hero .vf-hero__ctas .vf-btn--secondary {
    background: transparent !important;
    border: 1px solid #2a2a3a !important;
    color: #2a2a3a !important;
}
.vf-home-hero .vf-hero__ctas .vf-btn--secondary:hover {
    background: rgba(0,0,0,.06) !important;
}
.vf-home-hero .vf-hero__ctas .vf-btn--outline {
    background: transparent !important;
    border: 1px solid #2a2a3a !important;
    color: #2a2a3a !important;
}
.vf-home-hero .vf-hero__ctas .vf-btn--outline:hover {
    background: rgba(0,0,0,.06) !important;
}

/* Highlights strip lives on the white portion at the bottom. */
.vf-home-hero .vf-hero__strip {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 32px;
    list-style: none;
    padding: 30px 0 0 !important;
    margin: 60px 0 0 !important;
    max-width: 100% !important;
    position: relative;
    z-index: 3;
}
.vf-home-hero .vf-hero__strip li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #2a2a3a;
    font-size: 14px;
    line-height: 1.5;
}
.vf-home-hero .vf-hero__strip i {
    color: #5b2a86;
    margin-top: 3px;
}

/* Hide the CMS image column -- the scooter takes that space. */
.vf-home-hero .vf-hero__media { display: none !important; }

/* ---------- Hero fallback restore ----------
   design-system.css sets `.vf-hero-fallback` background to
     linear-gradient(135deg, var(--vf-primary), color-mix(...))
   Some Chromium/Brave builds drop the whole `background` shorthand when
   any color function inside a gradient argument fails, which leaves the
   fallback with no background at all. This provides a solid pre-computed
   gradient and a solid-color fallback so the panel always shows purple.
   ------------------------------------------ */
.vf-hero-fallback,
.vf-scope.vf-hero-fallback,
.vf-hero-fallback.vf-scope,
div.vf-hero-fallback,
.hero-right .vf-hero-fallback {
    background: #673091 !important;
    background-color: #673091 !important;
    background-image: linear-gradient(135deg, #673091 0%, #462163 100%) !important;
    min-height: 320px !important;
    padding: 40px 32px !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
}
.vf-hero-fallback__title { color: #ffffff !important; }
.vf-hero-fallback__text  { color: rgba(255,255,255,.85) !important; }
