@font-face {
    font-family: Plus Jakarta Sans;
    src: url(../fonts/PlusJakartaSans-Light.ttf) format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: Plus Jakarta Sans;
    src: url(../fonts/PlusJakartaSans-Regular.ttf) format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Plus Jakarta Sans;
    src: url(../fonts/PlusJakartaSans-SemiBold.ttf) format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: Plus Jakarta Sans;
    src: url(../fonts/PlusJakartaSans-ExtraBold.ttf) format('truetype');
    font-weight: 800;
    font-style: normal;
}

:root {
    --primary: #00a853;
    /* Świeży turkus/zieleń */
    --primary-dark: #00a853;
    --bg-light: #ebfff5;
    --text-main: #292929;
    --text-soft: #858585;
    --negative: #FFE4E4;
    --white: #ffffff;
    --gray: #ebebeb;
    --card-radius: 24px;
    --shadow: 0 10px 30px -10px rgba(45, 212, 191, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animacje wejścia */
/* .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
} */

/* .reveal.active {
    opacity: 1;
    transform: translateY(0);
} */

/* Nawigacja */
nav {
    padding: 25px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
    position: sticky;
    top: 0;
    background: white;
    opacity: 0.95;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background: var(--text-main);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;

    position: relative;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger:focus {
    outline: none;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    margin-bottom: 5px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.bar:last-child {
    margin-bottom: 0;
}

/* 1. HERO */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at 90% 10%, #85ffc2 0%, #ffffff 50%);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #0f172a;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-soft);
    max-width: 800px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 18px 36px;
    background: var(--primary);
    color: var(--gray);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(45, 212, 191, 0.39);
}

.btn:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
    color: var(--text-main);
}

.hero-bullets {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero a {
    color: var(--white);
}

.hero-bullets span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-bullets span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* 2. PROBLEM */
section {
    padding: 100px 0;
}

.section-tag {
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 12px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.p-card {
    padding: 40px;
    border-radius: var(--card-radius);
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.p-card:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow);
}

/* 3. ROZWIĄZANIE - 4 kroki */
.four-steps {
    background: #f9fafb;
    border-radius: 40px;
    margin: 0 20px;
    padding: 80px 40px;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    position: relative;
}

.step-item {
    position: relative;
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: #f1f5f9;
    position: absolute;
    top: -30px;
    left: -10px;
    z-index: -1;
}

/* 4. DLA KOGO */
.for-whom {
    background: #0f172a;
    color: white;
    border-radius: 40px;
    margin: 0 20px;
    padding: 80px 40px;
}

.for-whom p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.for-whom h2 {
    color: white;
}

.tag-pill {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    margin: 5px;
    font-size: 0.9rem;
}

/* 5. EFEKTY */
.effects-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.effect-box {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.effect-box b {
    font-size: 1.5rem;
    display: block;
    color: var(--primary-dark);
}

.effect-box i {
    font-size: 2.5rem;
    display: block;
    color: var(--primary-dark);
}


/* 6. CASE STUDY */
.case-study {
    background: #f8fafc;
}

.case-study h3 a {
    color: var(--text-main);
    text-decoration: none;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.case-item {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow);
}

.case-img {
    height: 220px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    filter: blur(1px);
}

.case-img:hover {
    filter: blur(0px);
}

/* ensure the image fills the box and is slightly darkened */
.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    /* adjust percentage to taste */
}

.case-img::after {
    content: 'Zdjęcie poglądowe';
    position: absolute;
    top: 90%;
    left: 70%;
    /* transform: translate(-50%, -50%); */
    color: var(--text-main);
    font-size: 0.8rem;
}

.case-content {
    padding: 30px;
}

/* 8. PROCES */
.workflow-line {
    max-width: 800px;
}

.w-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.w-circle {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--gray);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 9. KONTAKT */
.contact-section {
    background: var(--bg-light);
    border-radius: 60px 60px 0 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 10px;
}

.contact-section a {
    color: var(--text-main);
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

.contact-info {
    display: flex;
    gap: 40px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-description {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 40px;
}

.form-card {
    background: white;
    padding: 50px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

input {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1);
}

footer {
    padding: 50px 0;
    background: var(--bg-light);
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* footer grid layout */
footer {
    background-color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.footer-about .logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 10px;
    display: inline-block;
}

.footer-logo {
    width: 30%;
}

.footer-about p {
    color: var(--text-main);
    font-size: 1rem;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-contact i {
    color: var(--text-main);
}

.footer-contact p {
    color: var(--text-main);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a,
.footer-contact a {
    color: var(--text-main);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-social a {
    margin-right: 12px;
    color: var(--text-main);
    font-size: 1.2rem;
    display: inline-block;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-services h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.footer-services p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
}

.footer-data h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.footer-data p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 20px;
}

.footer-bottom a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 5px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* CASE-STUDE - PAGE*/
.container-case {
    max-width: 900px;
}

.story-header {
    padding: 100px 0 60px;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hala1 {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25), rgb(255, 255, 255)),
        url("/img/case-study-fmcg.jpeg");

}

.produkcja1 {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25), rgb(255, 255, 255)),
        url("/img/case-study-zaklad-produkcyjny.jpeg");

}

.wiedza1 {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25), rgb(255, 255, 255)),
        url("/img/baza-wiedzy-parking-firmowy3.jpeg");

}

.case-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 20px;
    margin-top: 100px;
    letter-spacing: 1px;
}

.story-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #0f172a;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-soft);
    max-width: 700px;
    margin: 0 auto;
}

.narrative {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.chapter {
    max-width: 900px;
    margin-bottom: 100px;
}

.chapter-label {
    color: var(--primary-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

/* h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: -1px;
} */

.content-box {
    font-size: 1.15rem;
    color: #334155;
}

.content-box p {
    margin-bottom: 25px;
}

.visual-narrative {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--card-radius);
    align-items: center;
}

.visual-narrative-negative {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    padding: 40px;
    background: var(--negative);
    border-radius: var(--card-radius);
    align-items: center;
}

.v-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Comparison Cards */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.comp-card {
    padding: 40px;
    border-radius: var(--card-radius);
    position: relative;
    overflow: hidden;
}

.comp-card.before {
    background: #f1f5f9;
    color: #64748b;
}

.comp-card.after {
    background: #134e4a;
    color: #ccfbf1;
}

.comp-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.8;
}

.comp-card ul {
    list-style: none;
}

.comp-card li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Quote */
.testimonial {
    border-left: 4px solid var(--primary);
    padding-left: 30px;
    margin: 60px 0;
    font-style: italic;
    font-size: 1.3rem;
    color: #0f172a;
}

.cta-footer {
    background: #0f172a;
    color: white;
    padding: 100px 0;
    border-radius: 60px 60px 0 0;
    text-align: center;
}

/* CASE STUDY - LISTA */
.page-header {
    padding: 100px 0 60px;
    text-align: center;
    background: radial-gradient(circle at top, #f0fdfa 0%, #fff 70%);
}

.container-case-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 650px;
    margin: 0 auto 40px;
}

/* --- FILTRY --- */
.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-soft);
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.05);
}

