/*
 * Doplnky k pôvodnému dizajnu pre WordPress verziu:
 * odkazy-tlačidlá, jednotné orezanie fotiek, galéria, lightbox,
 * podstránky (/prace, projekt, blog), rezervačný formulár.
 */

/* ---------- Prístupnosť ---------- */
.skipLink{
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .75rem 1rem;
    background: var(--hneda);
    color: var(--cierna);
    font-family: font-bold;
}

.skipLink:focus{
    left: 1rem;
    top: 1rem;
}

body{
    color: var(--biela);
}

/* ---------- Tlačidlá ako odkazy (pôvodne <button>) ---------- */
a.infoButton{
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

#homePage a.infoButton:hover,
#homePage a.infoButton:focus{
    color: var(--biela);
}

/* ---------- Fotky drží pôvodný pomer strán, nech nahrá klientka čokoľvek ---------- */
#homePage .backgroundPhoto{
    aspect-ratio: 1026 / 1080;
    object-fit: cover;
    object-position: center top;
}

#aboutPage .rowAboutPage .aboutPhoto{
    aspect-ratio: 466 / 751;
    object-fit: cover;
}

#navigation .rowNavigation .navbar-brand img{
    width: auto;
    object-fit: contain;
}

/* ---------- Galéria – dlaždice ---------- */
.albumLink{
    position: relative;
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

.albumPhoto{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .8s ease, filter .8s ease;
}

.albumLink:hover .albumPhoto,
.albumLink:focus-visible .albumPhoto{
    transform: scale(1.04);
    filter: brightness(.85);
}

.albumLink:focus-visible{
    outline: 2px solid var(--hneda);
    outline-offset: 3px;
}

.albumCount{
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    padding: .2rem .65rem;
    background: rgba(20, 20, 20, .75);
    color: var(--hneda);
    font-family: font-bold;
    font-size: .95rem;
    border-radius: 2rem;
}

.albumTitle{
    margin: .6rem 0 0;
    font-family: font-regular;
    font-size: 1rem;
    color: var(--biela);
}

.albumTitle a{
    color: inherit;
    text-decoration: none;
}

.albumTitle a:hover{
    color: var(--hneda);
}

@media (min-width: 992px){
    #galleryPage .rowGalleryPageAlbums{
        row-gap: 1.5rem;
    }
}

@media (max-width: 991.98px){
    #galleryPage .rowGalleryPageAlbums .col-6{
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px){
    #galleryPage .rowGalleryPageAlbums{
        --bs-gutter-x: 1rem;
    }

    #galleryPage .rowGalleryPageAlbums .col-6{
        margin-bottom: 1rem;
    }
}

/* Tlačidlo „Zobraziť všetky práce“ */
.rowGalleryMore{
    margin-top: 2.5rem;
}

.moreButton{
    display: inline-block;
    padding: 1rem 2rem;
    border: 4px solid var(--hneda);
    color: var(--biela);
    font-family: font-extraLight;
    font-size: 1.4rem;
    text-decoration: none;
    transition: 1s;
}

.moreButton:hover,
.moreButton:focus{
    color: var(--biela);
    background: var(--hneda);
    transform: scale(.95);
    transition: .5s;
}

/* ---------- Kontakt ---------- */
#contactPage .contactElement a{
    color: inherit;
    text-decoration: none;
    transition: color .4s;
}

#contactPage .contactElement a:hover{
    color: var(--hneda);
}

#contactPage .rowContactForm{
    margin-top: 10vh;
}

#contactPage .rowContactForm .name{
    font-family: font-black;
    font-size: 3.2rem;
    color: var(--biela);
}

#contactPage .rowContactForm .description{
    font-family: font-extraLight;
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--biela);
    width: 90%;
    margin-top: 1.5rem;
}

.kopAdminNote{
    padding: 1rem;
    border: 1px dashed var(--hneda);
    color: var(--hneda);
    font-family: font-regular;
}

