* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Georgia', serif;
    background-color: #FFFDF9;
    color: #33322E;
}

header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #FAF7F2;
    border-bottom: 1px solid #e0dbd3;
    position: relative;
    z-index: 2;
}

header img {
    height: 55px;
    width: 190px;
    object-fit: cover;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #33322E;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

}

nav a {
    text-decoration: none;
    color: #33322E;
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
    top: 0;
}

nav a:hover {
    color: #c47d53;
}

.menu-toggle {
    margin-left: auto;
}

h1, h2, h3 {
    text-align: center;
    color: #c47d53;
}

p {
    text-align: center;
    max-width: 700px;
    margin: 20px auto;
    line-height: 1.6;
}

.intro {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.intro-col p {
    max-width: none;
    text-align: left;
    margin: 0 0 12px 0;
}

.intro-col p:last-child {
    margin-bottom: 0;
}

.intro-headline h1,
.intro-headline h2,
.intro-headline h3 {
    text-align: left;
    margin: 0;
    line-height: 1.3;
}

.intro-headline h1 {
    font-size: 2rem;
}

.intro-headline h2 {
    font-size: 1.5rem;
    margin-top: 6px;
}

.intro-headline h3 {
    font-size: 1.3rem;
    margin-top: 10px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1000px;
}

.portfolio-tile {
    position: relative;
    display: block;
    background-size: cover;
    background-position: center;
    aspect-ratio: 4 / 3;
    text-decoration: none;
}

.portfolio-tile span {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.about-split {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
    align-items: center;
}

.about-img img {
    width: 280px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Karuzela hero */

.hero-carousel {
    position: relative;
    overflow: hidden;
    height: 650px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top 30%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    padding: 0 10px;
    padding-bottom: 60px;
    pointer-events: none;
    z-index: 1;
}

.hero-overlay h1 {
    color: white;
    font-size: 1.8rem;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 2;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: white;
}

/* Feature rows – dwukolumnowe sekcje */

.feature-row {
    display: flex;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
    align-items: center;
}

.feature-text {
    flex: 1;
}

.feature-text h1,
.feature-text h2 {
    text-align: left;
    margin-bottom: 24px;
}

.feature-text p {
    text-align: left;
    max-width: none;
    margin: 0 0 30px 0;
}

.feature-text hr {
    border: none;
    border-top: 1px solid #c47d53;
    margin: 30px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.feature-list li::before {
    content: "\279C";
    position: absolute;
    left: 0;
    color: #c47d53;
}

.feature-text .btn {
    display: block;
    width: 100%;
    text-align: center;
}

.feature-img {
    flex: 1;
}

.feature-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Karuzela opinii — styl hero z tekstem */

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    height: 650px;
}

.testimonials-heading {
    text-align: center;
    font-size: 1.4rem;
    margin: 60px 0 20px;
}

.testimonials-carousel .carousel-slide {
    background-size: cover;
    background-position: center;
}

.testimonial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    text-align: center;
}

.testimonial-quote {
    font-style: normal;
    font-size: 1.2rem;
    line-height: 1.7;
    color: white;
    max-width: 700px;
    margin: 0 auto 12px;
    border: none;
    padding: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.testimonial-author {
    font-weight: bold;
    color: #e4c3b2;
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.footer {
    padding: 20px;
    text-align: center;
    background-color: #FAF7F2;
    border-top: 1px solid #e0dbd3;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.social-icons img:hover {
    filter: none;
    transform: scale(1.1);
}

.copyright {
    font-size: 0.85rem;
    color: #888;
    margin: 12px 0 0;
}

/* FAQ akordeon */

.faq {
    background-color: rgb(196, 125, 83);
    padding: 60px 20px;
}

.faq-heading {
    color: #FFFDF9;
    font-size: 2rem;
    margin: 0 0 8px;
}

.faq-subheading {
    color: #FFFDF9;
    text-align: center;
    font-size: 1.1rem;
    margin: 0 0 40px;
    opacity: 0.85;
}

.faq-list {
    max-width: 900px;
    margin: 20px auto 0;
}

.faq-item {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 24px 0;
    cursor: pointer;
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: #FFFDF9;
    text-align: left;
}

.faq-question:hover {
    color: #e4c3b2;
}

.faq-chevron {
    font-size: 1.8rem;
    transition: transform 0.3s;
    transform: rotate(-90deg);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    color: #FFFDF9;
    text-align: left;
    max-width: none;
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    nav {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FAF7F2;
        z-index: 1;
        padding: 10px 20px;
        text-align: center;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links.active a {
        font-size: 1.2rem;
        padding: 12px 0;
    }

    .intro-columns {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        flex-direction: column;
        align-items: center;
    }

    .about-img img {
        max-width: 220px;
    }

    .social-icons img {
        width: 38px;
        height: 38px;
    }

    .feature-row {
        flex-direction: column;
    }

    .feature-row .feature-img {
        order: -1;
    }

    .hero-carousel {
        height: 300px;
    }

    .hero-overlay {
        padding-bottom: 40px;
    }

    .hero-overlay h1 {
        font-size: 1.2rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: 8px;
    }

    .carousel-next {
        right: 8px;
    }

    .testimonials-carousel {
        height: 350px;
    }

    .testimonial-overlay {
        padding: 24px 20px;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    .faq {
        padding: 40px 16px;
    }

    .faq-heading {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
        padding: 20px 0;
    }
}

/* GALLERY */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.02);
}

.lightbox {
    position: fixed;
    display: none;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  
  .lightbox button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px;
    user-select: none;
  }
  
  .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
  }

/* kontakt */

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

.contact-details {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-details h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-details iframe {
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-list li {
    margin-bottom: 10px;
}

.contact-list a {
    color: #33322E;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.btn {
    padding: 12px 24px;
    background-color: #c47d53;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #a8643f;
}