@import 'variables.css?v=3';

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

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 150%;
    margin: 0;
    padding: 0;
    top: 0;
    text-align: left;
    height: 100%;
    color: var(--text);
    background-color: var(--bg-grey);
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

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

.box {
    position: relative;
    width: 100%;
}

.box-content {
    box-sizing: border-box;
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
}

/* nav ---------------------------------------------*/

.dark-grey-ribbon {
    position: absolute;
    top: 5px;
    right: 0;
    width: calc((100% - 1000px) / 2 + 10px);
    height: 46px;
    background-color: var(--lighter-grey);
}

#nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#nav img {
    width: 300px;
}

.main-nav {
    margin: 0;
    padding: 0;
    background-color: var(--lighter-grey);
    border-bottom-left-radius: 5px;
}

.main-nav li {
    display: inline-block;
    padding: 8px 0;
}

.main-nav a {
    padding: 3px 25px 0px 25px;
    display: block;
    text-decoration: none;
    color: var(--text) !important;
    font-size: 16px;
    font-weight: normal;
    transition: 0.5s;
    text-transform: uppercase;
}

.main-nav li:not(:last-of-type) a {
    border-right: 1px solid #676767;
}

.main-nav li:last-of-type a {
    padding-right: 0;
}

.main-nav li:hover a, .main-nav li.active a {
    color: var(--light-grey) !important;
}

.show-nav {
    display: none;
    background-color: white;
    color: var(--text);
    border-radius: 3px;
    padding: 15px;
    margin-right: 0px;
    font-size: 25px;
    margin-left: 30px;
    cursor: pointer;
}

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

.color-ribbon {
    height: 5px;
    width: 100%;
    background-image: url('/images/graphics/color-ribbon.svg?v=2');
    background-size: 100% auto;
    background-position: center;
    background-repeat: repeat-y;
}

#welcome {
    margin: 100px auto 75px auto;
    text-align: center;
}

#welcome .vodo-topo-elektro {
    font-size: 25px;
    padding: 0 0 40px 0;
}

#welcome .vodo-topo-elektro span {
    margin: 0 7px;
}

#welcome p {
    font-size: 20px;
    max-width: 660px;
    margin: 0 auto;
}

/* services -------------------------------------------------------------*/

#blocks {
    display: flex;
    justify-content: space-between;
}

#blocks, #blocks * {
    transition: 0.3s;
}

.blocks-left, .blocks-right {
    width: calc(50% - 15px);
}

.blocks-right {
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.block {
    display: flex;
    border-radius: 5px;
    overflow: hidden;
}

.blocks-right .block {
    flex-direction: row-reverse;
}

.block-icon {
    background-color: var(--dark-grey);
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-icon img{
    width: 70%;
}

.block-content {
    width: calc(100% - 80px);
    padding: 10px 10px 10px 15px;
    background-color: var(--light-grey);
    color: var(--bg-grey);
}

.blocks-right .block-content {
    padding: 12px 10px 12px 20px;
}

.block ul {
    list-style-type: none;
    padding-left: 0;
}

.block ul li {
    margin: 10px 0;
    line-height: 1.4;
    display: flex;
}

.block ul li p {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.block ul li:before {
    font-size: 18px;
    margin-top: 3px;
    margin-right: 10px;
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

.block-voda {
    position: absolute;
    bottom: 0;
}

.block-elektro ul li:before {
    color: #f4b000;
}

.block-topeni ul li:before {
    color: var(--red);
}

.block-voda ul li:before {
    color: var(--blue);
}

#kontakty {
    margin-top: 70px;
    margin-bottom: 40px;
}

.contact-boxes {
    max-width: 584px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.contact-boxes div {
    border-radius: 5px;
    background-color: var(--lighter-grey);
    padding: 15px 50px;
}

.contact-boxes div p {
    padding-top: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.contact-boxes div p:before {
    font-size: 18px;
    margin-right: 20px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    color: #878787;
}

.contact-boxes div p:first-of-type:before {
    content: "\f095";
}

.contact-boxes div p:nth-of-type(2):before {
    content: "\f0e0";
}

.company-details {
    text-align: center;
    margin-top: 40px;
}

#footer {
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #878787;
    max-width: 400px;
    color: #878787;
    padding: 40px 0 35px 0;
}

#footer a, #footer a:visited {
    color: #878787;
}

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

h1, h2, h3 {
    font-weight: 500;
    line-height: 1.2;
}

h1, h2 {
    text-transform: uppercase;
    text-align: center;
}

h1 {
    font-size: 40px;
    padding: 10px 0;
    margin: 0;
}

h2 {
    font-size: 29px;
    margin-top: 0;
    padding-top: 30px;
    margin-bottom: 40px;
}

h3 {
    font-size: 19px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 18px;
}

a, a:visited {
    color: var(--text);
    transition: 0.3s;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var(--light-grey);
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 10px 0;
}

hr {
    width: 100%;
    height: 1px;
    border: none;
    background-color: rgb(200, 200, 200);
    margin: 40px 0;
}

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


/* width */
::-webkit-scrollbar {
    width: 15px;
    height: 15px;
    border: 3px solid var(--lighter-grey);
}

/* Track */
::-webkit-scrollbar-track {
    background-color: var(--lighter-grey);
}

/* Handle */
::-webkit-scrollbar-thumb {
    transition: 0.3s;
    border-left: 3px solid var(--lighter-grey);
    background: var(--bg-grey);
}

/* Handle on hover*/
::-webkit-scrollbar-thumb:hover {
    background: var(--light-grey);
}
