body, html
{
    width   : 100%;
    height  : 100%;
    padding : 0;
    margin  : 0;
}

*
{
    font-family : var(--gts-default-font);
}

h1, h2, h3, h4, h5, h6,
h1.entry-title,
h2.wp-block-heading,
h3.wp-block-heading,
h4.wp-block-heading
{
    font-family    : var(--gts-headline-font) !important;
    text-transform : uppercase;
}

h1
{
    font-size : 4rem !important;
    hyphens   : auto;
}

h1.entry-title
{
    margin-top : 20px !important;
    font-size  : 2.5rem !important;
    hyphens    : auto;
}

h2
{
    font-size : 2.2rem !important;
}

h3
{
    font-size : 2rem !important;
}

h4
{
    font-size : 1.8rem !important;
}

.site
{
    background : var(--gts-background-page);
}

.page-container
{
    background   : var(--gts-default-background-color);
    max-width    : 1600px;
    min-height   : 100vh;
    margin       : auto;
    box-shadow   : var(--gts-home-dropshadow);
    border-left  : 5px solid var(--gts-accent-color-1);
    border-right : 5px solid var(--gts-accent-color-1);
}

div.page-container
{
    display        : flex;
    flex-direction : column;
    div.site-content
    {
        flex-grow: 1;
    }
}

header.site-header
{
    width     : 100%;
    max-width : 1600px;
    padding   : 0 !important;
    margin    : 0 auto !important;
    position  : relative;
}

header.entry-header
{
    padding       : 0 20px !important;
    margin        : 0 auto 20px !important;
    border-bottom : 1px solid var(--gts-accent-color-1) !important;
}

div.angercode-rotator-child
{
    width      : 100%;
    height     : 100%;
    opacity    : 0;
    position   : absolute;
    top        : 0;
    left       : 0;
    transition : all 1s ease;
}

.site-branding
{
    
    padding    : 0 !important;
    margin     : 0 auto !important;
    width      : 100%;
    min-height : var(--gts-header-height);
    
    &:not( .home & )
    {
        /*min-height: 300px;*/
    }
    
    position   : relative;
    background : url('../images/background_home_1_r.webp') no-repeat top center / cover;
    filter     : sepia(100%) hue-rotate(190deg) saturate(55%) contrast(120%);
    
    &::after
    {
        content    : '';
        width      : 100%;
        height     : 100%;
        top        : 0;
        left       : 0;
        z-index    : 1;
        position   : absolute;
        background : var(--gts-accent-color-trans);
    }
    
}

.branding-box
{
    position : absolute;
    width    : 100%;
    top      : 250px;
    
    h1.branding-title,
    h2.branding-subtitle
    {
        margin         : 150px auto 50px;
        color          : white;
        text-transform : uppercase;
        font-family    : 'aller-display';
        font-size      : 4rem;
        max-width      : 1000px;
        text-align     : center;
        text-shadow    : 7px 7px 0 var(--gts-accent-color-1);
    }
    
    h2.branding-subtitle
    {
        font-size   : 2.5rem;
        margin      : 100px auto;
        text-shadow : 4px 4px 0 var(--gts-accent-color-1);
    }
    
    div.icon-row
    {
        width  : fit-content;
        margin : auto;
        
        div.icon
        {
            width            : 250px;
            height           : 250px;
            margin           : 0 10px;
            background-color : var(--gts-accent-color-1);
            float            : left;
            position         : relative;
            transition       : var(--default-transition);
            
            &:hover
            {
                transform  : scale(1.05);
                box-shadow : 0 0 10px var(--gts-accent-color-1);
            }
            
            &::before
            {
                content             : '';
                width               : 100%;
                height              : 100%;
                top                 : 0;
                left                : 0;
                z-index             : 1;
                position            : absolute;
                background-repeat   : no-repeat;
                background-size     : 55%;
                background-position : center 30%;
                filter              : invert(100%);
            }
            
            &.mill::before
            {
                background-image : url('../images/milling-machine.png');
            }
            
            &.support::before
            {
                background-image : url('../images/customer-service.png');
            }
            
            &.magnet::before
            {
                background-image : url('../images/magnet.png');
            }
            
            &.dashboard::before
            {
                background-image : url('../images/monitor.png');
            }
            
            span
            {
                position     : absolute;
                bottom       : 20px;
                width        : 100%;
                text-align   : center;
                display      : block;
                color        : white;
                font-family  : 'aller-display';
                font-variant : all-small-caps;
                font-size    : 1.7rem;
                line-height  : 1.4rem;
            }
        }
    }
    
}

