/* ==========================================================================
   JÄTKUSUUTLIKKUSE NÄDAL - STYLE.CSS
   Puhas, modernne ja responsive CSS (Vanilla)
   ========================================================================== */

/* 1. KOHALIKUD JA VEEBIFONDID */
@font-face {
  font-family: 'Space Grotesk Local';
  src: url('Font/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Tüpograafia */
  --font-main: 'Space Grotesk Local', 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Teema värvimuutujad (interpoleeritakse dünaamiliselt JS-iga) */
  --hero-bg: #02191F;
  --hero-text-title: #E5F8E2;
  --hero-text-date: #D2F2CC;
  --glow-scale: 0.5;
  --glow-dark-opacity: 0;
  --glow-light-opacity: 0;

  /* Tegevuste kaartide stiilid (tumedas režiimis kollakas/rohekas outer glow ja piirjoon) */
  --card-bg: rgba(2, 25, 31, 0.55);
  --card-border: rgba(180, 255, 205, 0.85);
  --card-shadow: 0 0 14px rgba(160, 255, 190, 0.75), 0 0 28px rgba(120, 245, 180, 0.45), 0 0 42px rgba(80, 220, 160, 0.25);
  --card-text: #E5F8E2;
  --card-icon-fill: #E5FFCC;

  /* Lihavaba Teisipäeva sektsiooni värvid */
  --tuesday-bg: #FFA15B;
  --tuesday-primary: #70150B;
  --tuesday-secondary: #571008;
  --tuesday-pill-bg: #FFF6E5;
  --toggle-plant-color: #7BBF34;
  --toggle-meat-color: #6B120B;

  /* Üleminekute sujuvus */
  --ease-spring: cubic-bezier(0.2, 1.25, 0.35, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. ALUSE RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--hero-bg);
  color: var(--hero-text-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--hero-bg);
  transition: background-color 0.8s var(--ease-smooth);
}

/* ==========================================================================
   3. HERO SEKKTSIOON (Kompaktne, et alumine sektsioon juba paistaks)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: auto; /* Ei võta tervet ekraani, et alumine osa paistaks */
  background-color: var(--hero-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2.2rem 3.5rem 4.8rem 3.5rem;
  overflow: hidden;
  transition: background-color 0.9s ease-out;
}



.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Päis ja Kooli Logo */
.hero-header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 2.9rem;
}

.school-logo-wrapper {
  position: relative;
  width: 230px;
  height: 44px;
}

.school-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.8s var(--ease-smooth);
}

.logo-white {
  opacity: 1;
}

.logo-dark {
  opacity: 0;
}

/* Kui heledaks muutub leht */
.is-light-theme .logo-white {
  opacity: 0;
}
.is-light-theme .logo-dark {
  opacity: 1;
}

/* Hero põhisintees (2 veergu) */
.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: flex-start;
  gap: 2.5rem;
  width: 100%;
}

/* Vasak veerg: Pealkiri ja Kaardid */
.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  max-width: 820px;
}

.main-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.title-primary {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 700;
  color: var(--hero-text-title);
  transition: color 1.4s var(--ease-smooth);
  text-transform: uppercase;
  line-height: 0.98;
}

.title-secondary {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  line-height: 0.98;
}

.word-week {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 700;
  color: var(--hero-text-title);
  transition: color 1.4s var(--ease-smooth);
  text-transform: uppercase;
}

.date-badge {
  font-size: clamp(1.9rem, 4vw, 3.8rem);
  font-weight: 400;
  color: var(--hero-text-date);
  letter-spacing: 0.02em;
  transition: color 1.4s var(--ease-smooth);
}

/* Tegevuste plokk */
.activities-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.activities-heading {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 500;
  color: var(--hero-text-title);
  transition: color 1.4s var(--ease-smooth);
}

/* 4 kaarti horisontaalses reas (kitsam ja kompaktsem, rohkema kumaga!) */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: none;
  width: 100%;
}

