﻿@font-face {
    font-family: 'Inter';
    src: url('./fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html {
    overflow-y: scroll;
}

 :root {
     --primary-color: #42A124; 
     --secondary-color: #37871E;
     --text-color: #1f2937;
     --bg-color: #ffffff;
     --light-bg: #f3f4f6;
     --min-h3-text: 0.9rem;
     --max-h3-text: 1.2rem;
     --min-p-text: 0.75rem;
     --max-p-text: 1rem;
     --head-pad-top-bot: 0.5rem;
     --radius: 8px;
     --shadow: 0 4px 8px rgba(150,150,150,0.3);
 }

 body {
     font-family: 'Inter', sans-serif;
     line-height: 1.6;            
     color: var(--text-color);
     background-color: var(--bg-color);
     margin: 0;
     padding: 0;
     
 }

 header {
     background: var(--bg-color);
     padding: var(--head-pad-top-bot) 20%;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-bottom: 3px solid #e5e7eb;
 }

 h3 {
     margin-top: 0;
     margin-bottom: 1.5rem;
     font-size: clamp(var(--min-h3-text), 5vw, var(--max-h3-text));
     font-weight: 800;
 }
 
 p {
     font-size: clamp(var(--min-p-text), 4vw, var(--max-p-text));
 }


 .link {
     color: var(--primary-color);
 }
 .link:hover {
     color: var(--secondary-color);
 }

 .logo {
     font-weight: 600;
     font-size: 1.5rem;
     color: var(--primary-color);
 }

 .logo img {
     width: 150px;
     height: auto;
 }

 nav a {
     margin-left: 20px;
     text-decoration: none;
     color: var(--text-color);
     font-size: 1.1rem;
     font-weight: 800;
 }

 nav a:hover {
     color: var(--primary-color);
 }

 #menu-toggle {
     display: none;
 }
 
 .menu-button {
     display: none;
 }

 .menu-icon {
    display: none;
}

 .left-bg,
 .right-bg {
     position: fixed;
     top: 0;
     width: 20%;
     height: 100vh;
 
     background-image: url("leaves.png");
     background-repeat: repeat-y;
     background-size: 100rem auto;
 
     z-index: -1;
 }
 
 .left-bg {
     left: 0;
     mask-image: linear-gradient(to right, black 0%, transparent 100%);
 }
 
 .right-bg {
     right: 0;
     mask-image: linear-gradient(to left, black 0%, transparent 100%);
 }

.hero {
    padding: 2rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    border-radius: var(--radius);
}

.hero h1 {
    margin-top: 0rem;
    font-size: 2rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: left;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(0px);
    background-color: var(--secondary-color);
}

.content {
    padding: 0rem 20%;
    display: grid;
    grid-template-columns: repeat(auto-fit, (300px, 1fr));
    gap: 1rem;
}

.card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--radius);
}

.card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cardex form {
    flex: 1;
}

.cardex input {
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.cardex {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius);
}

.card00 {
    flex: 8;
}

.card01 {
    flex: 1;
}

.card02 {
    flex: 1;
}

.gallery {
    position: relative;
}

.gallery > input {
    display: none;
}

/* Galéria */
.thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    
    gap: 15px;
}

.thumbnails img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;            
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.thumbnails img:hover {
    transform: scale(1.03);
}


/* Popup */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;

    background: rgba(0, 0, 0, 0.9);

    align-items: center;
    justify-content: center;
}

#img1:checked ~ .popup1,
#img2:checked ~ .popup2,
#img3:checked ~ .popup3,
#img4:checked ~ .popup4,
#img5:checked ~ .popup5,
#img6:checked ~ .popup6,
#img7:checked ~ .popup7{
    display: flex;
}

/* Veľký obrázok */
.popup img {
    max-width: 80vw;
    max-height: 85vh;

    object-fit: contain;
    border-radius: var(--radius);

    position: relative;
    z-index: 2;
}

