/**** hero ****/
section.hero {
    /* sizing */
    width: 100vw;
    height: 100vh;
    overflow: hidden;

    /* styling */
    background-color: var(--image-background);

    /* transition*/
    transition: background-color var(--transition-duration) var(--transition-method);
}

section.hero .container {
    /* sizing */
    width: 100%;
    height: 100%;

    /* spacing */
    padding: 30px;

    /* position */
    position: relative;

    /* flex */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0px;
}

section.hero * {
    margin: 0;
}

section.hero .overlay {
    /* position */
    position: absolute;
    inset: 0;
    z-index: 1;

    /* sizing */
    width: 100%;
    height: 100%;

    /* styling */
    background: rgb(0,0,0);
    background: -moz-linear-gradient(45deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 30%);
    background: -webkit-linear-gradient(45deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 30%);
    background: linear-gradient(45deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 30%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1); 
}

section.hero .background {
    /* position */
    position: absolute;
    inset: 0;
    z-index: 0;

    /* sizing */
    height: 100%;
    width: 100%;

    /* image */
    object-fit: cover;
}

section.hero .content {
    /* position */
    position: relative;
    z-index: 2;

    /* sizing */
    width: 100%;
    height: 100%;

    /* flex */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0px;
}

section.hero h1 {
    /* text */
    font-size: min(60px, max(5vw, 30px));
    font-weight: 900;
    line-height: 0.9;
    color: var(--brand-text-color);
}

section.hero h2 {
    /* text */
    font-size: min(35px, max(4vw, 20px));
    font-weight: 800;
    line-height: 0.9;
    color: var(--brand-text-color);
}

section.hero a {
    /* position */
    position: absolute;
    inset: 0;
    left: auto;
    top: auto;
    z-index: 1;
    transform: translate(0%, 0%);

    /* sizing */
    padding: 10px 20px;

    /* text */
    font-size: min(20px, max(3vw, 15px));;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    /* styling */
    color: var(--brand-text-color);
    background-color: var(--brand-color-background);
    border-radius: var(--hero-radius);

    /* transition*/
    transition: color var(--transition-button-duration) var(--transition-button-method), background-color var(--transition-button-duration) var(--transition-button-method);
}

section.hero a:hover,
section.hero a:focus,
section.hero a:focus-visible {
    background-color: var(--brand-color-foreground);
}

section.hero a:active {
    background-color: var(--brand-text-color);
    color: var(--brand-color-background);
}

@media (max-width: 450px) {
    section.hero .content {
        /* flex */
        align-items: center;
    }
    
    section.hero h1 {
        /* text */
        text-align: center;
    }

    section.hero h2 {
        /* text */
        text-align: center;
    }

    section.hero a {
        /* position */
        position: static;

        /* spacing */
        margin-top: 20px;

        /* sizing */
        width: 100%;

        /* text */
        text-align: center;
    }
}