:root {
    --primary: #08b4ff;
    --dark: #0f172a;
    --light: #ffffff;
    margin: 0 !important;
}
/* montserrat-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../assets/fonts/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('../assets/fonts/montserrat-v31-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('../assets/fonts/montserrat-v31-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('../assets/fonts/montserrat-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/*.filter-item:not(.filter-active) {*/
/*    display: none !important;*/
/*}*/

.fi-pl {
    background-image: url("./assets/flags/pl.svg");
    width: 24px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.fi-de {
    background-image: url("./assets/flags/de.svg");
    width: 24px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
}

body.no-scroll {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-bottom: 60px;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.top-bar {
    background-color: #08b4ff;
    height: 36px;
    border-top: 1px solid #5bceff;
}

.top-bar-content {
    font-size: 20px;
    display: flex;
    width: 100%;
    justify-content: space-around;
    height: 100%;
    align-items: center;
}

.top-bar-item {
    gap: 10px;
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 0.5px 0.5px 0 rgba(0, 0, 0, 0.6), -0.5px 0.5px 0 rgba(0, 0, 0, 0.6), 0.5px -0.5px 0 rgba(0, 0, 0, 0.6), -0.5px -0.5px 0 rgba(0, 0, 0, 0.6);
}

.site-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: clamp(55px, 4vw, 85px);
    width: auto;
    display: block;
}

.offer-card-info-img {
    width: 100%;
    display: flex;
    align-items: center;
}

/* MENU */
.site-header nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: 0.25s ease;
}

.site-header nav ul li a:hover {
    color: var(--primary);
}

.site-header nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.25s ease;
}

.site-header nav ul li a:hover::after {
    width: 100%;
}

/* Context */

.container {
    max-width: 1240px;
    width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
}


/* HERO */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* BACKGROUND IMAGE */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* OVERLAY TYLKO NA IMG */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35));
    z-index: 1;
}

.hero-content {
    max-width: 1240px;
    width: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    color: #fff;
    top: -30px;
}

.hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin: 0;
}

.hero-about-us {
    position: relative;
    margin-top: -60px;
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    box-shadow: 6px 7px 23px -10px rgba(46, 46, 46, 1);
    border-radius: 6px;
}

.hero-about-us-item {
    display: grid;
    align-items: center;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
    text-align: justify;
    justify-items: center;
    grid-template-rows: 1fr 2fr;
    border-right: 1px solid #cdcdcd;
}

.hero-about-us-item span {
    height: 100%;
}
.hero-about-us-item p {
    margin: 0;
}

.hero-about-us-item span p {
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-section {
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-card {
    padding-top: 80px;
    display: grid;
    gap: 80px;
}

.offer-card-info-left {
    display: grid;
    grid-template-columns: 2fr 1fr;
    justify-items: start;
}

.offer-card-info-right {
    display: grid;
    grid-template-columns: 1fr 2fr;
    justify-items: end;
}

.offer-card-info-txt {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.offer-card-info-txt h1{
    font-size: 30px;
    text-align: center;
}

.offer-card-info-left img,
.offer-card-info-right img {
    object-position: center;
    max-width: 600px;
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-gallery {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-header {
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.portfolio-title {
    margin: 0 !important;
    padding-bottom: 80px;
}

.ngg-gallery-thumbnail a img {
    height: 160px;
    object-fit: contain;
}

#portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

#portfolio-filters .filter-item {
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    border: 2px solid #222;
    cursor: pointer;

    font-size: 14px;
    font-weight: 500;

    transition: 0.2s ease;

    padding-left: 10px;
    padding-right: 10px;
}

#portfolio-filters .filter-item:hover {
    background: #222;
    color: #fff;
}

#portfolio-filters .filter-active {
    background: #222;
    color: #fff;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-text {
    margin: 0;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    cursor: pointer;
    user-select: none;
    outline: none;

    flex-direction: column;
    justify-content: space-between;

    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    display: none;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

.hamburger span {
    display: block;
    height: 3px;
    background: #000;
    transition: 0.3s;
    transform-origin: center;
}

.contact-box h4 {
    margin-top: 0 !important;
}

.mobile-menu {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    width: 100%;
    display: flex;
    font-size: 24px;
    font-weight: 500;
    justify-content: center;
}

.mobile-menu-list {
    border-top: 1px solid black;
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0;
    margin-bottom: 0;
}

.mobile-nav{
    width: 100%;
}

.contact-form-wrapper {
    width: 100%;
    background: #f5f7fb;
    padding: 40px 0;
}

.contact-box {
    width: 100%;
    max-width:100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.icon {
    font-size: 48px;
}

.label {
    font-weight: bold;
    font-size: 18px;
}

.contact-item a {
    font-size: 18px;
    color: #2a6df4;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Laptop  */
@media (max-width: 1280px) {
    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .offer-card-info-left {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .offer-card-info-right {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .contact-item {
        overflow-wrap: anywhere;
        width: max-content;
    }
    
    .top-bar{
        height: 48px;
        padding: 5px;
    }
    .site-header nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        display: none;
    }

    .hero-about-us {
        display: flex;
        flex-direction: column;
    }

    .offer-card-info-left{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    .offer-card-info-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item-footer {
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .footer-desc{
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .footer-up div {
        width: 100%;
        text-align: center;
    }

    .contact-box {
        margin-left: auto;
        margin-right: auto;
        width: min-content;
        display: flex;
        justify-content: flex-start;
    }

    .top-bar-content {
        display: flex;
        flex-direction: column;
        font-size: 14px;
        gap: 3px;
    }
}

.flag-box {
    background: rgb(211 211 211 / 70%);
    padding: 6px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.header-right {
    display: flex;
    gap: 25px;
}

#uber-uns{
    scroll-margin-top: 240px;
}

#kontakt,
#galeria,
#galerie{
    scroll-margin-top: 80px;
}

#unsere-dienstleistungen,
#so-arbeiten-wir,
#unsere-ausrustung {
    scroll-margin-top: 100px;
}

#o-nas,
#jak-pracujemy,
#nasze-uslugi,
#nasz-sprzet{
    scroll-margin-top: 180px;
}

.contact-item-footer{
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-items-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-box-footer h4{
    margin-top:0;
    margin-bottom:20px;
}

.footer-desc h3 {
    margin-top:0;
    margin-bottom:20px;
}

.footer-links {
    margin-top:0;
    margin-bottom:20px;
}

.mobile-menu .menu-item {
    border-bottom: 1px solid black;
    width: 100%;
    padding: 15px 0;
    text-align: center;
}

.mobile-menu .menu-item a {
    text-decoration: none;
    color: black;
}

.footer-menu {
    list-style: square;
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #fff;
}

.offer-card-info-right .offer-card-info-img img {
    margin-left: auto;
}

.offer-card-info-left .offer-card-info-img img {
    margin-right: auto;
}