/* ============================================================================
   HELP_CENTER.CSS - the public Help Center landing at /help/

   Its own file, not an addition to help_dashboard.css: that stylesheet is the
   legacy workflow-card / info-box language the five per-role guide pages still
   speak, and the hub is a different page with a different skeleton. The hub
   deliberately borrows the section furniture of the four service pages
   (webpages/css/service-pages.css) so /help/ and /property_marketing/ read as
   one site rather than two.

   One accent per role, declared on the card. Everything tinted inside it
   follows, so a palette change is one block rather than five.
   ============================================================================ */

.help-hub {
    --hlp-ink: #0f0f1a;
    --hlp-muted: #6b7280;
    --hlp-border: #e8eaed;
    --hlp-surface: #ffffff;
    --hlp-surface-alt: #f8f9fb;
    --hlp-radius: 0.875rem;
    --hlp-radius-sm: 0.625rem;
    --hlp-shadow: 0 0.0625rem 0.1875rem rgba(15, 15, 26, 0.06);
    --hlp-shadow-lift: 0 0.75rem 1.75rem rgba(15, 15, 26, 0.1);

    /* Default accent; each .help-role--* overrides the pair. `ink` is the one
       that goes on white - brand yellow on white fails contrast, so a role's
       text tone is never simply its fill. */
    --hlp-accent: var(--brand-blue, #313b61);
    --hlp-accent-ink: var(--brand-blue, #313b61);
    --hlp-accent-soft: #eef0f7;
}

/* --------------------------------------------------------------------------
   HERO - the gradient band itself comes from .hero-section in main.css
   -------------------------------------------------------------------------- */

/* Breadcrumb on the gradient. Not Bootstrap's .breadcrumb: that one is a grey
   panel here (brandkit paints it), which on a coloured band reads as a stray
   card. */
.help-hub__crumbs ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
}

.help-hub__crumbs li + li::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.55;
}

.help-hub__crumbs a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
}

.help-hub__crumbs a:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: underline;
}

.help-hub__crumbs [aria-current="page"] {
    opacity: 0.7;
}

/* main.css leaves 3rem under every hero, which here is just a hole above the
   first section. */
.help-hub .hero-section {
    margin-bottom: 0;
    padding-bottom: 3rem;
}

.help-hub__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.help-hub__subtitle {
    font-size: 1.125rem;
    max-width: 44rem;
    margin: 0 auto 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.help-hub__search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 34rem;
    margin: 0 auto;
}

.help-hub__search-icon {
    position: absolute;
    left: 1.125rem;
    font-size: 0.9375rem;
    color: var(--hlp-muted);
    pointer-events: none;
}

/* Not .form-control: this one sits on the gradient and wants its own height
   and radius, and inheriting the dashboard control scale here made it look
   like a form field dropped on a poster. 1rem minimum, or iOS zooms on focus. */
.help-hub__search-input {
    width: 100%;
    padding: 0.9375rem 3rem 0.9375rem 2.875rem;
    font-size: 1rem;
    color: var(--hlp-ink);
    background: var(--hlp-surface);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 0.625rem 1.75rem rgba(15, 15, 26, 0.16);
}

.help-hub__search-input::placeholder {
    color: #9ca3af;
}

/* type="search" draws its own clear cross in WebKit, which sat next to ours
   and gave the field two of them. Ours stays - it is the one that resets the
   filter as well as the value. */
.help-hub__search-input::-webkit-search-cancel-button,
.help-hub__search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.help-hub__search-input:focus {
    outline: 0.1875rem solid rgba(255, 255, 255, 0.65);
    outline-offset: 0.125rem;
}

.help-hub__search-clear {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--hlp-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.help-hub__search-clear:hover {
    color: var(--hlp-ink);
    background: var(--hlp-surface-alt);
}

.help-hub__jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.help-hub__jump a {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.4375rem 0.9375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.help-hub__jump a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-0.0625rem);
}

.help-hub__jump i {
    font-size: 0.8125rem;
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   SECTION FURNITURE
   -------------------------------------------------------------------------- */

/* Both backgrounds are stated, never inherited: the page sits on the site's
   own off-white, so an unpainted band and an --alt band look identical. */
.help-section {
    padding: 3.5rem 0;
    background: var(--hlp-surface);
}

.help-section--alt {
    background: var(--hlp-surface-alt);
}

.help-section__head {
    max-width: 44rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.help-section__eyebrow {
    display: inline-block;
    margin-bottom: 0.625rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-blue, #313b61);
    background: #eef0f7;
    border-radius: 999px;
}

.help-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hlp-ink);
    margin: 0 0 0.75rem;
    letter-spacing: -0.015em;
}

.help-section__lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hlp-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   ROLE CARDS - the whole journey, visible. No accordion: the five step lists
   are the page's substance, and a visitor who has to press five times to
   compare two roles compares neither.
   -------------------------------------------------------------------------- */

