/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary-green: #2E7D32;
    --primary-green-light: #4CAF50;
    --primary-green-dark: #1B5E20;
    --accent-green: #66BB6A;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-cream: #fafaf8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ========================================
   Layout & Containers
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    min-height: 60vh;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-green);
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(180deg, 
        #2d5d2d 0%,
        #3a6f3a 20%,
        #478047 40%,
        #549154 60%,
        #61a261 80%,
        #6eb36e 100%
    );
    color: white;
    padding: 80px 0 140px;
    overflow: hidden;
}

/* SKUTEČNÁ PNG TEXTURA - mnohem realističtější! */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/noise-texture.png');
    background-repeat: repeat;
    background-size: 400px 400px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
    animation: grain 15s steps(20) infinite;
}

/* Animace textury */
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -15%); }
    40% { transform: translate(-15%, 10%); }
    50% { transform: translate(10%, -5%); }
    60% { transform: translate(-5%, 15%); }
    70% { transform: translate(15%, -10%); }
    80% { transform: translate(-10%, -5%); }
    90% { transform: translate(5%, 10%); }
}

/* Druhá vrstva textury pro ještě více hloubky */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/noise-texture.png');
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: multiply;
}

.hero-diagonal {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path fill="%23fafaf8" d="M0,0 C200,80 400,100 600,90 C800,80 1000,60 1200,80 L1200,120 L0,120 Z"/><path fill="%23f8f9fa" opacity="0.5" d="M0,20 C300,90 600,100 900,70 C1050,50 1150,60 1200,65 L1200,120 L0,120 Z"/></svg>') bottom center / cover no-repeat;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Navigation Cards Section
   ======================================== */
.nav-cards {
    position: relative;
    padding: 80px 0 100px;
    background: #f5f5f3;
    margin-top: -50px; /* Pull up to overlap with hero wave */
}

/* Zaoblený přechod nahoře */
.nav-cards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #f5f5f3;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    transform: translateY(-59px);
}

/* Zaoblený přechod dole */
.nav-cards::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: translateY(59px);
}

.cards-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.nav-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out backwards;
}

.nav-card:nth-child(1) { animation-delay: 0.1s; }
.nav-card:nth-child(2) { animation-delay: 0.2s; }
.nav-card:nth-child(3) { animation-delay: 0.3s; }

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.nav-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-card-icon svg {
    width: 35px;
    height: 35px;
}

.nav-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.nav-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.about-text ul {
    list-style: none;
    margin-top: 1.5rem;
}

.about-text ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-gray);
}

.about-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Events Section
   ======================================== */
.events-section {
    padding: 80px 0;
    background: var(--bg-cream);
}

.events-section h2 {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: var(--transition);
    display: flex;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: #d0d0d0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.event-date {
    background: var(--primary-green);
    color: white;
    padding: 1.5rem;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-location,
.event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.event-location svg,
.event-time svg {
    width: 16px;
    height: 16px;
    color: var(--primary-green);
}

.event-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.events-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   Events Listing Page
   ======================================== */
.events-listing {
    padding: 60px 0;
}

.events-grid-full {
    display: grid;
    gap: 2rem;
}

.event-card-full {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: var(--transition);
    display: flex;
}

.event-card-full:hover {
    border-color: #d0d0d0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.event-date-large {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    padding: 2rem;
    text-align: center;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date-large .event-day {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-large .event-month {
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.event-date-large .event-year {
    font-size: 0.9rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.event-content-full {
    padding: 2rem;
    flex: 1;
}

.no-events {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

/* ========================================
   Event Detail Page
   ======================================== */
.event-detail-header {
    background: var(--bg-cream);
    padding: 2rem 0;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--primary-green);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.event-detail {
    padding: 60px 0;
}

.event-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.event-info-box {
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.event-description {
    line-height: 1.8;
}

.event-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-light);
}

.event-sidebar h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.event-gallery {
    display: grid;
    gap: 1rem;
}

.event-gallery img {
    border-radius: var(--radius-md);
    width: 100%;
}

/* ========================================
   Page Header & Content
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.page-content {
    padding: 60px 0;
}

.page-content article {
    max-width: 800px;
    margin: 0 auto;
}

.page-content article h2,
.page-content article h3 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content article p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.page-content article ul,
.page-content article ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content article li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        padding: 60px 0 100px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .nav-cards {
        padding: 60px 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-detail-content {
        grid-template-columns: 1fr;
    }
    
    .event-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .event-card,
    .event-card-full {
        flex-direction: column;
    }
    
    .event-date,
    .event-date-large {
        min-width: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-card,
    .event-content,
    .event-content-full {
        padding: 1.5rem;
    }
}