.activity-card {
  display: flex;
  height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 0.6rem;
  min-height: 100px;
  border-radius: 16px;
  background-color: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: 0 0 14px rgba(160, 255, 190, 0.75),
              0 0 28px rgba(120, 245, 180, 0.45),
              0 0 42px rgba(80, 220, 160, 0.25);
  cursor: default;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 1.4s var(--ease-smooth),
              background-color 1.4s var(--ease-smooth),
              border-color 1.4s var(--ease-smooth);
}

/* KUI TAUST ON HELE: diskreetne, ent märgatav valge outer glow */
.is-light-theme .activity-card {
  background-color: var(--card-bg);
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.95),
              0 0 22px rgba(255, 255, 255, 0.6),
              0 2px 10px rgba(10, 35, 31, 0.05);
}

.activity-icon-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
}

.activity-icon {
  width: 100%;
  height: 100%;
  max-width: 60px;
  max-height: 60px;
}

.activity-icon path,
.activity-icon circle {
  fill: var(--card-icon-fill);
  stroke: var(--card-icon-fill);
  stroke-width: 0.55px;
  stroke-linejoin: round;
  transition: fill 0.8s var(--ease-smooth);
}

.activity-text {
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--card-icon-fill);
  transition: color 0.8s var(--ease-smooth);
}

/* ==========================================================================
   3.5. NÄDALA KAVA (AKORDION & NUPP)
   ========================================================================== */
.schedule-shell {
  grid-column: 1 / -1;
  width: min(100%, 1276px);
  margin: 2.2rem auto 0 auto;
}

.schedule-toggle {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 3rem;
  min-height: 72px;
  padding: 12px 32px 12px 34px;
  border: 1.5px solid rgba(180, 255, 205, 0.7);
  border-radius: 999px;
  color: #06212b;
  background: #f6ffd6;
  box-shadow: 0 0 16px rgba(246, 255, 214, 0.35);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: clamp(1.35rem, 2.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  transition:
    transform 180ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.schedule-toggle:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(246, 255, 214, 0.5);
}

.schedule-toggle:focus-visible {
  outline: 3px solid #f6ffd6;
  outline-offset: 4px;
}

.is-light-theme .schedule-toggle {
  color: #f6ffd6;
  background: #06212b;
  border-color: #06212b;
  box-shadow: 0 4px 18px rgba(6, 33, 43, 0.16);
}

.is-light-theme .schedule-toggle:hover {
  background: #143742;
  box-shadow: 0 6px 22px rgba(6, 33, 43, 0.25);
}

.schedule-toggle__arrow {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.schedule-toggle__arrow.is-open {
  transform: rotate(90deg);
}

.schedule-accordion {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease,
    visibility 0s linear 500ms;
}

.schedule-accordion.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 400ms ease 80ms,
    visibility 0s linear;
}

.schedule-accordion__inner {
  min-height: 0;
  overflow: hidden;
}

.schedule-list {
  margin-top: 62px;
  border-top: 1px solid rgba(180, 255, 205, 0.35);
  transition: border-color 0.8s var(--ease-smooth);
}

.is-light-theme .schedule-list {
  border-top-color: #24424a;
}

.schedule-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 225px;
  align-items: center;
  min-height: 208px;
  border-bottom: 1px solid rgba(180, 255, 205, 0.35);
  transition: border-color 0.8s var(--ease-smooth);
}

.is-light-theme .schedule-row {
  border-bottom-color: #24424a;
}

.schedule-date {
  align-self: center;
  padding: 26px 4px;
}

.schedule-date p {
  margin: 0 0 8px;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--hero-text-title);
  transition: color 0.8s var(--ease-smooth);
}

.schedule-date time {
  display: block;
  font-size: 82px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.065em;
  color: var(--hero-text-date);
  transition: color 0.8s var(--ease-smooth);
}

.is-light-theme .schedule-date p,
.is-light-theme .schedule-date time {
  color: #06212b;
}

.schedule-events {
  margin: 0;
  padding: 26px 22px 26px 28px;
  list-style: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.028em;
  color: var(--hero-text-title);
  transition: color 0.8s var(--ease-smooth);
}

.is-light-theme .schedule-events {
  color: #06212b;
}

