/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #faf8f5;
    --bg-dark: #1a1a1a;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --accent: #b08d57;
    --accent-dark: #8a6d3b;
    --card-bg: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,.07);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
#navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(250,248,245,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: background .3s;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; }
.logo span { color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { font-size: .9rem; font-weight: 500; letter-spacing: .5px; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* ===== HERO ===== */
#hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: url('fotki/zestaw1_GPT.png') center/cover no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,.75), rgba(26,26,26,.45));
}
.hero-content {
    position: relative; z-index: 1; text-align: center;
    color: #fff; max-width: 700px; padding: 24px;
}
.hero-sub { font-size: .85rem; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero-content h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.15; margin-bottom: 20px; }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.8); margin-bottom: 32px; }
.btn {
    display: inline-block; padding: 14px 36px;
    background: var(--accent); color: #fff; font-weight: 600;
    border: none; border-radius: 50px; font-size: .95rem;
    cursor: pointer; transition: background .3s, transform .2s;
    letter-spacing: .5px;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.tag {
    display: inline-block; font-size: .75rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* ===== O NAS ===== */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.about-card {
    background: var(--card-bg); padding: 40px 32px; border-radius: var(--radius);
    box-shadow: var(--shadow); text-align: center; transition: transform .3s;
}
.about-card:hover { transform: translateY(-6px); }
.about-icon { font-size: 2.5rem; margin-bottom: 16px; }
.about-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.about-card p { color: var(--text-light); font-size: .92rem; }

/* ===== FILTERS ===== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.filter-btn {
    padding: 10px 24px; border-radius: 50px; border: 2px solid #ddd;
    background: transparent; cursor: pointer; font-size: .85rem; font-weight: 500;
    transition: .3s; font-family: 'Inter', sans-serif;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px;
}
.product-card {
    background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
    opacity: 1; transform: translateY(0);
}
.product-card.hide { display: none; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.product-img-wrap { position: relative; overflow: hidden; height: 280px; }
.product-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--accent); color: #fff; padding: 4px 14px;
    border-radius: 50px; font-size: .75rem; font-weight: 600; letter-spacing: .5px;
}
.product-info { padding: 24px; }
.product-info h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-info p { color: var(--text-light); font-size: .88rem; margin-bottom: 16px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 600; color: var(--accent); font-size: .95rem; }
.btn-small {
    padding: 8px 20px; background: var(--text); color: #fff;
    border-radius: 50px; font-size: .8rem; font-weight: 500; transition: .3s;
}
.btn-small:hover { background: var(--accent); }

/* ===== GALLERY ===== */
#galeria { background: #f0ece6; }

/* ===== BLOG ===== */
.blog-grid { display: flex; flex-direction: column; gap: 48px; }
.blog-card {
    display: grid; grid-template-columns: 360px 1fr; gap: 36px;
    background: var(--card-bg); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; transition: transform .3s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-img-wrap { height: 100%; min-height: 280px; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 32px 32px 32px 0; }
.blog-date {
    display: inline-block; font-size: .75rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.blog-body h3 { font-size: 1.35rem; margin-bottom: 16px; line-height: 1.3; }
.blog-body p { color: var(--text-light); font-size: .9rem; margin-bottom: 12px; line-height: 1.7; }
.blog-body p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .blog-card { grid-template-columns: 1fr; }
    .blog-img-wrap { min-height: 220px; }
    .blog-body { padding: 24px; }
}
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.gallery-grid img {
    width: 100%; height: 200px; object-fit: cover;
    border-radius: 8px; cursor: pointer; transition: transform .3s, opacity .3s;
}
.gallery-grid img:hover { transform: scale(1.03); opacity: .85; }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.92); display: none;
    align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: none; border: none;
    color: #fff; font-size: 2.5rem; cursor: pointer; transition: .2s; padding: 12px;
}
.lightbox-close { top: 20px; right: 28px; font-size: 3rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--accent); }

/* ===== KONTAKT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
    padding: 14px 18px; border: 2px solid #e0ddd8; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: .92rem;
    transition: border-color .3s; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-info { padding: 32px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-info h3 { margin-bottom: 20px; font-size: 1.3rem; }
.contact-info p { margin-bottom: 12px; font-size: .95rem; }
.contact-info hr { border: none; border-top: 1px solid #e0ddd8; margin: 20px 0; }

/* ===== FOOTER ===== */
footer {
    background: var(--bg-dark); color: rgba(255,255,255,.6);
    text-align: center; padding: 32px 0; font-size: .85rem;
}

/* ===== ANIMACJA SCROLL ===== */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; background: var(--bg);
        padding: 24px; gap: 20px; box-shadow: var(--shadow);
    }
    .contact-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
