/* =========================================
   STYLE.CSS - FINÁLNÍ VERZE (2x2 Technika)
   ========================================= */

/* --- 1. ZÁKLADNÍ NASTAVENÍ A RESET --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Roboto', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    scroll-behavior: smooth; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s; 
}

/* --- 2. BARVY A PROMĚNNÉ --- */
:root {
    --primary: #0056b3;  /* Technická modrá */
    --accent: #ffcc00;   /* Výrazná žlutá */
    --light: #f4f4f4;    /* Světle šedá na pozadí */
    --dark: #222;        /* Tmavá pro text */
    --bg-dark-section: #1a1a1a; /* Tmavé pozadí sekcí */
}

/* --- 3. OBECNÉ TŘÍDY --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-padding { 
    padding: 80px 20px; 
}

.bg-light { 
    background-color: var(--light); 
}

.bg-dark { 
    background-color: var(--bg-dark-section); 
    color: #fff; 
}

.text-center { 
    text-align: center; 
}

h2 { 
    margin-bottom: 20px; 
    font-size: 2.5rem; 
    color: var(--primary); 
    text-align: center; 
}

.bg-dark h2 { 
    color: var(--accent); 
}

.section-intro { 
    text-align: center; 
    max-width: 700px; 
    margin: 0 auto 50px auto; 
    font-size: 1.1rem; 
    color: #555; 
}

/* --- 4. HLAVIČKA (HEADER) --- */
.main-header { 
    background: #fff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    padding: 0.5rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

.header-layout { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img { 
    height: 55px; 
    width: auto; 
    display: block; 
}

.header-contacts {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 2px solid #eee;
    padding-left: 15px;
}

.header-contacts a:hover { color: var(--primary); }
.h-phone { color: var(--dark); font-weight: bold; font-size: 1rem; }
.h-email { color: #555; }

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    align-items: center; 
    font-weight: 500; 
    font-size: 0.95rem; 
}

nav ul li a:hover { color: var(--primary); }


/* --- 5. TLAČÍTKA --- */
.btn-cta { 
    background: var(--primary); 
    color: #fff !important; 
    padding: 8px 18px; 
    border-radius: 4px; 
    font-weight: bold; 
    transition: background 0.3s; 
    border: none; 
    cursor: pointer; 
    font-size: 1rem; 
}

.btn-cta:hover { background: #004494; }

.btn-primary { 
    display: inline-block; 
    background: var(--accent); 
    color: var(--dark); 
    padding: 15px 35px; 
    border-radius: 4px; 
    font-weight: bold; 
    margin-top: 25px; 
    font-size: 1.1rem; 
    transition: transform 0.2s; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4); 
}


/* --- 6. HERO SEKCE (S VLASTNÍM FOTEM) --- */
#hero {
    /* Záložní barva */
    background-color: #001232;
    
    /* VLASTNÍ FOTO 'pozadi.jpg' */
    background-image: linear-gradient(rgba(0, 10, 30, 0.75), rgba(0, 10, 30, 0.75)), 
                      url('pozadi.jpg');
                      
    background-size: cover; 
    background-position: center;
    background-attachment: fixed; 
    
    min-height: 100vh; 
    
    color: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    position: relative;
    padding-top: 80px; 
    padding-bottom: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.2; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.hero-sub { 
    font-size: 1.4rem; 
    max-width: 800px; 
    margin: 0 auto 30px auto; 
    opacity: 0.9; 
    font-weight: 300; 
}

/* Box pro text "O nás" uvnitř Hero sekce */
.hero-about-box {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(8px); 
    border-left: 5px solid var(--accent);
    padding: 30px;
    margin: 30px 0;
    max-width: 800px;
    text-align: left;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-about-box h2 {
    color: var(--accent);
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: left;
}

.hero-about-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f4f4f4;
}


/* --- 7. SLUŽBY GRID --- */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.service-box { 
    background: #fff; 
    padding: 35px; 
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    border-bottom: 4px solid var(--primary); 
    transition: transform 0.3s; 
}

.service-box:hover { transform: translateY(-7px); }
.service-box h3 { margin-bottom: 15px; color: var(--dark); font-size: 1.3rem; }


/* --- 8. TABULKA LHŮT --- */
.table-wrapper { overflow-x: auto; }

.revize-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.revize-table th, .revize-table td { 
    padding: 15px; 
    text-align: left; 
    border-bottom: 1px solid #ddd; 
}

.revize-table th { 
    background: var(--primary); 
    color: #fff; 
    font-weight: bold; 
}

.revize-table tr:nth-child(even) { background-color: #f9f9f9; }
.revize-table td strong { color: var(--primary); }
.table-note { 
    font-size: 0.85rem; 
    color: #777; 
    margin-top: 15px; 
    font-style: italic; 
}


/* --- 9. VYBAVENÍ (MŘÍŽKA 2x2) --- */
.equipment-flex { 
    display: grid; /* Změna na Grid pro přesnou mřížku */
    grid-template-columns: 1fr 1fr; /* Dva stejně široké sloupce */
    gap: 40px; 
    max-width: 800px; /* Omezení šířky, aby byly hezky u sebe */
    margin: 0 auto; /* Vycentrování celého bloku */
}

.equip-item { 
    text-align: center; 
    width: 100%; 
}

.equip-item img { 
    width: 100%; 
    height: 220px; 
    object-fit: contain; 
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1)); 
}


/* --- 10. KONTAKT A FORMULÁŘ --- */
#kontakt { 
    background: var(--bg-dark-section); 
    color: #fff; 
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    align-items: flex-start;
    text-align: left;
}

