/* =========================================
   TECHNICAL / DATA-DRIVEN DESIGN
   ========================================= */

/* 1. RESET & FONT */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif; /* Hlavní text - dobře čitelný */
    line-height: 1.6;
    color: #333;
    background-color: #f4f6f8; /* Chladná světlá šedá */
    
    /* Technické pozadí - jemné tečky (DOT GRID) */
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* Monospace pro nadpisy - vypadá to jako data/kód */
h1, h2, h3, h4, .role, .sub-title {
    font-family: 'Roboto Mono', monospace; 
}

.container {
    max-width: 1240px; /* Trochu širší layout */
    margin: 0 auto;
    padding: 0 20px;
}

img { max-width: 100%; display: block; }

/* 2. NAVIGACE - Jako ovládací panel */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    height: 80px;
    background-color: #fff;
    border-bottom: 2px solid #2b327b; /* Pevná linka */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid #ddd; /* Oddělovač */
    padding-right: 20px;
}

.nav-logo { height: 44px; width: auto; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.main-title {
    font-weight: 700;
    font-size: 1rem;
    color: #2b327b;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.sub-title {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

.nav-links { display: flex; list-style: none; gap: 5px; }

.nav-links li a {
    text-decoration: none;
    color: #555;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border: 1px solid transparent; /* Příprava pro hover */
}

/* Hover vypadá jako tlačítko v softwaru */
.nav-links li a:hover {
    background-color: #f0f4f8;
    color: #2b327b;
    border-color: #d1d9e6;
}

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: #333; margin: 5px; }


/* 3. HERO SEKCE - Satelitní feed */
.hero {
    height: 85vh;
    /* Tmavší překryv pro lepší kontrast tech fontu */
    background-image: linear-gradient(rgba(18, 24, 56, 0.75), rgba(18, 24, 56, 0.75)), url('img/mongolsko5.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left; /* Zarovnání vlevo je techničtější */
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    border-left: 4px solid #d4347f; /* Růžový indikátor vlevo */
    padding-left: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
    font-weight: 300;
}

/* Hranatá tlačítka */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #d4347f;
    color: white;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #d4347f;
    transition: all 0.2s;
}

.btn:hover {
    background-color: transparent;
    color: #d4347f;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    margin-left: 15px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}


/* 4. NADPISY SEKCI */
.section-title {
    font-size: 2rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

/* Dekorace pod nadpisem - jako podtržítko v terminálu */
.section-title::before {
    content: '// ';
    color: #d4347f;
    margin-right: 5px;
}

.section-subtitle {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================
   5. TÝM - "PERSONNEL ID STYLE" (Menší fotky)
   ========================================= */
.team-section {
    padding: 6rem 0;
    background-color: transparent;
}

.team-grid {
    display: grid;
    /* Karty mohou být užší, vejde se jich víc */
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); 
    gap: 1.5rem;
}

.member-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 1.5rem 1rem; /* Menší padding */
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* Vše zarovnáme na střed */
}

.member-card:hover {
    border-color: #2b327b;
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 rgba(43, 50, 123, 0.1);
}

/* FOTKA - Menší, technický portrét */
.photo-wrapper {
    width: 140px;      /* Pevná šířka - tak akorát */
    height: 170px;     /* Lehce na výšku (portrét) */
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    padding: 3px;      /* Rámeček s odsazením */
    background: #fff;
}

.photo-wrapper img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    filter: grayscale(100%); /* Černobílá pro sjednocení */
    transition: filter 0.3s;
}

.member-card:hover .photo-wrapper img {
    filter: grayscale(0%); /* Barva po najetí */
}

/* Texty */
.member-card h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #0f172a;
    text-align: center;
    font-weight: 700;
}

.role {
    font-size: 0.7rem;
    color: #d4347f;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
    width: 80%; /* Linka není přes celou šířku */
}

.member-card p {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.card-actions {
    margin-top: auto;
    width: 100%;
    padding-top: 10px;
    border-top: 1px dotted #cbd5e1;
    text-align: center;
    background: transparent;
}

.card-actions a {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    text-decoration: none;
    color: #2b327b;
    font-weight: 600;
    text-transform: uppercase;
}

.card-actions a:hover {
    text-decoration: underline;
}


/* =========================================
   6. AKTIVITY - CLICK INTERACTION
   ========================================= */
.activities-section {
    padding: 6rem 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.activities-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: #e2e8f0; /* Mřížka */
    border: 1px solid #e2e8f0;
}

.activity-card-hover {
    background: #fff;
    padding: 2.5rem 2rem;
    transition: all 0.2s;
    cursor: pointer; /* Ukazuje, že je to klikací */
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 320px; /* Pevná výška, aby text neposkakoval */
}

.activity-card-hover:hover {
    background: #f8fafc;
}

/* Aktivní stav (po kliknutí) */
.activity-card-hover.active {
    background: #f1f5f9;
    border-left: 4px solid #2b327b;
    padding-left: calc(2rem - 4px);
}

.act-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    align-self: flex-start; /* Zarovnání ikony doleva */
}

.activity-card-hover h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.short-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Detailní text - skrytý */
.detailed-text {
    display: none; /* Úplně skryté */
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #334155;
    background: #fff;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-left: 2px solid #d4347f;
    font-family: 'Inter', sans-serif;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Zobrazit detail, když je karta .active */
.activity-card-hover.active .detailed-text {
    display: block;
}

/* Skrýt krátký popis, když je otevřeno (volitelné, pro čistší vzhled) */
.activity-card-hover.active .short-desc {
    display: none;
}

.more-info {
    margin-top: auto;
    font-size: 0.75rem;
    color: #2b327b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 1rem;
}

/* Změna textu tlačítka po rozkliknutí */
.activity-card-hover.active .more-info {
    color: #d4347f;
}
.activity-card-hover.active .more-info::after {
    content: " (Close)";
}

/* =========================================
   7. VYBAVENÍ - FIX (Zobrazit celé produkty)
   ========================================= */
.equipment-section {
    padding: 6rem 0;
    background-color: transparent;
}

.equipment-grid {
    display: grid;
    /* Karty budou mít min. 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.equip-box {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 1.5rem; 
    transition: all 0.2s;
    height: 100%; /* Aby byly karty stejně vysoké */
}

.equip-box:hover {
    border-color: #2b327b;
    box-shadow: 4px 4px 0 rgba(43, 50, 123, 0.1);
    transform: translateY(-2px);
}

/* FOTKA - PRODUKTOVÝ STYL */
.equip-img {
    width: 100%;        /* Šířka rámečku */
    height: 150px;      /* Pevná výška rámečku */
    
    /* DŮLEŽITÉ: contain zajistí, že se fotka vejde celá a neořízne se */
    object-fit: contain; 
    
    background-color: #f8fafc; /* Světle šedé pozadí pod fotkou */
    border: 1px solid #e2e8f0; /* Jemný rámeček */
    padding: 10px;       /* Odstup fotky od rámečku */
    display: block;
    margin-bottom: 1rem;
}

/* NADPIS */
.equip-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* SEZNAM */
.equip-box ul { 
    list-style: none; 
    padding: 0;
}

.equip-box ul li {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    padding: 6px 0;
    border-bottom: 1px dashed #f1f5f9;
    color: #475569;
    line-height: 1.4;
}

.equip-box ul li:last-child {
    border-bottom: none;
}

.equip-box ul li::before {
    content: '+ '; 
    color: #d4347f;
    font-weight: bold;
    margin-right: 5px;
}

/* 8. TOOLS & KONTAKT */
.tools-section {
    padding: 5rem 0;
    background-color: #1e293b; /* Tmavá břidlice */
    color: white;
}
.tools-text h2 { color: white; margin-bottom: 1rem; letter-spacing: -1px; }

.btn-white {
    margin-top: 1rem;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-white:hover {
    background: #fff;
    color: #1e293b;
}

.contact-section { padding: 5rem 0; background: #fff; border-top: 1px solid #e2e8f0; }

.contact-wrapper-wide {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #cbd5e1; /* Orámování celého bloku */
}

.contact-info-col {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    background: #f8fafc;
    border-right: 1px solid #cbd5e1;
}
.contact-info-col h3 {
    margin-bottom: 1rem;
}

.contact-list {
   margin-top: 1rem;
}

.contact-map-col {
    flex: 1.5;
    min-width: 300px;
    height: 450px;
}
.contact-map-col iframe { height: 100%; width: 100%; border: none; }

footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
}

/* MOBIL */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; height: 100vh; top: 80px;
        background-color: white; flex-direction: column; align-items: center; width: 80%;
        transform: translateX(100%); transition: transform 0.3s ease;
        border-left: 1px solid #cbd5e1; padding-top: 2rem;
    }
    .burger { display: block; }
    .hero-content h1 { font-size: 2rem; }
    .contact-wrapper-wide { flex-direction: column; }
    .contact-info-col { border-right: none; border-bottom: 1px solid #cbd5e1; }
    .contact-map-col { height: 300px; }
}
.nav-active { transform: translateX(0%); }