/* CSS Proměnné */
:root {
    --primary-color: #122d72;
    --accent-color: #1a42a1;
    --text-color: #444;
    --text-light: #666;
    --bg-light: #f9fafc;
    --bg-white: #ffffff;
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Lato', sans-serif;
    --transition: all 0.3s ease-in-out;
    --wrapper-width: 1200px;
}

/* Reset stylů */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px; 
}

/* --- TOTO JE TO FIXNÉ POZADIE (tile.jpg) --- */
body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('../images/tile.jpg'); 
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
}

/* --- TOTO JE TEN OBAL (WEB) ROLUJÍCÍ PO POZADÍ --- */
.site-wrapper {
    max-width: var(--wrapper-width);
    margin: 80px auto 0 auto; 
    background-color: var(--bg-white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15); 
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.bg-light {
    background-color: var(--bg-light); 
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #333;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 30px auto;
}

.lead {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-light);
}

/* Hlavička a Navigace - Desktop */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: var(--wrapper-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

.logo img {
    height: 60px;
    display: block;
    transition: var(--transition);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Úvodní banner */
.hero {
    width: 100%;
    display: block;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Parallax třída (pro citát) */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* --- ZAMĚŘENÍ (Nové zvýrazněné karty služeb) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    /* Jemný obrys pro jasné oddělení hran od pozadí */
    border: 1px solid #eef2f7;
    /* Modrý spodní okraj je nyní aktivní i bez najetí myší */
    border-bottom: 4px solid var(--primary-color);
    /* Výraznější, hlubší stín s nádechem firemní modré */
    box-shadow: 0 10px 30px rgba(18, 45, 114, 0.07);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    /* Při najetí myší box ještě více vystoupí do prostoru */
    box-shadow: 0 18px 40px rgba(18, 45, 114, 0.15);
    border-color: rgba(18, 45, 114, 0.15);
    /* Spodní okraj se při hoveru rozsvítí jasnější modrou */
    border-bottom-color: var(--accent-color);
}

.service-card img {
    height: 70px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #222;
}

.service-card ul {
    list-style: none;
    color: var(--text-light);
}

.service-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-card ul li:last-child {
    border-bottom: none;
}

/* Ukázky Práce - Desktop */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4/3;
    background: #e0e0e0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Reference */
.partners-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partners-flex img {
    max-width: 130px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.partners-flex img:hover {
    filter: grayscale(0%) opacity(1);
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 35px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(18, 45, 114, 0.07); 
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2.2rem; 
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-card:hover .contact-icon-wrapper {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
}

.contact-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #222;
}

.contact-card a {
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* Sekce Citát */
.quote-section {
    position: relative;
    padding: 100px 20px;
    color: #fff;
    text-align: center;
}

.quote-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18, 45, 114, 0.75); 
    z-index: 1;
}

.quote-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.quote-content p {
    font-size: 1.6rem;
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    line-height: 1.5;
}

.quote-content cite {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
}

/* Patička */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
}

footer img {
    height: 45px;
    margin-bottom: 15px;
    opacity: 0.9;
}

footer p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Responzivní design */
@media (max-width: 1240px) {
    .site-wrapper {
        margin: 80px 20px 0 20px;
    }
}

@media (max-width: 768px) {
    header {
        height: 95px; 
    }

    .header-container {
        position: relative;
        justify-content: center; 
        padding: 0 15px;
    }

    .logo img {
        height: 75px; 
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .site-wrapper {
        margin: 95px 15px 0 15px;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }

    .parallax {
        background-attachment: scroll; 
    }
    
    nav {
        position: absolute;
        top: 95px; 
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    
    nav.active {
        max-height: 350px;
        padding: 20px 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quote-content p {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }
}