.schedule-events li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  column-gap: 8px;
}

.schedule-events li::before {
  content: "•";
  font-size: 0.82em;
  line-height: 1.35;
}

.schedule-events li + li {
  margin-top: 7px;
}

.schedule-art {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
}

.schedule-image {
  display: block;
  max-width: none;
  object-fit: contain;
  transition: filter 0.8s var(--ease-smooth);
}

.is-light-theme .schedule-image {
  mix-blend-mode: multiply;
}

.schedule-image--leaf {
  width: 190px;
  height: 184px;
}

.schedule-image--meal {
  width: 176px;
  height: 176px;
  border-radius: 50%;
}

.schedule-image--cloud {
  width: 225px;
  height: 156px;
}

.schedule-image--jacket {
  width: 190px;
  height: 190px;
}

.schedule-image--bag {
  width: 205px;
  height: 190px;
}

/* ==========================================================================
   4. PAREM VEERG: LOODUSE ELEMENTIDE RING & KUMA
   ========================================================================== */
.hero-bouquet-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Kimbu konteiner - kompaktne ring/pall */
.nature-cluster {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Taustal asuvate kumade kiht (z-index: 0, RANGELT KÕIGI elementide taga!) */
.bouquet-glow-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* 1. Suur ühine valge päikseline GLOW heleda tausta jaoks (hele ja taimne) */
.glow-light-full {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1.18);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.85) 45%,
    rgba(255, 255, 255, 0.4) 70%,
    rgba(255, 255, 255, 0) 85%
  );
  filter: blur(30px);
  opacity: var(--glow-light-opacity, 0);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.8s var(--ease-smooth);
}

/* 2. Elemendipõhised kumad taustal:
   - Alguses tumedal taustal: sama helerohekas/mündi kuma nagu tegevuste kastide taga!
   - Iga elemendiga läheb kuma tugevamaks (alguses õrnem, lõpuks intensiivsem).
   - Alles lõpus, kui leht läheb kollaseks (.is-light-theme), muutub kuma valgeks!
   - Stardivad täpselt samal ajal ülevalt (-120vh) ja liiguvad koos elemendiga kohale!
   - Asuvad kihis .bouquet-glow-layer (z-index: 0), jäädes rangelt kõigi elementide taha! */
.elem-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-120vh) scale(0.7);
  background: radial-gradient(
    circle,
    rgba(160, 255, 190, 0.85) 0%,
    rgba(120, 245, 180, 0.55) 38%,
    rgba(80, 220, 160, 0.20) 65%,
    rgba(80, 220, 160, 0) 80%
  );
  filter: blur(22px);
  transition: opacity 0.5s ease-out,
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              background 1.2s var(--ease-smooth);
  will-change: transform, opacity;
}

.elem-glow.is-visible {
  transform: translate(0, 0) scale(1);
}

/* Kuma tugevus: alguses õrnem, iga lisanduva elemendiga läheb tugevamaks */
.glow-elem-honeycomb.is-visible { opacity: 0.35; }
.glow-elem-apple.is-visible     { opacity: 0.42; }
.glow-elem-feather.is-visible   { opacity: 0.50; }
.glow-elem-mushroom.is-visible  { opacity: 0.58; }
.glow-elem-flower.is-visible    { opacity: 0.66; }
.glow-elem-berries.is-visible   { opacity: 0.74; }
.glow-elem-shell.is-visible     { opacity: 0.82; }
.glow-elem-dandelion.is-visible { opacity: 0.90; }
.glow-elem-strawberry.is-visible{ opacity: 0.98; }

/* KUI LEHT LÄHEB KOLLASEKS: Kogu kuma muutub puhtaks valgusküllaseks VALGEKS! */
.is-light-theme .elem-glow {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.65) 40%,
    rgba(255, 255, 255, 0.20) 65%,
    rgba(255, 255, 255, 0) 80%
  );
}

.is-light-theme .elem-glow.is-visible {
  opacity: 0.95;
}

/* Kärjemee valge kuma */
.glow-elem-honeycomb {
  left: 27%;
  top: 34%;
  width: 48%;
  height: 48%;
}

