/*
    Project-authored styles for the public pages.

    Not app.css, which belongs to the purchased theme and is replaced wholesale
    when the theme is. Not custom.css either: the admin panel's theme editor
    reads that file into a textarea and writes the textarea back, so anything
    put there is one save away from being gone - which is worth knowing, because
    the category-label wrapping fix is still sitting in it.
*/

/* --------------------------------------------------------------- review provenance */

/*
    Where a review came from. Small and quiet: it sits beside a review title,
    and a badge that shouts is a badge that gets ignored on the tenth review
    down the page.
*/
.rv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
}

.rv-badge i {
    font-size: 0.78rem;
}

/*
    Green, and the only one of the two that is. A verified review is the one
    claim on this page that somebody was actually a customer, and it should not
    look like the weaker statement beside it.
*/
.rv-badge-verified {
    color: #146c43;
    background: rgba(25, 135, 84, 0.12);
}

/*
    Deliberately neutral. "Requested" means the business asked through a link
    anybody could have followed - it is a fact about the business, not about the
    reviewer, and colouring it like an endorsement would be the quickest way to
    make the green one mean nothing.
*/
.rv-badge-requested {
    color: rgb(var(--text_muted_color));
    background: rgba(var(--text_muted_color), 0.1);
}

/* --------------------------------------------------------------- account chooser */

/*
    The two doors on the sign-in page. Sized to be pressed on a phone and to
    read as a choice rather than a list: whichever one a person picks is the
    only thing standing between them and typing a password into the wrong form.
*/
.rv-door {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border: 1px solid rgba(var(--text_color), 0.14);
    border-radius: var(--border_radius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}

.rv-door:hover,
.rv-door:focus-visible {
    border-color: rgb(var(--primary_color));
    background: rgba(var(--primary_color), 0.04);
    color: inherit;
}

.rv-door:active {
    transform: translateY(1px);
}

.rv-door-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 19px;
    color: rgb(var(--primary_color));
    background: rgba(var(--primary_color), 0.1);
}

/* The business door is coloured like the rest of the business area, so the
   person who belongs there recognises it before reading the label. */
.rv-door-icon-business {
    color: #8a5a00;
    background: rgba(214, 158, 46, 0.14);
}

.rv-door-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rv-door-text strong {
    font-size: 0.98rem;
    font-weight: 600;
}

.rv-door-text span {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgb(var(--text_muted_color));
}

.rv-door-arrow {
    margin-inline-start: auto;
    color: rgb(var(--text_muted_color));
}

/* ---------------------------------------------------------------------------
   The business landing page.

   Written against the theme's own variables rather than hex values, because
   the colours are editable from the admin panel and a page that hard-codes
   them is a page that stops matching the site the first time somebody changes
   the primary colour. The one exception is the closing band, which needs a
   dark ground whatever the palette does.

   There is no build step here - this file is edited in place and served with
   its mtime appended - so it is plain CSS with no nesting and no variables of
   its own beyond the theme's.
   --------------------------------------------------------------------------- */

.biz-hero {
    /* A wash rather than a photograph. The old header put white text over a
       stock image and the paragraph disappeared into it at several widths;
       text on a flat ground cannot do that. */
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(var(--primary_color), 0.18), transparent 60%),
        linear-gradient(180deg, rgb(var(--elements_background_color)), rgb(var(--background_color)));
    border-bottom: 1px solid rgb(var(--border_color));
    padding: 4.5rem 0 5rem;
}

.biz-hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--text_muted_color));
    margin-bottom: 0.75rem;
}

.biz-hero-title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: rgb(var(--text_color));
    margin-bottom: 1.1rem;
    text-wrap: balance;
}

.biz-hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgb(var(--text_muted_color));
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.biz-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 2rem;
}

.biz-hero-signin {
    color: rgb(var(--text_color));
    text-decoration: none;
    font-weight: 600;
}

.biz-hero-signin:hover {
    text-decoration: underline;
}

.biz-hero-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.biz-hero-facts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgb(var(--text_muted_color));
}

.biz-hero-facts i {
    color: rgb(var(--primary_color));
    font-size: 0.8rem;
}

/* The product panel. Two pieces, deliberately overlapping: the listing is
   what the owner claims and the widget is what they get out of it, and seeing
   one produce the other is the whole pitch in a single glance. */
.biz-showcase {
    position: relative;
    padding-bottom: 3.5rem;
}

