/* ===========================================================
   Lasila Kogukonnaportaal — Avaleht
   Värvid: lõke-oranž aktsent, öösinine taust, soe kreem sisu
   =========================================================== */

:root {
  --tuli:        #E8541E;   /* lõke-oranž */
  --tuli-hele:   #F6A623;   /* leegi kollakas */
  --oo:          #0E1726;   /* öösinine */
  --oo-2:        #16243a;   /* tumesinine sektsioon */
  --kreem:       #FBF6EE;   /* soe taust */
  --kreem-2:     #F3EBDD;
  --roheline:    #2E5E3A;   /* maastiku roheline */
  --tekst:       #1d2430;
  --tekst-hele:  #5b6573;
  --valge:       #ffffff;
  --vari:        0 10px 30px rgba(14, 23, 38, .12);
  --vari-suur:   0 24px 60px rgba(14, 23, 38, .22);
  --raadius:     18px;
  --max:         1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--tekst);
  background: var(--kreem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Sora', 'Inter', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tuli);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(14, 23, 38, .92);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.nav__brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 1.15rem;
  display: flex; align-items: center; gap: 8px;
}
.nav__brand .flame { color: var(--tuli-hele); }
.brand-short { display: none; }
.brand-full  { display: inline; }
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a {
  color: rgba(255,255,255,.85);
  font-weight: 600; font-size: .95rem;
  transition: color .2s;
}
.nav__links a:hover { color: var(--tuli-hele); }
.nav__cta {
  background: var(--tuli); color: #fff !important;
  padding: 9px 18px; border-radius: 999px;
  font-weight: 700 !important;
}
.nav__cta:hover { background: var(--tuli-hele); color: var(--oo) !important; }
.nav__share {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .92rem; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 7px;
  transition: background .2s, color .2s;
}
.nav__share:hover { background: var(--tuli-hele); color: var(--oo); border-color: var(--tuli-hele); }
.nav__share.copied { background: var(--roheline); color: #fff; border-color: var(--roheline); }
.nav__burger { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Ajakava link */
.tl-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; font-weight: 700; font-size: .9rem; color: var(--tuli);
}
.tl-link:hover { text-decoration: underline; }

/* Unustatud mõisad info */
.mois-info {
  margin-top: 26px; padding: 22px 24px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid var(--tuli); border-radius: 14px;
}
.mois-info h3 { font-size: 1.08rem; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.mois-info h3 i { color: var(--tuli-hele); }
.mois-info > p { color: rgba(255,255,255,.7); font-size: .95rem; margin-bottom: 12px; }
.mois-dates { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.mois-dates li {
  background: rgba(246,166,35,.15); color: var(--tuli-hele);
  border: 1px solid rgba(246,166,35,.35); border-radius: 8px;
  padding: 5px 12px; font-weight: 700; font-size: .9rem;
}
.mois-link { color: var(--tuli-hele); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.mois-link:hover { text-decoration: underline; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: #0a0f1a;
}
/* Täisekraan lõke-taust, hajub servades tausta tooni */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/jaanitule-lokke.jpg') center 35% / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.15); }
}
/* Overlay: loetavus + sujuv hajumine alla ja külgedele */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,15,26,.85) 0%, rgba(10,15,26,.55) 38%, rgba(10,15,26,.15) 70%, rgba(10,15,26,.35) 100%),
    radial-gradient(120% 80% at 65% 30%, rgba(232,84,30,.18) 0%, rgba(232,84,30,0) 55%),
    linear-gradient(180deg, rgba(10,15,26,.55) 0%, rgba(10,15,26,0) 28%, rgba(10,15,26,.2) 62%, var(--kreem) 100%);
}
.hero__embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.ember {
  position: absolute; bottom: -10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, var(--tuli-hele), var(--tuli));
  filter: blur(.5px);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .7; }
  100% { transform: translateY(-100vh) translateX(40px) scale(.4); opacity: 0; }
}

.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: 120px 0 90px;
}
.hero__sub { text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero__meta { text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* Scroll-vihje */
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.65); font-size: 1.3rem;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,84,30,.15);
  border: 1px solid rgba(246,166,35,.4);
  color: var(--tuli-hele);
  padding: 7px 16px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 6px 40px rgba(232,84,30,.3);
}
.hero__title .accent {
  background: linear-gradient(180deg, var(--tuli-hele), var(--tuli));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__meta {
  font-size: 1.25rem; font-weight: 600; color: #fff;
  margin-bottom: 8px;
}
.hero__meta .dot { color: var(--tuli-hele); margin: 0 10px; }
.hero__sub { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 0;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--primary { background: var(--tuli); color: #fff; box-shadow: 0 10px 28px rgba(232,84,30,.45); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(232,84,30,.55); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }

/* Countdown */
.countdown { display: flex; gap: 14px; margin-top: 34px; }
.cd__box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 14px 18px; text-align: center; min-width: 76px;
  backdrop-filter: blur(6px);
}
.cd__num { font-family: 'Sora',sans-serif; font-size: 2rem; font-weight: 800; color: var(--tuli-hele); }
.cd__lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); }