.logo-anim-preload
{
    background : url('../images/logo-animated.svg') no-repeat center / contain;
    height     : 1px;
    width      : 1px;
    position   : absolute;
    top        : -1000px;
    left       : -1000px;
}

.logo
{
    transition : var(--default-transition);
    filter     : unset !important;
    position   : absolute;
    width      : 220px;
    height     : 220px;
    top        : 20px;
    left       : 20px;
    z-index    : 999;
    background : url('../images/logo.svg') no-repeat center / contain;
    cursor     : pointer;
    
    &:hover
    {
        border-radius       : 50%;
        background-color    : var(--gts-accent-color-trans-header);
        background-image    : url('../images/logo-animated.svg');
        background-repeat   : no-repeat;
        background-position : center;
        background-size     : contain;
        transform           : scale(1.1) rotate(-1deg);
    }
}

footer#colophon
{
    background : var(--gts-background-page);
    width      : 100%;
    max-width  : 100%;
    margin-top : 60px;
    padding    : 0 40px;
    
    .site-info
    {
        border-top : unset;
        
        .info-boxes
        {
            .links-box
            {
                position : relative;
                
                .links
                {
                    height     : fit-content;
                    position   : absolute;
                    bottom     : 0;
                    right      : 0;
                    text-align : right;
                    
                    a.privacy-policy-link,
                    div.powered-by
                    {
                        color : var(--gts-default-light-color);
                    }
                }
            }
        }
    }
}

div#primary
{
    padding : 0 40px;
}

ul.wp-block-list, ol.wp-block-list, div.wp-block-image
{
    width     : 100%;
    max-width : calc(var(--gts-max-content-width) - 20px) !important;
}

div.wp-block-buttons
{
    div.wp-block-button
    {
        &.centered
        {
            display  : block;
            position : relative;
            margin   : auto;
            
            a
            {
                color       : var(--gts-default-light-color);
                font-weight : bold;
                transition  : var(--default-transition);
            }
        }
    }
}

div.wp-block-group
{
    &.homepage.excerpt
    {
        padding  : 20px;
        position : relative;
        
        &:before,
        &:after
        {
            content  : '';
            display  : block;
            width    : 50px;
            height   : 50px;
            position : absolute;
        }
        
        &:before
        {
            left            : -40px;
            top             : 0;
            background      : url('../images/quotes.svg');
            background-size : contain;
        }
        
        &:after
        {
            right           : -40px;
            bottom          : 0;
            transform       : scaleX(-1);
            background      : url('../images/quotes.svg');
            background-size : contain;
        }
        
        div.wp-block-buttons
        {
            div.wp-block-button
            {
                position : absolute;
                right    : 20px;
                padding  : 0;
                
                a
                {
                    background-color : var(--gts-accent-color-3) !important;
                    padding          : 5px 10px;
                    color            : var(--gts-default-light-color) !important;
                    transition       : var(--default-transition);
                    
                    &:hover
                    {
                        background-color : var(--gts-accent-color-3-solid) !important;
                        border-color     : transparent !important;
                    }
                }
            }
        }
        
    }
    
    &.homepage.excerpt,
    &.homepage.excerpt p
    {
        font-size   : 1.4rem;
        color       : var(--gts-accent-color-3-solid);
        font-weight : bolder;
        max-width   : var(--gts-max-content-width) !important;
    }
}

div.site-info
{
    display : block !important;
    
    div.powered-by
    {
        margin-top : 20px !important;
        text-align : right;
    }
}

div.info-boxes
{
    width                 : 100% !important;
    max-width             : 100% !important;
    display               : grid;
    grid-template-columns : 1fr 1fr;
    
    div.contact-box
    {
        padding          : 20px;
        margin           : 20px;
        background-color : var(--gts-accent-color-trans-header);
        
        p, a.mailto, a.phone
        {
            color           : var(--gts-default-light-color);
            text-decoration : none;
            transition      : var(--default-transition);
        }
        
        a.mailto:hover, a.phone:hover
        {
            text-decoration : underline;
            color           : var(--gts-default-light-color-2);
        }
    }
}

div.wp-block-columns
{
    max-width : var(--gts-max-content-width) !important;
    
    .wp-block-column
    {
        &:first-child
        {
            flex-basis : 150px !important;
        }
    }
}

