/* Reset a základné štýly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

main {
    width: 100%;
}

/* ==================== HERO SEKCIA ==================== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    background-image: url(../images/ext2.jpg);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ==================== HISTÓRIA BLOKY ==================== */
.history-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.history-block.reverse {
    flex-direction: row-reverse;
}

.history-text {
    flex: 1;
}

.history-text h2 {
    font-size: 2.2rem;
    color: #16a34a;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.history-text strong {
    color: #000000;
    font-weight: 600;
}

.history-text em {
    color: #000000;
    font-style: normal;
    font-weight: 500;
}

.history-image-container {
    flex: 1;
}

.history-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.history-image:hover {
    transform: scale(1.02);
}

/* ==================== GALÉRIA SEKCIE ==================== */
.gallery-div {
    text-align: center;
    padding: 5rem 2rem 2rem;
    background: linear-gradient(to bottom, #f9fafb, white);
}

.gallery-div h2 {
    font-size: 2.5rem;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

#price-h2 {
    font-weight: 700;
}

.gallery-div h4 {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.gallery-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.gallery-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.photo-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.photo-container.wide {
    grid-template-columns: repeat(2, 1fr);
}

.photo-container img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-container img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==================== RESPONZÍVNY DIZAJN ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .history-block {
        gap: 3rem;
        margin: 4rem auto;
    }

    .history-text h2 {
        font-size: 2rem;
    }

    .history-text p {
        font-size: 1rem;
    }

    .photo-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 600px;
    }

    .hero-image::before {
        background: rgba(0, 0, 0, 0.45);
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 1.15rem;
        line-height: 1.5;
    }

    .history-block {
        flex-direction: column;
        gap: 2rem;
        margin: 3rem auto;
        padding: 0 1.5rem;
    }

    .history-block.reverse {
        flex-direction: column;
    }

    .history-text h2 {
        font-size: 1.8rem;
    }

    .history-text p {
        font-size: 0.95rem;
    }

    .gallery-div {
        padding: 3rem 1.5rem 1.5rem;
    }

    .gallery-div h2 {
        font-size: 2rem;
    }

    .gallery-section {
        margin: 3rem auto;
        padding: 0 1.5rem;
    }

    .gallery-section h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .photo-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .photo-container.wide {
        grid-template-columns: 1fr;
    }

    .photo-container img {
        height: 200px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero {
        height: 100vh;
        min-height: 550px;
    }

    .hero-content {
        padding: 0 1.2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .history-block {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .history-text h2 {
        font-size: 1.5rem;
    }

    .history-text p {
        font-size: 0.9rem;
    }

    .gallery-div h2 {
        font-size: 1.8rem;
    }

    .gallery-div h4 {
        font-size: 1rem;
    }

    .gallery-section h3 {
        font-size: 1.4rem;
    }

    .photo-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .photo-container img {
        height: 250px;
    }
}

/* ==================== ANIMÁCIE ==================== */
.history-block {
    opacity: 0;
}

.history-block.aos-animate {
    opacity: 1;
}

.hero-content h1,
.hero-content p {
    opacity: 0;
}

.hero-content h1.aos-animate,
.hero-content p.aos-animate {
    opacity: 1;
}