:root {
    --bg-main: #1F120C;
    --gold: #deb853;
    --text: #f0e6d2;
    --orange: #c76e2b;
    --bronze-btn: #a0781a;
    --bronze-btn-hover: #806015;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text);
    line-height: 1.6;
    /* Fotka na pozadí pro desktop */
    background-image: url('img/logo/logo.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 85%;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 18, 12, 0.85);
    z-index: -1;
}

h1, h2, h3, h4, h5 {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

h1, h2, h3, h5 {
    text-align: center;
}

h4 {
    text-align: left;
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

header {
    background-color: rgba(31, 18, 12, 0.95);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(222, 184, 83, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-text a {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.main-menu ul {
    padding: 0;
    margin: 15px 0 0 0;
    list-style: none;
}

.main-menu li {
    display: inline-block;
    margin: 0 15px;
}

.main-menu a {
    color: #bbb;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-menu a:hover {
    color: var(--gold);
}

.burger-menu {
    display: none;
    font-size: 30px;
    color: var(--gold);
    cursor: pointer;
    text-align: center;
    padding: 10px;
}

main {
    max-width: 1000px;
    margin: 50px auto;
    padding: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(222, 184, 83, 0.2);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content > *, .hero > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.text-content > *:nth-child(1) { animation-delay: 0.1s; }
.text-content > *:nth-child(2) { animation-delay: 0.2s; }
.text-content > *:nth-child(3) { animation-delay: 0.3s; }
.text-content > *:nth-child(4) { animation-delay: 0.4s; }
.text-content > *:nth-child(5) { animation-delay: 0.5s; }
.text-content > *:nth-child(n+6) { animation-delay: 0.6s; }

.text-content ul {
    list-style: none;
    padding: 0;
}

.text-content li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
}

.text-content li::before {
    content: "•";
    color: var(--gold);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
    line-height: 1.6;
    margin-top: -2px;
}

.text-content strong {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.05rem;
    display: inline;
}

.contact-link, .email-link, .caption a {
    color: var(--gold);
    font-weight: bold;
    cursor: pointer;
}

.contact-link:hover, .email-link:hover, .caption a:hover {
    color: var(--orange);
    text-decoration: underline;
}

.contact-btn, .button {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 10px;
    background-color: var(--bronze-btn);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
    text-align: center;
    border: none;
}

.contact-btn:hover, .button:hover {
    background-color: var(--bronze-btn-hover);
    color: white;
}

.contact-box {
    width: 90%;
    max-width: 600px;
    margin: 30px auto;
    padding: 15px;
    border: 1px solid rgba(222, 184, 83, 0.3);
    border-radius: 15px;
    text-align: center;
}

.services-container, .rozcestnik-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.rozcestnik-container {
    width: 96%;
    max-width: 1600px;
    margin: 50px auto;
}

.service-box {
    background: rgba(20, 10, 5, 0.7);
    border: 1px solid rgba(222, 184, 83, 0.3);
    border-radius: 15px;    padding: 25px;
    width: 280px;
    text-align: center;
    transition: border-color 0.3s;
}

.rozcestnik-container .service-box {
    width: 31%;
    min-width: 250px;
    height: auto;
    display: block;
}

.service-box:hover {
    border-color: var(--gold);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(222, 184, 83, 0.2);
    background: rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: filter 0.5s;
    filter: brightness(0.9);
    animation: none;
    opacity: 1;
}

.gallery-item:nth-child(odd) { animation-delay: 0.2s; }
.gallery-item:nth-child(even) { animation-delay: 0.4s; }

.gallery-item:hover img {
    filter: brightness(1.1);
    cursor: pointer;
}

.caption {
    text-align: center;
    color: var(--gold);
    font-size: 0.9rem;
    padding: 10px;
}

.litter-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--gold);
}

.litter-section:last-of-type {
    border-bottom: none;
}

.litter-title {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    margin-top: 50px;
    border-top: 1px solid rgba(222, 184, 83, 0.1);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(222, 184, 83, 0.2);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--gold);
    font-size: 50px;
    cursor: pointer;
}

a.bily-odkaz {
    color: var(--text) !important;
    text-decoration: none !important;
}

a.bily-odkaz h3 {
    color: var(--gold) !important;
    font-weight: bold !important;
}

a.bily-odkaz:hover {
    color: var(--orange) !important;
}

a.bily-odkaz:hover h3 {
    color: var(--gold) !important;
}

.transport-link {
    color: var(--gold);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.transport-link:hover {
    color: var(--orange);
    text-decoration: underline;
}


@media (max-width: 768px) {
  
    body {
        background-image: none !important;
    }

    .logo-text {
        display: none;
    }
    .burger-menu {
        display: block;
    }
    .main-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-main);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
        margin: 0;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
        z-index: 1000;
    }
    .main-menu ul.active {
        display: flex;
    }
    .main-menu ul li {
        text-align: center;
        border-bottom: 1px solid rgba(222, 184, 83, 0.2);
        width: 100%;
        margin: 0;
    }
    .main-menu ul li a {
        display: block;
        padding: 15px;
    }


    img, 
    main, 
    .text-content > *, 
    .hero > *, 
    .gallery-item {
        opacity: 1 !important;
        animation: none !important;
    }
}

@media (max-width: 600px) {
    main {
        padding: 10px;
        margin: 20px 5px;
    }
    .text-content {
        padding: 0;
    }
    .contact-item {
        width: 90%;
        margin: 0 auto;
    }
    .contact-btn {
        width: 100%;
        padding: 10px 5px;
    }
    .contact-link {
        font-size: 1rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .rozcestnik-container .service-box {
        width: 100%;
    }
}