/* ================================================================
   KÚSOK DOMOVA - FINÁLNY A ZJEDNOTENÝ STYLE.CSS
   Verzia: 12.0 (Oprava prekrývania sekcií - z-index fix)
================================================================ */

:root {
    --bg-warm-white: #FDFBF5;
    --bg-beige: #F0EDE5;
    --accent-green: #A3B18A;
    --text-dark: #3a3a3a;
    --text-light: #ffffff;
    --border-color: rgba(163, 177, 138, 0.3);
    --font-heading: 'Cormorant Garamond', serif;
    --font-script: 'Dancing Script', cursive;
    --font-body: 'Lato', sans-serif;
    --font-nav: 'Montserrat', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background-color: var(--bg-warm-white); line-height: 1.7; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: #4B5320; }
.section-title { font-size: 2.8rem; line-height: 1.3; margin: 0 auto 4rem auto; text-align: center; position: relative; padding-bottom: 1.5rem; display: flex; flex-direction: column; align-items: center; max-width: 80%; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 1px; background-color: var(--border-color); }
.section-title .script-font { font-family: var(--font-script); font-weight: 500; color: var(--accent-green); display: block; font-size: 2.5rem; margin-top: 0.25rem; }
.btn { display: inline-block; padding: 0.9rem 2.2rem; text-decoration: none; border-radius: 8px; font-weight: 700; transition: all 0.3s ease; border: 1px solid transparent; cursor: pointer; font-family: var(--font-nav); font-size: 1rem; letter-spacing: 0.5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.btn-primary { background-color: var(--accent-green); color: var(--text-light); border-color: var(--accent-green); }
.btn-primary:hover { background-color: #8a9a70; border-color: #8a9a70; transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* FINÁLNA OPRAVA: Každá sekcia je teraz samostatná vrstva */
.section {
    padding: 4rem 3rem;
    text-align: center;
    position: relative; /* Kľúčová vlastnosť */
    z-index: 1;         /* Kľúčová vlastnosť */
}
.section-white { background-color: var(--bg-warm-white); }
.section-beige { background-color: var(--bg-beige); }

/* HLAVIČKA A HERO */
.main-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 10; }
.main-header nav ul { list-style: none; display: flex; justify-content: center; padding: 1.5rem 0; }
.main-header nav ul li a { position: relative; text-decoration: none; color: white; padding: 1rem 1.5rem; font-family: var(--font-nav); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease; }
.main-header nav ul li a::after { content: ''; position: absolute; bottom: 0.7rem; left: 1.5rem; right: 1.5rem; height: 2px; background-color: white; transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.main-header nav ul li a:hover::after { transform: scaleX(1); }
.hero-section {
    position: relative; /* Zmena z 'relative' na 'relative' je v poriadku */
    z-index: 2; /* Dáme jej o trochu vyšší z-index kvôli hlavičke */
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}
.hero-text h1 { font-size: 4rem; color: var(--text-light); text-shadow: 0px 3px 8px rgba(0, 0, 0, 0.4); margin-bottom: 0.4rem;line-height: 1.2; }
.hero-subtitle { font-family: var(--font-body); font-weight: 300; font-size: 1.5rem; line-height: 1.2; max-width: 700px; margin: 0 auto 2rem auto; text-shadow: 0 1px 4px rgba(0,0,0,0.3); letter-spacing: 0.8px; }
.intro-section { text-align: center; background-color: #F0EDE5 }
.intro-quote { font-family: var(--font-body); font-weight: 300; font-size: 1.5rem; line-height: 1.2; max-width: 700px; margin: 0 auto;  letter-spacing: 0.8px; }
.intro-section .btn { background-color: var(--accent-green); color: var(--text-light); padding: 0.9rem 2.5rem; font-size: 1rem; }
.intro-section .btn:hover { background-color: #8a9a70; color: white; transform: translateY(-2px); }

/* SLUŽBY */
.services-carousel-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: stretch; }
.service-item { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); transition: transform 0.4s ease, box-shadow 0.4s ease; height: 450px; display: flex; align-items: flex-end; }
.service-item:hover { transform: translateY(-10px); }
.service-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-item:hover img { transform: scale(1.05); }
.service-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 70%; background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%); z-index: 1; }
.service-content { position: relative; z-index: 2; padding: 2rem; text-align: left; width: 100%; }
.service-content h3 { font-size: 2rem; color: var(--text-light); margin-bottom: 0.5rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
.service-content p { font-size: 1rem; color: rgba(255, 255, 255, 0.9); text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }

/* GALÉRIA */
.gallery-section { max-width: 100%; padding: 0 0 7rem 0; }
.scroller-wrapper { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent); mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent); }
.scroller { display: flex; gap: 1.5rem; width: max-content; }
.scroller[data-animated="true"] { animation: scroll 40s linear infinite; }
.scroller img { height: 350px; width: auto; border-radius: 8px; flex-shrink: 0; }
.scroller-wrapper:hover .scroller { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - 0.75rem)); } }

