// ==========================================================================
// Page Hero component
// Reusable header band used at top of page templates (bottom border,
// centered title in Primary-dark, background icologo mark).
// Figma: node-id=143-1168
// ==========================================================================

@use '../base/variables' as *;

.page-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: $spacing-lg $spacing-md;
    border-bottom: 1px solid $color-primary-dark;
    margin-bottom: $spacing-lg;

    @media (min-width: $breakpoint-md) {
        padding: $spacing-xl $spacing-lg;
    }
}

.page-hero__ico {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.page-hero__title {
    position: relative;
    margin: 0;
    text-align: center;
    color: $color-primary-dark;
    font-size: $font-size-h2;

    @media (min-width: $breakpoint-md) {
        font-size: $font-size-h1;
    }

    &--lato {
        font-family: $font-family-sans;
        font-size: $font-size-h2;

        @media (min-width: $breakpoint-md) {
            font-size: $font-size-h2;
        }
    }
}

.page-hero__subtitle {
    position: relative;
    margin: $spacing-xs 0 0 0;
    text-align: center;
    color: $color-primary-dark;
    font-family: $font-family-sans;
    font-size: $font-size-lg;
    line-height: $line-height-base;
}

.page-hero__tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: $spacing-xs;
    margin-top: $spacing-sm;
}
