/* =========================================
   1. ZMIENNE I RESET
   ========================================= */
:root {
    --brand-dark: #0B1C2E;
    --gold: #c5a059;
    --gold-dark: #b08d48;
    --light: #ffffff;
    --gray: #f9f9f9;
    --text: #555555;
    --cookie-green: #82e08c;
    --cookie-green-dark: #6bc775;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: 'Montserrat', sans-serif; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--brand-dark); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* =========================================
   2. NAGŁÓWEK I NAWIGACJA
   ========================================= */
.top-bar {
    background-color: var(--brand-dark);
    color: var(--gold);
    padding: 8px 0;
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 1px;
}

header {
    background-color: var(--light);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.logo-img {
    max-height: 90px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

nav ul li { list-style: none !important; }

nav a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-dark);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--light); min-width: 220px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); padding: 10px 0; z-index: 100; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 20px; text-transform: none; font-weight: 400; border-bottom: 1px solid #f0f0f0; }
.dropdown-menu a:hover { background-color: #fcfcfc; padding-left: 25px; }

/* =========================================
   3. HERO SECTIONS
   ========================================= */
.slider-container { position: relative; height: 600px; width: 100%; overflow: hidden; }
a.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; cursor: pointer; }
.slide.active { opacity: 1; }
.slide::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); }
.slide-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 20px; max-width: 800px; }
.slide-content h2 { font-size: 3.5rem; margin-bottom: 15px; color: #fff; text-shadow: 2px 2px 5px rgba(0,0,0,0.7); font-weight: 700; }
.slide-content p { font-size: 1.3rem; margin-bottom: 25px; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); font-weight: 300; }

.static-hero { width: 100%; }
.static-hero img { width: 100%; height: 350px; object-fit: cover; display: block; }

.btn-gold { background-color: var(--gold); color: var(--light); padding: 15px 35px; text-transform: uppercase; font-weight: 600; border: none; cursor: pointer; transition: 0.3s; display: inline-block; border-radius: 4px; }
.btn-gold:hover { background-color: var(--gold-dark); }

.slider-controls { position: absolute; bottom: 30px; right: 30px; z-index: 10; display: flex; align-items: center; gap: 15px; background: rgba(0,0,0,0.5); padding: 10px 15px; border-radius: 30px; }
.dots-container { display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--gold); transform: scale(1.2); }
.play-pause-btn { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; width: 20px; height: 20px; }

/* =========================================
   4. SEKCJE TREŚCI
   ========================================= */