/* ---------- SEKTSIOONID ---------- */
.section { padding: 90px 0; }
.section--dark { background: var(--oo-2); color: #fff; }
.section--cream { background: var(--kreem); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: 10px 0 12px; }
.section__lead { color: var(--tekst-hele); font-size: 1.08rem; }
.section--dark .section__lead { color: rgba(255,255,255,.7); }

/* ---------- AJAKAVA ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--tuli-hele), var(--tuli), transparent);
}
.tl-item {
  display: grid; grid-template-columns: 78px 1fr; gap: 26px;
  align-items: flex-start; padding: 14px 0; position: relative;
}
.tl-time {
  font-family: 'Sora',sans-serif; font-weight: 800; font-size: 1.05rem;
  color: var(--tuli); text-align: right;
}
.tl-dot {
  position: absolute; left: 86px; top: 20px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--tuli); border: 3px solid var(--kreem);
  box-shadow: 0 0 0 4px rgba(232,84,30,.15);
}
.section--dark .tl-dot { border-color: var(--oo-2); }
.tl-body { padding-left: 8px; }
.tl-body h3 { font-size: 1.12rem; font-weight: 700; }
.tl-body h3 a { color: var(--tuli); text-decoration: underline; text-underline-offset: 3px; }
.tl-body h3 a:hover { color: var(--tuli-hele); }
.tl-body p { color: var(--tekst-hele); font-size: .95rem; }
.section--dark .tl-body p { color: rgba(255,255,255,.65); }
.tl-note {
  text-align: center; margin-top: 30px;
  font-style: italic; color: var(--tuli);
}

/* ---------- LISATEGEVUSED ---------- */
.section--activities { position: relative; overflow: hidden; }
.section--activities .wrap { position: relative; z-index: 2; }
.act-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.act-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .65;
  animation: floatBlob 12s ease-in-out infinite alternate;
}
.blob--1 { width: 440px; height: 440px; top: -120px; left: -80px;
  background: radial-gradient(circle, var(--tuli) 0%, transparent 70%); }