@media screen and (max-width : 1200px)
{
    html, body
    {
        width     : 100% !important;
        max-width : 100% !important;
    }
    
    div#primary
    {
        max-width : calc(100% - 100px);
        padding   : 0 40px;
    }
    
    div#page.site
    {
        width     : 100% !important;
        max-width : 100% !important;
        
        header#masthead
        {
            .site-branding
            {
                width     : 100% !important;
                max-width : 100% !important;
            }
            
            .branding-box
            {
                
                div.icon-row
                {
                    box-sizing : border-box;
                    width      : max-content;
                    max-width  : 100%;
                    
                    div.icon
                    {
                        width  : calc(20vw);
                        height : calc(20vw);
                        margin : 0.5vw;
                        
                        span
                        {
                            font-size   : 1.4rem !important;
                            line-height : 1.2rem !important;
                            bottom      : 20px;
                        }
                    }
                }
            }
            
            .nav-boundaries
            {
                height : calc(var(--gts-navigation-height) - 60px);
                
                nav#site-navigation
                {
                    top : 140px;
                }
                
                .phone-number
                {
                    margin : 0 !important;
                    right  : 20px;
                }
            }
            
            .logo
            {
                width  : 160px;
                height : 160px;
                top    : 10px;
                left   : 10px;
            }
            
        }
    }
}

@media screen and (max-width : 1000px)
{
    
    div#primary
    {
        max-width : calc(100% - 40px);
        padding   : 20px;
    }
    
    div#page.site
    {
        header#masthead
        {
            .branding-box
            {
                
                h1.branding-title
                {
                    max-width : calc(100% - 80px);
                    font-size : 3rem !important;
                    margin    : 40px auto 50px;
                    hyphens   : auto;
                }
                
                h2.branding-subtitle
                {
                    max-width : calc(100% - 80px);
                    font-size : 1.8rem !important;
                    margin    : 40px auto;
                    hyphens   : auto;
                }
                
                div.icon-row
                {
                    box-sizing            : border-box;
                    width                 : 100%;
                    max-width             : fit-content;
                    display               : grid;
                    grid-template-columns : 1fr 1fr;
                    gap                   : 5vw;
                    
                    div.icon
                    {
                        width  : calc(26vw);
                        height : calc(26vw);
                        margin : auto;
                        
                        span
                        {
                            font-size   : 1.4rem !important;
                            line-height : 1.4rem !important;
                            bottom      : 10px;
                        }
                    }
                }
            }
            
            .nav-boundaries
            {
                .phone-number
                {
                    a
                    {
                        font-size : 1.5rem;
                    }
                }
            }
        }
        
        footer#colophon
        {
            .site-info
            {
                .info-boxes
                {
                    grid-template-columns : 1fr;
                }
            }
        }
    }
    
    header.entry-header,
    header.entry-header.alignwide
    {
        padding : 0 !important;
    }
    
    h1, h1.entry-title, h2, h3, h4, h5, h6
    {
        padding : 0;
    }
    
}

@media screen and (max-width : 900px)
{
    div#page.site
    {
        header#masthead
        {
            .branding-box
            {
                div.icon-row
                {
                    div.icon
                    {
                        span
                        {
                            font-size   : 1.3rem !important;
                            line-height : 1.2rem !important;
                            bottom      : 10px;
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width : 560px)
{
    
    div#primary
    {
        max-width : calc(100% - 20px);
        padding   : 20px;
    }
    
    div#page.site
    {
        header#masthead
        {
            
            .branding-box
            {
                
                h1.branding-title
                {
                    font-size : 2rem !important;
                    margin    : 20px auto 50px;
                    hyphens   : auto;
                }
                
                h2.branding-subtitle
                {
                    font-size : 1.6rem !important;
                    margin    : 30px auto;
                }
                
                div.icon-row
                {
                    box-sizing            : border-box;
                    width                 : max-content;
                    max-width             : 100%;
                    display               : grid;
                    grid-template-columns : 1fr 1fr;
                    gap                   : 0;
                    
                    div.icon
                    {
                        width  : 30vw;
                        height : 30vw;
                        margin : 1vw;
                        
                        span
                        {
                            font-size   : 1rem !important;
                            line-height : 1rem !important;
                            bottom      : 1vw;
                        }
                    }
                }
            }
            
            .nav-boundaries
            {
                .phone-number
                {
                    a
                    {
                        font-size : 1.5rem;
                    }
                }
            }
        }
        
        footer#colophon
        {
            .site-info
            {
                .info-boxes
                {
                    grid-template-columns : 1fr;
                }
            }
        }
    }
}

@media screen and (max-width : 420px)
{
    div#page.site
    {
        header#masthead
        {
            .branding-box
            {
                
                h1.branding-title
                {
                    font-size : 1.9rem !important;
                }
                
                h2.branding-subtitle
                {
                    font-size : 1.4rem !important;
                }
                
                div.icon-row
                {
                    div.icon
                    {
                        width  : 32vw;
                        height : 32vw;
                        
                        span
                        {
                            font-size : 1.5rem;
                            bottom    : 1vw;
                        }
                    }
                }
            }
        }
    }
}