/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Pigeon - the banners

   The home banner is the hero photo, full width, under a flat dark wash
   so the words read on any picture - no fades. The business name is a
   large plain heading for now ( to revisit: a treatment per site ), the
   tagline under it, then the button. The phone gets its own crop of the
   picture.

   The inner pages' banner ( .sub-hero ) is at the foot of the file. */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.hero-container
{
    display: grid;
    position: relative;
    z-index: 2;

    min-height: 520px;

    background-color: var( --ink );
}

@media( min-width: 768px )
{
    .hero-container
    {
        min-height: min( 78vh, 760px );
    }
}

.hero-cover
{
    grid-row: 1;
    grid-column: 1;

    background-color: var( --ink );
    background-image: url( "../img/hero-bg-m.jpg" );
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media( min-width: 768px )
{
    .hero-cover
    {
        background-image: url( "../img/hero-bg.jpg" );
    }
}

.hero-inner
{
    display: grid;
    grid-row: 1;
    grid-column: 1;
    position: relative;
    z-index: 2;

    /* the flat wash - one shade, no fade */
    background-color: rgba( 0, 0, 0, .4 );
}

/* - with the top bar laid over the photo, the words clear it - */

.top-bar-over + .hero-container .hero-content
{
    padding-top: 120px;
}

.top-bar-over + .sub-hero .sub-hero-content
{
    padding-top: 110px;
}

@media( min-width: 1200px )
{
    .top-bar-over + .hero-container .hero-content
    {
        padding-top: 150px;
    }

    .top-bar-over + .sub-hero .sub-hero-content
    {
        padding-top: 130px;
    }
}

/* - the words - */

.hero-content
{
    display: grid;
    grid-gap: 16px;
    justify-self: center;
    align-self: center;
    justify-items: center;

    width: min( 100%, 960px );
    padding: 64px 24px;
    box-sizing: border-box;

    text-align: center;
}

.hero-content :is( h1, h2, h3, h4, p )
{
    justify-self: center;

    text-align: center;
    color: var( --on-ink );
}

.hero-content h1
{
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 1px;
}

@media( min-width: 768px )
{
    .hero-content h1
    {
        font-size: 56px;
    }
}

@media( min-width: 1200px )
{
    .hero-content h1
    {
        font-size: 72px;
    }
}

.hero-tagline
{
    max-width: 640px;

    font-size: 18px;
    line-height: 1.6;
}

@media( min-width: 768px )
{
    .hero-tagline
    {
        font-size: 20px;
    }
}

/* - the button: Pigeon's outline pill, white on the photo - painted with
     the builder's buttons in the skin ( shared/skins/pigeon.css ), so
     only its place is set here - */

.hero-content .piece-btn
{
    justify-self: center;
    margin-top: 16px;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.sub-hero
{
    min-height: 260px;
}

@media( min-width: 768px )
{
    .sub-hero
    {
        min-height: 340px;
    }
}

@media( min-width: 1200px )
{
    .sub-hero
    {
        min-height: 400px;
    }
}

.sub-hero .hero-cover
{
    background-image: url( "../img/banner-bg.jpg" );
}

.sub-hero .hero-inner
{
    background-color: rgba( 0, 0, 0, .45 );
}

.sub-hero-content
{
    display: grid;
    justify-self: center;
    align-self: center;
    justify-items: center;

    width: min( 100%, 960px );
    padding: 48px 24px;
    box-sizing: border-box;

    text-align: center;
}

.sub-hero-content h1
{
    justify-self: center;

    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 1px;
    text-align: center;
    color: var( --on-ink );
}

@media( min-width: 768px )
{
    .sub-hero-content h1
    {
        font-size: 48px;
    }
}

@media( min-width: 1200px )
{
    .sub-hero-content h1
    {
        font-size: 56px;
    }
}