.blob--2 { width: 400px; height: 400px; bottom: -150px; right: -60px;
  background: radial-gradient(circle, #2A7DE0 0%, transparent 70%); animation-delay: -4s; }
.blob--3 { width: 320px; height: 320px; top: 25%; left: 52%;
  background: radial-gradient(circle, var(--tuli-hele) 0%, transparent 70%); animation-delay: -8s; opacity: .5; }
@keyframes floatBlob {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(70px,-50px) scale(1.18); }
  100% { transform: translate(-50px,45px) scale(.92); }
}

/* Hõljuvad sädemed lisategevuste taustal */
.act-sparks { position: absolute; inset: 0; }
.act-sparks .spark {
  position: absolute; bottom: -8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, var(--tuli-hele), var(--tuli));
  opacity: 0;
  animation: sparkRise linear infinite;
}
@keyframes sparkRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  12%  { opacity: .8; }
  88%  { opacity: .5; }
  100% { transform: translateY(-560px) translateX(50px) scale(.3); opacity: 0; }
}
.activities { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.act-card {
  background: #fff; border-radius: var(--raadius); padding: 26px 16px;
  text-align: center; box-shadow: var(--vari);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .25s, box-shadow .25s;
}
.act-card p { font-size: .85rem; }
.act-card:hover { transform: translateY(-6px); box-shadow: var(--vari-suur); }
.act-card .ico {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 18px; display: grid; place-items: center;
  font-size: 1.65rem; color: #fff;
  background: linear-gradient(135deg, var(--tuli), var(--tuli-hele));
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: transform .3s ease;
}
.act-card:hover .ico { transform: scale(1.08) rotate(-4deg); }
/* Värvilised ikoonid */
.act-card .ico--green  { background: linear-gradient(135deg, #2E7D46, #5BBF6E); box-shadow: 0 8px 20px rgba(46,125,70,.35); }
.act-card .ico--purple { background: linear-gradient(135deg, #7B3FB0, #B473E6); box-shadow: 0 8px 20px rgba(123,63,176,.35); }
.act-card .ico--blue   { background: linear-gradient(135deg, #1F6FD6, #4FA8F5); box-shadow: 0 8px 20px rgba(31,111,214,.35); }
.act-card .ico--gold   { background: linear-gradient(135deg, #E0A21B, #F6C944); box-shadow: 0 8px 20px rgba(224,162,27,.35); }
.act-card .ico--red    { background: linear-gradient(135deg, #D03A2E, #F0685A); box-shadow: 0 8px 20px rgba(208,58,46,.35); }
.act-card .ico--teal   { background: linear-gradient(135deg, #129C9C, #3FD0CB); box-shadow: 0 8px 20px rgba(18,156,156,.35); }
.act-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.act-card p { color: var(--tekst-hele); font-size: .9rem; }

/* ---------- TOETAJAD ---------- */
.sponsors {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 18px;
}
.sp-card {
  background: #fff; border-radius: 14px; padding: 22px;
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; box-shadow: var(--vari);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .2s;
  text-align: center;
}
.sp-card:hover { transform: translateY(-4px); }
.sp-card img { max-width: 100%; max-height: 64px; object-fit: contain; }
.sp-card span {
  font-family: 'Sora',sans-serif; font-weight: 800; font-size: 1.05rem;
  color: var(--roheline); letter-spacing: .02em;
}
.sp-ph {
  font-family: 'Sora',sans-serif;
  font-weight: 800; color: var(--roheline); font-size: 1.02rem; line-height: 1.3;
  letter-spacing: .01em;
}

/* ---------- ANNETUS ---------- */
.donate {
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(232,84,30,.5) 0%, rgba(232,84,30,0) 50%),
    linear-gradient(135deg, var(--oo) 0%, var(--oo-2) 100%);
  color: #fff; border-radius: 26px; padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  box-shadow: var(--vari-suur); position: relative; overflow: hidden;
}
.donate h2 { font-size: 2.2rem; margin-bottom: 14px; }
.donate p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.donate-box {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 28px; backdrop-filter: blur(6px);
}
.donate-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.donate-row:last-child { border-bottom: 0; }
.donate-row .k { color: rgba(255,255,255,.6); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.donate-row .v { font-weight: 700; font-family: 'Sora',sans-serif; }
.iban-num { font-family: 'Sora',sans-serif; font-weight: 700; letter-spacing: .02em; }
.copy-btn {
  background: rgba(246,166,35,.18); border: 1px solid rgba(246,166,35,.4);
  color: var(--tuli-hele); border-radius: 8px; padding: 4px 9px; margin-left: 10px;
  cursor: pointer; font-size: .85rem; transition: background .2s, transform .15s;
}
.copy-btn:hover { background: rgba(246,166,35,.32); transform: translateY(-1px); }
.copy-btn.done { background: var(--roheline); border-color: var(--roheline); color: #fff; }
.donate-row .v { display: inline-flex; align-items: center; flex-wrap: wrap; }
.todo {
  display: inline-block; background: rgba(246,166,35,.2); color: var(--tuli-hele);
  border: 1px dashed var(--tuli-hele); border-radius: 6px;
  padding: 1px 8px; font-size: .8rem; font-weight: 700;
}

/* ---------- KOHT / KÜLA ---------- */
.place { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.place__media {
  aspect-ratio: 16/10; border-radius: 22px; overflow: hidden; box-shadow: var(--vari-suur);
  background: linear-gradient(135deg, var(--roheline), #1c3b24);
  display: grid; place-items: center; color: rgba(255,255,255,.7);
}
.place__media img { width: 100%; height: 100%; object-fit: cover; }
.place__media .ph { text-align: center; padding: 30px; }
.place__media .ph i { font-size: 2.6rem; }

/* ---------- KAART ---------- */
.map-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.map-head__title { display: flex; align-items: center; gap: 16px; }
.map-ico {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff;
  background: linear-gradient(135deg, var(--tuli), var(--tuli-hele));
  box-shadow: 0 8px 20px rgba(232,84,30,.3);
}
.map-coords {
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px; padding: 9px 18px;
  font-family: 'Sora',sans-serif; font-weight: 700; font-size: .92rem;
  color: var(--tekst); box-shadow: var(--vari);
}
.map-coords i { color: var(--tuli); margin-right: 6px; }
.map {
  height: 460px; width: 100%;
  border-radius: var(--raadius); overflow: hidden;
  box-shadow: var(--vari-suur); border: 1px solid rgba(0,0,0,.05);
  z-index: 1;
}
.map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--vari); }
.map .leaflet-popup-content { margin: 16px 18px; font-family: 'Inter',sans-serif; }
.map .leaflet-popup-content h3 { font-family: 'Sora',sans-serif; font-size: 1.05rem; margin-bottom: 6px; color: var(--tekst); }
.map .leaflet-popup-content p { color: var(--tekst-hele); font-size: .92rem; margin-bottom: 10px; line-height: 1.5; }
.map .leaflet-popup-content a { color: var(--tuli); font-weight: 700; font-size: .9rem; }
.map .leaflet-popup-content a:hover { text-decoration: underline; }
@media (max-width: 560px) { .map { height: 360px; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--oo); color: rgba(255,255,255,.7); padding: 60px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand { font-family: 'Sora',sans-serif; font-weight: 800; color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .1em; }
.footer a { color: rgba(255,255,255,.7); display: block; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--tuli-hele); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- SCROLL ANIMATSIOON ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 480px) {
  .brand-full  { display: none; }
  .brand-short { display: inline; }
}

/* ---------- RESPONSIIVNE ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .hero__inner { padding-top: 110px; }
  .hero__bg { background-position: center 30%; }
  .donate, .place { grid-template-columns: 1fr; gap: 30px; padding: 36px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .activities { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .countdown { gap: 8px; }
  .cd__box { min-width: 62px; padding: 10px 12px; }
  .timeline::before { left: 62px; }
  .tl-item { grid-template-columns: 56px 1fr; gap: 16px; }
  .tl-dot { left: 57px; }
  .donate { padding: 28px; }
  .activities { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
