/* ===== ARBORETUM BAEXEM STYLE v8 (Final Polish) ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Montserrat:wght@300;400;500&display=swap');

:root {
    --bg-color: #f9f8f3;
    --text-color: #2c2c2c;
    --accent-color: #4a5d23;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    font-size: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: #000;
}

/* ===== NAVIGÁCIA (STICKY) ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    background: rgba(249, 248, 243, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* ZMENA: Logo je teraz odkaz */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    color: #1a2e1a;
    text-decoration: none; /* Zruší podčiarknutie odkazu */
    cursor: pointer;
    transition: opacity 0.3s;
}
.logo:hover {
    opacity: 0.7;
}

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    text-decoration: none; color: #555; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-color); }

/* HAMBURGER (Pre mobily) */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: #2c2c2c; }

/* ===== HERO SEKCIA ===== */
.hero {
    position: relative;
    text-align: center;
    padding: 180px 20px 240px 20px; 
    margin-bottom: 0;
    background-color: #1a2e1a;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E"),
        radial-gradient(circle at center, #3a5f3a 0%, #122012 100%);
    color: #ffffff;
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 75% 100%, 25% 90%, 0% 100%);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    margin-bottom: 10px;
    font-style: italic;
    color: #f0f0f0;
    text-shadow: 0 10px 30px rgba(0,0,0,0.6);
    animation: fadeInUp 1.5s ease-out;
}
.hero h1::after {
    content: "❦"; display: block; font-size: 2rem; color: #8fbc8f;
    margin: 10px auto 20px auto; font-style: normal; text-shadow: none; opacity: 0.8;
}
.hero p {
    font-family: 'Montserrat', sans-serif; max-width: 600px; margin: 0 auto;
    color: #dcdcdc; font-size: 1rem; text-transform: uppercase;
    letter-spacing: 4px; font-weight: 400;
    animation: fadeInUp 1.5s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SEKCIE ===== */
#story { margin-top: -50px; padding-top: 0; position: relative; z-index: 10; }
.section {
    padding: 80px 10%; max-width: 1200px; margin: 0 auto;
    opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out;
}
.section.active { opacity: 1; transform: translateY(0); }
.section-title { font-size: 2.5rem; margin-bottom: 40px; text-align: center; position: relative; }
.section-title::after { content: ""; display: block; width: 60px; height: 2px; background: var(--accent-color); margin: 20px auto 0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ===== NUMBERS ===== */
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; margin-top: 40px; }
.number-item {
    background: #fff; padding: 40px 20px; border: 1px solid #e0e0e0;
    box-shadow: 0 10px 20px rgba(74, 93, 35, 0.05); transition: transform 0.3s;
}
.number-item:hover { transform: translateY(-10px); border-color: var(--accent-color); }
.number-item h3 { font-size: 3.5rem; color: var(--accent-color); margin-bottom: 5px; }
.number-item p { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; color: #666; }

/* ===== GALÉRIA (Vylepšená mriežka) ===== */
.gallery-grid {
    display: grid;
    /* Automaticky vytvorí stĺpce, minimálna šírka 250px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    width: 100%;
    /* Vynútime pomer strán 1:1 (štvorec) pre všetky boxy */
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    /* Toto zabezpečí, že fotka vyplní celý štvorec a oreže sa, nebude natiahnutá */
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

/* ===== FORMULÁR ===== */
.reservation-box {
    background: #fff; border: 1px solid #ddd; padding: 50px;
    max-width: 600px; margin: 0 auto; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05); position: relative;
}
.reservation-box::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--accent-color); }
input, select, button { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ccc; background: #fafafa; font-family: 'Montserrat', sans-serif; outline: none; }
input:focus, select:focus { border-color: var(--accent-color); background: #fff; }
button { background-color: var(--accent-color); color: white; border: none; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: background 0.3s, transform 0.2s; font-weight: 600; }
button:hover { background-color: #2f4f2f; transform: translateY(-2px); }

/* ===== RESPONZIVITA ===== */
@media (max-width: 768px) {
    .hamburger { display: block; z-index: 2000; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-links {
        position: fixed; left: -100%; top: 70px; gap: 0; flex-direction: column;
        background-color: rgba(249, 248, 243, 0.98); width: 100%; text-align: center;
        transition: 0.3s; box-shadow: 0 10px 10px rgba(0,0,0,0.1); padding-bottom: 20px;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 16px 0; width: 100%; }
    .nav-links a { font-size: 1.2rem; display: block; width: 100%; padding: 10px; }

    .content-grid, .numbers-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; margin-bottom: 10px; }
    .hero { padding: 120px 20px 180px 20px; clip-path: polygon(0% 0%, 100% 0%, 100% 95%, 50% 100%, 0% 95%); }
    #story { margin-top: -30px; }
    .gallery-grid { grid-template-columns: 1fr; }
}
