/* --- 1. ÜLDISEADED JA NULLIMINE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --peamine-taust: #F2F6FF;      /* #F2F6FF */
    --sektsiooni-taust: #C9DCFF;   /* #C9DCFF */
    --pohitekst-jalus: #392759;    /* #392759 */
    --pohivarv-nav: #6672E9;       /* #6672E9 */
    --nupu-hover: #92B8FF;         /* #92B8FF */
    --aktsent-lilla: #503680;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--pohitekst-jalus);
    background-color: var(--peamine-taust);
    line-height: 1.8;
}

/* --- 2. NAVIGATSIOON --- */
nav {
    background-color: var(--pohivarv-nav);
    padding: 20px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { color: white; font-weight: bold; font-size: 1.5rem; text-decoration: none; }

nav ul { display: flex; list-style: none; gap: 25px; }

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover { color: var(--nupu-hover); }

/* --- 3. HERO --- */
.hero {
    height: 55vh;
    background: linear-gradient(rgba(57, 39, 89, 0.6), rgba(57, 39, 89, 0.6)), 
                url('https://images.unsplash.com/photo-1590059393305-649089856f4d?w=1440') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

/* --- 4. STRUKTUUR JA TEKST --- */
section { padding: 80px 0; width: 100%; display: block; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.alt-bg { background-color: var(--sektsiooni-taust); }

h2 { margin-bottom: 30px; font-size: 2.2rem; }

.info-link {
    color: var(--pohivarv-nav);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.info-link:hover { border-bottom: 2px solid var(--pohivarv-nav); }

/* --- 5. KAARDID JA GRÜPID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card h3 { color: var(--aktsent-lilla); margin-bottom: 10px; }

.location-info {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--pohivarv-nav);
}

/* --- 6. GALERII --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 350px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(57, 39, 89, 0.8);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* --- 7. JALUS --- */
footer {
    background-color: var(--pohitekst-jalus);
    color: white;
    padding: 60px 0;
    text-align: center;
}