/**
 * LIVZO — hero banner.
 *
 * Layout notes
 *  - ≥1200px : two columns (58 / 42) with the preview cards floating over the artwork.
 *  - <1200px : single column on mobile, two columns on tablet, cards drop below. */
 */

/* ==========================================================================
   1. Shell
   ========================================================================== */

.lz-hero {
    position: relative;
    isolation: isolate;
    padding: calc(var(--lz-header-h) + clamp(28px, 4.5vh, 58px)) 0 clamp(56px, 7vh, 88px);
}

@media (min-width: 992px) {
    .lz-hero {
        display: flex;
        align-items: center;
        min-height: min(90vh, 880px);
        min-height: min(90svh, 880px);
        padding-top: calc(var(--lz-header-h) + 26px);
        padding-bottom: 104px;
    }
}

/* ==========================================================================
   2. Background
   ========================================================================== */

.lz-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.lz-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(109, 74, 255, 0.06) 0%, rgba(109, 74, 255, 0) 46%);
}

.lz-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(56px);
}

.lz-hero__blob--accent {
    top: -18%;
    right: -6%;
    width: min(48vw, 620px);
    aspect-ratio: 1;
    background-image: radial-gradient(circle at 50% 50%, rgba(109, 74, 255, 0.30), rgba(109, 74, 255, 0) 70%);
    animation: lzDrift 20s ease-in-out infinite;
}

.lz-hero__blob--warm {
    bottom: -24%;
    left: -12%;
    width: min(40vw, 520px);
    aspect-ratio: 1;
    background-image: radial-gradient(circle at 50% 50%, rgba(245, 165, 36, 0.24), rgba(245, 165, 36, 0) 70%);
    animation: lzDrift 26s ease-in-out infinite reverse;
}

