/* === ESTICA 2.0 - ZAKTUALIZOWANY DLA SEO I IMG TAGÓW === */

/* --- GLÓWNE USTAWIENIA SEKCJI --- */
.content-wrapper {
    background-color: var(--color-dark);
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 0;
    padding-top: 80px; 
}

/* Dopasowanie odstępu do wysokości menu na różnych ekranach */
@media screen and (min-width: 1700px) {
    .content-wrapper { padding-top: 110px; }
}
@media screen and (min-width: 1921px) {
    .content-wrapper { padding-top: 130px; }
}
@media screen and (max-width: 1200px) {
    .content-wrapper { padding-top: 70px; }
}
@media screen and (max-width: 1000px) {
    .content-wrapper { padding-top: 60px; }
}

.section-block {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(186, 162, 86, 0.2);
}

/* --- TYPOGRAFIA I LINKI WEWNĘTRZNE --- */
.gold-text { color: var(--color-gold); }

/* NOWOŚĆ: Styl dla linków wewnątrz tekstu (Internal Linking) */
.text-link {
    color: var(--color-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(186, 162, 86, 0.3);
    transition: all 0.3s ease;
}
.text-link:hover {
    color: #fff;
    border-bottom-color: var(--color-gold);
}

/* NOWOŚĆ: Ukrywanie tekstu dla SEO (np. w H1) bez psucia designu */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.content-header {
    /* ZMIANA: position static, aby .bg-text pozycjonował się względem rodzica (.block-content), a nie nagłówka */
    position: static;
    margin-bottom: 30px;
}

/* ZMIANA: Wyśrodkowanie domyślne dla wszystkich napisów tła */
.bg-text {
    font-family: 'myFirstFont', serif;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.03); /* Zmniejszono opacity dla subtelniejszego tła */
    position: absolute;
    /* Centrowanie idealne */
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

.fg-title {
    font-family: var(--font-headers, serif);
    font-size: 3.5rem;
    color: #fff;
    position: relative;
    z-index: 1;
    line-height: 1.1;
    margin: 0;
}

.text-body {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #dcdcdc;
    max-width: 600px;
}

.text-body p { margin-bottom: 20px; }

.decorative-line {
    width: 80px; height: 3px; background-color: var(--color-gold);
    margin-top: 20px;
}

.gold-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--color-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.gold-link:hover { border-bottom-color: var(--color-gold); letter-spacing: 3px; }

/* ==========================================================================
   SEKCJA 1: HERO (WIDEO)
   ==========================================================================
*/
.hero-block {
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    overflow: hidden;
}

.hero-image-wrapper {
    flex: 0 0 75%;
    width: 75%;
    height: 85vh;
    position: relative;
    overflow: hidden;
    border-left: none;
    border-right: 1px solid rgba(186, 162, 86, 0.3);
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    z-index: 1;
}

/* Zmiana selektora dla obrazka wewnątrz wrapper */
.hero-image-wrapper img.hero-img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    filter: brightness(0.9);
    display: block; /* Usuwa dolny margines inline */
}

.gold-frame {
    position: absolute;
    top: 40px; left: 40px; bottom: 40px; right: 40px;
    border: 1px solid rgba(186, 162, 86, 0.2);
    pointer-events: none;
    z-index: 2;
}

.hero-block .block-content {
    flex: 0 0 auto;
    position: absolute;
    right: 0; 
    left: auto;
    width: 38%;
    min-width: 450px;
    z-index: 10;
    padding: 60px 50px;
    background-color: rgba(32, 29, 26, 0.96); 
    background-image: none; 
    border-left: none; 
    border-right: 5px solid var(--color-gold);
    box-shadow: -20px 20px 60px rgba(0,0,0,0.7);
    text-align: right;
    /* block-content w Hero ma position absolute, więc bg-text wycentruje się względem niego */
}

.hero-block .decorative-line {
    margin-left: auto;
    margin-right: 0;
}



/* ========================================================================== */

/* --- SEKCJA 2: DOŚWIADCZENIE (ZMIANA NA IMG TAGS) --- */
.experience-block {
    align-items: center;
    background-color: #1a1816;
}

.experience-block .block-content {
    flex: 0 0 45%;
    padding: 60px 80px;
    order: 1; 
    /* ZMIANA: Dodano position relative, aby bg-text (Pasja) centrował się względem tego bloku */
    position: relative;
}

.dual-image {
    flex: 0 0 55%;
    height: 90vh;
    position: relative;
    order: 2; 
    overflow: hidden;
}

/* NOWOŚĆ: Klasy pomocnicze dla obrazków */
.img-container {
    position: absolute;
    overflow: hidden;
}