/* Õuna valge kuma */
.glow-elem-apple {
  left: 26%;
  top: 4%;
  width: 42%;
  height: 42%;
}

/* Sule valge kuma */
.glow-elem-feather {
  left: 4%;
  top: 12%;
  width: 54%;
  height: 54%;
}

/* Kukeseene valge kuma */
.glow-elem-mushroom {
  left: 50%;
  top: 10%;
  width: 40%;
  height: 40%;
}

/* Lille valge kuma */
.glow-elem-flower {
  left: 0%;
  top: 23%;
  width: 48%;
  height: 48%;
}

/* Pihlakate valge kuma */
.glow-elem-berries {
  left: 38%;
  top: 24%;
  width: 64%;
  height: 64%;
}

/* Merikarbi valge kuma */
.glow-elem-shell {
  left: 10%;
  top: 52%;
  width: 38%;
  height: 38%;
}

/* Võilille valge kuma */
.glow-elem-dandelion {
  left: 49%;
  top: 50%;
  width: 45%;
  height: 45%;
}

/* Maasika valge kuma */
.glow-elem-strawberry {
  left: 31%;
  top: 63%;
  width: 38%;
  height: 38%;
}

/* Üksikud looduselemendid: TULEVAD ÜLEVALT EKRAANI SISSE */
.nature-item {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-120vh) scale(0.7);
  transition: opacity 0.4s ease-out,
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Kui element lendab sisse ja maandub kimbus oma kohale */
.nature-item.is-visible {
  opacity: 1;
}

/* TIHE, ÜHTNE RING / PALL (elementide paigutus ja kihilisus) */

/* 1. Kärjemesi (keskel ankur, tuleb 1. kohale) */
.nature-honeycomb {
  left: 31%;
  top: 38%;
  width: 40%;
  z-index: 2;
  transform: translateY(-120vh) scale(0.7) rotate(0deg);
}
.nature-honeycomb.is-visible {
  transform: translate(0, 0) scale(1) rotate(0deg);
}

/* 2. Õun (üleval keskel, ORANŽI LILLE PEAL: z-index 4, tuleb 2. kohale) */
.nature-apple {
  left: 30%;
  top: 8%;
  width: 34%;
  z-index: 4;
  transform: translateY(-120vh) scale(0.7) rotate(2deg);
}
.nature-apple.is-visible {
  transform: translate(0, 0) scale(1) rotate(2deg);
}

/* 3. Linnusulg (vasakul üleval, toetub õunale/kärjele: z-index 1, tuleb 3. kohale) */
.nature-feather {
  left: 8%;
  top: 16%;
  width: 48%;
  z-index: 1;
  transform: translateY(-120vh) scale(0.7) rotate(-46deg);
}
.nature-feather.is-visible {
  transform: translate(0, 0) scale(1) rotate(-46deg);
}

/* 4. Kukeseen (paremal üleval: z-index 1, tuleb 4. kohale) */
.nature-mushroom {
  left: 54%;
  top: 14%;
  width: 33%;
  z-index: 1;
  transform: translateY(-120vh) scale(0.7) rotate(24deg);
}
.nature-mushroom.is-visible {
  transform: translate(0, 0) scale(1) rotate(24deg);
}

/* 5. Kollane/oranž lill (vasakul, ÕUNA TAGA: z-index 3, tuleb 5. kohale) */
.nature-flower {
  left: 3%;
  top: 27%;
  width: 42%;
  z-index: 3;
  transform: translateY(-120vh) scale(0.7) rotate(-6deg);
}
.nature-flower.is-visible {
  transform: translate(0, 0) scale(1) rotate(-6deg);
}

/* 6. Pihlakad (paremal kobar, suurem ja lopsakas: z-index 5, tuleb 6. kohale) */
.nature-berries {
  left: 42%;
  top: 28%;
  width: 58%;
  z-index: 5;
  transform: translateY(-120vh) scale(0.7) rotate(0deg);
}
.nature-berries.is-visible {
  transform: translate(0, 0) scale(1) rotate(0deg);
}

