/* --- ZÁKLADNÉ NASTAVENIA --- */
:root {
    --bg-color: #FAFAFA;
    --text-color: #37474F;
    --primary-color: #26A69A; 
    --accent-color: #FFAB91;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: #2c3e50; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* --- FIXNÉ POZADIE --- */
.relief-bg {
    position: fixed;
    top: 0; right: 0;
    width: 60%; height: 100vh;
    background-image: url('books-bg.png'); 
    background-size: cover;
    background-position: center right;
    opacity: 0.15;
    filter: grayscale(100%) sepia(20%) contrast(120%);
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
    z-index: -1;
    pointer-events: none;
}

/* --- NAVIGÁCIA --- */
nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 1.2rem 0;
}

.nav-container {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px;
}

.logo { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); }

.nav-links { display: flex; gap: 20px; }
.nav-links a { 
    font-size: 0.8rem; text-transform: uppercase; font-weight: 600; 
    letter-spacing: 0.5px; padding-bottom: 5px;
    border-bottom: 2px solid transparent; 
}

.nav-links a:hover, 
.nav-links a.active-link { 
    color: var(--primary-color); 
    border-bottom: 2px solid var(--accent-color);
}

/* Hamburger Menu */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--text-color); }

/* --- SEKCE A OBSAH --- */
section {
    padding: 100px 20px;
    min-height: 90vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}

.container { max-width: 900px; width: 100%; }

/* --- PODSTRÁNKY --- */
body.subpage { 
    min-height: 100vh;
}
.subpage .container {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    position: relative;
    margin: 130px auto 60px auto; 
}

/* Nadpisy */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent-color); margin: 15px auto 0; }
h1.page-title { margin-bottom: 30px; display: inline-block; position: relative; }
h1.page-title::after { content: ''; display: block; width: 100%; height: 3px; background: var(--accent-color); margin-top: 10px; }

/* Hero */
#home h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.subtitle { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 30px; font-weight: 600; }
.btn {
    display: inline-block; padding: 12px 30px;
    background-color: var(--primary-color); color: white;
    border-radius: 50px; font-weight: 600;
    box-shadow: 0 4px 15px rgba(38, 166, 154, 0.3);
}
.btn:hover { background-color: #00897B; transform: translateY(-2px); }

/* Služby Grid */
.services-list { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
.service-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px; border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-radius: 0 10px 10px 0; transition: transform 0.3s;
}
.service-item:hover { transform: translateX(5px); }
.service-item h3 { margin-bottom: 10px; font-size: 1.2rem; }

/* Kontakt a Mapa (Grid Mriežka) */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.contact-info { 
    background: rgba(255,255,255,0.9); 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.contact-item { margin-bottom: 30px; display: flex; align-items: flex-start; }
.icon { color: var(--primary-color); margin-right: 15px; font-size: 1.4rem; }
.map-container { 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    display: flex; 
}
.map-container iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0;
}

footer { background: #2c3e50; color: #bdc3c7; padding: 30px 20px; text-align: center; font-size: 0.85rem; }

/* Odkazy v texte */
.content-link { color: var(--primary-color); text-decoration: none; }
.content-link:hover { text-decoration: underline; }

/* Animácie */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Animácia kalkulačka */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- GDPR STRÁNKA ŠTÝLY --- */
.gdpr-content p, .gdpr-content li { text-align: justify; margin-bottom: 15px; }
.gdpr-content h2 {
    color: var(--primary-color); font-size: 1.4rem; margin-top: 40px; margin-bottom: 20px;
    font-family: 'Playfair Display', serif; border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.table-wrapper { overflow-x: auto; margin: 30px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 8px; }
.gdpr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: white; }
.gdpr-table th { background-color: var(--primary-color); color: white; text-align: left; padding: 15px; font-weight: 600; white-space: nowrap; }
.gdpr-table td { border-bottom: 1px solid #eee; padding: 15px; vertical-align: top; line-height: 1.5; }
.gdpr-table tr:last-child td { border-bottom: none; }
.highlight-quote { border-left: 5px solid var(--accent-color); padding: 20px 20px 20px 30px; background-color: #fcfcfc; margin: 30px 0; font-style: italic; color: #555; }
.highlight-quote p { margin-bottom: 10px; }
.highlight-quote strong { color: var(--text-color); }
.gdpr-content ul { margin-left: 20px; margin-bottom: 20px; }
.gdpr-content li { margin-bottom: 8px; padding-left: 5px; }
.footnotes { font-size: 0.85rem; color: #777; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }

/* --- INFOBXOX / TOOLTIP --- */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    color: var(--primary-color);
    margin-left: 5px;
    font-weight: bold;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: var(--text-color); /* Tvoja luxusná tmavosivá */
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.4;
    
    /* Pozícia bubliny (zobrazí sa nad textom) */
    position: absolute;
    z-index: 100;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    
    /* Plynulá animácia zobrazenia */
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Malá šípka dole pod bublinou */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-color) transparent transparent transparent;
}

/* Zobrazenie po nabehnutí myšou */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* --- RESPONZIVITA (MOBIL) - MUSÍ BYŤ NA KONCI --- */
@media (max-width: 850px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .map-container { min-height: 350px; }
}

@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .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); }

    .nav-links {
        position: fixed; left: -100%; top: 70px; gap: 0;
        flex-direction: column; background-color: white; width: 100%;
        text-align: center; transition: 0.3s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        height: auto; padding-bottom: 20px;
    }
    .nav-links.active { left: 0; }
    .nav-links a { padding: 20px 0; border-bottom: 1px solid #eee; width: 100%; display: block; }
    
    .relief-bg { width: 100%; opacity: 0.1; }
    h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .subpage .container { 
        padding: 30px; 
        margin: 100px 20px 40px 20px; 
    }
}