/* Firemní barvy inspirované logem VALFLEX */
:root {
    --primary-color: #031118; /* Téměř černá pro text */
    --accent-color: #0f71d7; /* Modrá z loga */
    --accent-gradient: linear-gradient(135deg, #0d5cb8 0%, #25bbff 100%);
    --bg-color: #f6f8fb;    /* Světlé pozadí s jemným nádechem modré */
    --section-bg: #ffffff;  /* Bílá karta pro obsah */
    --text-main: #111827;   /* Tmavě modro-černá pro čitelnost */
    --text-muted: #5d6f89;  /* Chladná šedě-modrá pro doplňkové texty */
    --border-color: #dce4ef;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("img/background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.50;
    pointer-events: none;
    z-index: -1;
}

/* Hlavička */
header {
    background-color: transparent;
    color: var(--primary-color);
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(220, 228, 239, 0.75);
}

header p.slogan {
    margin: 5px 0 0;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 2rem 1rem;
}

/* Sekce */
section {
    background: var(--section-bg);
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 40, 75, 0.08);
    border: 1px solid var(--border-color);
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
    text-transform: uppercase;
    font-size: 1.5rem;
}

h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
}

/* Strojový park - seznamy */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background: var(--bg-color);
    margin: 0.5rem 0;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

ul li:hover {
    transform: translateX(5px);
    border-color: rgba(15, 113, 215, 0.4);
}

.machine-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.machine-name {
    font-weight: 700;
    cursor: pointer;
}

.machine-desc {
    margin: 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.machine-preview {
    position: absolute;
    top: 50%;
    left: calc(100% + 1rem);
    width: 320px;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

ul li:hover .machine-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.machine-preview img {
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin-bottom: 0.75rem;
}

.machine-preview p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.machine-count {
    font-weight: bold;
    color: var(--accent-color);
}

/* Kontakty grid */
.contact-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-card {
    flex: 1 1 280px;
    min-width: 260px;
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
}

.contact-card h3 {
    margin-top: 0;
}

.contact-card p {
    margin: 0.6rem 0;
    color: var(--text-main);
}

.contact-card p strong {
    color: var(--text-main);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

a:hover {
    color: #0b4ca6;
    border-color: #0b4ca6;
}

.hero {
    max-width: 1000px;
    margin: auto;
    padding: 4rem 1rem;
}

.logo-image {
    width: 90%;
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.hero-text {
    max-width: 720px;
    margin: 1.5rem auto 0;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Patička */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background: var(--section-bg);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responzivita */
@media (max-width: 900px) {
    .contact-grid {
        flex-direction: column;
    }
    .machine-preview {
        display: none;
    }
}

@media (max-width: 600px) {
    section { padding: 1.5rem; }
    .hero { padding: 2.5rem 1rem; }
}


