
@import url(../fonts/rubik.css);

:root {
    --max-width: 1600px;
    --color-red-main: #DA2A1C;
    --color-red-light: #FF8980;
    --color-red-dark: #910B00;
    --color-red-darker: #2B0300;
    --color-red-main-translucent: #da291cb0;
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    background-color: #fff;
    font-family: 'rubik', sans-serif;
    font-size: 18px;
}

a {
    color: var(--color-red-main);
    text-decoration: none;
    transition: all 0.6s;
}

a:hover {
    color: #000;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--color-red-main);
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    line-height: 28px;
}

p {
    margin-bottom: 12px;
    text-align: justify;
}

dialog:modal {
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    padding: 12px;
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 80px);
    border: 2px solid var(--color-red-main);
    border-radius: 12px;
    transform: translate(-50%, -50%);
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.64);
}

section {
    margin: 20px;
}


/* --> */

body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 78px;
    margin: auto;
    background-color: #fff;
    background-image: url(../img/logo.svg);
    background-repeat: no-repeat;
    background-position: 20px 20px;
    background-size: auto 38px;
    transition: all 0.6s ease-in-out;
}

body > header nav {
    position: absolute;
    right: 0;
    bottom: 0;
}

body > header button {
    cursor: pointer;
    position: relative;
    right: 20px;
    bottom: 20px;
    z-index: 101;
    display: block;
    width: 38px;
    height: 38px;
    background-color: transparent;
    border: #000 solid 1px;
    border-radius: 6px;
    transition: all 0.6s ease-in-out;
}

body > header button svg {
    stroke: #000;
    stroke-width: 2px;
    stroke-linecap: round;
    transition: all 0.6s ease-in-out;
}

body > header.show button,
body > header button:hover {
    border-color: var(--color-red-main);
}

body > header.show button svg,
body > header button:hover svg {
    stroke: var(--color-red-main);
}

body > header ol {
    list-style: none;
    position: fixed;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 20px;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background-color: var(--color-red-darker);
    transform: translateX(100%);
}

body > header.show ol,
body > header.hide ol {
    transition: transform 0.6s ease-in-out;
}

body > header.show ol {
    transform: translateX(0);
}

body > header ol li a {
    display: block;
    padding-left: 1.4em;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: auto 1em;
    color: #fff;
    font-size: 1.2em;
}

body > header ol li a:hover {
    color: var(--color-red-main);
}

body > header ol li:nth-of-type(1) a {
    background-image: url(../img/icon-home.svg);
}

body > header ol li:nth-of-type(2) a {
    background-image: url(../img/icon-moveing.svg);
}

body > header ol li:nth-of-type(3) a {
    background-image: url(../img/icon-cleaning.svg);
}

body > header ol li:nth-of-type(4) a {
    background-image: url(../img/icon-storage.svg);
}

body > header ol li:nth-of-type(5) a {
    background-image: url(../img/icon-disposal.svg);
}

body > header ol li:nth-of-type(6) a {
    background-image: url(../img/icon-contact.svg);
}

body > header ol li.active a {
    color: var(--color-red-main);
    font-weight: bold;
}



/* --> */

body > footer {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

body > footer a {
    color: #fff;
}

body > footer a:hover {
    color: var(--color-red-main);
}

body > footer .top,
body > footer .bottom {
    padding: 20px;
    box-sizing: border-box;
}

body > footer .top {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 20px;
    background-color: var(--color-red-darker);
}

body > footer .bottom {
    box-sizing: border-box;
    padding: 12px;
    background-color: var(--color-red-main);
    text-align: center;
}

body > footer dl {
    flex: 0 0 100%;
}

body > footer dl dt {
    margin-bottom: 6px;
    padding-bottom: 6px !important;
    border-bottom: 1px dashed #fff;
    font-weight: bold;
}

body > footer dl dt,
body > footer dl dd {
    line-height: 32px;
}

body > footer dl dd a::before {
    content: "◈";
    margin-right: 8px;
}

/* --> */

main {
    box-sizing: border-box;
    max-width: var(--max-width);
    min-height: calc(100vh - 98px);
    margin: 78px auto 0 auto;
}

main header,
main header picture {
    display: block;
    margin-bottom: 20px;
}

main header {
    position: relative;
}

main header h1 {
    padding: 0 20px;
}

main header div {
    aspect-ratio: 10.667 / 16;
    position: relative;
    width: 100%;
    margin-bottom: 26px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

main header div::after {
    content: "";
    position: absolute;
    bottom: -6px;
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 3px;
    background-color: var(--color-red-main);
}




/* --> */
#/*
@media all and (max-width: 440px) {

    #slideshow ol {
        min-width: 148px;
    }

    #slideshow ol li {
        font-size: 10px;
        line-height: 16px;
    }

    #slideshow > div > div > span > h1 {
        display: none;
    }
    
    #slideshow > div > div > span > h2 {
        margin-top: 2.5rem;
        font-size: 1rem;
        line-height: 1rem;
    }
    
    #slideshow > div > div > span > svg {
        left: 1rem;
        bottom: .5rem;
    }

    .dot {
        left: .5rem;
        bottom: .5rem;
        height: 5rem;
        width: 5rem;
    }

    .dot div{
        width: 100%;
        height: 100%;
        margin-top: 1.2rem;
    }
    
    .dot h2 {
        font-size: 1rem;
        line-height: .1rem;
    }
    
    .dot h3 {
        font-size: .5rem;
        line-height: .1rem;
    }
}


@media all and (min-width: 600px) and (max-width: 799px){ 
    #slideshow > div > div > span > h1 {
        font-size: 3rem;
        line-height: 1rem;
        margin-bottom: 3rem;
    }
    
    #slideshow > div > div > span > h2 {
        margin-left: 1rem;
        margin-right: 1rem;
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
    
    #slideshow > div > div > span > svg {
        left: 1rem;
        bottom: .5rem;
    }

    .dot {
        left: 1rem;
        bottom:  1rem;
        height: 7rem;
        width: 7rem;
    }

    .dot div{
        margin-top: 1.2rem;
    }
    
    .dot h2 {
        font-size: 1.5rem;
        line-height: 1rem;
    }
    
    .dot h3 {
        font-size: .8rem;
        line-height: .8rem;
    }
}


@media all and (min-width: 799px)  and (max-width: 1023px) { 
    #slideshow > div > div > span > h1 {
        margin-top: 4rem;
        font-size: 3rem;
        line-height: 1rem;
        margin-bottom: 3rem;
    }
    
    #slideshow > div > div > span > h2 {
        margin-left: 1rem;
        margin-right: 1rem;
        font-size: 2rem;
        line-height: 2.5rem;
    }
    
    #slideshow > div > div > span > svg {
        left: 1rem;
        bottom: .5rem;
    }

    .dot {
        left: 1rem;
        bottom:  1rem;
        height: 10rem;
        width: 10rem;
    }

    .dot div{
        margin-top: 1.2rem;
    }
    
    .dot h2 {
        font-size: 2.5rem;
        line-height: 1rem;
    }
    
    .dot h3 {
        font-size: 1.4rem;
        line-height: 1.4rem;
    }
}


@media all and (min-width: 1023px) { 
    #slideshow > div > div > span > h1 {
        text-align: center;
        margin-bottom: 1.2rem;
    }
    
    #slideshow > div > div > span > h2 {
        text-align: center;
    }

    .dot h2 {
        text-align: center;
    }
    
    .dot h3 {
        text-align: center;
    }
}*/