/*
Theme Name: Custom theme
*/

/* === GLOBAL === */
body {
    font-family: "Rubik", sans-serif;
    margin: 0;
    padding: 0;

}

body, a{
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" stroke="%23000000" fill="%23000000" width="15px" height="15px" viewBox="0 0 10.04 10.04"><circle cx="5.02" cy="5.02" r="4.52"/></svg>') 10 10, auto;
    color: inherit;
    text-decoration: none;
}

.link-icon {
    width: 20px;
    height: 20px;
}

.site-content{
    margin-top: 78px;
}

.site-content > div {
    @media (min-width: 768px){
        min-height: calc(100vh - 79px - 173px);
    }
}

.site-content .slider-thumb {
    min-height: auto;
}

.container {
    @media (min-width: 768px) {
        max-width: 88%;
    }
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 2000;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s ease-in-out;

    @media (min-width: 768px) {
        padding-inline: 0;
    }
}

.header.scrolled {
  background: #fff;
}

.header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header img {
    height: 22px;
    transition: transform 0.3s ease;
}

/* === DESKTOP MENU === */
.header-items {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    z-index: 3000; /* nad carousel */
}

.header-items a {
    text-decoration: none;
    padding: 0 17px;
    font-size: 19px;
    font-weight: 500;
    color: #000;
    transition: color 0.3s ease;
    position: relative;
}

.header-items a:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 17px;
    background: #000;
    height: 3px;
    width: calc(100% - 34px);
    visibility: hidden;
}

@media (min-width: 768px) {
    .header-items li:last-child a {
        padding-right: 0;
    }
}

.header-items li:last-child a:after {
     width: calc(100% - 17px);
}

.header-items li:hover a:after {
    visibility: visible;
}

/* === HAMBURGER === */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3100; /* nad všetkým */
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === MOBILNÉ MENU === */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header {
        padding: 20px 0px;
    }

    .header-items {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 60%;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 3000;
    }

    .header-items.active {
        right: 0;
    }

    .header-items a {
        font-size: 22px;
        color: #000;
    }

    /* Hamburger animácia na X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translateY(6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translateY(-6px);
    }
}

@media (max-width: 768px) {
    .button-holder{
        width: 100%;
        display: flex;
        justify-content: end;
        height: 24px;
        align-items: anchor-center;
    }
}

/* === OVERLAY PRE MOBILNÉ MENU === */
body.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 11;
}

body:not(.menu-open)::after {
    opacity: 0;
    pointer-events: none;
}

/* === FOOTER === */
.footer {
    background: #F0F0F0;
    padding: 22px 0;
    font-size: 17px;
    font-weight: 300;
    line-height: 17px;
}

.footer img {
    margin-bottom: 13px;
}

.footer p {
    margin: 0;
}

.footer .icon-wrapper {
    margin-top: 11px;
    margin-bottom: 11px;
}

.footer .footer-link {
    margin-right: 6px;
}

.footer .link-icon {
    margin: 0;
    width: 20px;
    height: 20px;
}

.link-fb{
    margin-right: 6px;
}

.footer .text-spacer {
    margin-bottom: 11px;
}

.footer .copyright {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

/* === CAROUSEL (len pre .hp-carousel) === */
.hp-carousel {
    min-height: 100vh !important;
    margin-top: -78px;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Každý slide */
.hp-carousel .carousel-item {
    height: 100vh;
}

/* Obrázky – plná výška, zachovanie pomeru strán */
.hp-carousel .carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* zabezpečí, že sa nedeformuje */
    transform: scale(1);
    transition: transform 0.6s ease-out;
}

/* Indikátory */
.hp-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: 1px solid #fff;
    background: transparent;
}

.hp-carousel .carousel-indicators [data-bs-target].active {
    background: #fff;
}

/* Zoom animácia – len pre aktívny slide */
@keyframes hpZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hp-carousel .carousel-item.active img {
    animation: hpZoomIn 8s forwards;
}

/* === TEXT BOX === */
.text-box {
    padding-top: 30px;
}

.text-box-title {
    font-size: 24px;
}

.text-box-section-title {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 17px;
    display: flex;
    justify-content: space-between;
}

.text-box p {
    font-size: 17px;
    font-weight: 300;
}

.text-box-space {
    margin-bottom: 30px;
}

.text-title {
    position: relative;
}

.text-title:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #000;
    left: 0;
    bottom: 0;
    visibility: hidden;
}

.text-title-number {
    visibility: hidden;
}

.text-box-space:hover .text-title:after,
.text-box-space:hover .text-title-number {
    visibility: visible;
}

@media (max-width: 1200px) {
    .text-box-space {
        margin-bottom: 40px;
    }
}
@media (max-width: 768px) {
    .text-box-space {
        margin-bottom: 45px;
    }
}

/* === PROJECTS === */
.projects {
    padding-top: 30px;
}

.item-block{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.project-title {
    font-size: 19px;
    font-weight: 400;
    margin: 0;
}

.project-img-wrapper {
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.project-img-wrapper img {
    transition: transform .4s;
}

.project-img-wrapper:hover img {
    transform: scale(1.05);
}

.projects a {
    text-decoration: none;
    color: #000;
    width: 100%;
    margin-bottom: 30px;
}

.project-img-wrapper:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #fff;
    opacity: 0;
    transition: opacity .4s ease-in-out;
}

.projects-item:hover .project-img-wrapper:after {
    opacity: .4;
}

.project-spacer {
    @media (max-width: 992px) {
        margin-bottom: 45px;
    }
}

/* === ABOUT === */
.about {
    margin-top: 78px;
    padding-top: 30px;
}

.about-img {
    width: 100%;

    @media (min-width: 1200px){
        margin-bottom: 100px;
    }
}

.about-text {
    font-size: 24px;
    font-weight: 500;
    line-height: 34px;

    @media (min-width: 768px) {
        margin-top: 40px;
    }

    @media (max-width: 768px) {
            margin-top: 138px;
            margin-bottom: 138px;
            line-height: 30px;
        }
}

/* === CONTACT === */
.contact {
    margin-top: 78px;
    font-size: 19px;
    font-weight: 300;
    padding-top: 30px;
}

.contact-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 32px;
}

.contact-subtitle {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 17px;
}

.contact-text {
    margin-bottom: 49px;
    font-size: 17px;
}

.social-links {
    width: 135px;
}

.social-links a {
    text-decoration: none;
    color: #000;
}

.social-links a p {
    margin: 0;
}

/* Cookie bar */
.cookie-bar {
    position: fixed;
    bottom: 26px;
    right: 48px;
    z-index: 10;
    background: rgba(255, 255, 255, .8);
    display: flex;
    max-width: 548px;

    @media (max-width: 768px) {
        right: 0;
    }

    @media (max-width: 548px) {
        display: block;
        padding: 0 8px;
    }
}

.cookie-actions {
    display: flex;
    flex-direction: column;
}

.cookie-bar .btn {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    padding: 12px 31px;
    border-radius: 0;
    height: 50%;
}

.btn-accept,
 .btn-accept:hover {
    background: rgba(0, 0, 0, .8);
    color: #fff;
}

.cookie-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 25px;
}
.cookie-text-wrapper p {
    margin: 0;
}