/* === ZÁKLADNÍ NASTAVENÍ A PROMĚNNÉ === */
:root {
    --primary-color: #007bff;
    --primary-darker: #0056b3;
    --light-bg: #f8f9fa;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', sans-serif;
}

/* === GLOBÁLNÍ STYLY === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-family); line-height: 1.7; color: var(--text-dark); background-color: var(--white); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
.content-section { padding: 6rem 0; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; color: var(--text-dark); }

/* === STYLY PRO SVG IKONY === */
.inline-svg {
    height: 1em;
    width: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    margin-right: 0.5rem;
}

#back-to-top-btn .inline-svg {
    height: 1.2rem;
    width: 1.2rem;
    margin-right: 0;
}


/* === HORNÍ LIŠTA === */
.top-bar {
    background-color: #343a40;
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.top-bar a:hover {
    color: var(--primary-color);
}

/* Styly pro běžící text (marquee) */
@keyframes ticker-animation {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.ticker-container {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    margin-right: 2rem;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-animation 20s linear infinite;
}

.ticker-text:hover {
    animation-play-state: paused;
}


@media (max-width: 600px) {
    .ticker-container {
        display: none;
    }
    .top-bar .container {
        justify-content: center;
    }
}


/* === HLAVNÍ BANNER (HERO) === */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 1rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-bg picture,
.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 3;
    margin-top: 2rem;
}


.cta-button:hover {
    background-color: var(--primary-darker);
    transform: translateY(-3px);
}


/* === SEKCE SLUŽEB === */
#sluzby { background-color: var(--light-bg); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.service-card { background: var(--white); padding: 2.5rem; border-radius: 8px; box-shadow: var(--shadow); text-align: center; 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.12); }

.service-icon {
    width: 3rem; 
    height: 3rem;
    fill: var(--primary-color);
    margin-bottom: 1.5rem; 
}

.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-list { list-style: none; text-align: left; color: var(--text-light); }
.service-list li { margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
.service-list li::before { 
    content: '✓';
    color: var(--primary-color); 
    position: absolute; 
    left: 0;
    font-weight: bold;
}

/* === SEKCE O MNĚ === */
#o-mne { background-color: var(--white); }
.about-container { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.about-container img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 10px var(--white), 0 0 0 12px var(--border-color); }
.about-text p { font-size: 1.25rem; font-style: italic; max-width: 650px; margin: 0 auto; color: var(--text-light); }
.about-text p strong { color: var(--text-dark); }

/* === SEKCE REFERENCE === */
#reference { background-color: var(--light-bg); }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.testimonial-card { background-color: var(--white); padding: 2rem; border-radius: 8px; border-left: 5px solid var(--primary-color); box-shadow: var(--shadow); }
.testimonial-text { font-style: italic; color: var(--text-light); margin-bottom: 1rem; }
.testimonial-text::before { content: '“'; font-size: 3rem; color: var(--border-color); font-weight: 700; float: left; margin-right: 0.5rem; line-height: 1; }
.testimonial-author { font-weight: 600; text-align: right; color: var(--text-dark); }

/* === SEKCE KONTAKT === */
#kontakt { background-color: var(--white); }
.contact-wrapper { display: grid; grid-template-columns: 1fr; gap: 3rem; background-color: var(--light-bg); padding: 3rem; border-radius: 8px; }
.contact-details h3 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.contact-item { display: flex; align-items: center; margin-bottom: 1rem; font-size: 1.1rem; }
.contact-item a, .contact-item span { text-decoration: none; color: var(--text-dark); transition: color 0.3s; }
.contact-item a:hover { color: var(--primary-color); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 5px; font-family: var(--font-family); font-size: 1rem; }
.submit-button { width: 100%; padding: 1rem; background: var(--primary-color); color: var(--white); border: none; border-radius: 5px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.submit-button:hover { background: var(--primary-darker); }
.form-feedback { margin-top: 1rem; text-align: center; font-weight: 600; }

/* === PATIČKA === */
.footer { background-color: var(--text-dark); color: var(--white); text-align: center; padding: 1.5rem 0; font-size: 0.9rem; }

/* === RESPONZIVITA (PRO VĚTŠÍ OBRAZOVKY) === */
@media (min-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
@media (min-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 3.8rem; }
    .about-container { flex-direction: row; text-align: left; gap: 3rem; justify-content: center; align-items: center; }
}

/* === Tlačítko zpět nahoru === */
#back-to-top-btn { position: fixed; bottom: 20px; right: 20px; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background-color: var(--primary-color); color: var(--white); border-radius: 50%; text-decoration: none; box-shadow: 0 4px 8px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; }
#back-to-top-btn.show { opacity: 1; visibility: visible; }
#back-to-top-btn:hover { background-color: var(--primary-darker); transform: scale(1.1); }

/* === Animace při rolování === */
.fade-in-element { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-element.visible { opacity: 1; transform: translateY(0); }
#typing-effect { color: #a7d8ff; font-weight: 600; z-index: 2; position: relative; }
.ti-cursor { color: #a7d8ff; font-weight: 100; z-index: 2; position: relative; }

/* === Styl pro loga certifikací === */
.cert-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem; /* Mezera mezi logy */
    margin-bottom: 4rem; /* Odsazení od služeb pod tím */
    flex-wrap: wrap; /* Zalamování na menších obrazovkách */
}

.cert-logos img {
    max-height: 40px; /* ZMĚNA: Omezí maximální výšku, ale nenatahuje nízká loga */
    width: auto;      /* Zajistí správný poměr stran */
    max-width: 150px; /* Pojistka pro extra široká loga */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.cert-logos img:hover {
    filter: grayscale(0%); /* Zůstává - změní logo na barevné */
    opacity: 1;           /* Zůstává - zlepší viditelnost */
    animation: pulse 1.5s infinite; /* NOVÉ: Spustí naši animaci */
}


@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}