.biz-showcase-card {
    background: rgb(var(--elements_background_color));
    border: 1px solid rgb(var(--border_color));
    border-radius: calc(var(--border_radius) * 3);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.biz-showcase-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: rgb(var(--inner_background_color));
    border-bottom: 1px solid rgb(var(--border_color));
}

.biz-showcase-bar span {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgb(var(--border_color));
}

.biz-showcase-url {
    margin-inline-start: 0.75rem;
    font-size: 0.78rem;
    color: rgb(var(--text_muted_color));
    background: rgb(var(--elements_background_color));
    border: 1px solid rgb(var(--border_color));
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
}

.biz-showcase-body {
    padding: 1.5rem;
}

.biz-showcase-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgb(var(--border_color));
}

.biz-showcase-logo {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: calc(var(--border_radius) * 2);
    background: rgb(var(--secondary_color));
    color: rgb(var(--primary_color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.biz-showcase-name {
    font-weight: 600;
    color: rgb(var(--text_color));
}

.biz-showcase-stars {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    color: rgb(var(--star_fill_color));
    font-size: 0.82rem;
}

.biz-showcase-stars span {
    margin-inline-start: 0.5rem;
    color: rgb(var(--text_muted_color));
    font-size: 0.78rem;
}

.biz-showcase-review {
    border: 1px solid rgb(var(--border_color));
    border-radius: calc(var(--border_radius) * 2);
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
}

.biz-showcase-review.muted {
    opacity: 0.55;
    margin-bottom: 0;
}

.biz-showcase-review-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgb(var(--text_color));
    margin-bottom: 0.35rem;
}

.biz-showcase-review p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgb(var(--text_muted_color));
    margin-bottom: 0.35rem;
}

.biz-showcase-meta {
    font-size: 0.78rem;
    color: rgb(var(--text_muted_color));
}

.biz-showcase-widget {
    position: absolute;
    inset-inline-start: -1rem;
    bottom: 0;
    background: rgb(var(--elements_background_color));
    border: 1px solid rgb(var(--border_color));
    border-radius: calc(var(--border_radius) * 2);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.4);
    padding: 0.85rem 1.1rem;
    min-width: 11rem;
}

.biz-showcase-widget-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgb(var(--text_muted_color));
    margin-bottom: 0.3rem;
}

.biz-showcase-widget-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.biz-showcase-widget-score strong {
    font-size: 1.5rem;
    line-height: 1;
    color: rgb(var(--text_color));
}

.biz-showcase-widget-foot {
    font-size: 0.75rem;
    color: rgb(var(--text_muted_color));
    margin-top: 0.3rem;
}

/* The three steps. Numbered because they are genuinely sequential - the
   second cannot be done before the first - which is the only case where a
   numbered marker is telling the reader something true. */
.biz-step {
    height: 100%;
    padding: 1.75rem;
}

.biz-step-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(var(--primary_color), 0.16);
    color: rgb(var(--text_color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.biz-step h5 {
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.biz-step p {
    color: rgb(var(--text_muted_color));
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.biz-closing {
    padding: 0 0 4rem;
}

.biz-closing-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #1c1c1c;
    border-radius: calc(var(--border_radius) * 3);
    padding: 2.5rem;
}

.biz-closing-inner h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.biz-closing-inner p {
    color: #c2c2c2;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .biz-hero {
        padding: 3rem 0 3.5rem;
        text-align: center;
    }

    .biz-hero-text {
        margin-inline: auto;
    }

    .biz-hero-actions,
    .biz-hero-facts {
        justify-content: center;
    }

    /* The widget sits under the listing rather than over it once the column
       is full width: overlapping panels need room beside them to read as two
       things, and on a phone they just collide. */
    .biz-showcase {
        padding-bottom: 0;
        max-width: 28rem;
        margin-inline: auto;
    }

    .biz-showcase-widget {
        position: static;
        margin-top: 1rem;
        display: inline-block;
    }

    .biz-closing-inner {
        padding: 2rem 1.5rem;
        text-align: center;
        justify-content: center;
    }
}

/* The affiliate disclosure. Above the article, not below it, and in the
   reading column rather than in a sidebar or a footnote: "clear and
   conspicuous" in the FTC's Endorsement Guides means a reader meets it before
   the recommendation, not after acting on one. Deliberately quiet in colour
   and deliberately not collapsible. */
.blog-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    background: rgba(var(--primary_color), 0.10);
    border: 1px solid rgba(var(--primary_color), 0.35);
    border-radius: var(--border_radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgb(var(--text_color));
}

.blog-disclosure i {
    color: rgb(var(--primary_color));
    margin-top: 0.15rem;
}
