@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
/* ------------- ZÁKLADNÍ NASTAVENÍ ------------- */

:root {
    --color-text-main: #f5f5f5;
    --color-text-muted: #dddddd;
    --color-accent: #c0392b;
    --header-height: 90px;
    --transition-fast: 0.2s ease;
    --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.45);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Merriweather";
    font-weight: 400;
    background-color: #0f0f0f;
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 80%;
    margin-inline: auto;
}

.section {
    padding: 3rem 0;
    position: relative;
    color: whitesmoke;
}

/* opakující se pozadí */
.section-pattern {
    background: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
    url("../img/backround.jpg");
    
    background-repeat: repeat;
    background-size: auto;
}

/* Desing Scrollbar */
::-webkit-scrollbar{
    width: 9px;
}

::-webkit-scrollbar-thumb{
    background-color: #606060c5;
    border-radius: 5px;
}


/* ------------ Titulky a texty ------------ */
.section-title {
    font-family: "Cinzel";
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title--center {
    text-align: center;
}

.section-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

/* ------------- ČERVENÁ LINKA MEZI SEKCEMI ------------- */
.section::after {
    content: "";
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 9rem auto 0 auto;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 44, 21, 0.85),
        transparent
    );
}


/* ------------- NAVBAR ------------- */

.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: var(--header-height);
    z-index: 100;
    padding-top: 0px;
    background: rgba(6, 6, 9, 0.692);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;              
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    display: block;
    height: 70px;          
    width: auto;
    filter: invert(1);  
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    margin-top: 13px;       
}

.nav-logo-text span {
    color: white;
    font-weight: 700;         
    font-size: 0.65rem;    
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;  
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-link {
    color: whitesmoke;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    position: relative;
    padding-block: 0.25rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--color-accent);
    transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}



/* ------------- HAMBURGER MENU na telefonu ------------- */
.nav-toggle {
    display: none;
    width: 36px;
    height: 30px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* animace hamburgeru při otevřeném menu */
.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}





/* ------------- SEKCE LEGENDY ------------- */

.legend-section {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 6rem;              
    min-height: 93vh;
    display: flex;
    align-items: center;             
    position: relative;       
}

/* linka za sekcí*/
.legend-section::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    margin: 0; 
}

.legend-layout {
    max-width: 1000px;
    align-items: center;  
    gap: 4rem;
}

/* TEXT VLEVO */
.legend-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    padding: 4%;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    max-width: 900px; 
    margin: auto;
}

.legend-title {
    font-family: "Cinzel";
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-align: left;
}

.legend-description {
    font-size: 1.13rem;
    line-height: 1.6;
    font-weight: 350;
    color: #cdcdcd;
    text-align: left;
    font-style: italic;
}

.legend-description p {
  margin-bottom: 1em;
}




/* ------------- SEKCE ILUSTRACE ------------- */

.ilustrace-section {
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.ilustrace-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 2rem;
}


.ilustrace-section .section-title {
    color: var(--color-accent);
    text-align: center;
}


.ilustrace-image {
    width: 100%;
    display: flex;
    justify-content: center;
}


.ilustrace-figure {
    display: inline-block;    
    max-width: 100%;
}