.offer-section { padding: 80px 0; background-color: var(--light); }
.about-preview { padding: 80px 0; background-color: var(--gray); }
.features-section { padding: 60px 0 80px; background-color: var(--light); text-align: center; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header .divider { height: 3px; width: 80px; background-color: var(--gold); margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.card { background: #fff; text-align: center; transition: transform 0.3s; cursor: pointer; overflow: hidden; }
.card:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: 300px; object-fit: contain; padding: 0; border: none; }
.card-body { padding: 25px 10px; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--gold); margin-bottom: 10px; font-weight: 700; }
.card-link { font-size: 0.9rem; text-transform: uppercase; font-weight: 600; color: var(--brand-dark); border-bottom: 1px solid #ccc; padding-bottom: 2px; display: inline-block; }
.card:hover .card-link { color: var(--gold); border-color: var(--gold); }

.about-wrapper { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-text-col { flex: 1; min-width: 300px; }
.about-img-col { flex: 1; min-width: 300px; position: relative; }
.about-img-col img { width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-text-col h2 { font-size: 2.5rem; margin-bottom: 20px; position: relative; padding-bottom: 15px; }
.about-text-col h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: var(--gold); }

.features-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.feature-item { background: #fff; padding: 40px 20px; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; border: 1px solid #eee; flex: 1 1 300px; max-width: 380px; }
.feature-item:hover { transform: translateY(-5px); }
.feature-icon { height: 60px; width: auto; margin: 0 auto 20px; display: block; }
.feature-item h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--brand-dark); }
.feature-item p { font-size: 0.95rem; color: #666; }

.page-header { background-color: var(--gray); padding: 40px 0; margin-bottom: 40px; text-align: center; }
.page-header h1 { font-size: 2.5rem; color: var(--gold); }
.content-section { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-bottom: 60px; flex: 1; }
.content-text { flex: 1; min-width: 300px; }
.content-img { flex: 1; min-width: 300px; }
.content-img img { width: 100%; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.highlight { color: var(--gold-dark); font-weight: 600; }

.contact-container { display: flex; flex-wrap: wrap; gap: 50px; margin-bottom: 60px; }
.contact-info { flex: 1; min-width: 300px; }
.contact-form { flex: 1; min-width: 300px; background: var(--gray); padding: 30px; border-radius: 4px; }
.info-item { margin-bottom: 25px; }
.info-item strong { display: block; color: var(--gold-dark); font-size: 1.1rem; margin-bottom: 5px; font-family: 'Playfair Display', serif; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.btn-submit { background-color: var(--gold); color: #fff; border: none; padding: 12px 30px; cursor: pointer; font-weight: 600; text-transform: uppercase; width: 100%; transition: background 0.3s; }
.btn-submit:hover { background-color: var(--gold-dark); }
.map-responsive { overflow: hidden; padding-bottom: 50%; position: relative; height: 0; background: #eee; margin-top: 40px; border-radius: 4px; }
.map-responsive iframe { left: 0; top: 0; height: 100%; width: 100%; position: absolute; border: 0; }

#id-content { padding: 60px 0; flex: 1; }
#id-content h1 { border-bottom: 2px solid var(--gold); padding-bottom: 15px; display: inline-block; margin-bottom: 30px; }
#id-content h2 { font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; }
#id-content p, #id-content li { margin-bottom: 15px; text-align: justify; }
#id-content ul { list-style: disc; margin-left: 20px; }

/* =========================================
   5. FOOTER
   ========================================= */
footer {
    background-color: var(--brand-dark);
    color: #fff;
    padding: 50px 0 20px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

@media (min-width: 901px) {
    .footer-container { justify-content: space-between; }
    .footer-left { justify-content: flex-start; text-align: left; }
    .footer-center { align-items: flex-start; text-align: left; }
    .footer-right { align-items: flex-end; text-align: right; }
}

.footer-left, .footer-center, .footer-right { flex: 1 1 250px; display: flex; flex-direction: column; }
.footer-left { order: 3; align-items: flex-end; justify-content: center; }
.footer-center { order: 2; align-items: flex-start; }
.footer-right { order: 1; align-items: flex-start; }

@media (max-width: 900px) {
    .footer-left, .footer-center, .footer-right { align-items: center; text-align: center; order: initial; }
    .footer-left { order: 1; }
    .footer-center { order: 2; }
    .footer-right { order: 3; }
}

.footer-logo { max-width: 200px; filter: brightness(0) invert(1); background-color: transparent; padding: 0; border-radius: 0; }
.footer-left img { background-color: #fff; padding: 10px 20px; border-radius: 8px; filter: none; }

.contact-row { display: flex; align-items: center; margin-bottom: 15px; }
.contact-icon { font-size: 1.2rem; color: var(--gold); margin-right: 15px; width: 25px; text-align: center; }
.contact-text strong { display: block; font-size: 1.1rem; color: var(--gold); }
.contact-text a { color: #fff; text-decoration: none; }
.contact-text a:hover { color: var(--gold); }

/* USUNIĘTO OZNACZENIA LISTY I PADDING */
ul.footer-links {
    list-style: none !important;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
ul.footer-links li {
    list-style: none !important;
    padding-left: 0;
    margin: 0;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); padding-right: 5px; }

.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; color: #888; }
.policy-links { margin-bottom: 10px; }
.policy-links a { margin: 0 10px; color: #888; }
.policy-links a:hover { color: var(--gold); }

/* =========================================
   6. INTERAKTYWNE
   ========================================= */
.social-sidebar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 1000; display: flex; flex-direction: column; }
.social-link { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background-color: var(--brand-dark); color: var(--gold); margin-bottom: 2px; transition: 0.3s; font-size: 24px; text-decoration: none; }
.social-link:hover { background-color: var(--gold); color: var(--brand-dark); width: 60px; }
.social-link svg { width: 24px; height: 24px; fill: currentColor; }
#scrollTopBtn { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 999; border: none; outline: none; background-color: var(--gold); color: white; cursor: pointer; padding: 15px; border-radius: 50%; font-size: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); transition: 0.3s; }
#scrollTopBtn:hover { background-color: var(--gold-dark); transform: translateY(-3px); }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.2); backdrop-filter: blur(2px); align-items: center; justify-content: center; }
.modal-content { background-color: #fff; padding: 20px; border: 1px solid var(--gold); width: 90%; max-width: 600px; text-align: center; position: relative; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); animation: fadeIn 0.3s; border-radius: 4px; max-height: 90vh; overflow-y: auto; }
.modal-content img { width: 100%; height: auto; max-height: 300px; object-fit: contain; margin-bottom: 20px; }
.close-btn { position: absolute; top: 10px; right: 15px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; }
.close-btn:hover { color: var(--gold); }
#modalDescription { text-align: left; line-height: 1.8; color: #555; }
@keyframes fadeIn { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} }

/* =========================================
   7. COOKIES ZAAWANSOWANE
   ========================================= */
#cookie-notify {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 90%;
    max-width: 380px;
    background-color: #0B1C2E;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 99999;
    display: none; /* Changed from transform to display: none */
    opacity: 0; /* Added opacity for transition */
    transition: opacity 0.6s ease-in-out; /* Changed transition for opacity */
    font-family: 'Montserrat', sans-serif;
    border-left: 5px solid var(--gold);
}
#cookie-notify.show {
    display: block; /* Changed from transform to display: block */
    opacity: 1; /* Added opacity for transition */
}
#cookie-notify p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 20px; color: #e0e0e0; }
.cookie-btn-group { display: flex; gap: 10px; justify-content: flex-end; }
.btn-cookie-accept { background-color: var(--gold); color: #fff; border: none; padding: 10px 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: background 0.3s; }
.btn-cookie-accept:hover { background-color: var(--gold-dark); }
.btn-cookie-more { background-color: transparent; color: #ccc; border: 1px solid #555; padding: 10px 15px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; border-radius: 4px; text-decoration: none; transition: 0.3s; }
.btn-cookie-more:hover { border-color: var(--gold); color: var(--gold); }

#cookie-settings-btn { position: fixed; bottom: 20px; left: 20px; width: 50px; height: 50px; background-color: var(--brand-dark); border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 99998; transition: transform 0.3s ease; border: 2px solid var(--gold); }
#cookie-settings-btn:hover { transform: scale(1.1); background-color: var(--gold); }

/* Styles for the simple cookie settings modal (used in index.html and kontakt.html) */
#cookie-settings-modal {
    display: none; /* Domyślnie ukrywa modal */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Tło dla modala */
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}

#cookie-settings-modal .cookie-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 500px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

#cookie-settings-modal .cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#cookie-settings-modal .cookie-modal-header h3 {
    margin: 0;
    color: var(--brand-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

#cookie-settings-modal .cookie-modal-body {
    margin-bottom: 25px;
}

#cookie-settings-modal .cookie-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

#cookie-settings-modal .cookie-option:last-child {
    margin-bottom: 0;
}

#cookie-settings-modal .cookie-option-switch {
    flex-shrink: 0; /* Prevent switch from shrinking */
    padding-top: 4px; /* Align checkbox with text */
}

#cookie-settings-modal .cookie-option-text h4 {
    font-size: 1.1rem;
    color: var(--brand-dark);
    margin-bottom: 5px;
}

#cookie-settings-modal .cookie-option-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #666;
}

#cookie-settings-modal .cookie-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--cookie-green);
    cursor: pointer;
}

#cookie-settings-modal .cookie-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#cookie-settings-modal .cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

#cookie-settings-modal .btn-settings-save,
#cookie-settings-modal .btn-settings-accept-all {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

#cookie-settings-modal .btn-settings-save {
    background-color: #bbb;
    color: #333;
    border: 1px solid #bbb;
}

#cookie-settings-modal .btn-settings-save:hover {
    background-color: #aaa;
    border-color: #aaa;
}

#cookie-settings-modal .btn-settings-accept-all {
    background-color: var(--cookie-green);
    color: #fff;
    border: 1px solid var(--cookie-green);
}

#cookie-settings-modal .btn-settings-accept-all:hover {
    background-color: var(--cookie-green-dark);
    border-color: var(--cookie-green-dark);
}