.img-primary {
    top: 0; right: 0;
    width: 85%; height: 85%;
    z-index: 1;
}

.img-secondary {
    bottom: 50px; left: 50px;
    width: 40%; height: 40%;
    z-index: 2;
    border: 2px solid var(--color-gold);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.5);
}

/* Styl dla samego tagu IMG wewnątrz kontenera */
.img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.5s, transform 0.5s;
    filter: brightness(0.8);
}

.experience-block:hover .img-primary .img-real { 
    filter: brightness(1); 
    transform: scale(1.02);
}

.gold-square {
    position: absolute;
    top: 10%; right: 10%;
    width: 200px; height: 200px;
    border: 5px solid rgba(186, 162, 86, 0.1);
    z-index: 0;
}


/* --- SEKCJA 3: SOLIDNOŚĆ (ZMIANA NA IMG) --- */
.reliability-block {
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.full-image-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.full-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.floating-card {
    position: relative;
    z-index: 10;
    background: rgba(32, 29, 26, 0.9);
    padding: 60px;
    max-width: 600px;
    border: 1px solid var(--color-gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    text-align: center;
}

/* ZMIANA: Solidność też na środku (jak globalny styl) */
.floating-card .bg-text {
    font-size: 6rem;
    /* Używamy globalnego centrowania */
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
}

.floating-card .decorative-line { margin: 30px auto 0; }

/* --- SEKCJA 4: USŁUGI (KAFELKI Z IMG) --- */
.services-grid {
    display: block;
    padding: 100px 5%;
    background-color: var(--color-dark);
}

.grid-header {
    text-align: center;
    margin-bottom: 60px;
}
.grid-header .subtitle {
    color: var(--color-grey);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
    font-size: 0.9rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    height: 400px;
    display: block;
    overflow: hidden; 
    text-decoration: none;
    border: 1px solid #333;
}

.card-img-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}

.card-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s;
}