/* ---------- Rezervačný formulár (Contact Form 7) ---------- */
.kopForm{
    font-family: font-regular;
    color: var(--biela);
}

.kopForm__row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.kopForm__field{
    display: block;
    margin-bottom: 1.5rem;
}

.kopForm__field > span:first-child{
    display: block;
    margin-bottom: .4rem;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--siva);
}

.kopForm input[type="text"],
.kopForm input[type="email"],
.kopForm input[type="tel"],
.kopForm input[type="date"],
.kopForm select,
.kopForm textarea{
    width: 100%;
    padding: .7rem 0;
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--siva);
    border-radius: 0;
    color: var(--biela);
    font-family: font-extraLight;
    font-size: 1.25rem;
    transition: border-color .4s;
    color-scheme: dark;
}

.kopForm select{
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fac882' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .25rem center;
    background-size: 14px;
    padding-right: 2rem;
}

.kopForm select option{
    background: rgb(30, 30, 30);
    color: var(--biela);
}

.kopForm textarea{
    min-height: 8rem;
    resize: vertical;
}

.kopForm input::placeholder,
.kopForm textarea::placeholder{
    color: rgba(255, 255, 255, .3);
}

.kopForm input:focus,
.kopForm select:focus,
.kopForm textarea:focus{
    outline: none;
    border-bottom-color: var(--hneda);
}

.kopForm__consent{
    margin: .5rem 0 1.5rem;
    font-family: font-extraLight;
    font-size: 1rem;
    color: var(--biela);
}

.kopForm__consent label{
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    cursor: pointer;
}

.kopForm__consent input[type="checkbox"]{
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: .2rem;
    accent-color: var(--hneda);
}

.kopForm .infoButton,
.kopForm input[type="submit"]{
    display: inline-block;
    min-width: 50%;
    padding: 1rem 2rem;
    border: none;
    background-color: var(--hneda);
    color: var(--biela);
    font-family: font-extraLight;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 1s;
}

.kopForm input[type="submit"]:hover{
    transform: scale(.95);
    transition: .5s;
}

.kopForm input[type="submit"]:disabled{
    opacity: .6;
    cursor: wait;
}

/* Hlášky Contact Form 7 */
.kopCf7 .wpcf7-form-control-wrap{
    display: block;
    position: relative;
}

.kopCf7 .wpcf7-not-valid-tip{
    display: block;
    margin-top: .35rem;
    color: #ff9b8a;
    font-size: .9rem;
}

.kopCf7 .wpcf7-response-output{
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem;
    border: 2px solid var(--hneda);
    font-family: font-regular;
    color: var(--biela);
}

.kopCf7.invalid .wpcf7-response-output,
.kopCf7.failed .wpcf7-response-output,
.kopCf7.unaccepted .wpcf7-response-output,
.kopCf7.spam .wpcf7-response-output{
    border-color: #ff9b8a;
}

.kopCf7 .wpcf7-response-output:empty,
.kopCf7.init .wpcf7-response-output{
    display: none;
}

.kopCf7 .wpcf7-spinner{
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    vertical-align: middle;
    border: 3px solid var(--siva);
    border-top-color: var(--hneda);
    border-radius: 50%;
    visibility: hidden;
    animation: kopSpin 1s linear infinite;
}

.kopCf7.submitting .wpcf7-spinner{
    visibility: visible;
}

.kopCf7 .screen-reader-response,
.screen-reader-text{
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

@keyframes kopSpin{
    to{ transform: rotate(360deg); }
}

@media (max-width: 767.98px){
    .kopForm__row{
        grid-template-columns: 1fr;
    }

    #contactPage .rowContactForm{
        margin-top: 4rem;
    }

    #contactPage .rowContactForm .description{
        width: 100%;
        margin-bottom: 2rem;
    }

    .kopForm input[type="submit"]{
        width: 100%;
    }
}

/* ---------- Podstránky (/prace, projekt, blog, 404) ---------- */
.subPage{
    width: 100%;
    min-height: 60vh;
}

.subPage .rowSubPageHead{
    margin-top: 8vh;
    margin-bottom: 3rem;
}

