/* =============================================
   RESET & ALUS
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --tumesinine: #0d1b2a;
  --sinine:     #1b2d45;
  --kuld:       #c9a84c;
  --kuld-hele:  #e8c96a;
  --kuld-tume:  #8a6f2e;
  --tekst:      #1a1a2e;
  --tekst-hele: #4a5568;
  --taust:      #f8f6f1;
  --valge:      #ffffff;
  --piir:       #e2d9c8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--tekst);
  background: var(--taust);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   NAVIGATSIOON
   ============================================= */
nav {
  position: sticky;
  top: 0;
  background: var(--tumesinine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  z-index: 200;
  border-bottom: 2px solid var(--kuld);
}

.nav-logo {
  color: var(--kuld);
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #d0c8b8;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.aktiivne span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.aktiivne span:nth-child(2) { opacity: 0; }
.hamburger.aktiivne span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-lingid {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--tumesinine);
  width: 230px;
  padding: 1rem 0;
  border-top: 1px solid var(--kuld);
  border-bottom: 1px solid var(--kuld);
}

.nav-lingid.avatud { display: flex; }

.nav-lingid a {
  color: #c8bfac;
  text-decoration: none;
  padding: 0.65rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: color 0.2s, background 0.2s;
}

.nav-lingid a:hover {
  color: var(--kuld);
  background: rgba(201,168,76,0.06);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav-lingid {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    padding: 0;
    border: none;
    gap: 0.25rem;
  }
  .nav-lingid a { padding: 0.4rem 0.9rem; }
}

/* =============================================
   NUPUD
   ============================================= */
.nupp {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nupp-peamine { background: var(--kuld); color: var(--tumesinine); }
.nupp-peamine:hover { background: var(--kuld-hele); transform: translateY(-1px); }

.nupp-teisene {
  background: transparent;
  color: #e8dfc8;
  border: 1.5px solid rgba(201,168,76,0.5);
}
.nupp-teisene:hover {
  border-color: var(--kuld);
  color: var(--kuld);
  transform: translateY(-1px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background-image: url('Kummar.png');
  background-size: cover;
  background-position: center;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,27,42,0.82) 0%, rgba(13,27,42,0.65) 60%, rgba(13,27,42,0.75) 100%);
}

.hero-sisu {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--valge);
  max-width: 780px;
}

.hero-ylakirje {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--kuld);
  margin-bottom: 1.25rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-style: italic;
}

.hero-sisu h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-alapealkiri {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.8;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
}

.hero-nupud {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-kast {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  background: rgba(13,27,42,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  padding: 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2.5rem;
  color: white;
}

.stat-arv {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--kuld);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-tekst {
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.5;
  font-style: italic;
}

.stat-eraldaja {
  width: 1px;
  background: rgba(201,168,76,0.3);
  margin: 0.5rem 0;
  align-self: stretch;
}

/* =============================================
   SEKTSIOONI ÜLDISED ELEMENDID
   ============================================= */
.sektsiooni-paiskiri {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--kuld-tume);
  margin-bottom: 0.75rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
}

.sektsiooni-paiskiri.heledal { color: rgba(201,168,76,0.7); }

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sektsiooni-sissejuhatus {
  font-size: 1.05rem;
  color: var(--tekst-hele);
  max-width: 680px;
  margin-bottom: 3rem;
  line-height: 1.7;
  font-style: italic;
}

.sektsiooni-sissejuhatus.heledal { color: rgba(220, 210, 190, 0.75); }

/* =============================================
   TUTVUSTUS
   ============================================= */
.tutvustus {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.plokid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.plokk {
  background: var(--valge);
  padding: 2rem;
  border-radius: 4px;
  border-top: 3px solid var(--kuld);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

.plokk.nahtav { opacity: 1; transform: translateY(0); }

.plokk-ikoon { font-size: 1.8rem; margin-bottom: 1rem; }

.plokk h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--tumesinine);
}

.plokk p { font-size: 0.95rem; color: #3a3a4a; line-height: 1.75; }

/* =============================================
   GALERII / LÄBIMURDED
   ============================================= */
.galerii {
  background: var(--sinine);
  color: var(--valge);
  padding: 5rem 2rem;
  text-align: center;
}

.galerii h2 { color: var(--valge); }

.galerii .sektsiooni-sissejuhatus {
  margin-left: auto;
  margin-right: auto;
}

.syndmused {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 900px) {
  .syndmused { grid-template-columns: 1fr 1fr; }
}

.syndmus {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

.syndmus.nahtav { opacity: 1; transform: translateY(0); }

.syndmus-aasta {
  background: var(--kuld);
  color: var(--tumesinine);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 900;
  padding: 0.5rem 1.25rem;
  display: inline-block;
}

/* Pilt vasakul, tekst paremal — kõrvuti paigutus */
.syndmus-sisu {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 200px;
}

/* Pildiümbris: fikseeritud laius, venib kõrgusega */
.syndmus-pilt-ymber {
  flex: 0 0 180px;
  width: 180px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  position: relative;
}

.syndmus-pilt-ymber img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s;
}

.syndmus:hover .syndmus-pilt-ymber img { transform: scale(1.04); }

.pilt-asendaja {
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.syndmus-tekst {
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.syndmus-tekst h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--kuld-hele);
  line-height: 1.3;
}

.syndmus-tekst p {
  font-size: 0.88rem;
  color: #bdb8ac;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.syndmus-silt {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--kuld);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
}

.syndmus-allikas {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: rgba(180,170,155,0.5);
  font-style: italic;
}

.syndmus-allikas a { color: rgba(201,168,76,0.45); text-decoration: none; }
.syndmus-allikas a:hover { color: rgba(201,168,76,0.8); text-decoration: underline; }

/* =============================================
   VIDEO
   ============================================= */
.video-plokk {
  padding: 5rem 2rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.video-plokk .sektsiooni-sissejuhatus { margin: 0 auto 2rem; }

.video-ümbris {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.video-ümbris iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* =============================================
   KONTAKT / ALLIKAD
   ============================================= */
.kontakt {
  background: var(--tumesinine);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--valge);
}

.kontakt h2 { color: var(--valge); }
.kontakt .sektsiooni-paiskiri { color: rgba(201,168,76,0.65); }
.kontakt .sektsiooni-sissejuhatus { color: rgba(220, 210, 190, 0.7); margin: 0 auto 3rem; }

.allikad-ruudustik {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.allikas-kaart {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--valge);
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  opacity: 0;
  transform: translateY(12px);
}

.allikas-kaart.nahtav { opacity: 1; transform: translateY(0); }

.allikas-kaart:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-2px);
}

.allikas-ikoon { font-size: 1.6rem; flex-shrink: 0; }

.allikas-tekst { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.allikas-tekst strong { font-size: 0.95rem; color: var(--kuld-hele); }
.allikas-tekst span { font-size: 0.8rem; color: rgba(220, 210, 190, 0.6); line-height: 1.4; }

.allikas-nool { color: var(--kuld); font-size: 1.1rem; flex-shrink: 0; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #070d14;
  color: #555;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  border-top: 1px solid rgba(201,168,76,0.15);
}