/* --- 1. ZMIENNE I RESET --- */
:root {
    --primary-color: #c89f65;
    --primary-dark: #a67c45;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- 2. KOMPONENTY UI --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease; /* Zmieniono na 0.4s dla płynności */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

/* Efekt najechania na przycisk (Subtelne rozjaśnienie i uniesienie) */
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(200, 159, 101, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.accent { color: var(--primary-color); }
.serif-accent { font-family: var(--font-serif); font-style: italic; }

.section { padding: 80px 0; }

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Animacja kreski pod tytułem przy najechaniu */
.section-title:hover::after {
    width: 100px;
}

.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }

/* --- 3. NAWIGACJA --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
    animation: slideDown 0.8s ease-out; /* Animacja wejścia menu */
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li { margin-left: 30px; }

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

/* Animacja podkreślenia linków w menu */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

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

.nav-links a:hover { color: var(--primary-color); }

.btn-nav {
    background-color: var(--text-dark);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 2px;
}

.btn-nav:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.btn-nav::after { display: none; } /* Usuwamy podkreślenie z przycisku w menu */

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* --- 4. HERO SECTION --- */
.hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1618220179428-22790b461013?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    /* Animacja wejścia tekstu */
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
    max-width: 600px;
}

header.hero.center { justify-content: center; text-align: center; }

/* --- 5. O NAS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--primary-color);
    transition: transform 0.5s ease;
}

/* Efekt ruchu obrazka przy najechaniu */
.about-image:hover img {
    transform: scale(1.02) rotate(1deg);
}

.features-list { list-style: none; margin-top: 20px; }
.features-list li { margin-bottom: 15px; font-size: 1.05rem; display: flex; align-items: center; }
.features-list i { color: var(--primary-color); margin-right: 15px; font-size: 1.2rem; }

/* --- 6. OFERTA --- */
.bg-light { background-color: var(--bg-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: stretch; 
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Pasek koloru na górze karty przy hoverze */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: transform 0.4s;
}

.service-card:hover i { transform: scale(1.2); }

.service-card h3 { margin-bottom: 15px; font-size: 1.3rem; font-weight: 600; }
.service-card p { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; }
.service-card .btn { margin-top: auto; align-self: center; width: auto; }

/* --- 7. GALERIA --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Mocniejsze przybliżenie */
.gallery-item:hover img {
    transform: scale(1.15);
}

/* Ciemna warstwa z ikoną lupy przy hoverze */
.gallery-item::after {
    content: '\f00e'; /* Ikona lupy FontAwesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

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

/* --- 8. KONTAKT --- */
.contact { background-color: #222; color: var(--white); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.info-item { display: flex; align-items: center; margin-bottom: 25px; font-size: 1.1rem; }
.info-item i { width: 45px; height: 45px; background: var(--primary-color); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 20px; font-size: 1.2rem; transition: transform 0.3s; }
.info-item:hover i { transform: rotate(360deg); } /* Obrót ikony */

.contact-form-box { background: var(--white); padding: 40px; border-radius: 4px; color: var(--text-dark); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 2px; font-family: inherit; font-size: 1rem; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 8px rgba(200, 159, 101, 0.2); }
.full-width { width: 100%; }
.success-message { text-align: center; padding: 40px 0; }
.success-message i { font-size: 4rem; color: #28a745; margin-bottom: 20px; }

/* --- 9. FOOTER --- */
footer { background: #111; color: #777; padding: 30px 0; text-align: center; border-top: 1px solid #333; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.socials a { color: #777; margin-left: 20px; font-size: 1.2rem; transition: all 0.3s; }
.socials a:hover { color: var(--primary-color); transform: translateY(-3px); }

/* --- 10. ANIMACJE KLUCZOWE I SCROLL REVEAL --- */

/* Klasa .reveal jest domyślnie ukryta i przesunięta w dół */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

/* Klasa .active przywraca widoczność (dodawana przez JS) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes dla Hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* --- 11. RESPONSIVE --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-image { order: -1; }
}

@media (max-width: 768px) {
    .navbar { padding: 10px 0; }
    .nav-links { position: absolute; top: 60px; right: 0; height: calc(100vh - 60px); width: 70%; background-color: var(--white); flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 60px; transform: translateX(100%); transition: transform 0.3s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { margin: 20px 0; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form-box { padding: 25px; }
    .footer-content { flex-direction: column; gap: 15px; }
}
.logo {
    display: flex;
    align-items: center; /* Wyrównuje logo i tekst w pionie */
    gap: 10px;           /* Odstęp między obrazkiem a tekstem */
    text-decoration: none;
}

.logo-img {
    height: 40px;        /* Dopasuj tę wartość, aby logo miało wysokość zbliżoną do napisu */
    width: auto;         /* Zachowuje proporcje kwadratu */
    display: block;
}

/* Opcjonalnie: poprawka dla urządzeń mobilnych, jeśli logo wydaje się za duże */
@media (max-width: 768px) {
    .logo-img {
        height: 30px;
    }
}