:root {
    --primary: #050505;
    --secondary: #d4b483;
    --light: #f0f0f0;
    --dark: #1a1a1a;
}

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

body {
    font-family: 'Raleway', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--light);
    color: black;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    padding: 5px 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-center {
    display: flex;
    justify-content: center;
    flex: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary);
}

/* Hero section with parallax effect */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('img/homepage.jpg') center/cover no-repeat fixed;
    color: white;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* About section */
.about-section {
    padding: 5rem 0;
    background-color: white;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Gallery section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--light);
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2rem;
}

.gallery-container {
    position: relative;
    max-width: 90%; /* lub np. 800px, jak wolisz */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center; /* dodaj to */
    overflow: hidden; /* ważne! ukrywa części zdjęć poza kontenerem */
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none; /* Firefox */
}

.gallery-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.slide {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    height: 450px;
    margin-right: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: var(--secondary);
    color: white;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Features section */
.features-section {
    padding: 5rem 0;
    background-color: white;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box; /* Dodajemy box-sizing aby padding był wliczany w szerokość */
}

.feature {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.feature h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: var(--dark);
    line-height: 1.6;
}

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

.page-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.page-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
}

.page-section p {
    margin: 0 auto;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Nowe style dla formularza kontaktowego */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.file-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.btn-submit {
    background-color: var(--light);
    color: var(--dark);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    font-family: inherit; /* <- to powoduje dziedziczenie z body */
}

.btn-submit:hover {
    background-color: var(--secondary);
    color: var(--dark)
}

/* Style dla mapy */
.map-container {
    height: 400px;
    background: #eee;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.hamburger {
    display: none;
    background-color: var(--light);
    padding: 15px;
    
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-link {
    display: none;
}

.desktop-link {
    display: inline;
}

.social-icons {
    display: flex;
    align-items: center;
    margin-left: 0;
    padding-right: 20px;
    gap: 20px;
}
        
.social-icons a {
    color: var(--primary);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
        
.social-icons a:hover {
    color: var(--secondary); /* Złoty kolor przy najechaniu */
}

/* Responsywność */
@media (max-width: 768px) {
    header {
        background-color: var(--light);
        padding: 10px 0;
        height: 70px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 15px;
    }
    
    .logo {
        order: 1;
        margin-bottom: 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .social-icons {
        order: 2;
        position: static;
        display: flex;
        margin-right: 8px;
    }
    
    .hamburger {
        display: block;
        order: 3;
        position: static;
        padding: 10px;
    }
    
    .nav-center {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light);
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-center.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        /* USUŃ display: none - to blokowało pokazanie menu */
    }
    
    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--gray);
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        width: 100%;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .mobile-link {
        display: inline;
    }
    
    .desktop-link {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .features-grid {
        padding: 0 0rem; /* Mniejszy padding na mobilkach */
        width: 100%; /* Pełna szerokość */
    }
}

/* Pozostałe istniejące style */
.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.category {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
}

.category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category h3 {
    padding: 1rem 1rem 0;
    color: #333;
}

.category p {
    padding: 0 1rem 1rem;
    color: #666;
}

.btn {
    display: inline-block;
    margin: 0 1rem 1rem;
    padding: 1rem 2rem;
    background-color: var(--light);
    color: var(--dark);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--secondary);
    color: var(--dark)
}

.stone-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}
.stone-card {
    width: 280px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.stone-card:hover {
    transform: translateY(-5px);
}
.stone-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.stone-info {
    padding: 15px;
}
.stone-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.service-details {
    list-style: none;
    margin-left: 20px;
    line-height: 1.6;
}
.service-details li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}
.service-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8B6B4A;
}

.logo-section {
    text-align: center;
    margin: 30px 0;
}
.logo-img {
    max-width: 300px;
    height: auto;
    margin: 20px 0;
}
.intro-text {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    line-height: 1.6;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0.1)}
  to {transform: scale(1)}
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.dropdown {
    position: relative;
}

.arrow-down {
    font-size: 0.7em;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--light);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    top: 100%;
    margin-top: 0;
    padding: 0;
    list-style: none;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: var(--light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-content a:hover {
    background-color: var(--secondary);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.main-content {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}

/* FAQ Section */
.faq-section {
    margin: 50px 0;
}

.faq {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    cursor: pointer;
}

.faq h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq h3::after {
    content: "+";
    font-weight: bold;
    transition: transform 0.3s;
}

.faq.active h3::after {
    content: "-";
    transform: rotate(180deg);
}

.faq p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    margin: 0;
}

.faq.active p {
    max-height: 200px; /* wystarczająca wysokość */
    opacity: 1;
    margin-top: 10px;
}

footer {
    background-color: var(--light);
    color: black;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-contact a {
    color: var(--secondary);
    text-decoration: none;
}
