/* ==============================
   VK Liivlased – style.css
   ============================== */

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

:root {
  --color-bg:       #f5f0e8;
  --color-text:     #111111;
  --color-muted:    #555555;
  --color-white:    #ffffff;
  --color-dark: #000000;
  --color-border:   #d5cfc5;
  --color-accent: #001450;
  --font-display:   'Georgia', serif;
  --font-body:      'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}




/* ── BUTTONS ─────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn--outline {
  background-color: rgba(255, 255, 255, 1);
  color: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.6);
}

.btn--solid {
  background-color: var(--color-dark);
  color: var(--color-white);
  border: 1px solid var(--color-dark);
}

/* ── TAGLINE ─────────────────────────────── */

.tagline {
  background-color: var(--color-bg);
  text-align: center;
  padding: 2rem 1rem;
}

.tagline p {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.01em;
}

.kastid {
  display: flex;
  flex-direction: column;
}

.kast {
  display: flex;
  align-items: stretch;
}

.kast--reverse {
  flex-direction: row-reverse;
}

.kast__pilt {
  flex: 1 1 50%;
  min-height: 360px;
  overflow: hidden;
}

.kast__pilt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kast__sisu {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem clamp(1.5rem, 5vw, 5rem);
  background-color: var(--color-bg);
}

.kast--reverse .kast__sisu {
  background-color: var(--color-white);
}

.kast__pealkiri {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.kast__tekst {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 42ch;
  margin: 0;
}

.kast__link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.kast__link::after {
  content: " →";
}

.kast__link:hover {
  color: var(--color-accent);
}

.flash-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.flash-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  animation: toast-slide-in 0.25s ease-out;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.flash-toast--success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.flash-toast--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.flash-toast__close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0;
}

.flash-toast__close:hover {
  opacity: 1;
}




/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 768px) {
    .hero {
    height: 400px;
  }

  .hero__title {
    font-size: 1.8rem;
  }
  .navbar {
    padding: 0 1rem;
  }

  .navbar__logo {
    font-size: 1.15rem;
  }

  .navbar__nav {
    gap: 1rem;
  }

  .navbar__nav a {
    font-size: 0.95rem;
  }

  .hero {
    height: 400px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__links {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .kast,
  .kast--reverse {
    flex-direction: column;
  }

  .kast__pilt {
    min-height: 240px;
    flex: none;
  }

  .kast__sisu {
    padding: 2rem 1.5rem 2.5rem;
  }

  .kast--reverse .kast__sisu {
    background-color: var(--color-bg);
  }
    .flash-container {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}
/* ── NAVBAR ─────────────────────────────── */

site-nav {
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background-color: var(--color-bg);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar__brand {
  text-decoration: none;
  z-index: 101;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 101;
}

.navbar__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar--menu-open .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar--menu-open .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar--menu-open .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__logo {
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -3%;
  line-height: 110%;
  color: var(--color-dark);
  text-transform: uppercase;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__backdrop {
  display: none;
}

.navbar a {
  text-decoration: none;
}

.navbar__nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
  position: relative;
}

.navbar__nav a:hover {
  opacity: 0.6;
}

.dropdown__chevron {
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}


.dropdown--open .dropdown__chevron {
  transform: rotate(180deg);
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropdownbtn {
  font-size: 0.95rem;
  border: none;
  color: var(--color-dark);
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-bg);
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  opacity: 0.6;
}


.dropdown--open .dropdown-content {
  display: block;
}

.footer__email {
  font-size: 0.875rem;
  color: var(--color-muted, #555);
  text-decoration: none;
}

/* ── DESKTOP LAYOUT ──────────────────────── */

@media (min-width: 769px) {
  site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 2rem;
  }

  .navbar {
    padding: 0;
    height: auto;
    border: none;
    background: transparent;
    flex: 0 0 auto;
  }
  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown:hover .dropdown__chevron {
    transform: rotate(180deg);
  }
}

/* ── MOBILE LAYOUT ───────────────────────── */

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .navbar__logo {
    font-size: 1.15rem;
  }

  .navbar__nav {
    gap: 1rem;
  }

  .navbar__nav a {
    font-size: 0.85rem;
  }



  .footer__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__links {
    gap: 2rem;
    flex-wrap: wrap;
  }
  site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    border-bottom: none;
  }

  body {
    padding-top: 60px;
  }

  .navbar {
    z-index: 1102;
    border-bottom: 1px solid var(--color-border);
  }
    .navbar__nav a {
        font-size: 0.95rem;
    }

  .navbar__toggle {
    display: flex;
    position: relative;
    z-index: 1103;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .navbar__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .navbar__backdrop--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar__nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: calc(100dvh - 60px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    z-index: 1101;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.35s ease,
      visibility 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar__nav > a,
  .dropdown {
    padding: 0.95rem 2rem;
    border-bottom: 1px solid var(--color-border);
  }

  .dropdown {
    float: none;
    overflow: visible;
  }

  .dropdown .dropdownbtn {
    width: 100%;
    text-align: left;
    padding: 0;
    cursor: pointer;
    font-size: 0.95rem;
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
    min-width: unset;
  }

  .dropdown-content a {
    padding: 0.6rem 0;
  }

  .navbar__nav a.is-active::after {
    display: none;
  }
}

/* ── SCROLL REVEAL ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO TITLE ENTRANCE ─────────────────── */

.hero__title--animate {
  animation: heroTitleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── NAVBAR SCROLL STATE ─────────────────── */

site-nav.site-nav--scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  background-color: rgba(245, 240, 232, 0.92);
}

@media (min-width: 769px) {
  site-nav.site-nav--scrolled {
    backdrop-filter: blur(8px);
  }
}

/* ── ACTIVE NAV LINKS ────────────────────── */

.navbar__nav a.is-active,
.dropdown.is-active > .dropdownbtn {

  opacity: 1;
  position: relative;
}

.navbar__nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent, #c47a2c);
  border-radius: 1px;
}

/* ── BUTTON HOVER ENHANCEMENTS ───────────── */

.btn-join,
.kast__link {
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn-join:hover {
  transform: translateY(-2px);
}

.kast__pilt img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.kast:hover .kast__pilt img {
  transform: scale(1.04);
}

/* ── MOBILE NAV OPEN STATE ───────────────── */

body.nav-menu-open {
  overflow: hidden;
}

/* ── FOOTER ──────────────────────────────── */

.footer {
  background-color: var(--color-white);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
}

.footer__divider {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Brand / Instagram */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.footer__instagram {
  display: inline-flex;
  color: var(--color-dark);
  transition: opacity 0.2s;
}

.footer__facebook {
  display: inline-flex;
  color: var(--color-dark);
  transition: opacity 0.2s;
}

.footer__instagram:hover {
  opacity: 0.6;
}

.footer__facebook:hover {
  opacity: 0.6;
}

/* Link columns */
.footer__links {
  display: flex;
  gap: 3.5rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.footer__col a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--color-dark);
}

@media (max-width: 768px) {
    .footer__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__links {
    gap: 2rem;
    flex-wrap: wrap;
  }
  .footer__brand-name {
    font-size: 1rem;
  }

  .footer__col a {
    font-size: 0.8rem;
  }
}
/* ── HERO ────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: blur(2px);
  transform: scale(0.7);
  animation: zoomIn 5s ease-in-out forwards;
}

.hero__bg.kodu{
    object-position: center;
}

.hero__bg.treeningud{
    object-position: 20px;
}


@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.30) 60%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
}



.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-bottom: 3.5rem;
  text-align: center;
  gap: 2rem;

}



.hero__title {
  font-family: var(--font-body);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero__buttons {
  display: flex;
  gap: 0.75rem;

}
