:root {
    --primary-bg: #F5F5DC; /* Beżowy/Kremowy */
    --accent-color: #8B4513; /* Ciemny brąz */
    --text-color: #333333; /* Ciemnoszary */
    --light-brown: #D2B48C; /* Jasny brąz */
    --bg-panel: #3e1f08e5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

section {
    padding: 100px 0;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #A0522D;
    transform: translateY(-3px);
}

/* --- Featured Section --- */

.featured-section {
    padding-top: 0;
    background-color: var(--bg-panel);
    margin-bottom: 100px;
    position: relative;
}
.featured-section h2 {
    color: var(--primary-bg);
}
.featured-section h2::after {
    background-color: var(--primary-bg);
}
.featured-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 80px;
    margin-bottom: 80px;
    background-color: var(--primary-bg);
    border-radius: 0 0 100% 100%;
}
.featured-section::after {
    content: '';
    display: block;
    width: 100%;
    height: 80px;
    margin-bottom: 80px;
    background-color: var(--bg-panel);
    border-radius: 0 0 100% 100%;
    position: absolute;
    bottom: -160px;
}


/* --- Header --- */
.header {
    background-color: var(--primary-bg);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s ease-out;
}
.header.visible {
    transform: translateY(0);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color);
    animation: fadeInDown 1s ease-out;
}
.nav ul {
    display: flex;
}
.nav ul li {
    margin-left: 30px;
    animation: fadeInRight 1s ease-out;
    animation-fill-mode: both;
}
.nav ul li:nth-child(1) { animation-delay: 0.2s; }
.nav ul li:nth-child(2) { animation-delay: 0.4s; }
.nav ul li:nth-child(3) { animation-delay: 0.6s; }
.nav ul li:nth-child(4) { animation-delay: 0.8s; }
.nav ul li:nth-child(5) { animation-delay: 1.0s; }
.nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}
.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}
.nav ul li a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: stretch;
    flex-direction: row;
    justify-content: flex-end;
    text-align: center;
    color: var(--primary-bg);
    overflow: hidden;
    padding: 0px;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/background.jpeg') no-repeat top center/cover;
    filter: brightness(0.5) blur(10px);
    z-index: -1;
    animation: zoomIn 5s ease-out forwards;
}
.hero-content {
    z-index: 1;
    width: 40vw;
    padding: 20px;
    background-color: var(--bg-panel);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero-content::before {
    content: '';
    display: block;
    height: 100vh;
    width: 20vw;
    background-image: linear-gradient(to bottom right, transparent 49%, var(--bg-panel) 50%);
    position: absolute;
    left: -20vw;
    top: 0;
}
.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-bg);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideInUp 1s ease-out;
}
.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--primary-bg);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: slideInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}
.hero .btn {
    animation: slideInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
    margin-bottom: 40px;
}
/* --- About Section --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.about-text {
    flex: 2;
    min-width: 300px;
    text-align: justify;
}
.about-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}
.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.service-item:hover::before {
    transform: scaleX(1);
}
.service-item img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-brown);
}
.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--accent-color);
}
.service-item p {
    font-size: 0.95em;
    color: var(--text-color);
}
/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 69, 19, 0.7); /* Półprzezroczysty brąz */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay span {
    color: var(--primary-bg);
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    text-align: center;
    padding: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
    opacity: 1;
}
/* --- Contact Section --- */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}
.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.contact-info p strong {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 1.1em;
}
.contact-form {
    flex: 2;
    min-width: 350px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form button {
    width: 100%;
}

.google-map-content {
    flex: 3;
    width: 100%;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
/* --- Footer --- */
.footer {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}
.footer p {
    margin-bottom: 10px;
}
.footer .social-links a {
    color: var(--primary-bg);
    margin: 0 10px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}
.footer .social-links a:hover {
    color: var(--light-brown);
}

/* Responsywność */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav ul li {
        margin: 0 10px 10px 10px;
    }
    .hero h1 {
        font-size: 2.8em;
    }
    .hero p {
        font-size: 1.2em;
    }
    .about-content, .contact-content {
        flex-direction: column;
    }
    .about-image {
        margin-top: 20px;
    }
    section {
        padding: 60px 0;
    }
    h2 {
        font-size: 2em;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}