/* O Firmie section */
.about-firm-section {
    padding: 120px 0 100px 0;
    background-color: #ffffff;
    position: relative;
    color: #333;
    background-image: url('../images/background/poznan-herb-sharp.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 38%;
    background-attachment: fixed;
    background-blend-mode: normal;
    position: relative;
    --herb-blur: 0px;
    /* Zmienna CSS do kontrolowania efektu blur */
}

.about-firm-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
    backdrop-filter: blur(var(--herb-blur));
    -webkit-backdrop-filter: blur(var(--herb-blur));
    transition: backdrop-filter 0.1s ease;
    /* Przyspieszenie efektu blur */
}

/* Dodatkowy element do zastosowania efektu blur dla przeglądarek, które nie obsługują backdrop-filter */
.about-firm-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background/poznan-herb-sharp.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 38%;
    background-attachment: fixed;
    z-index: 0;
    filter: blur(var(--herb-blur));
    opacity: 0.3;
    transition: filter 0.1s ease;
    /* Przyspieszenie efektu blur */
    pointer-events: none;
}

.about-firm-container {
    display: block;
    /*display: grid;
    grid-template-columns: 1fr 1fr 1fr;*/
    /* Równe kolumny */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.quote-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.quote {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
    color: #333;
    max-width: 500px;
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quote-author {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.logo-column {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    /* Przyspieszenie animacji */
}

.logo-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #b8a88a;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    /* Przyspieszenie animacji */
}

.text-column h2, .text-column h1{
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1.2px;
    font-family: 'Cinzel', serif;
}

.text-column h1, .text-column h1 .highlight{font-size: clamp(31px, 4vw, 54px) !important;}
.text-column h2, .text-column h2 .highlight{font-size: clamp(28px, 3.6vw, 48px) !important;}

.text-column h2 .highlight, .text-column h1 .highlight{
    display: block;
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
}

.text-column p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.text-column .read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.text-column .read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.text-column .read-more:hover::after {
    transform: translateX(0);
}

/* Animacja od razu na starcie dla wszystkich sekcji */
.quote-column,
.logo-column,
.text-column {
    transform: translate(0);
    opacity: 1;
}

/* Responsywność */
@media (max-width: 1200px) {
    .about-firm-section {
        padding: 80px 0;
        background-size: 45%;
    }

    .logo-circle {
        width: 250px;
        height: 250px;
    }

    .text-column h2 {
        font-size: 2.4rem;
    }

    .text-column h2 .highlight {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .about-firm-section {
        background-size: 55%;
    }

    .about-firm-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .quote-column,
    .logo-column,
    .text-column {
        padding: 0;
        text-align: center;
    }

    .quote {
        padding-left: 0;
        /*padding-top: 50px;*/
    }

    .quote::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .quote-author {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-firm-section {
        background-size: 65%;
        --herb-blur: 3px;
        /* Dodanie rozmycia herbu na urządzeniach mobilnych */
    }
}

@media (max-width: 576px) {
    .about-firm-section {
        padding: 60px 0;
        background-size: 75%;
        --herb-blur: 5px;
        /* Większe rozmycie herbu na mniejszych urządzeniach */
    }

    .about-firm-container {
        gap: 30px;
    }

    .quote {
        font-size: 18px;
    }

    .quote-author {
        font-size: 16px;
    }

    .logo-circle {
        width: 200px;
        height: 200px;
        padding: 30px;
    }

    .text-column h2 {
        font-size: 2rem;
    }

    .text-column h2 .highlight {
        font-size: 2.4rem;
    }

    .text-column p {
        font-size: 16px;
    }
}