/* Šípky */
.arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    color: white;
    font-size: 50px;
    font-weight: bold;

    cursor: pointer;
    z-index: 3;

    padding: 20px;
}

.arrow:hover {
    color: #aaa;
}

.arrow.left {
    left: 30px;
}

.arrow.right {
    right: 30px;
}

/* Kliknutie na pozadie zatvorí obrázok */
.background {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.kontakt-text {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.kontakt-text h3 {
    margin-bottom: 0rem;
    font-size: 1.5rem;
}

.kontakt-text ul {
    display: inline-block;
    margin-top: 0rem;
}

.kontakt-mapa {
    flex: 1;
    min-width: 200px;
    height: 400px;
}

.kontakt-mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.kontakt-text a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.kontakt-text a:hover {
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Responzivita */
@media (max-width: 1800px) {

    header {        
        padding: var(--head-pad-top-bot) 15%;
    }

    .content {
        padding: 0rem 15%;
    }     
}

@media (max-width: 1600px) {

    header {        
        padding: var(--head-pad-top-bot) 12.5%;
    }

    .content {
        padding: 0rem 12.5%;
    }    
}

@media (max-width: 1330px) {

    header {
        padding: var(--head-pad-top-bot) 10%;
    }

    .content {
        padding: 0rem 10%;
    }    
}

@media (max-width: 1200px) {
    header {
        position: relative;
        z-index: 1000;
    }
    
    .card img {
        width: 100px;
        height: 100px;
    }

    /* ☰ MENU */
    .menu-button {
        display: block;
        cursor: pointer;
        color: var(--text-color);
        font-size: 1.4rem;
        font-weight: 800;
    }

    .menu-button:hover {
        color: var(--primary-color);
    }
        
    header nav {
        display: none;
        margin-top: 0.5rem;
        position: absolute;
        z-index: 1000;
        top: 65%;
        right: 10%;

        width: 9rem;

        background: var(--bg-color);

        flex-direction: column;
        border: 3px solid #e5e7eb;
    }

    /* Odkazy v menu */
    header nav a {        
        display: block;
        margin: 0;
        padding: 5px 5px;
        text-align: right;
        border-bottom: 1px solid #e5e7eb;
    }

    /* navigácia sa zobrazí */
    #menu-toggle:checked ~ nav {
        display: flex;
        border-radius: var(--radius);
    }
}

@media (max-width: 1000px) {

    header {
        padding: var(--head-pad-top-bot) 7.5%;
    }

    .content {
        padding: 0rem 7.5%;
    } 
    header nav {
        right: 7.5%;
    }
}

@media (max-width: 800px) {
    header {
        padding: var(--head-pad-top-bot) 5%;
    }    

    h3 {
        text-align: center;
    }

    .content {
        padding: 0rem 5%;
    }
    
    .card {
        display: grid;
    }
    .card img {
        width: 90%;
        height: 350px;
        display: block;
        margin: 0 auto;
    }
    header nav {
        right: 5%;
    }
    .left-bg,
    .right-bg {
        width: 7.5%;
        height: 100vh;    
        background-size: 80rem auto;
    }
    .thumbnails img {
        display: block;
        width: 100%;
        height: 250px;
    }
    
    .kontakt-text {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 500px) {

    .card img {
        height: 225px;
    }
    
    .thumbnails img {
        width: 100%;
        height: 200px;
    }
    .hero h1 {
        font-size: 1.7rem;
    }
    
    li {
        font-size: 0.85rem;
    }
}

@media (max-width: 350px) {
    .content {
        padding: 0%;
    }
    .card img {
        height: 175px;
    }
    .menu-text {
        display: none;
    }

    .menu-icon {
        display: inline;
    }
    .thumbnails img {
        width: 100%;
        height: 150px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    
    
    li {
        font-size: 0.75rem;
    }
    .kontakt-text h3{        
        font-size: 1.2rem; 
    }
    .kontakt-text {        
        min-width: 100px; 
    }
    .kontakt-mapa {
        min-width: 100px;
        height: 300px;
    }
}