/*
    ================================================================================
    FILE: css/style.css (STYLESHEET - HERO SECTION RESIZED)
    ================================================================================
*/

:root {
    --bg-color: #121212;
    --primary-surface-color: #1E1E1E;
    --secondary-surface-color: #282828;
    --primary-text-color: #E0E0E0;
    --secondary-text-color: #A0A0A0;
    --accent-color: #D4AF37; /* A sophisticated gold/amber color */
    --font-heading: 'Oswald', Merienda;
    --font-body: 'Poppins', Merienda;
    --container-width: 1140px;
    --header-height: 80px;
    --social-bar-height: 40px; /* <-- ZMIENIONA WYSOKOŚĆ */
}

/* --- Global Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color); 
    color: var(--primary-text-color);
    line-height: 1.6;
}

#page-background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/1633601/pexels-photo-1633601.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -100; 
    filter: brightness(0.6) grayscale(0.2); 
}

.page-content {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #FFFFFF;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFFFFF;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary-surface-color);
    position: fixed;
    width: 100%;
    top: 0; 
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-text-color);
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-text-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    /* === POPRAWKA PONIŻEJ === */
    padding: 200px 20px 150px 20px; /* Zastąpiono height: 100vh paddingiem */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    background-color: transparent; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0.2) 100%);
    z-index: 1; 
}

.hero-content {
    position: relative;
    z-index: 2; 
    max-width: 800px;
    /* === POPRAWKA PONIŻEJ === */
    transform: none; /* Usunięto transform, bo nie jest już potrzebny */
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: var(--bg-color);
}

/* --- Sections --- */
.section-title, .page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--secondary-text-color);
}

.services-section {
    padding: 39px 20px 80px 20px; 
    background-color: var(--bg-color); /* Przywrócono tło sekcji dla czytelności */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--primary-surface-color);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--secondary-surface-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--secondary-text-color);
}

/* --- Call to Action (CTA) Section --- */
.cta {
    background-color: var(--primary-surface-color);
    padding: 60px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-surface-color);
    border-top: 1px solid var(--secondary-surface-color);
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
}

.footer p {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

/* --- Generic Page Styles (for About, Gallery, Contact) --- */
main {
    padding-top: calc(var(--header-height) + var(--social-bar-height)); 
}

.page-section {
    padding: 60px 20px;
}

.page-title {
    margin-bottom: 40px;
}

/* --- About Page --- */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.about-image {
    flex: 1;
    min-width: 345px;
    border-radius: 8px;
}
.about-text {
    flex: 1.5;
    min-width: 300px;
}
.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.about-text ul {
    list-style-type: '✓  ';
    padding-left: 20px;
    margin-top: 20px;
}
.about-text ul li {
    margin-bottom: 10px;
}

/* --- Gallery Page --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--secondary-surface-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contact-details h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--secondary-surface-color);
}
.contact-details p {
    margin-bottom: 20px;
    color: var(--secondary-text-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-surface-color);
    border: 1px solid var(--secondary-surface-color);
    border-radius: 5px;
    color: var(--primary-text-color);
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.map-container {
    margin-top: 40px;
}
.map-container iframe {
    border-radius: 8px;
    filter: invert(90%) grayscale(80%);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: calc(var(--header-height) + var(--social-bar-height)); 
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title { font-size: 2.8rem; }
    .section-title, .page-title { font-size: 2rem; }
    .about-content { flex-direction: column; }
    .about-image { min-width: 100%; }
}


/* --- Lightbox Styles --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
}
.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    animation: zoomIn 0.5s;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus { color: #bbb; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes zoomIn { from {transform: scale(0.8);} to {transform: scale(1);} }


/* --- Facebook Button Styles --- */
.social-button-container {
    margin-top: 30px;
    text-align: left;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 25px;
}

.btn-social svg {
    fill: var(--accent-color);
    transition: fill 0.3s ease;
}

.btn-social:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-social:hover svg {
    fill: var(--bg-color);
}

/* --- Gallery Category Styles --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px;
}

@media (min-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}


.category-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.category-card-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) 50%);
    z-index: 1;
}

.category-card-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #FFFFFF;
    font-size: 2.2rem;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* --- Back to Gallery Button Style --- */
.back-link-container {
    text-align: center;
    margin-top: 40px;
}
/* --- Lightbox Navigation --- */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none; /* Zapobiega zaznaczaniu tekstu */
}

.lightbox-next {
    right: 15px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 15px;
    border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}


/*
    ================================================================================
    STYLES: SOCIAL TOP BAR
    ================================================================================
*/

.social-top-bar {
    padding: 8px 0; /* <-- ZMIENIONY PADDING */
    border-top: 1px solid var(--secondary-surface-color); 
}

.social-top-bar-content {
    display: flex;
    justify-content: center; 
    flex-direction: row; /* <-- ZMIENIONE Z 'column' */
    gap: 20px; /* <-- ZMIENIONY GAP */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-text {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    font-weight: 300;
}

.social-icons {
    display: flex;
    gap: 20px; 
}

.social-icon svg {
    width: 24px; 
    height: 24px; 
    color: var(--secondary-text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover svg {
    color: var(--accent-color); 
    transform: scale(1.1);
}

@media (max-width: 768px) {
    /* Style mobilne nie są już potrzebne, bo układ domyślny jest poprawny */
}