/* 7. Merikarp (all vasakul: z-index 6, tuleb 7. kohale) */
.nature-shell {
  left: 14%;
  top: 56%;
  width: 31%;
  z-index: 6;
  transform: translateY(-120vh) scale(0.7) rotate(4deg);
}
.nature-shell.is-visible {
  transform: translate(0, 0) scale(1) rotate(4deg);
}

/* 8. Võilill (all paremal: z-index 6, tuleb 8. kohale) */
.nature-dandelion {
  left: 53%;
  top: 54%;
  width: 37%;
  z-index: 6;
  transform: translateY(-120vh) scale(0.7) rotate(0deg);
}
.nature-dandelion.is-visible {
  transform: translate(0, 0) scale(1) rotate(0deg);
}

/* 9. Maasikas (all keskel esiplaanil: z-index 7, tuleb viimasena 9. kohale) */
.nature-strawberry {
  left: 35%;
  top: 67%;
  width: 29%;
  z-index: 7;
  transform: translateY(-120vh) scale(0.7) rotate(0deg);
}
.nature-strawberry.is-visible {
  transform: translate(0, 0) scale(1) rotate(0deg);
}



/* ==========================================================================
   5. SEKKTSIOON 2: LIHAVABA TEISIPÄEV (Kompaktsem, toitude ruumiline vahetus)
   ========================================================================== */
.tuesday-section {
  position: relative;
  width: 100%;
  min-height: auto;
  background-color: var(--tuesday-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3.5rem 4.5rem 3.5rem;
}

.tuesday-container {
  width: 100%;
  max-width: 1360px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 4.5rem;
}

/* Taldriku veerg */
.plate-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.plate-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keraamiline taldrik (laual puhkav realistlik vari!) */
.ceramic-plate {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.3));
  pointer-events: none;
  user-select: none;
}

/* Toidukihtide ja toiduobjektide positsioonid */
.food-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.food-item {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  /* Sujuv ruumiline üleminek */
  transition: transform 0.65s cubic-bezier(0.2, 1, 0.35, 1),
              opacity 0.55s ease,
              filter 0.55s ease;
  will-change: transform, opacity, filter;
}

/* LOOMSED TOIDUD (taldrikul kindlates kohtades koos väikese kontaktvarjuga!) */
.food-meat-steak {
  left: 50%;
  top: 12%;
  width: 42%;
  z-index: 2;
  filter: drop-shadow(5px 2px 2px rgba(0, 0, 0, 0.35));
}

.food-meat-muna {
  left: 8%;
  top: 7%;
  width: 48%;
  z-index: 2;
  filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.32));
}

.food-meat-bacon {
  left: 6%;
  top: 50%;
  width: 49%;
  z-index: 3;
  filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.32));
}

.food-meat-sausage {
  left: 48%;
  top: 49%;
  width: 39%;
  z-index: 3;
  filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.45));
}

/* TAIMSED TOIDUD (algselt õhus teisel pool peidus, saabuvad suunaga taldrikule) */
.food-plant-tofu {
  left: 48%;
  top: 13%;
  width: 42%;
  z-index: 2;
  opacity: 0;
  transform: translate(-65px, -50px) scale(1.15);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.35));
}

.food-plant-kinoa {
  left: 10%;
  top: 12%;
  width: 45%;
  z-index: 2;
  opacity: 0;
  transform: translate(65px, -50px) scale(1.15);
  filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.40));
}

.food-plant-oad {
  left: 15%;
  top: 51%;
  width: 36%;
  z-index: 3;
  opacity: 0;
  transform: translate(65px, 50px) scale(1.65);
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
}

.food-plant-salat {
  left: 41%;
  top: 53%;
  width: 46%;
  z-index: 3;
  opacity: 0;
  transform: translate(-65px, 50px) scale(1.15);
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
}

/* KUI LOOMNE TOIT LAHKUB: tõuseb üles ja liigub eemale hajuda */
.food-meat-steak.is-hidden {
  opacity: 0;
  transform: translate(70px, -60px) scale(1.15);
  filter: drop-shadow(10px 16px 14px rgba(0, 0, 0, 0.2));
}