.subPage .name{
    font-family: font-black;
    width: 100%;
    font-size: 4.5rem;
    color: var(--biela);
}

.subPage .description{
    font-family: font-extraLight;
    color: var(--biela);
    width: 90%;
    margin-top: 1.5rem;
    line-height: 1.3;
    font-size: 2rem;
}

.subPage .positionName{
    font-family: font-extraLight;
    font-size: 4rem;
    color: var(--biela);
}

.subPage .infoButton{
    display: inline-block;
    min-width: 30%;
    padding: 1rem 2rem;
    margin-top: 2rem;
    border: none;
    background-color: var(--hneda);
    color: var(--biela);
    font-family: font-extraLight;
    font-size: 1.6rem;
    text-align: center;
    text-decoration: none;
    transition: 1s;
}

.subPage .infoButton:hover{
    color: var(--biela);
    transform: scale(.9);
    transition: .5s;
}

.backLink{
    display: inline-block;
    margin-bottom: 2rem;
    font-family: font-regular;
    font-size: 1rem;
    color: var(--siva);
    text-decoration: none;
    transition: color .4s;
}

.backLink:hover{
    color: var(--hneda);
}

.workFilter{
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2.5rem;
}

.workFilter__item{
    padding: .5rem 1.2rem;
    border: 2px solid var(--siva);
    border-radius: 2rem;
    color: var(--biela);
    font-family: font-regular;
    font-size: 1rem;
    text-decoration: none;
    transition: .4s;
}

.workFilter__item:hover{
    color: var(--biela);
    border-color: var(--hneda);
}

.workFilter__item.is-active{
    border-color: var(--hneda);
    background: var(--hneda);
    color: var(--cierna);
}

.rowWorks{
    row-gap: 1.5rem;
}

.rowWorks .workTile[hidden]{
    display: none;
}

.worksEmpty{
    margin-top: 1rem;
}

.projectCats{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.projectCats a{
    color: var(--hneda);
    font-family: font-regular;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

.rowSubPageCta{
    margin-top: 6rem;
}

.rowSubPageCta .name{
    font-size: 3rem;
}

/* Blog */
.rowPosts{
    row-gap: 2.5rem;
}

.postCard__link{
    display: block;
    color: var(--biela);
    text-decoration: none;
}

.postCard__image{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: filter .6s;
}

.postCard__link:hover .postCard__image{
    filter: brightness(.85);
}

.postCard__date{
    display: block;
    margin-bottom: .5rem;
    font-family: font-regular;
    font-size: .9rem;
    color: var(--hneda);
}

.postCard__title{
    font-family: font-bold;
    font-size: 1.6rem;
    color: var(--biela);
    transition: color .4s;
}

.postCard__link:hover .postCard__title{
    color: var(--hneda);
}

.postCard__excerpt{
    font-family: font-extraLight;
    font-size: 1.1rem;
    color: var(--biela);
}

.postHero{
    display: block;
    width: 100%;
    height: auto;
    margin: 2rem 0;
}

.entryContent{
    margin-top: 2rem;
    font-family: font-extraLight;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--biela);
}

.entryContent h2,
.entryContent h3,
.entryContent h4{
    margin: 2.5rem 0 1rem;
    font-family: font-bold;
    color: var(--biela);
}

.entryContent strong,
.entryContent b{
    font-family: font-bold;
    font-weight: normal;
}

.entryContent a{
    color: var(--hneda);
}

.entryContent img{
    max-width: 100%;
    height: auto;
}

.entryContent blockquote{
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--hneda);
    font-size: 1.5rem;
}

.pagination-wrap{
    margin-top: 3rem;
    font-family: font-regular;
}

