/* ========================================
   GLOBAL STYLES & VARIABLES
   ======================================== */

:root {
    --primary: #8B6F47;
    --primary-dark: #5c4626;
    --primary-light: #b89968;
    --accent: #D4A574;
    --dark: #1a1a1a;
    --dark-secondary: #2d2d2d;
    --light: #f8f9fa;
    --light-secondary: #f0f0f0;
    --text: #2d2d2d;
    --text-light: #5a5a5a;
    --border: #e0e0e0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.2);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: white;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-light);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #25D366, #20BA5F);
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-left: 10px;
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-link::after {
    display: none;
}

.whatsapp-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    margin-top: 60px;
    padding: 80px 20px;
    background: linear-gradient(135deg, #4a3621 0%, #2d2112 100%);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    animation: slideInLeft 0.8s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    animation: slideInRight 0.8s ease;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #8B6F47 0%, #b89968 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 111, 71, 0.4);
    background: linear-gradient(135deg, #9d7f54 0%, #c9a875 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.btn-secondary:hover {
    background: white;
    color: #5c4626;
    transform: translateY(-3px);
    border-color: white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   SECTIONS
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B6F47 0%, #D4A574 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5c4626;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.produkty,
.o-nas,
.galerie {
    padding: 100px 20px;
}

.o-nas {
    background: var(--light);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: #D4A574;
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--light-secondary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #8B6F47 0%, #D4A574 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #5c4626;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: #f0ead8;
    color: #5c4626;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #D4A574;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #5c4626;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 111, 71, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.kontakt {
    background: linear-gradient(135deg, #4a3621 0%, #2d2112 100%);
    color: white;
    padding: 100px 20px;
    position: relative;
}

.kontakt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(212, 165, 116, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.kontakt-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 700;
}

.contact-card .role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.contact-card p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.95);
}

.contact-card a {
    color: #ffd89a;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.contact-card a:hover {
    color: white;
}

.kontakt-form-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: var(--dark);
    color: white;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--dark);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        gap: 10px;
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--border);
    }

    .whatsapp-link {
        margin-left: 0;
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .products-grid,
    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kontakt-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .produkty,
    .o-nas,
    .galerie,
    .kontakt {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .gallery-item {
        height: 280px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .hero {
        margin-top: 60px;
        padding: 40px 15px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .product-card {
        margin-bottom: 10px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 15px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .contact-cards {
        margin-top: 20px;
    }

    .kontakt-content {
        gap: 25px;
    }

    .contact-form {
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .produkty,
    .o-nas,
    .galerie,
    .kontakt {
        padding: 40px 15px;
    }
}

/* ========================================
   MAGAZIN / BLOG STYLES
   ======================================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #D4A574;
}

.article-card .article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #8B6F47 0%, #D4A574 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.article-date {
    color: var(--text-light);
}

.article-category {
    color: #5c4626;
    font-weight: 700;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-title a {
    color: #2d2d2d;
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 600;
}

.article-title a:hover {
    color: #5c4626;
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-link {
    display: inline-block;
    color: #5c4626;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
}

.article-link:hover {
    color: #8B6F47;
    transform: translateX(5px);
}

/* Article Detail Page */
.article-body h2 {
    color: #5c4626;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-body h3 {
    color: #2d2d2d;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #2d2d2d;
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: #5c4626;
    text-decoration: underline;
    font-weight: 600;
}

.article-body a:hover {
    color: #8B6F47;
}

.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: #5c4626;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card .article-image {
        height: 200px;
    }

    .article-title {
        font-size: 1.1rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
}