/* CENNÍK */
.price-box { display: inline-block; padding: 1.5rem 3rem; background-color: var(--bg-warm-white); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 1.5rem; }
.price-box .price { font-size: 3rem; font-weight: 700; color: var(--text-dark); }
.price-box .price span { font-size: 1.2rem; font-weight: 400; color: #777; margin-left: 0.25rem; }
#cennik .features-wrapper { margin-top: 2rem; }
#cennik .features-wrapper .section-title { font-size: 1.8rem; font-family: var(--font-nav); font-weight: 400; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-green); margin-bottom: 2.5rem; }
#cennik .features-wrapper .section-title::after { display: none; }
.features-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; text-align: left; max-width: 1100px; margin-left: auto; margin-right: auto; margin-bottom: 3rem; }
.feature-column h4 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.feature-column ul { list-style: none; padding: 0; }
.feature-column ul li { display: flex; align-items: flex-start; }
.feature-column ul li::before { content: '🌿'; color: var(--accent-green); margin-right: 0.75rem; margin-top: -2px; font-size: 1.2rem; }

/* RECENZIE */
.testimonial-slider { position: relative; max-width: 800px; margin: 0 auto; transition: height 0.4s ease-in-out; }
.testimonial-item { position: absolute; top: 0; left: 0; width: 100%; background-color: transparent; padding: 2.5rem 3rem; border: 1px solid var(--border-color); border-radius: 8px; opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.testimonial-item::before { content: '“'; position: absolute; top: -10px; left: 15px; font-family: var(--font-heading); font-size: 10rem; color: rgba(163, 177, 138, 0.15); z-index: -1; line-height: 1; } /* Pridaný z-index -1 */
.testimonial-item.active { opacity: 1; transform: translateY(0); }
.testimonial-item blockquote { font-family: var(--font-heading); font-size: 1.6rem; font-style: normal; margin: 0; position: relative; z-index: 1; }
.testimonial-item cite { display: block; margin-top: 1.5rem; font-style: normal; font-weight: bold; color: var(--accent-green); position: relative; z-index: 1; }
.star-rating { margin-bottom: 1rem; color: #ffc107; position: relative; z-index: 1; font-size: 1.2rem; }

/* KONTAKT */
.contact-split-section { background-color: var(--bg-beige); }
.contact-split-section .container { max-width: 1200px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.contact-info { text-align: left; }
.contact-title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
.contact-subtitle { font-size: 1.1rem; color: #5c5c5c; max-width: 400px; margin-bottom: 2.5rem; }
.info-block { margin-bottom: 2.5rem; }
.info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.info-item i { font-size: 1.8rem; color: var(--accent-green); }
.info-item a { text-decoration: none; color: var(--text-dark); font-size: 1.2rem; font-weight: 700; transition: color 0.3s; }
.info-item a:hover { color: var(--accent-green); }
.social-block h4 { font-family: var(--font-nav); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; margin-bottom: 1rem; }
.social-links-inline a { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-dark); transition: color 0.3s ease; }
.social-links-inline a i { font-size: 1.5rem; }
.social-links-inline a span { font-size: 1.1rem; font-weight: 700; }
.social-links-inline a:hover { color: var(--accent-green); }
.contact-form-container { background: var(--bg-warm-white); padding: 2.5rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.form-group { margin-bottom: 1rem; }
.form-group-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.contact-form-container input, .contact-form-container textarea { width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.contact-form-container input:focus, .contact-form-container textarea:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.2); }
.contact-form-container textarea { resize: vertical; margin-bottom: 1rem; }
.copyright-footer { padding: 2rem 1rem; text-align: center; font-size: 0.9rem; color: #888; background-color: var(--bg-warm-white); }

/* RESPONZÍVNY DIZAJN */
.hamburger-menu { display: none; }
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { text-align: center; }
    .contact-info .contact-subtitle { margin-left: auto; margin-right: auto; }
    .info-block { display: flex; justify-content: center; gap: 2rem; }
}
@media (max-width: 768px) {
    .main-nav .nav-links { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color: rgba(40, 40, 40, 0.98); backdrop-filter: blur(8px); transition: right 0.4s ease-in-out; z-index: 1000; }
    body.nav-open .main-nav .nav-links { right: 0; }
    .main-header { display: flex; justify-content: flex-end; align-items: center; padding: 1rem 1.5rem; }
    .hamburger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 40px; height: 35px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
    .bar { display: block; width: 100%; height: 4px; background-color: white; border-radius: 2px; transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; }
    body.nav-open .hamburger-menu .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    body.nav-open .hamburger-menu .bar:nth-child(2) { opacity: 0; }
    body.nav-open .hamburger-menu .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
    .section { padding: 5rem 1rem; }
    .section-title { font-size: 2.0rem; }
    .hero-text h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    #sluzby .section-title {
    font-size: 1.5rem; 
    max-width: 90%; /* iná veľkosť len pre tento nadpis */
  }
    .services-carousel-track { display: flex; grid-template-columns: none; gap: 1rem; padding: 0 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .services-carousel-track::-webkit-scrollbar { display: none; }
    .service-item { width: 80%; flex: 0 0 80%; height: 400px; scroll-snap-align: center; transform: scale(0.95); opacity: 0.8; transition: transform 0.4s ease, opacity 0.4s ease; }
    .service-item.is-active { transform: scale(1); opacity: 1; }
    .info-block { flex-direction: column; gap: 1rem; }
    .form-group-row { flex-direction: column; }
    .contact-grid { display: flex; flex-direction: column; }
    .contact-heading { order: 1; }
    .contact-form-container { order: 2; margin-bottom: 3rem; width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
    .contact-title { font-size: 3rem; }
    .contact-details { order: 3; }
}


/* =========================================
   ŠTÝLY PRE SEKCIE GALÉRIA A LIGHTBOX
========================================= */

/* --- Štýly pre mriežku galérie --- */
.gallery {
    padding: 80px 20px;
    text-align: center;
    background-color: #fdfdfa; /* Jemne béžové pozadie, môžeš upraviť */
}

.gallery .section-title {
    margin-bottom: 1rem;
}

.gallery .section-subtitle {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #6c757d;
}

.gallery-grid-final {
    display: grid;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px; /* Výška pre veľké obrazovky */
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "main side1"
        "main side2";
}

.gallery-main-image { grid-area: main; }
.gallery-side-image-1 { grid-area: side1; }
.gallery-side-image-2 { grid-area: side2; }

.gallery-grid-final .gallery-image {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-grid-final img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-grid-final .gallery-image:hover img {
    transform: scale(1.05);
}

.gallery-side-image-2 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 62, 46, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    pointer-events: none; /* Aby bolo stále možné klikať na obrázok pod ním */
}

/* --- Štýly pre Lightbox (okno s veľkým obrázkom) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.lightbox-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    position: relative;
}

.lightbox-image {
    max-width: 90%;
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    padding: 16px;
    user-select: none;
    transition: background-color 0.2s ease;
}
.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-prev { left: 5px; }
.lightbox-next { right: 5px; }

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 0 20px;
    width: 100%;
    max-width: 80vw;
    overflow-x: auto;
}

.thumbnail-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumbnail-img:hover {
    opacity: 1;
}

.thumbnail-img.active {
    opacity: 1;
    border-color: #FFFFFF;
}

/* Responzivita pre galériu */
@media (max-width: 768px) {
    .gallery-grid-final {
        height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "main main"
            "side1 side2";
    }
    .gallery-main-image {
        min-height: 250px;
    }
}

/* ================================================================
   --- GDPR COOKIE BANNER & MODAL ---
================================================================ */
.cookie-banner {
    position: fixed;
    bottom: -150%; 
    left: 0;
    width: 100%;
    background-color: var(--bg-warm-white);
    color: var(--text-dark);
    padding: 1.5rem;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    border-top: 4px solid var(--accent-green);
}

.cookie-banner.show { bottom: 0; }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 992px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-text h4 { margin-bottom: 0.5rem; color: #4B5320; }
.cookie-text p { font-size: 0.9rem; margin: 0; }

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; border: none; cursor: pointer; white-space: nowrap; }
.cookie-btn.outline { background-color: transparent; border: 2px solid var(--accent-green); color: var(--text-dark); border-radius: 30px;}
.cookie-btn.outline:hover { background-color: var(--accent-green); color: white; }
.cookie-btn-text { background: none; border: none; text-decoration: underline; color: var(--text-dark); cursor: pointer; font-size: 0.9rem; }

/* MODAL NASTAVENIA */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show { display: flex; }

.cookie-modal-content {
    background-color: var(--bg-warm-white);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-option {
    border-bottom: 1px solid #ccc;
    padding: 1rem 0;
}
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option-header label { font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 10px; color: #4B5320; }
.cookie-option p { font-size: 0.85rem; margin-top: 5px; color: #666; }
.cookie-modal-actions { display: flex; gap: 1rem; margin-top: 1.5rem; align-items: center; }

/* --- VYNÚTENÉ ZOBRAZENIE CHECKBOXOV (GDPR a Cookies) --- */
.gdpr-label input[type="checkbox"],
.cookie-option-header input[type="checkbox"] {
    display: inline-block !important;
    visibility: visible !important;
    width: 18px !important;
    height: 18px !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    opacity: 1 !important;
    position: relative !important;
    left: 0 !important;
    margin-right: 8px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important; /* Zabráni zmršteniu políčka na mobiloch */
}

/* Jemné zarovnanie textu vedľa políčka vo formulári */
.gdpr-label {
    display: flex !important;
    align-items: flex-start !important;
}