@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";
    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 KDOJSEM ------------- */

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

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

.kdojsem-layout {
    max-width: 1400px;
    align-items: center;
    display: flex; 
    justify-content: center;
    gap: 5rem;
}


/* TEXT VPRAVO */
.kdojsem-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.kdo-jsem-podtitle{
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: left;
    color: #dfdfdf;
}


.kdojsem-description {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-muted);
    text-align: left;
}

/* FOTO VLEVO */
.kdojsem-photo {
    width: 100%;
    min-width: 30%;
    max-width: 40%;
   overflow: hidden;
}

.kdojsem-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 100%;
}



/* ------------- SEKCE PROGRAMY ------------- */

.programy-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.programy-section .section-title {
    font-size: 2.6rem;
    margin-bottom: 4rem;
    letter-spacing: 0.08em;
    color: var(--color-accent);
}

.programy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    justify-items: center;
}

.program-card {
    background-color: rgba(15, 15, 15, 0.784);
    border-radius: 10px;
    width: 100%;
    max-width: 280px;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.program-name {
    font-size: 1.3rem;
    font-weight: 300;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: whitesmoke;
}

.program-logo-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;       
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.program-logo {
    max-width: 60%;
    max-height: 70%;
    object-fit: contain;
}


/* ------------- SEKCE VIDEO ------------- */

.video-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.video-title {
    margin-bottom: 4rem;
    color: var(--color-accent);
    font-size: 2.9rem;
}

.video-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 4rem;
    max-width: 1400px;
}

/* Video vlevo */
.video-wrapper {
    flex: 1;
    max-width: 55%;
    border-radius: 7px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Text vpravo */
.video-text {
    flex: 1;
    max-width: 50%;
    color: var(--color-text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 300;
}

.video-text p {
    text-align: left;
}

.video-text p a{
    text-decoration: none;
    color: whitesmoke;
}

.video-text p a :hover{
    text-decoration: underline;
}



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

.back-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: #eeeeee;
    padding: 14px 35px;
    font-size: 1.3rem;
    font-weight: 300;
    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: 88%;
    }

    .kdojsem-layout {
        gap: 3rem;
    }
    .programy-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .video-layout {
        gap: 3rem;
    }
}


@media (max-width: 900px) {

    /* KDO JSEM → sloupec, text nad fotkou */
    .kdojsem-layout {
        flex-direction: column-reverse;
        text-align: center;
    }

    .kdojsem-text {
        align-items: center;
    }

    .kdojsem-title,
    .kdojsem-description {
        text-align: center;
    }

    .kdojsem-photo {
        max-width: 55%;
        margin-inline: auto;
    }

    .programy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .video-wrapper {
        max-width: 100%;
    }

    .video-text {
        max-width: 100%;
        text-align: center;
    }

    .video-text p {
        text-align: center;
    }
}


@media (max-width: 768px) {

    .container {
        width: 90%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        inset-inline: 0;
        top: var(--header-height);
        background: rgba(6, 6, 9, 0.97);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        display: none;
    }

    .site-header.nav-open .nav-menu {
        display: flex;
    }

    .nav-menu .nav-link {
        font-size: 0.95rem;
    }

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

    .kdojsem-title {
        font-size: 2.2rem;
    }

    .kdojsem-description {
        font-size: 1.05rem;
    }

    .programy-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        max-width: 260px;
        margin-inline: auto;
    }

    .video-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .video-text {
        font-size: 1.05rem;
    }


    .back-button-wrapper {
        margin-top: 60px;
    }

    .back-button {
        width: 100%;
        max-width: 320px;
    }
}


@media (max-width: 480px) {

    .kdojsem-title {
        font-size: 2rem;
    }

    .kdojsem-description {
        font-size: 1rem;
    }

    .program-card {
        padding: 1.3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .video-text {
        font-size: 1rem;
    }

    .back-button {
        font-size: 1.05rem;
        padding: 14px 24px;
    }
}
