/* ==========================================================================
   1. IMPORT A ZÁKLADNÍ NASTAVENÍ
   ========================================================================== */
@font-face {
    font-family: 'Roc Grotesk Light';
    src: local('Roc Grotesk Light'), local('RocGrotesk-Light'),
         url('RocGrotesk-Light.woff2') format('woff2'),
         url('RocGrotesk-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Roc Grotesk Light', 'Roc Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   2. HLAVIČKA A NAVIGACE
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #222222;
    padding: 12px 0;
}

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

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* MOBILNÍ HAMBURGER TLAČÍTKO */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* DESKTOP NAVIGACE */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.7;
}

/* JAZYKOVÝ PŘEPÍNAČ */
.lang-switcher button {
    background: transparent;
    border: 1px solid #444444;
    color: #ffffff;
    padding: 6px 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.lang-switcher button:hover {
    background-color: #ffffff;
    color: #000000;
}

/* ==========================================================================
   3. HERO / ÚVODNÍ SEKCE
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000000;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    animation: cssHeroSlideshow 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-1 { 
    animation-delay: 0s; 
}

.slide-2 { 
    animation-delay: 5s; 
}

@keyframes cssHeroSlideshow {
    0% { opacity: 0; }
    10% { opacity: 0.35; }
    40% { opacity: 0.35; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 15px;
    animation: heroTextFadeIn 3.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 5rem);
    letter-spacing: clamp(3px, 1.5vw, 6px);
    text-transform: lowercase;
    margin-bottom: 2rem;
    font-weight: 500;
}

.scroll-arrow {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: smoothBounce 3s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.scroll-arrow:hover {
    transform: scale(1.2);
}

@keyframes heroTextFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes smoothBounce {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-8px); 
        opacity: 1; 
    }
}

/* ==========================================================================
   4. VŠEOBECNÉ SEKCE A OBSAH
   ========================================================================== */
.section-block {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 300;
}

/* REALIZACE */
.velke-fotky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.realization-card {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    border-radius: 4px;
}

.realization-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.realization-card img:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

.supplier-note {
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #cccccc;
    background-color: #111111;
    border-top: 1px solid #222222;
}

/* PARTNEŘI */
.partners-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #bbbbbb;
    font-size: 0.98rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.partner-card {
    background-color: #141414;
    border: 1px solid #222222;
    padding: 20px;
    border-radius: 4px;
}

.partner-card h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 300;
    font-size: 1.2rem;
}

.partner-card p {
    font-size: 0.92rem;
    color: #cccccc;
}

.partner-card summary {
    cursor: pointer;
    color: #888888;
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 4px 0;
}

.partner-card summary:hover {
    color: #ffffff;
}

/* KONTAKT */
.contact-details {
    text-align: center;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 14px 0;
}

.contact-details a {
    color: #ffffff;
    text-decoration: underline;
}

/* O NÁS */
.about-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.92)), url('skica-1.jpg') center/cover fixed no-repeat;
    border-top: 1px solid #222222;
}

.about-main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

.about-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.about-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px;
    border-radius: 6px;
}

.about-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 300;
}

.about-item p {
    color: #bbbbbb;
    font-size: 0.95rem;
}

/* ==========================================================================
   5. LIGHTBOX MODALNÍ OKNO
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.94);
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-modal img {
    max-width: 95%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 45px;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

/* ==========================================================================
   6. RESPONSIVITA PRO MOBILNÍ ZAŘÍZENÍ (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000000;
        border-bottom: 1px solid #222222;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .main-nav.open {
        max-height: 300px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 18px;
    }

    .main-nav a {
        font-size: 1.2rem;
    }

    .section-block {
        padding: 50px 0;
    }

    .about-section {
        background-attachment: scroll;
    }

    .velke-fotky-grid, 
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .realization-card img {
        height: 220px;
    }
}