.food-meat-muna.is-hidden {
  opacity: 0;
  transform: translate(-70px, -60px) scale(1.15);
  filter: drop-shadow(-10px 16px 14px rgba(0, 0, 0, 0.2));
}

.food-meat-bacon.is-hidden {
  opacity: 0;
  transform: translate(-70px, 60px) scale(1.15);
  filter: drop-shadow(-10px 16px 14px rgba(0, 0, 0, 0.2));
}

.food-meat-sausage.is-hidden {
  opacity: 0;
  transform: translate(70px, 60px) scale(1.15);
  filter: drop-shadow(10px 16px 14px rgba(0, 0, 0, 0.2));
}

/* KUI TAIMNE TOIT MAANDUB TALDRIKULE: maandub taldriku pinnale puhta kontaktvarjuga */
.food-plant-tofu.is-present {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.55));
}

.food-plant-kinoa.is-present {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.32));
}

.food-plant-oad.is-present {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.32));
}

.food-plant-salat.is-present {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.32));
}

/* Vahetuslüliti taldriku all (alati nähtav) */
.plate-toggle-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-smooth);
}

.toggle-icon-btn {
  background: none;
  border: none;
  cursor: default;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  pointer-events: none;
}

.toggle-icon-svg {
  width: 28px;
  height: 44px;
  fill: var(--tuesday-pill-bg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: fill 0.3s ease, transform 0.3s ease;
}

/* Kapslikujuline lüliti */
.toggle-switch-track {
  position: relative;
  width: 100px;
  height: 48px;
  border-radius: 999px;
  background-color: var(--tuesday-pill-bg);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12),
              0 6px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  user-select: none;
}

.toggle-switch-thumb {
  position: absolute;
  top: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--toggle-plant-color);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s var(--ease-spring),
              background-color 0.4s ease;
}

/* TAIMNE SEISUND: Nupp vasakul (erkroheline) */
.state-plant .toggle-switch-thumb {
  transform: translateX(5px);
  background-color: var(--toggle-plant-color);
}

/* LOOMNE SEISUND: Nupp paremal (tume punakaspruun) */
.state-meat .toggle-switch-thumb {
  transform: translateX(53px);
  background-color: var(--toggle-meat-color);
}

/* Parema veeru tekstid (liigendus: pealkiri+koht hästi lähestikku, siis vahe, siis miks+eesmärk hästi lähestikku, siis punktid) */
.tuesday-text-col {
  display: flex;
  flex-direction: column;
  color: var(--tuesday-primary);
}

.tuesday-title-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.tuesday-main-title {
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tuesday-primary);
  line-height: 0.95;
  margin: 0;
  padding: 0;
}

.tuesday-venue {
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 400;
  color: var(--tuesday-primary);
  line-height: 1.1;
  margin: 0.2rem 0 0 0;
  padding: 0;
}

.tuesday-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2.8rem;
}

.tuesday-why-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.why-heading {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 700;
  color: var(--tuesday-primary);
  letter-spacing: 0.02em;
  line-height: 1.0;
  margin: 0;
  padding: 0;
}

.purpose-lead {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight: 700;
  color: var(--tuesday-primary);
  line-height: 1.1;
  margin: 0.2rem 0 0 0;
  padding: 0;
}

.purpose-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
}

.purpose-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.purpose-bullet-icon {
  flex-shrink: 0;
  width: 32px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bullet-svg {
  width: 100%;
  height: 100%;
  fill: var(--tuesday-primary);
}

.purpose-text {
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--tuesday-secondary);
}