.filter-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* --- GRID I KARTY --- */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 100px;
    min-height: 400px;
    /* Uniknięcie skakania strony przy braku wyników */
}

.cs-card {
    max-width: 500px;
    background: white;
    border-radius: var(--card-radius);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    opacity: 1;
    transform: scale(1);
}

.bw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 100px;
    min-height: 400px;
    /* Uniknięcie skakania strony przy braku wyników */
}

.bw-card {
    max-width: 300px;
    background: white;
    border-radius: var(--card-radius);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    opacity: 1;
    transform: scale(1);
}

.bw-thumb {
    height: 200px;;
    position: relative;
    overflow: hidden;
}

.bw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.9); */
}

.bw-thumb::before {
    content: 'Wiedza';
    color: var(--text-main);
    position: absolute;
    background-color: var(--white);
    padding: 5px 10px;
    border-radius: 15px;
    top: 15%;
    left: 15%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;

    /* font-weight: 600; */
    /* text-transform: uppercase; */
}

/* Klasa do ukrywania kafelków */
.cs-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    display: none;
    /* Całkowite usunięcie z layoutu gridowego */
}

.cs-thumb {
    height: 200px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.cs-thumb::before {
    content: 'Zdjęcie poglądowe';
    position: absolute;
    top: 90%;
    left: 70%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: var(--white);
    /* font-weight: 600; */
    /* text-transform: uppercase; */
}

.cs-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cs-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-dark);
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.cs-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #0f172a;
}

.cs-desc {
    color: var(--text-soft);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.cs-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.bottom-cta {
    background: #0f172a;
    color: white;
    padding: 80px 0;
    border-radius: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 18px 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr;
    }

    .hero-bullets {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
        z-index: 999;

        transform: translateX(100%);
        transition: transform 0.4s ease-out;

        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        padding-top: 80px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .nav-links li {
        text-align: left;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: block;
        text-decoration: none;
        color: #fff;
        padding: 15px 25px;
        font-size: 18px;
        font-weight: 400;
        text-transform: uppercase;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffd700;
    }

    .cs-grid {
        grid-template-columns: 1fr;
    }

    .footer-services {
        display: none;
    }

}

/* 9. SIMULATION */
.simulation {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.parking-lot {
    position: relative;
    width: 350px;
    height: 200px;
    background: linear-gradient(to bottom, #f0f4f8 0%, #e8ecf1 100%);
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.parking-slot {
    position: absolute;
    bottom: 30px;
    width: 80px;
    height: 120px;
    border: 2px dashed var(--primary);
    background: rgba(0, 168, 83, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

#slot-1 {
    left: 60px;
}

#slot-2 {
    left: 200px;
}

#slot-3 {
    left: 340px;
}

.vehicle {
    position: absolute;
    width: 60px;
    height: 100px;
    background: var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 168, 83, 0.3);
    border: 2px solid #008c3e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    animation: parkingAnimation 8s infinite;
}

@keyframes parkingAnimation {
    0% {
        top: -100px;
        left: 70px;
    }

    20% {
        top: 30%;
        left: 70px;
    }

    35% {
        top: 30%;
        left: 70px;
    }

    50% {
        top: 120%;
        left: 70px;
    }

    50.1% {
        top: -100px;
        left: 210px;
    }

    70% {
        top: 30%;
        left: 210px;
    }

    85% {
        top: 30%;
        left: 210px;
    }

    100% {
        top: -150px;
        left: 210px;
    }
}