/* GTT Website styles by Konrad Gałązka - https://github.com/kony23 */

:root {
    --color-main: #d20814;
    --color-main-dark: #bb1819;
    --color-bg-light: #f9f9f9;
}

::-moz-selection {
    background: #d20814;
    color: #fff;
}
::selection {
    background: #d20814;
    color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #000;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

section {
    padding-top: 100px;
    padding-bottom: 100px;
}

img {
    width: 100%;
    transition: all 0.3s ease;
}

.preload {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    width: 100vw;
    height: 100vh;
    top: 0;
    background-color: #ffffff;
    transition: opacity 250ms ease-in-out, visibility 250ms ease-in-out;
}

.preload-logo {
    width: 200px;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

.show-preloader {
    visibility: visible;
    opacity: 1;
}

.circle {
    background-color: #d20814;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: inline-block;
    animation: bounce-circles 0.7s infinite ease-in-out;
}

.preload .circle:nth-child(1) {
    animation-delay: -0.6s;
}

.preload .circle:nth-child(2) {
    animation-delay: -0.5s;
}

.preload .circle:nth-child(3) {
    animation-delay: -0.4s;
}

.preload .circle:nth-child(4) {
    animation-delay: -0.3s;
}

@keyframes bounce-circles {
    0%,
    40%,
    100% {
        transform: translateY(-10px);
    }
    20% {
        transform: translateY(-20px);
    }
}

.hidden,
[hidden] {
    visibility: hidden;
}

.m {
    margin: 2rem;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    transition: all 0.2s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    background-color: transparent;
    height: 100px;
}

.navbar a {
    color: #000;
    font-weight: 800;
}

.scrolled {
    background-color: #fff;
    height: 70px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
}

.navbar .navbar-brand {
    width: fit-content;
}

.navbar .navbar-brand.logo-image img {
    width: 70%;
    transition: all 0.2s;
    padding-top: 5px;
}

.navbar .navbar-brand.logo-text {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.navbar .navbar-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
}

.navbar .navbar-item .navbar-link {
    font-size: 1.1rem;
    font-style: italic;
    padding: 0.625rem 0.75rem 0.625rem 0.75rem;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar .navbar-item .navbar-link:hover,
.navbar .navbar-item .navbar-link.active {
    color: #d20814;
}

.navbar .navbar-toggler {
    border: none;
    outline: none;
    color: #000;
    background-color: transparent;
    font-size: 1rem;
    cursor: pointer;
}

.navbar-toggler-awesome {
    font-size: 2rem;
}

/* HEADER */

.header {
    background: url('../img/header-hero-truck-road-lg.jpg') center center
        no-repeat;
    background-size: cover;
    height: 100vh;
    margin-bottom: 100px;
}

.header .header-content {
    padding-top: 9rem;
    padding-bottom: 2.125rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.header .header-content.main {
    height: 100%;
}

.header .header-title {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: italic;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.header p {
    margin-bottom: 1rem;
    color: #000;
}

.btn-primary {
    background-color: #d20814;
    color: #fff;
    height: 40px;
    width: 120px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
    border-radius: 0.25rem;
    padding-left: 10px;
    padding-right: 10px;
}

.btn-primary:hover {
    background-color: transparent;
    color: #d20814;
    border: 1px solid #d20814;
}

/* Flex items */
.flex-items {
    display: flex;
    text-align: center;
    justify-content: space-around;
    align-items: center;
}

/* Flex columns */
.flex-columns.flex-reverse .row {
    flex-direction: row-reverse;
}

.flex-columns .row {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.flex-columns .column {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
}

.flex-columns .column .column-1,
.flex-columns .column .column-2 {
    height: 100%;
}

.flex-columns img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flex-columns .column-2 {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    justify-content: space-evenly;
}

.flex-columns .column-2 .flex-columns .column-2 a {
    display: block;
}

/* sections */

.section-title-container {
    width: fit-content;
    width: -moz-fit-content;
    width: -webkit-fit-content;
    margin-left: 10px;
}

.section-title {
    overflow: hidden;
    font-size: 5vw;
    display: inline-block;
    line-height: 1;
    border-bottom: 15px solid #d20814;
    transform: skew(-15deg);
    padding: 2px;
}

.section-p {
    font-size: 1.2rem;
}

.section-a {
    color: #000;
    transition: color 0.3s ease;
    display: inline;
    border-bottom: 1px solid #d20814;
    width: fit-content;
    width: -moz-fit-content;
    width: -webkit-fit-content;
    font-size: 1.2rem;
}

.section-a::before {
    content: '';
    display: block;
    height: 100px;
    margin-top: -100px;
    visibility: hidden;
}

.section-a:hover {
    color: #d20814;
    background-color: 100% 100%;
    text-decoration: none;
}

/* Flex grid */
.flex-grid .row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}

.flex-grid .column {
    flex: 25%;
    max-width: 25%;
    padding: 0 4px;
}

@media (max-width: 960px) {
    .flex-items {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .flex-columns .column,
    .flex-grid .column {
        flex: 100%;
        max-width: 100%;
    }

    .flex-columns .column-1 {
        padding: 0;
    }

    .section-title {
        font-size: 12vw;
    }
}

/* section services*/

.offer {
    margin-bottom: 100px;
}

.offer .fas {
    color: #d20814;
}

.center-title-container {
    text-align: center;
    margin-bottom: 3rem;
}
.offer h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.offer p {
    margin-bottom: 1rem;
}

.card {
    padding: 2rem;
    width: 325px;
    background-color: #fff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.card-btn {
    margin-top: 2rem;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/* about */

.about {
    background-color: #f9f9f9;
}

.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 111111;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-y: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    width: 100%;
    text-align: center;
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

.overlay-box.last {
    display: flex;
    justify-content: space-between;
}

.overlay-box.last .call-me i {
    font-size: 2rem;
    padding: 1rem;
}

.overlay a {
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    transition: 0.3s;
    overflow: hidden;
    font-size: 7vw;
}

.overlay a:hover,
.overlay a:focus {
    color: #d20814;
}

.overlay .closebtn {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 60px;
    color: #000000;
    background-color: transparent;
    outline: none;
    border: none;
}

.overlay .closebtn:hover {
    color: #d20814;
}

@media screen and (max-height: 450px) {
    .overlay {
        overflow-y: auto;
    }
    .overlay a {
        font-size: 20px;
    }
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

.bg-light {
    background-color: #fff;
}

.contact-name-container {
    display: flex;
    margin: 1rem 1rem 1rem 0;
}

.contact-name-container > div {
    margin-right: 1rem;
}

.contact-name {
    font-size: 1.2rem;
    margin: 0;
}

.ctp {
    text-align: center;
    padding: 3rem;
}

.column .r a {
    color: #000;
    font-size: 1.2rem;
    transition: color 0.3 ease;
}

.column .r a:hover {
    color: #d20814;
}

.column .r a:hover .fas {
    border: solid #000 5px;
    color: #d20814;
}

.column .r i {
    color: #000;
    font-size: 2rem;
    border: solid #d20814 5px;
    border-radius: 50%;
    padding: 10px;
    width: fit-content;
    transition: all 0.3s ease;
}

.column .r i:hover {
    border: solid #000 5px;
    color: #d20814;
}

/* Footer */
footer {
    background-color: #fff;
}

footer p,
footer a {
    font-size: 11px;
}

.footer a,
.footer .fas {
    color: #d20814;
}

.footer a:hover {
    color: #00becc;
}

.contact-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-container > div {
    margin: 1rem;
    text-align: center;
}

.copyright {
    display: block;
    text-align: center;
    padding: 2rem;
    font-size: 0.7rem;
}

/* podstrona uslugi */

.header.services {
    background: none;
    background-color: #f9f9f9;
    background-size: cover;
    width: 100%;
    height: 100px;
    margin-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content.services {
    width: auto;
    padding: 0;
    margin-top: 100px;
    padding-top: 0;
}

.section-title.services {
    border-bottom: none;
    font-weight: 600;
    font-size: 4rem;
    margin-bottom: 2rem;
}

.section-title.services + p {
    padding-left: 10px;
    padding-left: 10px;
    margin-bottom: 32px;
    margin-top: -45px;
    font-size: 0.9rem;
    margin-left: -4px;
}

.container.services {
    margin-top: -50px;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container.services ul > li {
    font-size: 1.2rem;
    margin: 1rem;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.container.services ul > li:hover {
    transform: scale(1.1);
}

.container.services .section-p.grnt {
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
}

.adr-image {
    position: relative;
}

/* podstrona career */

.header.services.career {
    margin-top: 10rem;
}

.header-p.career {
    margin: 3rem 0;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 0 2rem;
}
.career.section-p {
    margin: 3rem 0 3rem 0;
    text-align: center;
}
.career-item {
    width: 100%;
    margin: 3rem;
    padding: 2rem;
}

.career-item-p {
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.career-item i {
    transition: all 0.3s ease;
    color: #bb1819;
}

.career-item:hover i {
    transform: scale(1.4);
}

.career-item:hover .career-item-p {
    transform: scale(1.4);
}

@media (max-width: 1024px) {
    .header .header-content.main {
        padding-top: 13rem;
    }

    .header-p {
        font-size: 1.5rem;
    }
}

@media (max-width: 960px) {
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .navbar-toggler {
        display: inline-block;
    }

    .navbar .navbar-menu {
        display: none;
    }

    .navbar .navbar-brand.logo-image img {
        width: 60%;
    }

    .section-title-container {
        margin-bottom: 2rem;
    }

    .section-p {
        margin-bottom: 1rem;
    }

    .section-a {
        margin-bottom: 1rem;
    }

    .card {
        padding: 1rem;
        margin-bottom: 2rem;
        width: 90%;
        background-color: #fff;
    }

    .header-title.services {
        font-size: 12vw;
    }

    .section-title.services {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
        background-color: #fff;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
    }

    .header .header-content.main {
        padding-top: 12rem;
    }

    .header .header-title {
        font-size: 2.5rem;
    }

    .header-text-container {
        padding: 1rem;
    }

    .header-p.career {
        font-size: 1rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-name-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 1rem;
    }

    .contact-name-container > div {
        margin-right: 0;
    }

    .contact-name-container > div:first-child {
        margin: 1rem 0;
    }

    .section-title-container {
        align-self: center;
    }
}

@media (max-width: 568px) {
    .header .header-content.main {
        padding-top: 8rem;
    }

    .header .header-title {
        font-size: 2rem;
    }

    .header-p {
        font-size: 1rem;
    }

    .container.services ul > li {
        font-size: 1rem;
        margin: 1rem;
    }

    .container.services .section-p.grnt {
        font-size: 1rem;
        margin: 1rem;
    }

    .section-title {
        border-bottom: 10px solid #d20814;
    }

    .section-title.services + p {
        margin-top: -40px;
        margin-left: -6px;
    }
}

@media (max-width: 320px) {
    .header .header-content.main {
        padding-top: 7rem;
    }

    .header .header-title {
        font-size: 1.5rem;
    }

    .header-p {
        font-size: 0.8rem;
    }

    .btn-primary {
        font-size: 0.8rem;
        width: fit-content;
    }
}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 961px) {
    .navbar-toggler {
        display: none;
    }

    .contact-container {
        flex-direction: row;
        justify-content: space-evenly;
    }

    .contact-container > div {
        margin: 2rem;
        align-self: flex-start;
        text-align: left;
        white-space: nowrap;
    }
}

.gallery {
    margin: 100px 0;
    padding: 0 2rem;
}

#history img {
    filter: brightness(80%);
}

.gallery img:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}