.help-role {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: var(--hlp-surface);
    border: 1px solid var(--hlp-border);
    border-top: 0.1875rem solid var(--hlp-accent);
    border-radius: var(--hlp-radius);
    box-shadow: var(--hlp-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.help-role:hover {
    transform: translateY(-0.1875rem);
    box-shadow: var(--hlp-shadow-lift);
}

.help-role--seeker    { --hlp-accent: #0f8a5f; --hlp-accent-ink: #0b6d4b; --hlp-accent-soft: #e7f5ee; }
.help-role--marketing { --hlp-accent: var(--brand-yellow, #f3c130); --hlp-accent-ink: #8a6a00; --hlp-accent-soft: #fff7dc; }
.help-role--pms       { --hlp-accent: var(--brand-blue, #313b61);   --hlp-accent-ink: #313b61; --hlp-accent-soft: #eef0f7; }
.help-role--agent     { --hlp-accent: #2563eb; --hlp-accent-ink: #1d4ed8; --hlp-accent-soft: #eaf1fe; }
.help-role--workman   { --hlp-accent: var(--brand-red, #cc2b2b);    --hlp-accent-ink: #b02121; --hlp-accent-soft: #fdeded; }

.help-role__head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.help-role__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.125rem;
    color: var(--hlp-accent-ink);
    background: var(--hlp-accent-soft);
    border-radius: 0.75rem;
}

.help-role__headings {
    min-width: 0;
}

.help-role__tagline {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hlp-accent-ink);
}

.help-role__name {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--hlp-ink);
    margin: 0.125rem 0 0;
    line-height: 1.25;
}

.help-role__summary {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--hlp-muted);
    margin: 0 0 1.25rem;
}

/* The step rail. The connecting line is drawn on the list item rather than as
   a border on the rail, so the last step can stop it - a line running past the
   final number reads as a step nobody wrote. */
.help-role__steps {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.help-role__step {
    position: relative;
    display: flex;
    gap: 0.875rem;
    padding: 0 0 1rem;
}

.help-role__step::before {
    content: '';
    position: absolute;
    top: 1.75rem;
    bottom: 0.1875rem;
    left: 0.84375rem;
    width: 1px;
    background: var(--hlp-border);
}

.help-role__step:last-child {
    padding-bottom: 0;
}

.help-role__step:last-child::before {
    display: none;
}

.help-role__step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--hlp-accent-ink);
    background: var(--hlp-accent-soft);
    border-radius: 50%;
}

.help-role__step-body {
    min-width: 0;
    padding-top: 0.125rem;
}

.help-role__step-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hlp-ink);
    line-height: 1.4;
}

.help-role__step-text {
    display: block;
    margin-top: 0.1875rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--hlp-muted);
}

/* The full-width card - one role gets the whole row, and its six steps run
   three down the left and three down the right rather than as one six-deep
   list that would leave half the card white.

   grid-auto-flow: column with three explicit rows is what puts 1-2-3 in the
   left column; the default row flow would have laid them 1|2 / 3|4 / 5|6 and
   read as three pairs. Rows stretch, so a step's connector still reaches the
   next one even when the step opposite it is taller. */
@media (min-width: 62rem) {
    .help-role--wide .help-role__steps {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, auto);
        column-gap: 3rem;
    }

    /* Third step ends the left column, so its line has nothing to join. */
    .help-role--wide .help-role__step:nth-child(3) {
        padding-bottom: 0;
    }

    .help-role--wide .help-role__step:nth-child(3)::before {
        display: none;
    }

    .help-role--wide .help-role__summary {
        max-width: 60rem;
    }
}

/* Pushed to the bottom so the CTA row of two cards side by side lines up even
   when one has a longer step list. */
.help-role__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--hlp-border);
}

.help-role__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hlp-accent-ink);
    text-decoration: none;
    background: var(--hlp-surface);
    border: 1px solid var(--hlp-border);
    border-radius: var(--control-radius, 0.3125rem);
    transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.help-role__link i {
    font-size: 0.6875rem;
    opacity: 0.75;
}

.help-role__link:hover {
    gap: 0.625rem;
    color: var(--hlp-accent-ink);
    background: var(--hlp-accent-soft);
    border-color: var(--hlp-accent);
}

.help-role__link--primary {
    color: #ffffff;
    background: var(--hlp-accent-ink);
    border-color: var(--hlp-accent-ink);
}

.help-role__link--primary:hover {
    color: #ffffff;
    background: var(--hlp-accent-ink);
    border-color: var(--hlp-accent-ink);
    opacity: 0.92;
}

/* Marketing is the one role whose accent is the brand yellow itself. Filling
   its button with the darkened text tone made a mustard slab; the yellow fill
   with dark ink on it is both the brand button and the higher contrast. */
.help-role--marketing .help-role__link--primary,
.help-role--marketing .help-role__link--primary:hover {
    color: var(--hlp-ink);
    background: var(--brand-yellow, #f3c130);
    border-color: var(--brand-yellow, #f3c130);
}

/* --------------------------------------------------------------------------
   COMMON TASKS
   -------------------------------------------------------------------------- */

.help-tasks {
    height: 100%;
    padding: 1.5rem;
    background: var(--hlp-surface);
    border: 1px solid var(--hlp-border);
    border-radius: var(--hlp-radius);
}

.help-tasks__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hlp-muted);
    margin: 0 0 0.75rem;
}