.ilustrace-image img {
    width: auto;
    max-width: 100%;
    max-height: 62vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.ilustrace-caption {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: right; 
}


/* SPECIÁLNÍ ROZLOŽENÍ PRO OBRÁZKY NA VÝŠKU */
@media (min-width: 992px) {
    .ilustrace-section.portrait-layout .ilustrace-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4rem;
    }

    .ilustrace-section.portrait-layout .section-title {
        text-align: left;
        margin-bottom: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .ilustrace-section.portrait-layout .ilustrace-image {
        flex: 0 1 55%;
        justify-content: flex-start;
    }

    .ilustrace-section.portrait-layout .ilustrace-image img {
        max-height: 75vh;
        max-width: 100%;
    }
}


/* ------------- SEKCE GALERIE (JAK MÍSTO VYPADÁ DNES?) ------------- */

.gallery-section {
    padding-bottom: 6rem;
}

.gallery-section .section-title {
    color: var(--color-accent);
    text-align: center;
    letter-spacing: 0.15em;
}

.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.gallery-grid {
    column-count: 4;
    column-gap: 1.2rem;

    width: 100%;
    margin: 0 auto;
    max-width: 1350px;

}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #101010;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}



/*------------- SEKCE OHODNOCENÍ -------------**/
.ohodnoceni-section {
    padding-bottom: 3rem;
}


.ohodnoceni-section .section-title {
    color: var(--color-accent);
    text-align: center;
    letter-spacing: 0.1rem;
}


.ohodnoceni-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* FORMULÁŘ */
.ohodnoceni-form {
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ohodnoceni-input {
    width: 100%;
    padding: 1rem 1.3rem;
    border: 1px solid whitesmoke;
    border-radius: 14px;
    background: transparent;
    color: white;
    font-size: 1rem;
}

.ohodnoceni-textarea {
    width: 100%;
    height: 150px;
    min-height: 100px;
    padding: 1rem 1.3rem;
    border: 1px solid whitesmoke;
    border-radius: 14px;
    background: transparent;
    color: white;
    font-size: 1rem;
    resize: vertical;
}

.ohodnoceni-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ohodnoceni-stars {
    display: flex;
    gap: 0.6rem;
    user-select: none;
}

.ohodnoceni-stars span {
    font-size: 2rem;
    color: #ffffff4b;
    cursor: pointer;
    transition: 0.2s;
}


.ohodnoceni-stars span.active {
    color: yellow;
}

.ohodnoceni-submit {
    background: var(--color-accent);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.ohodnoceni-submit:hover {
    transform: scale(1.05);
    background: #e6483ad7;
}

/* ------------- TLAČÍTKO ZPĚT ------------- */
.back-button-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 120px;
}

.back-button {
    font-family: "Cinzel";
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 15px 35px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.25s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    letter-spacing: 1px;
}

.back-button:hover {
    background-color: #c01a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}



/* ------------- FOOTER ------------- */

.site-footer {
    background: #121212;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.3rem 0;
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-muted);
    text-align: center;
}


/* ------------- RESPONZIVITA ------------- */

@media (max-width: 1200px) {
    .container {
        width: 90%;
    }

    .legend-layout {
        gap: 3rem;
        grid-template-columns: 1fr 1.3fr;
    }

    .legend-title {
        font-size: 2.4rem;
    }

    
    .gallery-grid {
        column-count: 3;
    }

}

@media (max-width: 992px) {

    .gallery-grid {
        column-count: 2;
    }

    .nav-toggle {
        display: flex;
        margin-right: 0.25rem;
    }

    .nav-menu {
        position: fixed;
        inset-inline: 0;
        inset-block-start: var(--header-height);
        background: #0f0f0f;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 1.5rem 0 2rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
        z-index: 90;
    }

    .site-header.nav-open .nav-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .ohodnoceni-form {
        width: 100%;
    }

    .ohodnoceni-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .ohodnoceni-stars {
        order: 1;
    }

    .ohodnoceni-submit {
        order: 2;
        width: 40%;
        text-align: center;
    }

    .container {
        width: 100%;
        padding-inline: 1.5rem;
    }

    .main-nav {
        padding-inline: 0.75rem;
    }

    .legend-section {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2.5rem;
        min-height: auto;
    }

    .legend-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .legend-title {
        font-size: 2.1rem;
        text-align: left;
    }

    .legend-description {
        font-size: 0.95rem;
    }

    .ilustrace-section .section-title {
        text-align: center;
    }

    .ilustrace-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .ilustrace-image img {
        max-height: 50vh;
    }

    
    .gallery-grid {
        column-count: 1;
    }

    .back-button{
    font-size: 1.2rem;
    padding: 10px 30px;
    }

}

/* hodně malé telefony */
@media (max-width: 480px) {

    .nav-logo {
        font-size: 0.85rem;
    }

    .nav-menu {
        font-size: 0.9rem;
    }

    .legend-title {
        font-size: 1.8rem;
    }

    .ilustrace-image img {
        max-height: 40vh;
    }
}
