/* Główne ustawienia tła */
html {
    scroll-behavior: smooth;
}

body {
    background-image: url('/assets/img1/schody/tlo.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* Menu przyklejone do góry */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(78, 52, 46, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Szklany kontener - 80% szerokości na PC */
.container {
    width: 80%;
    max-width: 1400px;
    margin: 60px auto;
    /* Efekt szkła z rozmyciem tła pod spodem */
    background: rgba(255, 255, 255, 0.35); 
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    
    padding: 80px 10%; /* Dużo przestrzeni wewnątrz */
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

/* Eleganckie nagłówki */
h1, h2 {
    font-family: 'Playfair Display', serif;
    color: #4e342e;
    line-height: 1.2;
}

h1 { 
    font-size: 3.5rem; 
    text-align: center; 
    margin-bottom: 40px; 
}

h2 { 
    font-size: 2.2rem; 
    margin-top: 60px; 
    border-bottom: 1px solid rgba(78, 52, 46, 0.2);
    padding-bottom: 15px;
}

/* Profesjonalny przycisk CTA */
.btn {
    display: block;
    width: fit-content;
    margin: 40px auto;
    background: #4e342e;
    color: white !important;
    padding: 18px 45px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    background: #795548;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Sekcje z faktami i usługami - więcej "oddechu" */
section {
    margin-bottom: 50px;
}

/* RESPONSYWNOŚĆ - automatyczna zmiana na telefon */
@media (max-width: 1024px) {
    .container {
        width: 95%; /* Na telefonie zajmuje prawie cały ekran */
        padding: 40px 5%;
        margin: 20px auto;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }

    .main-nav {
        gap: 15px;
        padding: 15px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background: rgba(255,255,255,0.5);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05); /* Delikatne powiększenie po najechaniu */
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Zdjęcie wypełni ramkę bez rozciągania */
    border-radius: 5px;
}

.split-section {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.craft-pillar {
    flex: 1;
}

.craft-pillar h3 {
    font-family: 'Playfair Display', serif;
    color: #5d4037;
    font-size: 1.5rem;
    border-left: 4px solid #5d4037;
    padding-left: 15px;
    margin-bottom: 20px;
}

/* Poprawka na telefony - żeby działy były jeden pod drugim */
@media (max-width: 768px) {
    .split-section {
        flex-direction: column;
        gap: 30px;
    }
}
header {
    text-align: center; /* Centruje wszystko w nagłówku: H1, P i przycisk */
    margin-bottom: 50px;
}

.tagline {
    font-family: 'Playfair Display', serif; /* Ta sama czcionka co H1 */
    font-size: 1.5rem; /* Mniejsza niż H1 (które ma u nas ok. 3.5rem) */
    font-style: italic; /* Kursywa często dodaje elegancji hasłom */
    color: #5d4037;
    margin: 10px auto 30px auto;
    max-width: 800px; /* Żeby tekst nie rozciągał się za bardzo na szerokich ekranach */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-card {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(78, 52, 46, 0.9));
    padding: 30px;
    color: white;
    transition: height 0.3s ease;
}

.card-overlay h3 {
    color: white !important;
    margin: 0;
    font-size: 1.8rem;
}

.view-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid white;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.why-us {
    margin: 80px 0;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item i {
    font-size: 2.5rem;
    color: #5d4037;
    margin-bottom: 20px;
}

/* Poprawiona czytelność opisów */
.benefit-item p {
    font-size: 1rem;            /* Nieco większa czcionka */
    color: #1a1a1a;            /* Głęboka czerń zamiast szarości */
    line-height: 1.5;          /* Lepszy odstęp */
    font-weight: 500;          /* Mocniejsza waga liter - to klucz do sukcesu na szkle! */
    margin: 0 auto;
    max-width: 280px;          /* Trzymamy tekst w ryzach */
}

/* .benefit-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #4e342e;
} */

/* Mocniejsze nagłówki sekcji */
.benefit-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;         /* Większy rozmiar */
    margin-bottom: 12px;       /* */
    color: #3e2723;            /* Bardzo ciemny brąz */
    font-weight: 700;          /* Wyraźne pogrubienie */
}

/* strong {
    color: #d4af37; /* Eleganckie złoto */
    font-weight: 600;
} */

h1 {
    letter-spacing: -1px; /* Bardziej nowoczesny wygląd */
}
.container p {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    color: #2c1b18; /* Ciemniejszy brąz dla lepszego kontrastu */
}

.main-nav a:hover {
    color: #d4af37;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Styl dla eleganckiej stopki */
.main-footer {
    margin-top: 80px;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: white;
}

.main-footer h2 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.main-footer p.philosophy {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-btn {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #d4af37;
}

.contact-btn i {
    margin-right: 10px;
    color: #d4af37;
}

.copy-text {
    margin-top: 60px;
    font-size: 0.8rem;
    opacity: 0.4;
}