.help-tasks__title i {
    color: var(--brand-yellow, #f3c130);
    font-size: 0.875rem;
}

.help-tasks__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-tasks__list li + li {
    border-top: 1px solid var(--hlp-border);
}

.help-tasks__link {
    display: block;
    padding: 0.75rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: var(--hlp-radius-sm);
    text-decoration: none;
    transition: background 0.2s ease;
}

.help-tasks__link:hover {
    background: var(--hlp-surface-alt);
}

.help-tasks__label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hlp-ink);
}

.help-tasks__link:hover .help-tasks__label {
    color: var(--brand-blue, #313b61);
}

.help-tasks__desc {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--hlp-muted);
}

/* --------------------------------------------------------------------------
   FAQ - same shape as the service pages' accordion, so the two are one
   component to a reader even though they are two stylesheets.
   -------------------------------------------------------------------------- */

.help-faq {
    max-width: 48rem;
    margin: 0 auto;
}

.help-faq__item {
    margin-bottom: 0.75rem;
    background: var(--hlp-surface);
    border: 1px solid var(--hlp-border);
    border-radius: var(--hlp-radius-sm);
    overflow: hidden;
}

/* The <h3> is a wrapper for markup and answer engines, not a type style - the
   button inside carries the size and weight. */
.help-faq__heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.help-faq__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: var(--hlp-ink);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.help-faq__q:hover {
    background: var(--hlp-surface-alt);
}

.help-faq__q i {
    flex-shrink: 0;
    margin-top: 0.1875rem;
    font-size: 0.75rem;
    color: var(--brand-yellow, #f3c130);
    transition: transform 0.25s ease;
}

.help-faq__q[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.help-faq__a {
    padding: 0 1.25rem 1.125rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--hlp-muted);
}

.help-faq__a p:last-child {
    margin-bottom: 0;
}

.help-faq__more {
    margin: 1.5rem 0 0;
    text-align: center;
}

.help-faq__more a {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-blue, #313b61);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.help-faq__more a:hover {
    gap: 0.625rem;
}

.help-faq__more i {
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   EMPTY SEARCH STATE
   -------------------------------------------------------------------------- */

.help-empty {
    padding: 4rem 0;
    text-align: center;
    background: var(--hlp-surface);
}

.help-empty__icon {
    font-size: 1.75rem;
    color: #c2c2c2;
}

.help-empty__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--hlp-ink);
    margin: 1rem 0 0.5rem;
}

.help-empty__text {
    max-width: 30rem;
    margin: 0 auto 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--hlp-muted);
}

.help-empty__btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hlp-ink);
    text-decoration: none;
    background: var(--brand-yellow, #f3c130);
    border-radius: var(--control-radius, 0.3125rem);
}

.help-empty__btn:hover {
    color: var(--hlp-ink);
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */

.help-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--brand-blue, #313b61);
    border-radius: var(--hlp-radius);
}

.help-contact__copy {
    max-width: 30rem;
}

.help-contact__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.help-contact__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.help-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.help-contact__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--control-radius, 0.3125rem);
    transition: background 0.2s ease, transform 0.2s ease;
}

.help-contact__btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-0.0625rem);
}

.help-contact__btn--primary {
    color: var(--hlp-ink);
    background: var(--brand-yellow, #f3c130);
    border-color: var(--brand-yellow, #f3c130);
}

.help-contact__btn--primary:hover {
    color: var(--hlp-ink);
    background: var(--brand-yellow, #f3c130);
    opacity: 0.92;
}

/* --------------------------------------------------------------------------
   PHONE
   -------------------------------------------------------------------------- */

@media (max-width: 47.9375rem) {
    .help-hub__title {
        font-size: 2rem;
    }

    .help-hub__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .help-hub .hero-section {
        padding: 2.5rem 0 2rem;
    }

    /* Four pills wrap into a ragged block; a scroll strip keeps them on one
       line and keeps each a full touch target. */
    .help-hub__jump {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-inline: -0.75rem;
        padding-inline: 0.75rem;
        scrollbar-width: none;
    }

    .help-hub__jump::-webkit-scrollbar {
        display: none;
    }

    .help-hub__jump a {
        white-space: nowrap;
        padding: 0.5rem 0.875rem;
    }

    .help-section {
        padding: 2.5rem 0;
    }

    .help-section__head {
        margin-bottom: 1.75rem;
    }

    .help-section__title {
        font-size: 1.5rem;
    }

    .help-role {
        padding: 1.25rem;
    }

    /* Hover lift sticks mid-transform when a tap turns into a scroll. */
    .help-role:hover {
        transform: none;
        box-shadow: var(--hlp-shadow);
    }

    .help-role__link {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 2.5rem;
    }

    .help-tasks {
        padding: 1.25rem;
    }

    .help-contact {
        padding: 1.5rem;
    }

    .help-contact__actions {
        width: 100%;
    }

    .help-contact__btn {
        flex: 1 1 10rem;
        justify-content: center;
        min-height: 2.75rem;
    }
}
