:root {
    --corten-primary: #b35d31;
    --corten-dark: #8b401d;
    --corten-light: #d67a49;
    --text-main: #2b2b2b;
    --text-light: #666666;
    --bg-main: #ffffff;
    --bg-light: #f7f5f2;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition-fast: 0.2s ease;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--corten-primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--corten-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(179, 93, 49, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
}

.logo span {
    color: var(--corten-light);
}

.navbar.scrolled .logo {
    color: var(--text-main);
}

.navbar.scrolled .logo span {
    color: var(--corten-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    color: var(--white);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--corten-primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    color: var(--white);
    cursor: pointer;
    position: relative;
    padding: 0;
}

.navbar.scrolled .dropbtn {
    color: var(--text-main);
}

.dropbtn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--corten-primary);
    transition: var(--transition);
}

.dropdown:hover .dropbtn::after {
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    z-index: 1005;
    border-radius: 4px;
    top: 150%;
    left: 0;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--corten-primary) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
}

.hero-title {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--corten-light);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cennik {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    font-weight: 600;
}

.btn-cennik:hover {
    background-color: var(--white);
    color: var(--text-main);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Section Title */
.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.section-title span {
    color: var(--corten-primary);
    font-style: italic;
    font-weight: 400;
}

.section-header {
    margin-bottom: 4rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.features-list .icon {
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--corten-primary);
    display: flex;
}

.about-image img {
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-content p {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-content .btn {
    align-self: flex-start;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    padding-top: 100%; /* 1:1 Aspect ratio */
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item .icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    line-height: 1;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
}

.contact-form {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--corten-primary);
    box-shadow: 0 0 0 3px rgba(179, 93, 49, 0.1);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0;
}

.footer p {
    margin: 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

.scroll-reveal.right {
    transform: translateX(50px);
}

.scroll-reveal.left {
    transform: translateX(-50px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll !important;
        background-position: center center !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--text-main);
        font-size: 1.25rem;
    }
    
    .dropdown-content {
        position: relative;
        top: 0;
        box-shadow: none;
        min-width: 100%;
        text-align: center;
        background-color: transparent;
    }
    
    .dropdown-content a {
        font-size: 1.1rem;
        padding: 10px 0;
    }
    
    .dropbtn {
        color: var(--text-main);
        font-size: 1.25rem;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--text-main);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: var(--text-main);
    }
    
    .products-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* 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);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--corten-primary);
    text-decoration: none;
    cursor: pointer;
}

#lightbox-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 300;
    text-align: center;
    font-family: var(--font-sans);
}