.pagination-wrap .nav-links{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span{
    color: var(--biela);
    text-decoration: none;
}

.pagination-wrap .current{
    color: var(--hneda);
}

@media (max-width: 767.98px){
    .subPage .rowSubPageHead{
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .subPage .positionName{
        font-size: 1.8rem;
    }

    .subPage .infoButton{
        display: block;
        width: 100%;
        font-size: 1.3rem;
    }

    .rowWorks{
        --bs-gutter-x: 1rem;
        row-gap: 1rem;
    }

    .workFilter{
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .5rem;
        margin-bottom: 1.5rem;
        scrollbar-width: none;
    }

    .workFilter::-webkit-scrollbar{
        display: none;
    }

    .workFilter__item{
        flex: 0 0 auto;
    }

    .rowSubPageCta{
        margin-top: 4rem;
    }

    .moreButton{
        display: block;
        font-size: 1.2rem;
    }

    .entryContent{
        font-size: 1.1rem;
    }
}

/* ---------- Pätička ---------- */
footer .rowFooterPage .footerPrivacy{
    margin-top: 1rem;
}

footer .rowFooterPage .footerPrivacy a{
    color: var(--siva);
}

/* ---------- Lightbox ---------- */
.kopLightbox{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 12, .96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
    -webkit-tap-highlight-color: transparent;
}

.kopLightbox.is-open{
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease;
}

.kopLightbox__figure{
    position: relative;
    margin: 0;
    max-width: 92vw;
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kopLightbox__img{
    display: block;
    max-width: 92vw;
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .5);
    transition: opacity .3s ease, transform .3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.kopLightbox.is-loading .kopLightbox__img{
    opacity: 0;
    transform: scale(.98);
}

.kopLightbox__caption{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    padding: 0 4rem;
    font-family: font-regular;
    font-size: 1rem;
    color: var(--siva);
    text-align: center;
    pointer-events: none;
}

.kopLightbox__caption > *{
    pointer-events: auto;
}

.kopLightbox__title{
    color: var(--biela);
}

.kopLightbox__project{
    color: var(--hneda);
    text-decoration: none;
}

.kopLightbox__project:hover{
    color: var(--hneda);
    text-decoration: underline;
}

.kopLightbox__btn{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--biela);
    cursor: pointer;
    transition: background .3s, color .3s;
}

.kopLightbox__btn:hover,
.kopLightbox__btn:focus-visible{
    background: var(--hneda);
    color: var(--cierna);
    outline: none;
}

.kopLightbox__btn svg{
    width: 1.5rem;
    height: 1.5rem;
}

.kopLightbox__close{
    top: 1.25rem;
    right: 1.25rem;
}

.kopLightbox__prev{
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.kopLightbox__next{
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.kopLightbox__spinner{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid var(--siva);
    border-top-color: var(--hneda);
    border-radius: 50%;
    opacity: 0;
    animation: kopSpin 1s linear infinite;
    transition: opacity .2s;
    pointer-events: none;
}

.kopLightbox.is-loading .kopLightbox__spinner{
    opacity: 1;
}

body.kopLightbox-open{
    overflow: hidden;
}

@media (max-width: 767.98px){
    .kopLightbox__figure,
    .kopLightbox__img{
        max-width: 100vw;
        max-height: calc(100vh - 9rem);
        max-height: calc(100dvh - 9rem);
    }

    .kopLightbox__btn{
        width: 2.75rem;
        height: 2.75rem;
    }

    .kopLightbox__close{
        top: .75rem;
        right: .75rem;
    }

    .kopLightbox__prev,
    .kopLightbox__next{
        top: auto;
        bottom: .75rem;
        transform: none;
    }

    .kopLightbox__prev{
        left: .75rem;
    }

    .kopLightbox__next{
        right: .75rem;
    }

    .kopLightbox__caption{
        bottom: 1.5rem;
        padding: 0 4rem;
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce){
    .kopLightbox,
    .kopLightbox__img,
    .albumPhoto{
        transition: none;
    }
}

/* Kontakty na malých mobiloch – dlhý e-mail sa zmestí do riadku */
@media (max-width: 575.98px){
    #contactPage .rowContactPage .contactElement{
        width: 100%;
        font-size: 1.15rem;
        overflow-wrap: anywhere;
    }
}
