/* Zmienne globalne */
:root {
    --primary-color: #fff; /* Biały, główny kolor czcionek i elementów */
    --accent-color: rgb(255, 193, 4); /* Żółty, kolor akcentujący, np. hover */
    --dark-overlay: rgba(0, 0, 0, 0.4); /* Półprzezroczysta czarna nakładka na wideo */
    --border-color: rgba(255, 255, 255, 0.2); /* Delikatna biała linia, separator */
    --text-color: #666; /* Kolor tekstu */
    --light-bg: #f8f8f8; /* Jasne tło sekcji */
    --dark-font-color: #333; /* Ciemny kolor nagłówków */
    --subtitle-color: #888; /* Kolor podtytułów */
    --footer-bg: #2c2f34;
    --footer-text-color: #f0f0f0;
    --footer-link-color: #f0f0f0;
    --footer-divider-color: var(--accent-color);
}

/* Wstawienie fontu Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* Nagłówki sekcji - ujednolicone style */
.section-subtitle {
    font-size: 1em;
    font-weight: 400;
    color: var(--subtitle-color);
    margin: 0;
    text-align: center;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--dark-font-color);
    margin: 10px 0 20px;
    text-align: center;
}

.section-divider {
    width: 60px;
    height: 2px;
    background-color: #ccc;
    margin: 0 auto 30px;
}

/* Nagłówek i wideo w tle */
.hero-header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: none;
}

.hero-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay);
    z-index: 0;
}

/* Nawigacja */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--primary-color);
    z-index: 1000;
    transition: background-color 0.5s ease;
}

.main-nav.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8em;
    border-bottom: 1px solid var(--border-color);
    padding: 5px 20px;
}

.contact-info {
    display: flex;
}

.contact-info .contact-item {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 25px;
    transition: color 0.3s ease;
}

.contact-info .contact-item:hover {
    color: var(--accent-color);
}

.contact-icon {
    filter: brightness(0) invert(1);
    width: 20px;
    margin-right: 8px;
}

.nav-bottom-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    width: 100%;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-left: 20px;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Zawartość nagłówka */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--primary-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-title {
    font-size: 3em;
    font-weight: 700;
    margin: 0 0 20px;
    transform: translateY(-50px);
    opacity: 0;
    animation: drop-in 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-subtitle {
    font-size: 1em;
    margin: 0 0 30px;
    transform: translateY(-20px);
    opacity: 0;
    animation: fade-in-up 2s forwards 1s ease-out;
}

.cta-button {
    text-decoration: none;
    color: var(--primary-color);
    background-color: var(--accent-color);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--accent-color);
    font-weight: 700;
    transition: all 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: fade-in-up 2s forwards 2s ease-out;
    margin: 5px;
}

.cta-button:hover {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent-color);
}

@keyframes drop-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---------------------------------------------------------------------ABOUT-------------------------------------------------------*/
/* Sekcja z podziałem na dwie kolumny: obraz i tekst */
.about-us-section {
    display: flex;
    min-height: 700px;
    background-color: var(--light-bg);
}

.about-us-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.about-us-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-us-content-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.about-us-text-content {
    max-width: 600px;
    text-align: left;
}

.about-us-text-content .section-subtitle,
.about-us-text-content .section-title {
    text-align: left;
}

.about-us-text-content .section-divider {
    margin: 0 0 20px;
}