/* ==========================================================================
   6. RESPONSIVE KUJUNDUS (Mobiilid ja tahvlid)
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-section {
    padding: 2rem 2rem 3rem 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-text-col {
    max-width: 100%;
  }

  .hero-bouquet-col {
    width: 100%;
  }

  .tuesday-section {
    padding: 3rem 2rem 4rem 2rem;
  }

  .tuesday-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tuesday-text-col {
    max-width: 720px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .hero-content {
    display: flex;
    flex-direction: column;
  }

  .hero-text-col {
    display: contents;
  }

  .main-title {
    order: 1;
    width: 100%;
  }

  .title-primary,
  .word-week {
    font-size: clamp(3.4rem, 8vw, 5.5rem);
  }

  .date-badge {
    font-size: clamp(2.72rem, 6.4vw, 4.4rem);
  }

  .activities-block {
    order: 2;
  }

  .hero-bouquet-col {
    order: 3;
  }

  .schedule-toggle-wrap {
    order: 4;
  }
}
/* Portree- ja mobiilivaade: Lihavaba osa järjekord: Pealkiri+koht -> Taldrik -> Miks tekst */
@media (max-width: 900px), (orientation: portrait) {
  .tuesday-section {
    padding: 2.5rem 1.25rem 3.5rem 1.25rem;
  }

  .tuesday-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  /* Harutab sisu lahti täpseks järjekorraks:
     1. Pealkiri ja koht (tuesday-title-group)
     2. Taldrik ja vahetuslüliti (plate-col)
     3. Miks tekst ja eesmärkide nimekiri (tuesday-info-block) */
  .tuesday-text-col {
    display: contents;
  }

  .tuesday-title-group {
    order: 1;
    width: 100%;
    text-align: left;
    align-items: flex-start;
  }

  .tuesday-main-title {
    font-size: clamp(2.1rem, 10vw, 3rem);
    text-align: left;
    line-height: 0.95;
  }

  .tuesday-venue {
    font-size: clamp(1.05rem, 3.5vw, 1.35rem);
    text-align: left;
    line-height: 1.15;
    margin-top: 0.25rem;
  }

  .plate-col {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin: 0.5rem 0;
  }

  .plate-wrapper {
    max-width: 320px;
    width: 100%;
  }

  .tuesday-info-block {
    order: 3;
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
    gap: 1.3rem;
  }

  .tuesday-why-group {
    text-align: left;
    align-items: flex-start;
  }

  .why-heading {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    text-align: left;
    line-height: 1.05;
  }

  .purpose-lead {
    font-size: clamp(1.15rem, 4.2vw, 1.45rem);
    text-align: left;
    line-height: 1.15;
    margin-top: 0.25rem;
  }

  .purpose-list {
    gap: 1.15rem;
  }

  .purpose-item {
    gap: 1rem;
  }

  .purpose-bullet-icon {
    width: 28px;
    height: 44px;
  }

  .purpose-text {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}

@media (max-width: 768px) {
  .schedule-toggle-wrap {
    order: 4;
  }

  .hero-section {
    padding: 1.8rem 1.25rem 3rem 1.25rem;
  }

  .school-logo-wrapper {
    width: 190px;
    height: 38px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
  }

  /* Mobiilis: Pealkiri üleval (algab samast servast kus logo), kimp kohe selle all, tegevused selle all */
  .hero-text-col {
    display: contents;
  }

  .main-title {
    order: 1;
    text-align: left;
    align-items: flex-start;
    width: 100%;
  }

  .title-primary {
    font-size: clamp(2.35rem, 10vw, 3.4rem);
    text-align: left;
    display: block;
    width: 100%;
  }

  .title-secondary {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: nowrap;
    text-align: left;
  }

  .word-week {
    font-size: clamp(2.35rem, 8vw, 3.4rem);
  }

  .date-badge {
    font-size: clamp(1.85rem, 5vw, 2.6rem);
  }

  .hero-bouquet-col {
    order: 2;
    margin: 0.4rem 0;
  }

  .nature-cluster {
    max-width: 320px;
  }

  .activities-block {
    order: 3;
    width: 100%;
  }

  .schedule-shell {
    order: 4;
    width: 100%;
    margin-top: 1rem;
  }

  /* Mobiilis 2x2 ruudustik, mis täidab ühtlaselt mobiili laiuse koos proportsionaalselt suurema sisuga */
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    width: 100%;
    max-width: 100%;
  }

  .activity-card {
    min-height: 126px;
    padding: 1.15rem 0.85rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .activity-icon-wrap {
    width: 52px;
    height: 52px;
    margin-bottom: 0.6rem;
  }

  .activity-icon {
    max-width: 44px;
    max-height: 44px;
  }

  .activity-text {
    font-size: 0.92rem;
    line-height: 1.3;
    font-weight: 500;
  }
}

@media (max-width: 900px) {
  .schedule-row {
    grid-template-columns: 210px minmax(0, 1fr) 150px;
  }

  .schedule-date p {
    font-size: 27px;
  }

  .schedule-date time {
    font-size: 66px;
  }

  .schedule-events {
    padding-inline: 18px;
    font-size: 17px;
  }

  .schedule-image {
    transform: scale(0.78);
  }
}

@media (max-width: 680px) {
  .schedule-toggle {
    min-height: 54px;
    gap: 12px;
    padding: 10px 22px 10px 24px;
    font-size: 1.45rem;
  }

  .schedule-toggle__arrow {
    width: 24px;
    height: 24px;
    stroke-width: 4;
  }

  .schedule-list {
    margin-top: 2rem;
  }

  .schedule-row {
    display: block;
    min-height: 0;
    padding: 20px 0 22px;
  }

  .schedule-date {
    padding: 0 0 22px;
  }

  .schedule-date p {
    margin-bottom: 4px;
    font-size: clamp(1.7rem, 7.5vw, 2.1rem);
  }

  .schedule-date time {
    font-size: clamp(4rem, 18vw, 5rem);
  }

  .schedule-events {
    margin: 0;
    padding: 0 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .schedule-events li + li {
    margin-top: 8px;
  }

  .schedule-art {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-toggle,
  .schedule-toggle__arrow,
  .schedule-accordion {
    transition: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 1rem 2.5rem 1rem;
  }

  .school-logo-wrapper {
    width: 175px;
    height: 34px;
  }

  .title-primary, .word-week {
    font-size: clamp(2.2rem, 8.8vw, 2.85rem);
  }

  .date-badge {
    font-size: clamp(1.75rem, 6.8vw, 2.25rem);
  }

  .title-secondary {
    gap: 0.65rem;
  }

  .nature-cluster {
    max-width: 275px;
  }

  .plate-wrapper {
    max-width: 275px;
  }

  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  .activity-card {
    min-height: 118px;
    padding: 1.05rem 0.75rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .activity-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 0.55rem;
  }

  .activity-icon {
    max-width: 40px;
    max-height: 40px;
  }

  .activity-text {
    font-size: 0.86rem;
    line-height: 1.28;
    font-weight: 500;
  }

  .tuesday-main-title {
    font-size: clamp(1.95rem, 9vw, 2.45rem);
  }

  .tuesday-venue {
    font-size: 0.83rem;
  }

  .why-heading {
    font-size: 1.25rem;
  }

  .purpose-lead {
    font-size: 1.05rem;
  }

  .purpose-text {
    font-size: 0.88rem;
  }
}
@media (min-width: 681px) and (max-width: 768px) {
  .title-primary,
  .word-week {
    font-size: clamp(3.4rem, 8vw, 5.5rem);
  }

  .date-badge {
    font-size: clamp(2.72rem, 6.4vw, 4.4rem);
  }
}

.site-footer {
  width: 100%;
  background: #F7FFD6;
  color: #06212b;
}

.site-footer__inner {
  width: min(100%, 1360px);
  min-height: 88px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__school {
  font-size: 1.25rem;
  line-height: 1.2;
}

.site-footer__logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
}

.site-footer__logos img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 140px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .site-footer__inner {
    padding-inline: 24px;
  }

  .site-footer__logos {
    gap: 16px;
  }

  .site-footer__logos img {
    height: 56px;
    max-width: 120px;
  }
}

@media (max-width: 680px) {
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
    padding: 18px 20px;
  }

  .site-footer__school {
    font-size: 0.9rem;
  }

  .site-footer__logos {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .site-footer__inner {
    padding-inline: 16px;
  }

  .site-footer__logos img {
    height: 48px;
    max-width: 30%;
  }
}
