/* Základní reset a barvy */
:root {
    --gold: #d4af37;
    --dark: #0a0a0a;
    --text-light: #e0e0e0;
    --accent-red: #8b0000;
    --gray-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--dark);
    color: var(--text-light);
    font-family: 'Raleway', sans-serif;
}

/* LOADER STYLY */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

body.loading {
    overflow: hidden;
}

/* FIXACE FOOTERU KE SPODU */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
    margin-right: 65px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 5px 15px;
    position: relative;
    transition: color 0.3s;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--gold);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-links li a:hover { color: var(--gold); }
.nav-links li a:hover::after { width: 70%; }

/* --- NAV ACTIONS --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- MICROSITE BUTTON --- */
.microsite-trigger {
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 5px;
    color: var(--gold);
    padding: 10px 20px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.microsite-trigger:hover, .btn-active {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 176, 78, 0.3);
}

/* --- SLIDE-DOWN DROPDOWN --- */
.microsite-dropdown {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: #151515;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    z-index: 999;
}

.microsite-dropdown.active {
    max-height: 1000px;
    border-bottom: 2px solid var(--gold);
    overflow-y: auto;
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px 10%;
}

a.microsite-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

a.microsite-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(10px);
}

.item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--gold);
    border-radius: 4px;
    flex-shrink: 0;
}

.item-info h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.item-info p {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.item-link {
    color: var(--text-light);
    font-size: 0.8rem;
    border-bottom: 1px solid var(--gold);
    display: inline-block;
}

/* --- HERO SEKCE --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    animation: fadeInUp 1.2s ease-out forwards;
    transition: transform 0.1s ease-out;
}

.sub-title {
    color: var(--accent-red);
    font-family: 'Cinzel', serif;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--gold);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* --- HLAVNÍ OBSAH --- */
.main-content {
    flex: 1;
    background-color: #c5a880; 
    color: #2c1a10; 
    padding: 100px 0 60px 0;
    text-align: center;
}

.ornament-horizontal {
    display: block;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    width: 90%;
}

/* O NÁS */
.about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.about-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.about-text p {
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    max-width: 900px;
    font-size: 1.3rem;
    line-height: 1.7;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    max-width: 1000px;
    margin-top: 20px;
}

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

/* --- SLIDER --- */
.slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin: 80px 0;
    padding: 0 50px;
}

.slider-container {
    position: relative;
    width: 1200px;
    height: 650px;
    max-width: 80vw;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.slide {
    position: absolute;
    width: 70%;
    height: 100%;
    left: 15%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.active { opacity: 1; z-index: 10; transform: translateX(0) scale(1); }
.slide.prev-slide { opacity: 0.6; z-index: 5; transform: translateX(-35%) scale(0.85); }
.slide.next-slide { opacity: 0.6; z-index: 5; transform: translateX(35%) scale(0.85); }
.slide.hidden { opacity: 0; transform: scale(0.5); }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 30;
}

.slider-btn svg {
    width: 60px;
    height: 60px;
    fill: var(--gold);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.9));
}

.prev { left: -60px; }
.next { right: -60px; }

.ornament-vertical { 
    height: 500px; 
    width: auto; 
    flex-shrink: 0;
}

/* --- REALIZAČNÍ TÝM --- */
.team-section { margin-top: 120px; padding-bottom: 60px; }
.team-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 70px;
    padding: 0 20px;
}
.team-title h2 { font-family: 'Cinzel', serif; font-size: 3rem; }