.about-us-text-content p {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Sekcja z odwróconym układem: tekst i zdjęcia po lewej, wideo po prawej */
.inverted-about-us-section {
    display: flex;
    min-height: 700px;
    background-color: var(--light-bg);
}

.inverted-about-us-content-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.inverted-about-us-text-content {
    max-width: 600px;
    text-align: left;
}

.inverted-about-us-text-content .section-subtitle,
.inverted-about-us-text-content .section-title {
    text-align: left;
}

.inverted-about-us-text-content .section-divider {
    margin: 0 0 20px;
}

.inverted-about-us-text-content p {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.image-gallery {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.gallery-image {
    width: 48%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.inverted-about-us-video-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.inverted-about-us-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ---------------------------------------------------------------------PROFESSION------------------------------------------------------- */
/* Sekcja z wartościami i usługami */
.values-section, .profession-section {
    padding: 80px 20px;
    background-color: white;
    text-align: center;
}

.values-header, .profession-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.values-header .section-subtitle,
.values-header .section-title,
.values-header .section-divider,
.profession-header .section-subtitle,
.profession-header .section-title,
.profession-header .section-divider {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.values-grid, .profession-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    background-color: var(--primary-color);
    padding: 40px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.value-item:hover {
    background-color: rgba(255, 193, 4, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon img {
    height: 50px;
    filter: brightness(0);
    margin-bottom: 20px;
    transition: filter 0.3s ease;
}

/*.value-item:hover .value-icon img {
    filter: brightness(0) invert(1);
}*/

.value-heading {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--dark-font-color);
    margin: 0 0 10px;
    transition: color 0.3s ease;
}

/*.value-item:hover .value-heading {
    color: var(--primary-color);
}*/

.value-text {
    font-size: 0.9em;
    color: var(--text-color);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/*.value-item:hover .value-text {
    color: var(--primary-color);
}*/

/* ---------------------------------------------------------------------INSPECTION DRON CAMERA------------------------------------------------------- */
.image-gallery img {
    text-align: center;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.image-gallery img:hover {
    transform: translateY(-10px);
}

/* -----------------------------------------------------------------------REFERENCJE---------------------------------------------------------*/
/* Sekcja referencji */
.testimonials-section {
    padding: 80px 20px;
    text-align: center;
}

.testimonials-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.testimonials-carousel-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 90px;
}

.testimonial-item {
    background-color: var(--primary-color);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex: 1 1 300px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);


   
        border-color: var(--accent-color);
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    
}

.testimonial-icon-container {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-icon {
    max-height: 100%;
    width: auto;
    max-width: 120px;
}

.testimonial-text-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.author-name {
    font-weight: 600;
    color: var(--dark-font-color);
    margin: 0;
}

/* ========================= ZUNIFIKOWANY STYL FORMULARZA KONTAKTOWEGO ========================= */
.contact-section {
    background-color: var(--light-bg);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    background-color: var(#f8f8f8);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-header {
    color: var(--subtitle-color);
    font-size: 1.1rem;
    font-weight: 400;
}

.contact-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 5px;
}

.contact-divider {
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 20px auto 40px;
}

.main-contact-form {
    background-color: rgba(44, 47, 52, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    border-radius: 5px;
    color: var(--primary-color);
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(255, 193, 4, 0.5);
}

.submit-button {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--dark-font-color);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: rgb(220, 160, 0);
}

/* ========================================================= */
/* Styl dla mapy pod formularzem */
/* ========================================================= */

.map-container {

    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%);
}

/* ========================= ZUNIFIKOWANY STYL STOPKI ========================= */
.footer-section {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding: 60px 20px 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-column {
    flex: 1 1 250px;
    margin: 20px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-link {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}


/* Styl linków społecznościowych */
.social-links a {
    color: var(--footer-link-color);
    font-size: 2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Styl logo i tekstu o firmie */
.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.about-text {
    font-size: 0.9em;
    line-height: 1.6;
}

/* Styl listy linków */
.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 10px;
    text-decoration: none;
    color: white;
}

.social-link img {
    color: white;
}
/* Styl paska z prawami autorskimi */
.footer-bottom-bar {
    text-align: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright-text {
    margin: 0;
    font-size: 0.85em;
    color: #a0a0a0;
}


.footer-numbers p a {
    text-decoration: none;
    color: white;
}

.fa-envelope {
    color: white !important;
}

.fa-envelope:hover {
    color: rgb(169, 60, 60) !important;
}

/* 14-09-2025: START - Nowe style dla menu "hamburger" i responsywności */

.nav-bottom-row {
    justify-content: space-between; /* 14-09-2025: Zmieniono, aby logo i linki były rozmieszczone na krańcach paska nawigacyjnego. */
}

/* Styl dla przycisku hamburger */
.hamburger {
    display: none; /* 14-09-2025: Domyślnie ukryty na desktopie. */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001; /* 14-09-2025: Upewnienie się, że jest nad innymi elementami. */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0; /* 14-09-2025: Ukrycie środkowej kreski po kliknięciu. */
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg); /* 14-09-2025: Obrót górnej kreski, aby utworzyć "X". */
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); /* 14-09-2025: Obrót dolnej kreski, aby utworzyć "X". */
}

/* 14-09-2025: END - Nowe style dla menu "hamburger" i responsywności */


/* ========================= MEDIA QUERYS ========================= */
/* Responsywność dla mniejszych ekranów */
@media (max-width: 768px) {
    /* 14-09-2025: Sekcja nawigacji - dostosowanie do urządzeń mobilnych */
    .nav-top-row {
        justify-content: center; /* 14-09-2025: Wyśrodkowanie danych kontaktowych na małych ekranach. */
    }
    .contact-info {
        flex-direction: column; /* 14-09-2025: Ułożenie danych kontaktowych w kolumnie. */
        align-items: center;
        margin-top: 10px;
    }
    .contact-info .contact-item {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .nav-bottom-row {
        justify-content: space-between; /* 14-09-2025: Zmieniono, aby logo i hamburger były na skraju. */
        align-items: center; /* 14-09-2025: Wyśrodkowanie pionowe. */
        position: relative;
    }

    .nav-links {
        position: fixed; /* 14-09-2025: Menu będzie się wysuwać. */
        top: 0; /* 14-09-2025: Zaczyna się od góry strony. */
        left: 0;
        width: 100%;
        height: 100vh; /* 14-09-2025: Zajmuje całą wysokość widoku. */
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column; /* 14-09-2025: Ułożenie linków w kolumnie. */
        justify-content: center;
        align-items: center;
        margin-left: 0;
        transform: translateX(-100%); /* 14-09-2025: Domyślnie ukryte poza ekranem. */
        transition: transform 0.5s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0); /* 14-09-2025: Wsuwanie menu na ekran. */
    }

    .nav-links li {
        margin: 20px 0; /* 14-09-2025: Zwiększenie odstępów między linkami. */
    }

    .nav-links a {
        font-size: 1.5em; /* 14-09-2025: Zwiększenie rozmiaru fontu dla lepszej czytelności. */
    }

    .hamburger {
        display: block; /* 14-09-2025: Pokazanie przycisku hamburgera na małych ekranach. */
    }

    .hero-header {
        height: auto; /* 14-09-2025: Umożliwienie dostosowania wysokości do zawartości na małych ekranach. */
        min-height: 500px;
        padding-top: 100px; /* 14-09-2025: Odstęp od góry, aby menu nie zakrywało treści. */
    }

    .hero-title {
        font-size: 2em; /* 14-09-2025: Zmniejszenie rozmiaru fontu nagłówka dla lepszej czytelności. */
    }
    .hero-subtitle {
        font-size: 0.9em;
    }

    .about-us-section, .inverted-about-us-section {
        flex-direction: column; /* 14-09-2025: Zmiana układu z kolumnowego na wierszowy na małych ekranach. */
    }
    
    .about-us-image-container, .about-us-content-container,
    .inverted-about-us-video-container, .inverted-about-us-content-container {
        width: 100%;
        flex: none; /* 14-09-2025: Usunięcie elastyczności, aby zajmowały 100% szerokości. */
    }

    .inverted-about-us-video-container {
        min-height: 300px;
    }

    .image-gallery {
        flex-direction: column;
    }

    .gallery-image {
        width: 100%;
    }

    .profession-grid {
        grid-template-columns: 1fr; /* 14-09-2025: Zmiana siatki na jedną kolumnę na małych ekranach. */
    }
    
    .testimonials-carousel-container {
        flex-direction: column;
        align-items: center;
    }
    .testimonial-item {
        max-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        margin: 20px 0;
        text-align: center;
    }

    .footer-heading,
    .footer-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-item-text {
        justify-content: center;
    }
    .contact-title {
        font-size: 2rem;
    }

    .heading {
        font-size: 2rem;
    }
    
    .author-name {
        display: none;
    }
    .testimonial-author {
        display: none;
    }
}