/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Kontejner */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    color: #4a6b78;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

a {
    color: #c20000;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #900000;
    text-decoration: underline;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Hlavička */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto;
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    max-height: 40px;
    overflow: hidden;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #c20000;
    white-space: nowrap;
}

.menu-wrapper {
    position: relative;
}

/* Mobilní menu */
.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1;
}

.hamburger-icon {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #000000;
    position: relative;
    transition: background-color 0.3s;
}

.hamburger-icon:before,
.hamburger-icon:after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000000;
    position: absolute;
    transition: transform 0.3s;
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    bottom: -8px;
}

/* Překryvný panel menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

/* Hlavní navigace */
.main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    max-width: 320px;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding-top: 60px;
    overflow-y: auto;
}

.main-nav.active {
    display: block;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
}

.close-icon {
    display: block;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.close-icon::before,
.close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.close-icon::before {
    transform: rotate(45deg);
}

.close-icon::after {
    transform: rotate(-45deg);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;
}

nav li {
    margin: 15px 0;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

nav li:last-child {
    border-bottom: none;
}

nav a {
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    color: #000000;
    transition: color 0.2s;
}

nav a:hover {
    color: #c20000;
    text-decoration: none;
}

/* Desktop navigace */
@media (min-width: 769px) {
    .mobile-menu-button {
        display: none;
    }
    
    .close-button {
        display: none;
    }
    
    .menu-overlay {
        display: none !important;
    }
    
    .main-nav {
        display: block;
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        box-shadow: none;
        padding: 0;
        background-color: transparent;
        overflow: visible;
    }
    
    nav ul {
        display: flex;
        justify-content: flex-end;
        padding: 0;
    }
    
    nav li {
        margin: 0 15px;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    nav a {
        font-size: 1.1rem;
        padding: 10px 5px;
    }
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #c20000;
    color: white;
    border: 2px solid #c20000;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #900000;
    border-color: #900000;
    text-decoration: none;
}

.btn-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.contact-form .btn-primary {
    margin-top: 10px;
    padding: 16px 32px;
    font-size: 1.1rem;
    width: 100%;
}

/* Poděkování po odeslání formuláře */
.success-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    border-radius: 15px;
    border: 2px solid #4caf50;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.2);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

.success-message h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.success-message p {
    color: #4a6b78;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-details {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #4caf50;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 1rem;
    text-align: left;
}

.hidden {
    display: none !important;
}

/* Animace pro ikonu */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Jednoduché přepínání mezi formulářem a poděkováním */
#form-container {
    display: block;
}

#thank-you-message {
    display: none;
}

.btn-secondary {
    background-color: white;
    color: #c20000;
    border: 2px solid #c20000;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.btn-group {
    margin-top: 30px;
}

/* Hero sekce */
.hero {
    padding: 100px 0;
    background-color: #f0f5f7;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #c20000;
}

.hero h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4a6b78;
}

.lead {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Obecné sekce */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: white;
}

/* Sekce Jak rosteme */
.construction {
    background-color: #f5f5f5;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.2rem;
}

.construction-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.image-caption {
    padding: 15px;
    font-size: 1rem;
    margin: 0;
}

.construction-note {
    text-align: center;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #e6f2f7;
    border-radius: 10px;
}

/* O nás sekce */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Služby */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 15px;
}

.service-items {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    text-align: center;
}

.finance-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

/* Terénní výpomoc */
.help-services ul {
    max-width: 800px;
    margin: 0 auto;
}

/* Terénní výpomoc - Rozšířené styly */
.services-types {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
}

.service-type {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #c20000;
}

.service-type h3 {
    color: #c20000;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.service-note {
    text-align: center;
    font-style: italic;
    margin-top: 30px;
    padding: 15px;
    background-color: #e6f2f7;
    border-radius: 8px;
}

/* Ubytování */
.accommodation-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.accommodation-text {
    flex: 1;
    min-width: 300px;
}

.accommodation-image {
    flex: 1;
    min-width: 300px;
}

.accommodation-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Kontakt */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #4a6b78;
}

