/* ZÁKLADNÉ NASTAVENIA & PREMENNÉ */
:root {
    --primary-blue: #007bff; /* Klasická modrá */
    --dark-blue: #0056b3;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

a { text-decoration: none; }
ul { list-style: none; }

/* TLAČIDLÁ */
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 23px;
    border-radius: 30px;
    font-weight: bold;
    margin-left: 10px;
    transition: 0.3s;
}

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

/* TOP BAR */
.top-bar {
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span { margin-right: 20px; }
.contact-info i, .opening-hours i { color: var(--primary-blue); margin-right: 5px; }
.socials { display: inline-block; margin-left: 15px; }
.socials a { color: var(--text-light); margin-left: 10px; transition: 0.3s; }
.socials a:hover { color: var(--primary-blue); }

/* NAVIGÁCIA */
.navbar {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
}

.logo span { color: var(--primary-blue); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* HERO SEKCIA */
.hero {
    /* Tu si vymeníš URL za fotku peknej kúpeľne, ktorú máš od klienta alebo stock */
    background-image: url('obkladackepraceobrazky/WORKRTILE.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
    height: 85vh; /* Výška hero sekcie */
    display: flex;
    align-items: center;
    margin-bottom: 100px; /* Priestor pre karty */
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 800px;
    color: var(--white);
}

.hero-text .subtitle {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text h1 {
    font-size: 3rem; /* Veľký nadpis ako v PLUMBO */
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

/* FEATURE KARTY */
.features {
    position: relative;
    margin-top: -150px; /* Negatívny margin aby karty prekryli Hero */
    z-index: 10;
    padding-bottom: 50px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 stĺpce */
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-10px); }

/* Biela karta */
.white-card {
    background-color: var(--white);
    color: var(--text-dark);
}
.white-card .icon-box { color: var(--primary-blue); background: #eef6ff; }
.white-card h3 { color: var(--text-dark); }
.white-card p { color: var(--text-light); }
.white-card .read-more { color: var(--primary-blue); }

/* Modrá karta (stredná) */
.blue-card {
    background-color: var(--primary-blue);
    color: var(--white);
}
.blue-card .icon-box { color: var(--primary-blue); background: var(--white); }
.blue-card h3 { color: var(--white); }
.blue-card p { color: rgba(255,255,255,0.8); }
.blue-card .read-more { color: var(--white); }

.icon-box {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-card p {
    margin-bottom: 20px;
}

.read-more { font-weight: bold; font-size: 0.9rem; }

/* RESPONZIVITA PRE MOBILY */
@media (max-width: 992px) {
    .features-container { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.2rem; }
    .nav-links { display: none; } /* Tu by sa hodilo JS menu */
    .hamburger { display: block; }
    .top-bar-content { flex-direction: column; gap: 10px; text-align: center; }
    .features { margin-top: -50px; }
}

/* --- O NÁS SEKCIA --- */
.about-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden; /* Aby modrý blok nepretŕčal */
    margin-top: 50px; /* Odstup od kariet hore */
}

/* Ten veľký modrý blok na ľavej strane */
.blue-background-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%; /* Zaberá cca 35% šírky obrazovky zľava */
    height: 100%;
    background-color: #0056b3; /* Tmavšia modrá pre kontrast, alebo použi var(--primary-blue) */
    z-index: 0;
    border-top-right-radius: 0; /* Môžeme zaobliť ak chceš, ale na obrázku je to rovné */
    border-bottom-right-radius: 50px; /* Jemné zaoblenie dole */
}

.about-container {
    position: relative;
    z-index: 1; /* Aby bol obsah nad modrým blokom */
    display: flex;
    align-items: center;
    gap: 60px;
}

/* -- Obrázok -- */
.about-image-wrapper {
    flex: 1;
    position: relative;
}

.about-img {
    width: 100%;
    height: 550px; /* Pevná výška pre pekný tvar */
    object-fit: cover;
    /* Tvar oblúka (Arch) podľa predlohy */
    border-radius: 200px 200px 200px 20px; 
    box-shadow: 20px 20px 0px rgba(0,0,0,0.05); /* Jemný tieň */
    border: 10px solid var(--white); /* Biely rámik okolo fotky */
}

/* -- Textový obsah -- */
.about-content {
    flex: 1;
}

.section-subtitle {
    color: var(--primary-blue);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid #ddd; /* Čiarka vedľa nadpisu */
    padding-bottom: 5px;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.main-desc {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* -- Ikony a texty (Misia/Vízia) -- */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    min-width: 60px;
    height: 60px;
    /* Ikonka má len obrys ako na obrázku */
    border: 2px solid #b3d7ff; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    transition: 0.3s;
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Utility pre margin tlačidla */
.mt-4 { margin-top: 20px; }

/* -- RESPONZIVITA (Mobil & Tablet) -- */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }

    .blue-background-shape {
        width: 100%;
        height: 300px; /* Na mobile bude modrý len vrch */
        border-bottom-right-radius: 0;
    }

    .about-image-wrapper {
        width: 100%;
        padding: 0 20px;
    }

    .about-img {
        height: 400px;
        margin-top: 20px; /* Aby fotka trochu trčala do modrého */
    }

    .about-content {
        width: 100%;
        padding: 20px 0;
        text-align: left;
    }

    .about-content h2 {
        font-size: 2rem;
    }
}

/* --- FAQ SEKCIA --- */
.faq-section {
    padding: 100px 0;
    background-color: var(--white);
}

.faq-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.faq-content {
    flex: 1.5;
}

.faq-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Accordion Štýly */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
}

.accordion-header:hover {
    color: var(--dark-blue);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-bottom: 0;
}

.accordion-item.active .accordion-body {
    max-height: 200px; /* Uprav podľa obsahu */
    padding-bottom: 20px;
}

.accordion-item.active .icon i {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

/* Pravá strana - Obrázok a Box */
.faq-image-side {
    flex: 1;
    position: relative;
}

.faq-img-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.faq-main-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.emergency-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.emergency-box h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.emergency-box p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* RESPONZIVITA */
@media (max-width: 992px) {
    .faq-container {
        flex-direction: column;
    }
    .faq-image-side {
        width: 100%;
        order: -1; /* Obrázok pôjde na mobile hore ak chceš */
    }
}



/* --- PORTRAIT GALLERY STYLES --- */
.gallery-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-grid-portrait {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 stĺpce pre desktop */
    gap: 15px; /* Medzera medzi fotkami */
}

.gallery-item-p {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 4; /* Vynúti formát na výšku */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-item-p img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Oreže fotku tak, aby vyplnila priestor */
    transition: transform 0.5s ease;
}

/* Elegantný modrý overlay z vizitky */
.gallery-overlay-p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 123, 255, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-content h4 {
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    margin: 0;
}

.gallery-item-p:hover img {
    transform: scale(1.08);
}

.gallery-item-p:hover .gallery-overlay-p {
    opacity: 1;
}

.gallery-contact-bar {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 50px;
}

/* RESPONZIVITA */
@media (max-width: 1024px) {
    .gallery-grid-portrait {
        grid-template-columns: repeat(2, 1fr); /* 2 stĺpce na tablete */
    }
}

@media (max-width: 600px) {
    .gallery-grid-portrait {
        grid-template-columns: 1fr; /* 1 stĺpec na mobile */
    }
}

/* --- AKTUALIZOVANÉ ŠTÝLY PRE SLUŽBY --- */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    border-top: 4px solid transparent; /* Zmena z border-bottom na top pre lepší vzhľad */
}

/* Zvýraznenie hlavnej služby (Obklady) */
.highlight-service {
    border-top: 4px solid var(--primary-blue);
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 123, 255, 0.1);
    margin-bottom: -15px;
}

.service-item h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responzivita */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* =========================================
   RESPONZIVITA (MOBIL A TABLET)
   Vložte na koniec súboru style.css
   ========================================= */

/* Všeobecné nastavenie pre obrázky */
img {
    max-width: 100%;
    height: auto;
}

/* --- TABLET A MENŠIE DESKTOPY (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .gallery-grid-portrait {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- MOBILNÉ ZARIADENIA (max-width: 992px) --- */
@media (max-width: 992px) {
    /* Top Bar - skryť menej dôležité alebo zmenšiť */
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 5px 0;
    }
    
    .contact-info span, .opening-hours span {
        display: block;
        margin: 5px 0;
        font-size: 0.85rem;
    }

    /* Navigácia */
    .nav-links {
        display: none; /* Skryté v základe */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Hneď pod navbarom */
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }

    /* Trieda, ktorú pridáme cez JS keď sa klikne na menu */
    .nav-links.active {
        display: flex;
    }

    .btn-primary {
        display: inline-block; /* Aby tlačidlo v menu ostalo viditeľné */
        margin: 10px auto;
    }

    .hamburger {
        display: block;
        color: var(--text-dark);
    }

    /* Hero Sekcia */
    .hero {
        height: auto; /* Zrušíme fixnú výšku */
        min-height: 600px;
        padding: 80px 0 100px 0; /* Viac miesta */
        background-attachment: scroll; /* Na mobile lepšie scroll */
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn-outline {
        margin-left: 0; /* Reset okraja */
    }

    /* Feature Karty */
    .features {
        margin-top: -50px; /* Menší negatívny okraj */
    }
    
    .features-container {
        grid-template-columns: 1fr; /* Jedna karta pod druhou */
        gap: 20px;
    }

    /* O Nás */
    .about-container {
        flex-direction: column;
    }

    .blue-background-shape {
        width: 100%;
        height: 200px;
        border-radius: 0 0 50px 50px;
    }
    
    .about-image-wrapper {
        width: 100%;
        padding: 0;
    }

    .about-img {
        height: 300px;
        border-radius: 20px; /* Jednoduchší tvar na mobile */
        border-width: 5px;
        margin-top: 50px;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    /* Služby */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .faq-container {
        flex-direction: column;
    }

    .faq-image-side {
        order: -1; /* Obrázok dáme na vrch */
        margin-bottom: 30px;
    }
    
    .faq-main-img {
        height: 300px;
    }
    
    .emergency-box {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: -50px; /* Prekrytie obrázku */
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- MALÉ MOBILY (max-width: 576px) --- */
@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }

    .gallery-grid-portrait {
        grid-template-columns: 1fr; /* 1 stĺpec */
    }

    .logo h1 {
        font-size: 1.2rem;
    }
}

/* =========================================
   OPRAVA TLAČIDLA V MENU
   ========================================= */

/* 1. Na počítači skryjeme tlačidlo, ktoré je v zozname (aby tam neboli dve) */
.mobile-only-item {
    display: none;
}

/* 2. Pravidlá pre mobil a tablet (pod 992px) */
@media (max-width: 992px) {
    
    /* Skryjeme to veľké tlačidlo vedľa loga, ktoré robilo problémy */
    .desktop-only-btn {
        display: none;
    }

    /* Zobrazíme tlačidlo v menu */
    .mobile-only-item {
        display: block;
        margin-top: 15px; /* Odstup od ostatných odkazov */
    }

    /* Jemná úprava, aby tlačidlo v menu vyzeralo pekne */
    .nav-links .btn-primary {
        display: inline-block;
        width: auto;
        margin: 10px auto;
    }
}

/* =========================================
   COOKIE LIŠTA (Google Ads Ready)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #fff; /* Biele pozadie pre čistý vzhľad */
    border-top: 1px solid #ddd;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 10000;
    padding: 25px 20px;
    transition: bottom 0.5s ease;
    font-family: var(--font-main);
}

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

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.cookie-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

/* Tlačidlo Súhlasím */
.btn-cookie-fill {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-cookie-fill:hover {
    background-color: var(--dark-blue);
}

/* Tlačidlo Odmietnuť */
.btn-cookie-outline {
    background-color: transparent;
    color: #555;
    border: 2px solid #ddd;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-cookie-outline:hover {
    border-color: #333;
    color: #333;
}

/* Mobil */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    .btn-cookie-fill, .btn-cookie-outline {
        width: 100%;
    }
}