:root {
    --white: #F2F6FF; 
    --light-blue: #C9DCFF;
    --text-dark: #392759;
    --primary: #6672E9;
    --accent: #503680;
    --highlight: #7784FF;
}

/* --- ISIKUPÄRANE TERALINE TEKSTUUR --- */
.grain-overlay::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05; /* Annab paberja tunde */
    pointer-events: none;
    z-index: 9999;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    background-image:
        linear-gradient(rgba(102, 114, 233, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 114, 233, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- ORGAANILISED TAUSTAD --- */
.section-organic-1 {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(201, 220, 255, 0.3) 0%, transparent 40%),
        repeating-linear-gradient(135deg, rgba(80, 54, 128, 0.035) 0 1px, transparent 1px 18px);
}

.section-organic-2 {
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 20px),
        linear-gradient(120deg, var(--white) 0%, #E3E9FF 100%);
    position: relative;
}

.section-organic-3 {
    background-image:
        linear-gradient(rgba(102, 114, 233, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 114, 233, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
}

.alt-bg { 
    background:
        repeating-linear-gradient(120deg, rgba(57, 39, 89, 0.045) 0 1px, transparent 1px 22px),
        linear-gradient(180deg, #C9DCFF 0%, #e0ebff 100%); 
}

/* --- DOODLE TAUSTAD --- */
.doodle-bg-1 {
    background-color: var(--light-blue);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 Q 50 50 90 10' stroke='%23392759' stroke-width='0.5' fill='none' opacity='0.1'/%3E%3C/svg%3E");
}
.doodle-bg-2 {
    background-image:
        radial-gradient(circle at 85% 25%, rgba(80, 54, 128, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 15% 70%, rgba(102, 114, 233, 0.16) 0 2px, transparent 3px),
        linear-gradient(180deg, #C9DCFF 0%, #e0ebff 100%);
    background-size: 70px 70px, 90px 90px, auto;
}

/* --- KÄSITSI JOONISTATUD DETAILID --- */
.handwritten-underline {
    position: relative;
    display: inline-block;
}
.handwritten-underline::after {
    content: ""; position: absolute; bottom: -5px; left: 0; width: 100%; height: 4px;
    background: var(--primary);
    clip-path: polygon(2% 20%, 98% 0%, 100% 80%, 0% 100%);
    opacity: 0.4;
}

.hand-drawn-border {
    border: 2px solid var(--primary) !important;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px !important; /* Lopergune kuju */
    background:
        linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)),
        repeating-linear-gradient(135deg, rgba(102, 114, 233, 0.09) 0 1px, transparent 1px 12px) !important;
    backdrop-filter: blur(10px);
}

/* --- PILDI DISAIN --- */
.stop-img img { 
    width: 100%; 
    border-radius: 40px 10px 40px 10px; 
    box-shadow: 20px 20px 0px var(--light-blue);
    transition: 0.5s ease;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.stop-img img:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 10px 10px 0px var(--primary);
}

/* --- HERO JA NAV (baas) --- */
.hero {
    height: 60vh;
    background: linear-gradient(135deg, rgba(57, 39, 89, 0.85) 0%, rgba(102, 114, 233, 0.75) 100%), 
                url('https://images.unsplash.com/photo-1694013148890-dd07119963fc?q=80&w=2062&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
    padding: 0 20px;
}
.hero-content { max-width: 850px; }
.hero h1 { font-family: 'Inter', sans-serif; font-size: 3rem; margin-bottom: 15px; }
.hero p { max-width: 680px; margin: 0 auto 24px; font-size: 18px; }
.hero-btn { background: var(--primary); color: white; padding: 15px 35px; text-decoration: none; border-radius: 50px; font-weight: 700; display: inline-block; transition: 0.3s ease; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(57, 39, 89, 0.25); }
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.hero-stats span {
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

nav { background: var(--primary); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 10px 30px rgba(57, 39, 89, 0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.logo { color: white; text-decoration: none; font-weight: 800; font-size: 22px; }
nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
nav ul li a { color: white; text-decoration: none; margin-left: 25px; font-size: 15px; }

/* --- SEKTSIOONID JA TOIT --- */
.intro-strip {
    padding: 42px 0 18px;
    background:
        radial-gradient(rgba(80, 54, 128, 0.12) 1px, transparent 1px),
        var(--white);
    background-size: 18px 18px;
}
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.intro-card {
    padding: 26px;
    transition: 0.3s ease;
    box-shadow: 0 14px 28px rgba(57, 39, 89, 0.06);
}
.intro-card:hover { transform: translateY(-6px) rotate(-1deg); }
.intro-card i,
.memory-card i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    margin-bottom: 14px;
}
.intro-card h3,
.memory-card h3 {
    margin: 0 0 8px;
    font-family: 'Inter', sans-serif;
}
.intro-card p,
.memory-card p { margin: 0; }

.tour-stop { padding: 90px 0; position: relative; overflow: hidden; }
.tour-stop::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(57, 39, 89, 0.035) 50%, transparent 50%),
        linear-gradient(rgba(57, 39, 89, 0.025) 50%, transparent 50%);
    background-size: 12px 12px;
    opacity: 0.28;
    pointer-events: none;
}
.tour-stop .container { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.reverse { direction: rtl; } .reverse .stop-content { direction: ltr; }
.step-badge {
    display: inline-block;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(102, 114, 233, 0.13);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}
.stop-extra { margin-top: 16px; }
.detail-list {
    list-style: none;
    margin: 22px 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.detail-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.44)),
        repeating-linear-gradient(90deg, rgba(102, 114, 233, 0.08) 0 1px, transparent 1px 14px);
}
.detail-list i {
    color: var(--primary);
    margin-top: 4px;
}
.mini-tip {
    margin: 22px 0;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
    font-style: italic;
}
.location-box { padding: 22px 26px; }
.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    align-items: center;
}
.map-link,
.info-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}
.info-link { color: var(--primary); }
.map-link:hover,
.info-link:hover,
.food-info-link:hover { opacity: 0.75; }

.memory-section {
    padding: 90px 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(201, 220, 255, 0.55) 0%, transparent 32%),
        var(--white);
}
.section-heading {
    text-align: center;
    margin-bottom: 42px;
}
.section-heading h2 {
    font-family: 'Inter', sans-serif;
    margin: 0;
}
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.memory-card {
    min-height: 190px;
    padding: 28px;
    border-radius: 18px 6px 18px 6px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
        repeating-linear-gradient(135deg, rgba(201, 220, 255, 0.52) 0 2px, transparent 2px 18px);
    border: 1px solid rgba(102, 114, 233, 0.22);
    box-shadow: 0 18px 35px rgba(57, 39, 89, 0.08);
    transition: 0.3s ease;
}
.memory-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 38px rgba(57, 39, 89, 0.13);
}