.form-group label.required::after {
    content: " *";
    color: #c20000;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #c0c0c0;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c20000;
    box-shadow: 0 0 0 3px rgba(194, 0, 0, 0.1);
    background: #ffffff;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #4caf50;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #f44336;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Map styles */
.map-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.map-container h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #4a6670;
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sekce týmu */
.team {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.team-grid {
    display: grid;
    /* Pro 5 členů: 3 v prvním řádku, 2 ve druhém */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    align-items: stretch; /* Zajistí stejnou výšku všech karet */
    justify-items: center;
}

/* Speciální styling pro 4. a 5. člena (druhý řádek) */
.team-member:nth-child(4),
.team-member:nth-child(5) {
    /* Centrujeme dva členy v druhém řádku */
    grid-column: span 1;
}

.team-member:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: auto;
    margin-right: 20px;
}

.team-member:nth-child(5) {
    grid-column: 2 / 3;
    margin-left: 20px;
    margin-right: auto;
}

.team-member {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 800px; /* Zachováme fixní výšku */
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c20000, #ff4444);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 260px; /* Zvětšeno o 30% z původních 200px */
    height: 260px; /* Zvětšeno o 30% z původních 200px */
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f8f9fa;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.member-photo:hover {
    transform: scale(1.05);
    border-color: #c20000;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%; /* Posuneme ještě více nahoru pro optimální zobrazení hlavy */
    transition: all 0.3s ease;
}

.member-photo:hover img {
    transform: scale(1.05); /* Mírně snížený zoom při hoveru pro lepší kontrolu */
}

.member-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.4rem;
    font-weight: 600;
    height: 35px; /* Fixní výška pro jméno */
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-title {
    color: #c20000;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 80px; /* Zvětšená fixní výška pro delší tituly */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.member-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: left;
    flex-grow: 1;
}

/* Kontejner pro všechny popisy - nastavíme minimální výšku podle nejdelšího popisu */
/* ODSTRANĚNO - nebylo potřeba */


/* Responsivita pro týmovou sekci */
/* Tablet layout: 2 sloupce */
@media (max-width: 1024px) and (min-width: 769px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    /* Na tabletu: 2+2+1 layout */
    .team-member:nth-child(4) {
        grid-column: 1;
        margin-left: 0;
        margin-right: 0;
    }
    
    .team-member:nth-child(5) {
        grid-column: 2;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .team {
        padding: 60px 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
        justify-items: stretch; /* Na mobilu vyplní celou šířku */
    }
    
    /* Resetujeme speciální pozicování na mobilu */
    .team-member:nth-child(4),
    .team-member:nth-child(5) {
        grid-column: 1;
        margin-left: 0;
        margin-right: 0;
    }
    
    .team-member {
        padding: 25px 20px;
    }
    
    .member-photo {
        width: 160px;
        height: 160px;
        margin-bottom: 25px;
    }
    
    .member-info h3 {
        font-size: 1.2rem;
    }
    
    .member-title {
        font-size: 1rem;
    }
    
    .member-description {
        font-size: 0.95rem;
        text-align: center;
    }
}

/* Patička */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo, .footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(1.1);
}

.footer-logo h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-links h4, .footer-contact h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #c20000;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 4px 0;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
    border-left: 3px solid #c20000;
    padding-left: 8px;
}

.footer-contact p {
    margin-bottom: 12px;
    color: #ecf0f1;
    font-size: 1.05rem;
    font-weight: 500;
}

.footer-contact p strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    color: #bdc3c7;
    font-size: 0.95rem;
}

/* Přístupnost */
:focus {
    outline: 3px solid #c20000;
}

/* Vysoký kontrast pro lepší čitelnost */
.high-contrast {
    background-color: black;
    color: white;
}

.high-contrast a {
    color: yellow;
}

.high-contrast h1, 
.high-contrast h2, 
.high-contrast h3, 
.high-contrast h4 {
    color: white;
}

/* Responzivní design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero h3 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .construction-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .services-types {
        flex-direction: column;
    }
}

/* Thank you page styles */
.thank-you-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f5f7 0%, #ffffff 100%);
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.thank-you-content h1 {
    color: #c20000;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.thank-you-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #4a6b78;
}

.thank-you-content .contact-info {
    background: #f0f5f7;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.thank-you-content .contact-info h3 {
    color: #4a6b78;
    margin-bottom: 15px;
}

.thank-you-content .btn {
    margin-top: 20px;
    display: inline-block;
} 