.contact-info { 
    font-size: 1.1rem; 
    flex: 1; 
    min-width: 300px; 
    max-width: 450px; 
}

.contact-company { 
    font-size: 1.8rem; 
    font-weight: bold; 
    color: var(--accent); 
    margin-bottom: 15px; 
}

.contact-info a { color: var(--accent); font-weight: bold; }
.contact-phone { font-size: 1.5rem; margin: 20px 0; }

/* Styly formuláře */
.form-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-container h3 { 
    margin-bottom: 20px; 
    color: var(--accent); 
    font-size: 1.4rem; 
}

.simple-form .form-group { margin-bottom: 15px; }
.simple-form label { display: block; margin-bottom: 5px; font-size: 0.9rem; color: #ccc; }

.simple-form input,
.simple-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    background: #f4f4f4; 
    color: #333;
}

.simple-form textarea { resize: vertical; min-height: 100px; }

.btn-submit { 
    width: 100%; 
    margin-top: 10px; 
    border: none; 
    font-size: 1.1rem; 
    padding: 12px; 
    cursor: pointer;
}

/* --- 11. PATIČKA --- */
footer { 
    text-align: center; 
    padding: 25px; 
    background: #111; 
    color: #777; 
    font-size: 0.9rem; 
}


/* --- 12. RESPONSIVITA (MOBILNÍ ÚPRAVY) --- */
@media (max-width: 900px) {
    .header-layout { 
        flex-direction: column; 
        gap: 15px; 
    }
    .header-contacts { 
        border-left: none; 
        padding-left: 0; 
        align-items: center; 
        border-top: 1px solid #eee; 
        padding-top: 10px; 
        margin-top: 5px; 
    }
    .brand-group { 
        flex-direction: column; 
        gap: 5px; 
    }
    nav ul { 
        gap: 10px; 
        font-size: 0.85rem; 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    
    #hero { 
        padding-top: 60px; 
        min-height: auto; 
    }
    
    .contact-layout { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }
    .contact-info { text-align: center; }
}

/* Speciální úprava pro mobily: Technika pod sebou (1 sloupec), 
   protože 2 sloupce by byly na mobilu příliš malé */
@media (max-width: 600px) {
    .equipment-flex {
        grid-template-columns: 1fr;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-sub { font-size: 1rem; }
    .section-padding { padding: 50px 20px; }
    h2 { font-size: 2rem; }
}