/* =============================================================================
   page-header-band.css - shared page header band component
   -----------------------------------------------------------------------------
   Used by front/components/page-header-band.blade.php on any page that
   needs a compact header band: breadcrumb + H1 (+ optional subtitle and
   action link) over a background photo.

   The image is a cover background, so the band height never depends on
   the photo: it stays at the minimal content height on every page and
   only the image swaps. Geometry follows the checkout page header band
   (min-height 90px, inner rail on the global .container).

   Without an image the band gets the .phb--solid modifier and shows a
   plain brand colour from variables.css instead.

   Only features already proven on this site are used (the checkout
   sheet uses the same clamp + flex + rgba set). Class prefix phb- is
   scoped to this component only.
   ============================================================================= */

.phb {
    position: relative;
    overflow: hidden;
    min-height: 90px;
    background-color: var(--forest-900);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* No photo: plain brand colour from variables.css, no scrim needed */
.phb--solid {
    background-color: var(--primary);
}

/* Soft dark scrim so white text stays readable over any photo, the
   same idea as the old listing banner overlay, slightly lighter. */
.phb__scrim {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
}

.phb__inner {
    position: relative;
    z-index: 1;
    padding: 14px 16px 16px;
}

/* Breadcrumb */
.phb__crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
    font-size: 13px;
}

.phb__crumb a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.15s ease;
}

.phb__crumb a:hover {
    color: #ffffff;
}

.phb__crumb-sep {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1;
}

.phb__crumb-current {
    color: #ffffff;
    font-weight: 500;
}

/* Title row */
.phb__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.phb__title {
    font-family: var(--font-display);
    color: #ffffff;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.phb__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin: 4px 0 0;
}

.phb__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--r-sm);
    padding: 8px 14px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    margin-top: 4px;
}

.phb__action:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary-dark);
    text-decoration: none;
}

@media (min-width: 992px) {
    .phb__inner {
        padding: 18px 24px 20px;
    }
}