/* Styles for the tabbed cookie settings modal (if you decide to use it again) */
.cookie-tabs-wrapper { background-color: #fff; width: 100%; max-width: 900px; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5); max-height: 90vh; display: flex; flex-direction: column; font-family: 'Montserrat', sans-serif; }
.cookie-header-bar { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.cookie-header-bar h3 { margin: 0; color: #3f4254; font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.cookie-close { font-size: 28px; cursor: pointer; color: #888; }
.cookie-body-split { display: flex; flex: 1; overflow: hidden; min-height: 300px; }
.cookie-tabs-list { width: 30%; background-color: #f5f5f5; border-right: 1px solid #eee; display: flex; flex-direction: column; overflow-y: auto; }
.cookie-tab { padding: 15px 20px; border: none; background: transparent; text-align: left; cursor: pointer; font-family: inherit; font-size: 0.9rem; color: #555; transition: 0.2s; border-left: 4px solid transparent; outline: none; }
.cookie-tab:hover { background-color: #e9e9e9; }
.cookie-tab.active { background-color: #fff; border-left-color: var(--cookie-green); color: #000; font-weight: 600; }
.cookie-content-details { width: 70%; padding: 30px; overflow-y: auto; position: relative; }
.cookie-detail-pane { display: none; }
.cookie-detail-pane.active { display: block; }
.cookie-toggle-label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; color: #333; }
/* .cookie-checkbox is already defined above for both types of modals */
.cookie-footer-bar { padding: 15px 20px; border-top: 1px solid #eee; background-color: #fff; display: flex; justify-content: flex-end; gap: 15px; flex-wrap: wrap; }
/* .btn-cookie-save and .btn-cookie-allow-all are already defined above for both types of modals */


/* =========================================
   8. MEDIA QUERIES (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .header-inner { flex-direction: column; gap: 15px; padding: 15px 0; }
    nav ul { flex-direction: column; align-items: center; gap: 15px; }
    nav ul li:first-child { display: none; }
    .hero h1, .slide-content h2 { font-size: 2rem; }
    .static-hero { display: none; }
    .slider-container { height: 350px; }
    .dropdown-menu { position: relative; text-align: center; border: 1px solid #eee; display: none; width: 100%; top: 0; left: 0; box-shadow: none; background-color: #f9f9f9; }
    .dropdown:hover .dropdown-menu { display: block; }
    .social-sidebar { display: none; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-right { text-align: center; }
    .contact-row { justify-content: center; }
    .footer-links a:hover { padding-right: 0; color: var(--gold); }
    .about-wrapper { flex-direction: column; }
    .contact-container { flex-direction: column; }
    #cookie-notify { width: calc(100% - 40px); left: 20px; bottom: 20px; }
    .cookie-btn-group { flex-direction: column; }
    .btn-cookie-more, .btn-cookie-accept { width: 100%; text-align: center; }
    /* Media queries for the simple cookie modal */
    #cookie-settings-modal .cookie-modal-content {
        padding: 20px;
        max-width: 90%;
    }
    #cookie-settings-modal .cookie-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    #cookie-settings-modal .btn-settings-save,
    #cookie-settings-modal .btn-settings-accept-all {
        width: 100%;
    }

    /* Media queries for the tabbed cookie modal (if used) */
    .cookie-body-split { flex-direction: column; min-height: auto; }
    .cookie-tabs-list { width: 100%; height: 150px; border-right: none; border-bottom: 1px solid #eee; }
    .cookie-content-details { width: 100%; height: 200px; padding: 20px; }
    .cookie-footer-bar { justify-content: center; }
    .btn-cookie-save, .btn-cookie-allow-all { width: 100%; margin-bottom: 5px; }
}