/* Fine architectural grid, faded out towards the edges */
.lz-hero__grid {
    position: absolute;
    inset: -6% -10% 0;
    background-image: linear-gradient(rgba(11, 27, 51, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 27, 51, 0.045) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(ellipse 62% 58% at 32% 34%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 62% 58% at 32% 34%, #000 0%, transparent 72%);
}

.lz-hero__pin {
    position: absolute;
    color: var(--lz-accent);
    opacity: 0.13;
}

.lz-hero__pin .lz-icon {
    width: 100%;
    height: 100%;
}

.lz-hero__pin--a {
    top: 24%;
    left: 3.5%;
    width: 30px;
    animation: lzFloat 11s ease-in-out infinite;
}

.lz-hero__pin--b {
    top: 66%;
    left: 7%;
    width: 20px;
    opacity: 0.09;
    animation: lzFloat 14s ease-in-out infinite reverse;
}

.lz-hero__pin--c {
    top: 13%;
    right: 46%;
    width: 17px;
    opacity: 0.075;
    animation: lzFloat 9s ease-in-out infinite;
}

/* ==========================================================================
   3. Columns
   ========================================================================== */

.lz-hero__inner {
    display: grid;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

@media (min-width: 992px) {
    .lz-hero__inner {
        /* The content column carries the search bar, so it takes the extra width; the
           artwork column gives it up. */
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
        gap: clamp(32px, 4vw, 64px);
    }
}

.lz-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* ==========================================================================
   4. Headline
   ========================================================================== */

.lz-hero__title {
    margin-top: 20px;
    font-size: clamp(1.5rem, 0.5rem + 3vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

/* Accent phrase: colour + a slow highlighter sweep (wrap-safe on small screens) */
.lz-hero__accent {
    color: var(--lz-accent);
    background-image: linear-gradient(180deg, transparent 60%, rgba(109, 74, 255, 0.16) 60%);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 0 100%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: lzHighlight 1.1s var(--lz-ease-out) 800ms forwards;
}

@keyframes lzHighlight {
    to { background-size: 100% 100%; }
}

.lz-hero__lead {
    margin-top: 22px;
    max-width: 600px;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
    line-height: 1.72;
    color: var(--lz-body);
}

.lz-hero__search {
    margin-top: clamp(26px, 3.4vw, 34px);
}

/* ==========================================================================
   5. Trust row
   ========================================================================== */

.lz-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 24px;
}

.lz-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lz-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lz-trust__ico {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background-color: var(--lz-green-soft);
    color: var(--lz-green);
}

.lz-trust__ico .lz-icon { width: 13px; height: 13px; }

/* ==========================================================================
   6. Visual column
   ========================================================================== */

.lz-hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.lz-visual {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.lz-visual__halo {
    position: absolute;
    inset: -8% -10% -12%;
    z-index: 0;
    border-radius: 50%;
    background-image: radial-gradient(circle at 58% 38%, rgba(109, 74, 255, 0.18), rgba(109, 74, 255, 0) 68%);
    filter: blur(18px);
    pointer-events: none;
}

.lz-visual__img {
    position: relative;
    z-index: 1;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--lz-r-xl);
    box-shadow: var(--lz-sh-4);
}

/* ==========================================================================
   7. Preview cards (illustrative hero artwork — demo numbers, not real ratings)
   ========================================================================== */

.lz-vcard {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--lz-r-md);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--lz-sh-3);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    animation: lzCardFloat 7s var(--lz-ease) infinite;
    animation-delay: var(--lz-float-delay, 0ms);
}

.lz-vcard__meta {
    color: var(--lz-muted);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Rating ---------------------------------------------------------------- */

.lz-vcard--rating {
    top: 7%;
    left: -8%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 11px 13px;
}

.lz-vcard__row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.lz-vcard__score {
    color: var(--lz-navy);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Five-star artwork: muted base layer + gold layer clipped to the rating */
.lz-stars {
    position: relative;
    display: inline-flex;
}

.lz-stars__layer {
    display: inline-flex;
    gap: 2px;
    color: rgba(11, 27, 51, 0.16);
}

.lz-stars__layer .lz-icon {
    width: 12px;
    height: 12px;
}

.lz-stars__layer--fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    width: var(--lz-stars-fill, 100%);
    color: var(--lz-amber);
}

/* Verified resident ----------------------------------------------------- */

.lz-vcard--verified {
    top: 34%;
    right: -8%;
    padding: 10px 13px 10px 11px;
}

.lz-vcard__badge {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    background-color: var(--lz-green-soft);
    color: var(--lz-green);
}

.lz-vcard__badge .lz-icon { width: 15px; height: 15px; }

.lz-vcard__stack {
    display: grid;
    gap: 1px;
}

.lz-vcard__stack strong {
    color: var(--lz-navy);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

/* Category scores ------------------------------------------------------- */

.lz-vcard--scores {
    bottom: 13%;
    left: -9%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 198px;
    padding: 12px 14px;
}

.lz-meter {
    display: grid;
    gap: 6px;
}

.lz-meter__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lz-meter__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lz-body);
    font-size: 0.72rem;
    font-weight: 600;
}

.lz-meter__label .lz-icon {
    width: 12px;
    height: 12px;
    color: var(--lz-accent);
}

.lz-meter__value {
    color: var(--lz-navy);
    font-size: 0.78rem;
    font-weight: 800;
}

.lz-meter__track {
    display: block;
    height: 5px;
    border-radius: 3px;
    background-color: rgba(11, 27, 51, 0.08);
    overflow: hidden;
}

.lz-meter__fill {
    display: block;
    height: 100%;
    width: var(--lz-meter, 100%);
    border-radius: 3px;
    background-image: linear-gradient(90deg, var(--lz-accent-600), #9C86FF);
    transform-origin: left center;
    animation: lzMeter 1.1s var(--lz-ease-out) 1.05s both;
}

/* Rating band → meter colour. The same 0–5 bands every gauge uses (livzo_rating_tone),
   so the hero's sample meters read the same colour as the insight sections. */
.lz-meter--success .lz-meter__fill {
    background-image: linear-gradient(90deg, var(--lz-band-success), var(--lz-band-success-2));
}

.lz-meter--warning .lz-meter__fill {
    background-image: linear-gradient(90deg, var(--lz-band-warning), var(--lz-band-warning-2));
}

.lz-meter--danger .lz-meter__fill {
    background-image: linear-gradient(90deg, var(--lz-band-danger), var(--lz-band-danger-2));
}

.lz-meter--success .lz-meter__value { color: var(--lz-band-success-text); }
.lz-meter--warning .lz-meter__value { color: var(--lz-band-warning-text); }
.lz-meter--danger .lz-meter__value { color: var(--lz-band-danger-text); }

@keyframes lzMeter {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Resident insight ------------------------------------------------------ */

.lz-vcard--quote {
    right: -3%;
    bottom: 2%;
    display: block;
    width: 194px;
    padding: 11px 13px;
}

.lz-vcard__quote-ico {
    display: block;
    color: var(--lz-accent);
    opacity: 0.4;
}

.lz-vcard__quote-ico .lz-icon { width: 14px; height: 14px; }

.lz-vcard__quote-text {
    margin-top: 4px;
    color: var(--lz-navy);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.lz-vcard__quote .lz-vcard__meta { display: block; margin-top: 3px; }

/* ==========================================================================
   8. Scroll cue + transition into the next section
   ========================================================================== */

.lz-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background-image: linear-gradient(180deg, rgba(251, 250, 248, 0) 0%, rgba(251, 250, 248, 0.85) 100%);
    pointer-events: none;
}

.lz-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    display: none;
    align-items: center;
    gap: 9px;
    color: var(--lz-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transform: translateX(-50%);
    transition: color var(--lz-t) var(--lz-ease);
}

.lz-hero__scroll:hover { color: var(--lz-navy); }

.lz-hero__scroll-ico {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--lz-line-2);
    border-radius: 50%;
    background-color: #fff;
    box-shadow: var(--lz-sh-1);
    color: var(--lz-accent);
    animation: lzNudge 2.8s var(--lz-ease) infinite;
}

.lz-hero__scroll-ico .lz-icon { width: 15px; height: 15px; }

@keyframes lzNudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@media (min-width: 992px) and (min-height: 780px) {
    .lz-hero__scroll { display: inline-flex; }
}

/* ==========================================================================
   9. Below 1200px — cards move out of the artwork into a tidy grid
   ========================================================================== */

@media (max-width: 1199px) {
    .lz-visual {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 470px;
    }

    /* The content column takes the extra width, so the artwork column is narrower here.
       Without this the cards refuse to shrink below their min-content and push the page
       wide (a grid item's default min-width is auto). */
    .lz-visual__img,
    .lz-vcard { min-width: 0; }

    .lz-visual__halo { display: none; }

    .lz-visual__img { grid-column: 1 / -1; }

    .lz-vcard {
        position: static;
        width: auto;
        animation: none;
        align-self: stretch;
    }

    .lz-vcard--rating {
        grid-column: 1 / 2;
        justify-content: center;
    }

    .lz-vcard--verified { grid-column: 2 / 3; }
    .lz-vcard--scores { grid-column: 1 / -1; }
    .lz-vcard--quote { grid-column: 1 / -1; }
}

/* ==========================================================================
   10. Mobile
   ========================================================================== */

@media (max-width: 991px) {
    .lz-hero__content { max-width: 760px; }
    .lz-hero__lead { max-width: 600px; }
    .lz-hero__title { margin-top: 18px; }
}

@media (max-width: 620px) {
    .lz-visual {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .lz-vcard--rating,
    .lz-vcard--verified,
    .lz-vcard--scores,
    .lz-vcard--quote { grid-column: 1 / -1; }

    .lz-trust { gap: 9px 18px; }
    .lz-trust__item { font-size: 0.83rem; }
}

@media (max-width: 420px) {
    .lz-hero__lead { margin-top: 18px; }
    .lz-pill { font-size: 0.78rem; }
}