.card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.service-card h4 {
    font-family: var(--font-headers, serif);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.service-card p {
    color: var(--color-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Hover Effects */
.service-card:hover .card-img-real {
    transform: scale(1.1);
}
.service-card:hover h4 { color: var(--color-gold); }


/* --- RESPONSYWNOŚĆ --- */

@media screen and (max-width: 1200px) {
    .bg-text { font-size: 8rem; }
    
    /* ZMIANA: Usunięto regułę przesuwającą tekst do rogu stąd. 
       Pomiędzy 1200px a 900px tekst będzie NA ŚRODKU. */
    
    .services-container { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 1140px) {
    .dual-image { 
        flex: 0 0 48%;  
    }
}
@media screen and (max-width: 1000px) {
    .dual-image { 
        flex: 0 0 43%;  
    }
}
@media screen and (max-width: 900px) {
    .bg-text { font-size: 7rem; }
    .fg-title { font-size: 3rem; }
    
    /* ZMIANA: Dopiero tutaj (max-width: 900px) "Jakość" i "Pasja" lądują w prawym dolnym rogu. */
    .hero-block .bg-text,
    .experience-block .bg-text {
        top: auto;        /* Reset góry */
        left: auto;       /* Reset lewej */
        right: 35px;     /* Do prawej krawędzi (z lekkim marginesem) */
        bottom: 20px;    /* Do dołu */
        transform: none;  /* Wyłączenie centrowania */
        text-align: right;
    }
    
    .footer-container { flex-direction: column; text-align: center; }
    
    /* Hero - pion */
    .hero-block { 
        flex-direction: column; 
        justify-content: flex-start;
        align-items: flex-start;
    }
    .hero-image-wrapper { 
        flex: 0 0 100%; width: 100%; 
        height: 50vh; 
        border-right: none;
        border-bottom: 1px solid var(--color-gold);
        box-shadow: none;
    }
    
    .hero-block .block-content { 
        position: relative;
        right: auto; top: auto; left: auto;
        width: 100%; 
        min-width: 0;
        padding: 40px 30px;
        background-color: var(--color-dark);
        box-shadow: none;
        border-right: none;
        text-align: left;
    }

    .hero-block .decorative-line { margin-left: 0; margin-right: 0; }
    
    .gold-frame { top: 20px; left: 20px; bottom: 20px; right: 20px; }

    /* Doświadczenie - pion */
    .experience-block { position: relative; }
    
    .dual-image { 
        flex: 0 0 100%; width: 100%; height: 60vh; order: 1; 
        border-bottom: 1px solid var(--color-gold);
    }
    .experience-block .block-content { 
        flex: 0 0 100%; width: 100%; padding: 40px 30px; order: 2; 
    }
    
    /* Upraszczamy zdjęcia na mobile */
    .img-primary { width: 48%; height: 100%; border: 2px solid var(--color-gold); right: 1%;}
    .img-real { filter: brightness(1); } /* Na mobile od razu jasne */
    .img-secondary { width: 48%; height: 100%; 
    bottom: 0; left: 1%;
    
    z-index: 2;
    border: 2px solid var(--color-gold);
    }
    .gold-square { display: none; }

    /* Solidność */
    .floating-card { width: 90%; padding: 40px 30px; margin: 60px 0; }
    
    .services-container { grid-template-columns: repeat(2, 1fr); }

    .card-img-real {
    filter: grayscale(0%);
}
}

@media screen and (max-width: 600px) {
    .bg-text { font-size: 5rem; }
    .fg-title { font-size: 2.5rem; }
    .hero-image-wrapper, .dual-image { height: 40vh; }
    .services-container { grid-template-columns: 1fr; }
    .service-card { height: 280px; }
}

/* --- DODATKOWE STYLE DLA UNIKALNYCH SEKCJI PROJEKTOWYCH --- */

/* 1. SEKCJA SCHODY: Showcase Block */
.stairs-showcase-block {
    background-color: #1a1816;
    align-items: stretch; /* Rozciągnięcie na pełną wysokość */
}

/* Część wizualna (po lewej) */
.stairs-showcase-block .showcase-visual {
    flex: 0 0 55%;
    position: relative;
    min-height: 700px;
    order: 1; 
    overflow: hidden;
    border-right: 1px solid rgba(186, 162, 86, 0.2);
}

.showcase-img-container {
    width: 100%;
    height: 100%;
}
.showcase-img-container .img-real {
    filter: brightness(0.85);
    transition: transform 1s ease, filter 0.5s ease;
}
.stairs-showcase-block:hover .showcase-img-container .img-real {
    transform: scale(1.03);
    filter: brightness(1);
}

/* Insert (mniejsze zdjęcie) */
.showcase-img-insert {
    position: absolute;
    bottom: 60px;
    right: -40px; /* Wystaje nieco poza kontener */
    width: 250px;
    height: 250px;
    border: 4px solid var(--color-dark);
    box-shadow: -10px 10px 40px rgba(0,0,0,0.6);
    z-index: 5;
    overflow: hidden;
}

.vertical-gold-line {
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    z-index: 10;
}

/* Część tekstowa (po prawej) */
.stairs-showcase-block .showcase-content {
    flex: 0 0 45%;
    order: 2;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.stairs-showcase-block .bg-text.right-aligned {
    right: 40px;
    left: auto;
    top: 20%;
    transform: none;
    text-align: right;
}

/* 2. SEKCJA MEBLE: Split Screen Block + Akordeon */
.furniture-split-block {
    min-height: 100vh;
    align-items: stretch; /* Ważne dla układu kolumnowego */
    background-color: var(--color-dark);
}

/* Lewa strona (treść) */
.furniture-split-block .split-content {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
    border-right: 1px solid rgba(186, 162, 86, 0.15);
}

.content-wrapper-inner {
    max-width: 550px;
    position: relative;
    z-index: 2;
}

.gold-subtitle {
    color: var(--color-gold);
    font-family: var(--font-headers, serif);
    font-size: 1.8rem;
    margin-top: 35px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(186, 162, 86, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

.furniture-split-block .bg-text.left-aligned {
    left: 20px;
    top: 10%;
    transform: none;
    text-align: left;
    font-size: 8rem;
}

/* NOWY STYL GALERII AKORDEONOWEJ */

.furniture-split-block .split-gallery-wrapper {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.gallery-accordion {
    display: flex;
    width: 100%;
    height: 100%;
}

.accordion-item {
    flex: 1; /* Wszystkie równe na start */
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border-left: 1px solid rgba(186, 162, 86, 0.3);
}

.accordion-item:first-child {
    border-left: none;
}

/* Efekt rozwijania po najechaniu */
.accordion-item:hover {
    flex: 3; /* Powiększenie wybranego elementu */
}

/* Obrazek wewnątrz */
.accordion-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.7) grayscale(30%);
}

.accordion-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) grayscale(0%);
}

/* Napis na dole */
.accordion-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.accordion-label {
    color: var(--color-gold);
    font-family: var(--font-headers, serif);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl; /* Pionowy tekst domyślnie dla wąskich pasków */
    text-orientation: mixed;
    transform: rotate(180deg); /* Korekta kierunku tekstu */
    transition: all 0.3s;
}

/* Zmiana tekstu na poziomy przy rozwinięciu */
.accordion-item:hover .accordion-label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 2px solid var(--color-gold);
}


/* --- RESPONSYWNOŚĆ DLA NOWYCH SEKCJI --- */

@media screen and (max-width: 1100px) {
    .stairs-showcase-block, 
    .furniture-split-block {
        flex-direction: column;
    }

    /* Schody Mobile */
    .stairs-showcase-block .showcase-visual {
        flex: 0 0 auto;
        width: 100%;
        height: 50vh;
        min-height: 400px;
        order: 1;
    }
    .showcase-img-insert {
        width: 150px; height: 150px;
        bottom: -20px; right: 20px;
    }
    .stairs-showcase-block .showcase-content {
        flex: 0 0 auto;
        width: 100%;
        order: 2;
        padding: 60px 30px;
    }

    /* --- NOWA KONFIGURACJA DLA MEBLI (GRID) --- */
    
    .furniture-split-block .split-gallery-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: auto; /* Wysokość dynamiczna, zależna od zdjęć */
        order: 1; /* Galeria nad tekstem */
    }
    
    .furniture-split-block .split-content {
        flex: 0 0 auto;
        width: 100%;
        order: 2;
        padding: 60px 30px;
        border-right: none;
    }

    /* Zmiana z Flex na Grid/Flex-Wrap dla układu 1 góra, 2 dół */
    .gallery-accordion {
        flex-direction: row;
        flex-wrap: wrap;
        height: 700px; /* Stała wysokość całego modułu zdjęć na mobile */
    }
    
    /* Pierwsze zdjęcie: 100% szerokości, 50% wysokości */
    .accordion-item:nth-child(1) {
        flex: 0 0 100%;
        width: 100%;
        height: 50%; 
        border-left: none;
        border-bottom: 1px solid var(--color-gold);
    }

    /* Zdjęcie 2 i 3: 50% szerokości, 50% wysokości */
    .accordion-item:nth-child(2),
    .accordion-item:nth-child(3) {
        flex: 0 0 50%;
        width: 50%;
        height: 50%;
        border-left: none;
    }
    
    /* Kreska między dolnymi zdjęciami */
    .accordion-item:nth-child(2) {
        border-right: 1px solid var(--color-gold);
    }
    
    /* Reset efektów hover na dotyku */
    .accordion-item:hover {
        flex: 0 0 auto; /* Nie powiększaj */
    }
    .accordion-item:nth-child(1):hover { flex: 0 0 100%; }
    .accordion-item:nth-child(2):hover, 
    .accordion-item:nth-child(3):hover { flex: 0 0 50%; }

    .accordion-item img {
        filter: brightness(1); /* Zawsze jasne na mobile */
    }
    
    /* Tekst zawsze poziomy na mobile */
    .accordion-label {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1rem;
        color: #fff;
        background: rgba(0,0,0,0.5); /* Lepsza czytelność */
        padding: 5px 10px;
        border-radius: 4px;
    }

    .bg-text.left-aligned, 
    .bg-text.right-aligned {
        font-size: 6rem;
    }
}

/* ==========================================================================
   NOWA SEKCJA: OPINIE (REVIEWS)
   ========================================================================== */
.reviews-block {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    background-color: var(--color-dark);
}

.reviews-container {
    max-width: 1400px;
    width: 100%;
    text-align: center;
}

.reviews-header {
    margin-bottom: 70px;
    position: relative; /* Dla bg-text */
}

.reviews-header .subtitle {
    color: var(--color-grey);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 15px;
}

.reviews-header .bg-text.center-aligned {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05; /* Bardzo delikatne tło */
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Karta Opinii */
.review-card {
    background-color: #1a1816;
    padding: 40px 30px;
    border: 1px solid rgba(186, 162, 86, 0.2);
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Cytat wizualny (opcjonalnie) */
.review-card::before {
    content: "“";
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-headers, serif);
    font-size: 5rem;
    color: var(--color-gold);
    opacity: 0.1;
    line-height: 0;
}

.review-stars {
    color: var(--color-gold);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #dcdcdc;
    margin-bottom: 25px;
    font-style: italic;
}

.review-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(186, 162, 86, 0.2);
    padding-top: 15px;
}

.author-name {
    color: #fff;
    font-family: var(--font-headers, serif);
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.review-source {
    color: var(--color-grey);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Przycisk CTA (Zobacz więcej) */
.reviews-cta {
    margin-top: 60px;
}

.gold-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.gold-button:hover {
    background-color: var(--color-gold);
    color: var(--color-dark);
}

/* Responsywność Opinii */
@media screen and (max-width: 1000px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .review-card {
        padding: 30px;
    }
    
    .reviews-header .bg-text.center-aligned {
        font-size: 6rem;
    }
}