.food-section { 
    padding: 100px 0; 
    background-color: var(--accent);
    background-image:
        url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z' fill='%23fff' fill-opacity='0.06'/%3E%3Cpath d='M8 58q10-8 20 0t20 0' stroke='%23fff' stroke-opacity='0.045' fill='none'/%3E%3C/svg%3E"),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 28px);
    color: white; 
}
.food-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.food-card {
    background:
        linear-gradient(rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.105)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 14px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s ease;
}
.food-card:hover {
    transform: translateY(-6px);
    background:
        linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px);
}
.food-map-btn { display: inline-block; margin-top: 25px; padding: 10px 20px; background: white; color: var(--accent); border-radius: 12px; text-decoration: none; font-weight: 700; }
.food-info-link {
    display: inline-block;
    margin: 25px 0 0 14px;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

footer { padding: 50px 0; text-align: center; background: #2a1d42; color: white; }

@media (max-width: 850px) {
    .hero { min-height: 68vh; height: auto; padding: 70px 20px; }
    .hero h1 { font-size: 2.35rem; }
    .nav-container { align-items: flex-start; gap: 14px; }
    nav ul { flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
    nav ul li a { margin-left: 0; }
    .intro-grid,
    .memory-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .reverse { direction: ltr; }
    .detail-list li { text-align: left; }
    .mini-tip { padding-left: 0; border-left: 0; }
    .link-row { justify-content: center; }
    .food-info-link { margin-left: 0; display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-btn,
    .intro-card,
    .food-card,
    .memory-card,
    .stop-img img {
        transition: none;
    }
}

/* ===== PARANDUS: mustrid ei lähe tekstikastide alla ===== */

.intro-card,
.location-box,
.memory-card,
.food-card,
.detail-list li {
    position: relative;
    z-index: 2;
}

/* Intro kastid */
.intro-card {
    background: #ffffff !important;
}

/* Asukohakastid */
.location-box {
    background: #ffffff !important;
}

/* Detailikastid */
.detail-list li {
    background: #ffffff !important;
}

/* Memory kaardid */
.memory-card {
    background: #ffffff !important;
}

/* Restoranikastid */
.food-card {
    background: #5c4292 !important;
    backdrop-filter: blur(12px);
}

/* Muster jääb ainult sektsiooni taha */
.tour-stop::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            90deg,
            rgba(57, 39, 89, 0.02) 50%,
            transparent 50%
        ),
        linear-gradient(
            rgba(57, 39, 89, 0.02) 50%,
            transparent 50%
        );
    background-size: 12px 12px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.tour-stop .container {
    position: relative;
    z-index: 1;
}