.symbol { 
    width: 80px; 
    height: auto;
    max-width: 15vw;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.team-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-ornament img {
    height: 400px;
    width: auto;
}

.team-member {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-member:hover {
    transform: translateY(-15px);
}

.photo-frame {
    width: 350px;
    height: 250px;
    border-radius: 2px;
    background: #333;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.photo-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.photo-frame:hover::after {
    left: 125%;
}

.team-member h3 { font-family: 'Cinzel', serif; margin-top: 25px; font-size: 1.5rem; }

/* --- MAPA A UKAZATEL --- */
.map-section {
    padding: 80px 0;
}

.map-container-absolute {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
}

.main-map {
    display: block;
    width: 1000px;
    max-width: 1300px;
    height: auto;
    border-radius: 97px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-pointer-link, .map-pointer-link1, .map-pointer-link2, .map-pointer-link3, .map-pointer-link4, .map-pointer-link5 {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 5%;
    min-width: 30px;
    max-width: 60px;
    transition: transform 0.3s ease;
    z-index: 10;
}

.map-pointer-link { top: 58%; left: 47%; }
.map-pointer-link1 { top: 81%; left: 69%; }
.map-pointer-link2 { top: 55%; left: 86%; }
.map-pointer-link3 { top: 61%; left: 26%; }
.map-pointer-link4 { top: 8%; left: 71%; }
.map-pointer-link5 { top: 36%; left: 42%; }

.map-pointer-link:hover, .map-pointer-link1:hover, .map-pointer-link2:hover, .map-pointer-link3:hover, .map-pointer-link4:hover, .map-pointer-link5:hover {
    transform: translate(-50%, -60%) scale(1.1);
}

.map-pointer-link img, .map-pointer-link1 img, .map-pointer-link2 img, .map-pointer-link3 img, .map-pointer-link4 img, .map-pointer-link5 img {
    width: 100%;
    height: auto;
}

/* --- KONTAKTNÍ FORMULÁŘ --- */
.contact-section {
    padding: 80px 0;
}

.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-ornament {
    height: 1000px;
    width: auto;
    flex-shrink: 0;
}

.form-ornament1{
    height: 300px;
    width: auto;
    flex-shrink: 0;
    margin-bottom: 60px;
}

.contact-form {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: #2c1a10;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    border: 1px solid rgba(44, 26, 16, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Raleway', sans-serif;
    color: #2c1a10;
}

.contact-form .microsite-trigger {
    align-self: center;
    margin-top: 10px;
    border-color: #2c1a10;
    color: #2c1a10;
    width: 200px;
}

.contact-form .microsite-trigger:hover {
    background: #2c1a10;
    color: #c5a880;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--dark);
    color: var(--text-light);
    padding: 60px 0 20px 0;
    border-top: 2px solid var(--gold);
    font-family: 'Raleway', sans-serif;
    width: 100%;
    margin-top: auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: footerShimmer 3s ease-in-out infinite;
}

@keyframes footerShimmer {
    0%   { left: -60%; }
    100% { left: 160%; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 40px;
    text-align: center;
}

.footer-section1,
.footer-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.footer-section1.footer-visible,
.footer-section.footer-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
    transition: text-shadow 0.3s ease;
}

.footer-section1:hover .footer-logo-text {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.7), 0 0 40px rgba(212, 175, 55, 0.3);
}

.footer-section1 img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.footer-section1:hover img {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 8px;
    color: var(--text-light);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    cursor: default;
}

.footer-section p:hover {
    color: var(--gold);
    letter-spacing: 0.5px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.partner-logos img {
    height: 40px;
    width: auto;
    filter: grayscale(30%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%) drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
    transform: scale(1.1);
}

/* --- SOCIÁLNÍ SÍTĚ --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 0;
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: var(--dark);
    border-color: var(--gold);
    transform: translateY(-4px);
}

.social-icon:hover i {
    transform: rotate(10deg) scale(1.1);
}

.footer-bottom {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 0.8rem;
    color: rgba(224, 224, 224, 0.5);
    margin-bottom: 0px;
    opacity: 0;
    transition: opacity 1s ease 0.6s;
}

.footer-bottom.footer-visible {
    opacity: 1;
}

/* --- ANIMACE --- */

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Up (Hero) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Jemné plavání (levitace) pouze pro symboly */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.symbol {
    animation: float 4s ease-in-out infinite;
}

/* --- RESPONSIVITA --- */
@media (max-width: 992px) {
    .team-ornament {
        display: none;
    }

    .dropdown-content {
        grid-template-columns: 1fr;
        padding: 20px 5%;
    }

    .microsite-dropdown.active {
        max-height: 1200px;
    }

    .about-image { max-width: 90%; }
    .slider-container { height: 350px; }
    .ornament-vertical { display: none; }
    .form-ornament { display: none; }
    .form-ornament1 { display: none; }
    .main-map { max-width: 95%; margin: 0 auto; }
    .ornament-horizontal { margin-bottom: 30px; }

    .team-title h2 { font-size: 1.8rem; text-align: center; }
    .symbol { width: 40px; }

    .nav-actions { order: 2; }

    .menu-toggle {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 21px;
        position: relative;
    }

    .menu-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--gold);
        border-radius: 5px;
        position: absolute;
        transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .menu-toggle .bar:nth-child(1) { top: 0; }
    .menu-toggle .bar:nth-child(2) { top: 9px; right: 0; }
    .menu-toggle .bar:nth-child(3) { top: 18px; }

    .menu-toggle.is-active .bar:nth-child(1) { top: 9px; transform: rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .menu-toggle.is-active .bar:nth-child(3) { top: 9px; transform: rotate(-45deg); }

    .nav-links {
        position: absolute;
        right: -100%;
        top: 90px;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-links.nav-active { right: 0; }
    .nav-links li { width: 100%; margin-top: 1px; }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 20px 0;
        background: var(--gray-bg);
        color: var(--text-light);
        border: 2px solid transparent;
        transition: all 0.3s ease-in-out;
        z-index: 1;
    }

    .nav-links li a:hover {
        background: rgba(212, 175, 55, 0.05);
        color: var(--gold);
        border: 2px solid var(--gold);
        transform: scale(0.98);
    }

    .nav-links li a::after { display: none; }

    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .footer-section { border-bottom: 1px solid rgba(212, 175, 55, 0.1); padding-bottom: 10%; }
    .footer-section1 img { max-width: 50px; height: auto; margin-right: 2%; }
    .footer-section:last-child { border-bottom: none; }
}

@media (min-width: 993px) {
    .menu-toggle { display: none; }
    .footer-section1 img { max-width: 50px; }
    .partner-logos { margin-top: 10%; }
}