/* ==================== RESET I ZMIENNE (CIEMNOSZARY MOTYW) ==================== */
:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f5f5f5;
    --card-bg: #ffffff;
    --border-light: #e0e0e0;

    /* Jasnoszare – używane w gradientach tła CTA i placeholderach */
    --wood-light: #c0c0c0;        /* jasny szary */
    --wood-dark: #a0a0a0;         /* średni szary */

    /* Antracyt – główny kolor interaktywny */
    --gold: #444444;               /* antracyt, np. przyciski */
    --gold-light: #888888;         /* jaśniejszy antracyt (np. hover, stopka) */
    --gold-dark: #222222;          /* bardzo ciemny (np. napisy, podkreślenia) */

    --text-dark: #2c2c2c;
    --text-muted: #5a5a5a;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== TYPOGRAFIA ==================== */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

.gold-accent {
    color: var(--gold-dark);   /* ciemniejszy szary, by był widoczny */
}

.text-center { text-align: center; }

/* ==================== PRZYCISKI ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-gold {
    background-color: var(--gold);
    color: white;
    box-shadow: 0 4px 10px rgba(128, 128, 128, 0.3);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(128, 128, 128, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-dark);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: white;
    transform: translateY(-3px);
}

.btn-light {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.btn-light:hover {
    background-color: var(--gold-light);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ==================== NAWIGACJA (STICKY) ==================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 4px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
}
.logo-img {
    height: 130px;            /* wyraźnie mniejsze, ale nadal czytelne */
    width: auto;
    display: block;
}

.logo {
    padding: 0 8px;          /* tylko poziomy odstęp */
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-dark);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ==================== HERO ==================== */
.hero {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.8)), url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 0%, rgba(255,255,255,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-shadow: 2px 2px 10px rgba(255,255,255,0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== SEKCJE ==================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: var(--text-dark);
}

.title-underline {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto;
}

.bg-light {
    background-color: var(--secondary-bg);
}

/* ==================== ABOUT PREVIEW ==================== */
.about-preview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-preview .lead {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* zawsze 3 kolumny */
    gap: 30px;
}
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 kolumny na tabletach */
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;             /* 1 kolumna na telefonach */
    }
}

.service-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* ==================== CTA ==================== */
.cta-section {
    background: linear-gradient(45deg, var(--wood-light), var(--wood-dark));
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    color: #f0f0f0;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ==================== STOPKA ==================== */
.footer {
    background-color: #1e1e1e;
    color: #cccccc;
    padding-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    color: var(--gold-light);
    margin-bottom: 20px;
}

.footer-info p, .footer-contact p {
    margin-bottom: 8px;
    color: #cccccc;
}

.footer-info i, .footer-contact i {
    width: 20px;
    color: var(--gold-light);
    margin-right: 8px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

/* Linki kontaktowe w stopce (telefon, e-mail, Facebook) */
.footer-contact a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Klasa dla napisu "Ponad 20 lat na rynku" */
.footer-experience {
    font-style: italic;
    margin-top: 10px;
    color: #ffffff;          /* biały */
}

/* Nie potrzebujemy już okrągłego przycisku – usuwamy go całkowicie */
.social-icons {
    margin-top: 0;
}

.social-icon-fb {
    display: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;          /* biały */
}

/* ==================== PODSTRONY - NAGŁÓWEK ==================== */
.page-header {
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.9)), url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg') center/cover;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-title {
    color: var(--gold-dark);
    font-size: 3.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ==================== O NAS ==================== */
/* ==================== KOLORY IKON W O NAS ==================== */
.feature-icon.fa-medal {
    color: #c08552;        /* brąz / miedź */
}
.feature-icon.fa-tree {
    color: #5a7247;        /* leśna zieleń */
}
.feature-icon.fa-ruler-combined {
    color: #3b5998;        /* niebieski */
}
.feature-icon.fa-truck {
    color: #1e3a8a;        /* głęboki niebieski (transport) */
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image .image-placeholder {
    background: linear-gradient(135deg, var(--wood-light), var(--wood-dark));
    height: 350px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border: 1px solid var(--gold);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: white;
}

/* Historia */
.history-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    background: var(--gold);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 20px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    padding: 20px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* ==================== USŁUGI ==================== */
.services-detailed {
    max-width: 1000px;
    margin: 0 auto;
}

.service-block {
    margin-bottom: 60px;
}

.service-block-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.service-block.reverse .service-block-content {
    flex-direction: row-reverse;
}

.service-block-icon {
    font-size: 4rem;
    min-width: 100px;
    text-align: center;
}

.service-block-text h2 {
    color: var(--gold-dark);
}

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.service-features i {
    margin-right: 10px;
}

/* ==================== PORTFOLIO ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 2.5rem;
    transition: var(--transition);
}

.img-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--wood-dark);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
    border-top: 2px solid var(--gold);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: var(--gold-dark);
    margin-bottom: 5px;
    font-size: 1.3rem;
}
/* ==================== PORTFOLIO MASONRY (album) ==================== */
.portfolio-masonry {
    column-count: 3;
    column-gap: 25px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.masonry-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.masonry-item:hover .masonry-img {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    color: var(--gold-light);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 12px;
    background: rgba(0,0,0,0.6);
    max-width: 500px;
    margin: 0 auto;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* Responsywność masonry */
@media (max-width: 992px) {
    .portfolio-masonry {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .portfolio-masonry {
        column-count: 1;
    }
}

/* ==================== KONTAKT ==================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info-box, .contact-form-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.contact-details p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.contact-details hr {
    border-color: var(--border-light);
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-dark);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.2);
}

.map-container {
    margin-top: 30px;
}

.map-title {
    margin-bottom: 20px;
}

.map-placeholder {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ==================== PRZYCISK POWROTU DO GÓRY ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-5px);
}

/* ==================== ANIMACJE ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== KOLORY IKON USŁUG ==================== */
/* Meble na wymiar */
.service-icon .fa-pencil-ruler,
.service-block-icon .fa-pencil-ruler {
    color: #c08552;   /* ciepły brąz / miedź */
}

/* Kuchnie */
.service-icon .fa-utensils,
.service-block-icon .fa-utensils {
    color: #e07b39;   /* pomarańczowy */
}

/* Szafy i garderoby */
.service-icon .fa-door-open,
.service-block-icon .fa-door-open {
    color: #8b5a2b;   /* ciemne drewno */
}

/* Biura */
.service-icon .fa-briefcase,
.service-block-icon .fa-briefcase {
    color: #3b5998;   /* profesjonalny niebieski */
}

/* Meble do salonu */
.service-icon .fa-couch,
.service-block-icon .fa-couch {
    color: #5a7247;   /* zieleń mech */
}

/* Łazienki */
.service-icon .fa-bath,
.service-block-icon .fa-bath {
    color: #4a90e2;   /* błękit */
}

/* Transport */
.service-icon .fa-truck,
.service-block-icon .fa-truck {
    color: #1e3a8a;   /* głęboki niebieski */
}

/* ==================== RESPONSYWNOŚĆ ==================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .service-block-content { flex-direction: column !important; text-align: center; }
    .service-features { text-align: left; display: inline-block; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 15px 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .contact-container { grid-template-columns: 1fr; }
    .timeline-item { flex-direction: column; }
    .timeline-year { width: 100%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .section { padding: 50px 0; }
}