/* =========================
   TOKENS / ROOT VARIABLES
   ========================= */

:root {
  /* Colors */
  --color-bg: #0f0f10;
  --color-bg-gradient-start: #191c23;
  --color-bg-gradient-end: #0a0b0d;
  --color-surface: #1d2129;

  --color-primary: #ff6600;
  --color-secondary: #f06c64;

  --color-text: #e5e5e5;
  --color-muted: #a0a0a0;
  --color-border: #2e3340;

  /* Radius */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;

  /* Motion */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;

  /* Typography */
  --font-size-base: 16px;
  --font-family-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --header-offset: 110px;
}

@media (max-width: 768px) {
  :root { --header-offset: 140px; }
}

/* =========================
   ACCESSIBILITY UTILITIES
   ========================= */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 1000;

  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-small);

  transition: top var(--transition-fast);
}

.skip-link:focus { top: 0; }

/* Anchor offsets (sticky header) */
#home,
#about,
#performances {
  scroll-margin-top: var(--header-offset);
}

/* =========================
   RESET + BASE
   ========================= */

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  min-height: 100vh;
  display: flex;
  flex-direction: column;

  color: var(--color-text);
  font-family: "elza", sans-serif;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.5;

  background:
    radial-gradient(
      circle at top left,
      var(--color-bg-gradient-start) 0%,
      var(--color-bg-gradient-end) 100%
    ),
    var(--color-bg);

  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* =========================
   LAYOUT PRIMITIVES
   ========================= */

main {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* =========================
   LAYOUT PRIMITIVES
   ========================= */

.section {
  padding: clamp(2rem, 4vw, 5rem) 0;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .wrap {
    padding-inline: 2rem;
  }
}

.wrap--wide {
  max-width: 1400px;
}

/* =========================
   TYPO: SECTION TITLE (REUSE)
   ========================= */

.section-title {
  text-align: center;
  margin: 0 0 clamp(1.5rem, 3vw, 3rem);

  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;

  font-family: "Playfair Display", serif;
  font-weight: 500;
  color: var(--color-text);
}

/* Variants (optional) */
.section-title--light { color: #000;}
.section-title--left { text-align: left; }

/* =========================
   BUTTON (GLOBAL) — single source of truth
   ========================= */

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-medium);
  border-width: 0;

  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;

  cursor: pointer;

  /* Works on <a> and <button> */
  appearance: none;
  -webkit-appearance: none;

  /* kill underline on links no matter what */
  text-decoration: none !important;

  color: #e5e5e5;
  background: linear-gradient(rgb(0 0 0 / 10%), rgba(0, 0, 0, 0.92)), var(--color-primary);

  transition:
      transform var(--transition-fast),
      border-color var(--transition-fast),
      color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  background: #111;
  border-color: #111;
  color: #fff;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.55);
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* Variants (new naming) */
.btn--pill { border-radius: 999px; }

.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Backward-compatible aliases (old naming) */
.btn-small { /* old -> new */
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.btn-ghost { /* old -> outline */
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Optional helper: full-width buttons ONLY where you need it */
.btn--block {
  display: flex;   /* keeps centering like inline-flex */
  width: 100%;
}


/* =========================
   GLOBAL - SECTION VARIANTS
   ========================= */

/* Sektsioonil taust + kontrollitud padding (kasuta siis kui vaja) */
.section--flush {
  padding: 0;
}

/* Kui tahad sektsioonile sama tausta mustrit mis body’l, aga eraldi */
.section--bg {
  background:
    radial-gradient(
      circle at top right,
      var(--color-bg-gradient-start),
      var(--color-bg-gradient-end)
    ),
    var(--color-bg);
}

/* =========================
   HEADER (SITE CHROME)
   ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(15, 15, 16, 0.85) 70%,
    rgba(20, 22, 26, 0.8) 100%
  );
  backdrop-filter: blur(6px);

  /* iOS safe-area (Fold/iphone notch etc) */
  padding-inline: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
}

header .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
}

header .logo-container img {
  display: block;
  max-height: 3rem;
  width: auto;
}

header nav {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
header nav::-webkit-scrollbar { display: none; }

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;

  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;

  gap: clamp(0.35rem, 2.5vw, 1rem);

  width: max-content;
  margin-inline: auto;   /* <-- hoiab keskel */
}


header nav li { position: relative; }

header nav a {
  display: inline-flex;
  align-items: center;

  padding: clamp(0.35rem, 1.8vw, 0.5rem);

  color: var(--color-text);
  font-size: clamp(10px, 2.7vw, 12px);
  font-weight: 500;

  /* kitsal ekraanil letter-spacing peab kukkuma */
  letter-spacing: clamp(0.5px, 0.7vw, 2px);

  text-decoration: none;
}

header nav a:focus:not(:focus-visible) { outline: none; }

header nav a:hover,
header nav a:focus {
  color: var(--color-primary);
}

header nav a.is-active { color: var(--color-primary); }

/* Extra-tight screens (Fold cover jne) */
@media (max-width: 360px) {
  header .logo-container { padding-top: 0.75rem; }
  header .logo-container img { max-height: 2.6rem; }

  header nav ul { justify-content: flex-start; }
}


/* =========================
   FOOTER (SITE CHROME)
   ========================= */

footer {
  padding: 0.75rem 1rem;
  text-align: center;

  position: relative;
  z-index: 2;
  isolation: isolate;

  /* anchor, et fixed taust ei kumaks läbi */
  background-color: rgba(0, 0, 0, 0.96);

  /* darker + subtle fade towards page content */
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.95) 45%,
    rgba(15, 15, 16, 0.90) 75%,
    rgba(25, 27, 30, 0.85) 100%
  );

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

footer .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer .social-links a {
  color: var(--color-text);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;
  border-radius: 50%;

  transition: background var(--transition-fast), color var(--transition-fast);
}

footer .social-links a:hover,
footer .social-links a:focus {
  background: var(--color-primary);
  color: #fff;
}

footer p {
  margin: 0.5rem 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* =========================
   COOKIE BANNER
   ========================= */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;

  max-width: 980px;
  margin: 0 auto;

  background: rgba(0, 0, 0, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);

  padding: 1rem;

  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;

  z-index: 999;
}

.cookie-banner.hidden { display: none; }

.cookie-banner p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.4;
}

.cookie-banner a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner a:hover,
.cookie-banner a:focus {
  color: var(--color-secondary);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner button {
  appearance: none;
  border-radius: var(--radius-medium);
  font: inherit;
  cursor: pointer;

  padding: 0.65rem 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    filter var(--transition-fast);
}

/* Accept / Decline (võid hiljem asendada klassidega, mitte ID-dega) */
#cookie-accept {
  linear-gradient: (rgb(0 0 0 / 10%), rgba(0, 0, 0, 0.92)), var(--color-primary);
  color: #e5e5e5;
}

#cookie-accept:hover,
#cookie-accept:focus {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

#cookie-decline {
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--color-text);
}

#cookie-decline:hover,
#cookie-decline:focus {
  transform: translateY(-1px);
  border-color: var(--color-primary);
}

.cookie-banner button:focus-visible,
.cookie-banner a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions { width: 100%; }
  .cookie-banner button { width: 100%; }
}

/* Link-like utility */
.linklike {
  background: none;
  border: none;
  padding: 0;

  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;

  cursor: pointer;
  font: inherit;
}

.linklike:hover,
.linklike:focus {
  color: var(--color-primary);
}

/* =========================
   HERO section (index only)
   ========================= */

:root {
  --header-h: 92px;
}

body.home {
  background: #0f0f10;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));

  padding-top: var(--header-h);

  display: grid;
  place-items: center;
  position: relative;

  background: transparent;
  overflow: hidden;
}

/* Fixed background layer */

.hero::before {
  content: "";
  position: fixed;

  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;

  z-index: -1;

  /* default: phone + tablet image */
  background-image: url("../img/mobile_hero_countertenor_Martin_Karu.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;

  /* rendering stability */
  transform: translateZ(0);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  /* enamus hero-st hele, tumeneb peamiselt allosas */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.02) 55%,
    rgba(0,0,0,0.18) 72%,
    rgba(0,0,0,0.55) 88%,
    rgba(0,0,0,0.75) 100%
  );

  pointer-events: none;
}




/* Wide desktop only → swap image */

@media (min-width: 1025px) and (orientation: landscape) {
  .hero::before {
    background-image: url("../img/hero_countertenor_Martin_Karu.jpg");
    background-position: top center;
  }
}

/* Reduced motion users */

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    transform: none;
    will-change: auto;
  }
}


/* iOS/phones: prevent "zoom" by locking fixed layer to small viewport height */
@media (pointer: coarse) and (max-width: 768px) {
  .hero::before {
    top: 0;          /* lase headeril lihtsalt peal olla */
    left: 0;
    right: 0;
    bottom: auto;    /* ära seo bottom'iga */
    height: 100svh;  /* STABIILNE kõrgus, ei muutu URL bariga */
  }
}


/* =========================
   ABOUT section (index only)
   ========================= */

/* Prevent horizontal scroll caused by overlap */
.about { overflow-x: clip; }
@supports not (overflow: clip) { .about { overflow-x: hidden; } }

/* Section-specific look */
.about { background: #d9d9d9; }

/* DEFAULT: mobile + tablet = text-only */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
}

.about-image { display: none; position: relative; }
.about-image img { width: 100%; height: auto; display: block; }

/* Card (default: no overlap) */
.about-card {
  background: #d9d9d9;
  color: #111;
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

  position: relative;
  z-index: 2;

  margin-left: 0;
}

/* If you keep about-title as “delta” over .section-title */
.about-title {
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
  margin-inline: auto;
}

@media (min-width: 1025px) {
  .about-title {
    text-align: left;
    margin-inline: 0;
  }
}

/* Paragraph tuning */
.about-card p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;

  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;

  text-wrap: pretty;
}

/* Small screens tweak */
@media (max-width: 860px) {
  .about-card { margin-top: -1rem; }
}

/* DESKTOP ONLY: show image + 2-column + overlap */
@media (min-width: 1025px) {
  .about-wrap {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  }

  .about-image { display: block; }

  .about-card { margin-left: -30%; }
}

/* Reveal animation (all devices: card + title + text) */
.about-card,
.about-title {
  opacity: 0;
  will-change: transform, opacity;
}

.about-card {
  transform: translateY(60px); /* väiksem kui desktop, sobib mobile’ile */
  transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1100ms ease;
}

.about-title {
  transform: translateX(40px);
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1200ms ease;
  transition-delay: 180ms;
}

.about-card p {
  opacity: 0;
  transition: opacity 900ms ease;
}
.about-card p:nth-of-type(1) { transition-delay: 120ms; }
.about-card p:nth-of-type(2) { transition-delay: 220ms; }
.about-card p:nth-of-type(3) { transition-delay: 320ms; }

.about.is-inview .about-card,
.about.is-inview .about-title {
  opacity: 1;
  transform: translate(0);
}
.about.is-inview .about-card p { opacity: 1; }

/* Desktop: include image animation + stronger distances */
@media (min-width: 1025px) {
  .about-image {
    opacity: 0;
    will-change: transform, opacity;

    transform: translateX(-160px);
    transition: transform 2400ms cubic-bezier(0.22, 1, 0.36, 1), opacity 2400ms ease;
    transition-delay: 900ms;
  }

  .about-card { transform: translateY(90px); transition-duration: 1600ms; }
  .about-title { transform: translateX(90px); transition-duration: 1700ms; transition-delay: 450ms; }

  .about.is-inview .about-image {
    opacity: 1;
    transform: translate(0);
  }
}

.about-title {
  margin-bottom: 0.75rem;
}



/* =========================
   CALENDAR section (index only)
   ========================= */

.performances {
  /* padding comes from .section */
  background: radial-gradient(circle at top left, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%), var(--color-bg);
}

/* ===== Filters ===== */

.filters-bar {
  display: flex;
  justify-content: center;
  margin: 0 0 2rem;
}

.filters-pill {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.75rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(15, 15, 16, 0.85) 70%, rgba(20, 22, 26, 0.8) 100%);
  border-radius: 999px;
  padding: 0.4rem 0.5rem;

  max-width: 1100px;
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.filters-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.filters-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: #e5e5e5;
  color: #000;

  border: 0;
  border-radius: 999px;

  padding: 0.65rem 3rem 0.65rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;

  min-width: 240px;
  cursor: pointer;
  line-height: 1;
  outline: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}

.filters-select:focus-visible { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25); }
.filters-select:focus:not(:focus-visible) { box-shadow: none; outline: none; }

@media (max-width: 720px) {

  .filters-pill {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    justify-content: space-between;
    flex-wrap: nowrap;

    gap: 0.5rem;
    padding: 8px;
    border-radius: 50px;

    overflow: hidden;
  }

  .filters-label {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 0.45rem 0.7rem;
  }

  .filters-select {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    font-size: 0.85rem;
    padding: 0.5rem 2rem 0.5rem 0.85rem;
  }
}


/* ===== Events list layout ===== */

.event-list {
  display: block;
  border-top: 1px solid var(--color-border);

  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.event-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;

  padding: 1.1rem 0;

  display: grid;
  grid-template-columns: 14rem 1fr 14rem; /* date | details | action */
  gap: 1.5rem;
  align-items: center;

  justify-items: center;
  transition: background var(--transition-fast);
}

/* Hover ainult hiirega seadmetel (desktop/laptop) */
@media (hover: hover) and (pointer: fine) {
  .event-card:hover {
    background: rgba(255, 255, 255, 0.03);
  }
}

.event-date {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  white-space: nowrap;
  text-align: center;
}

.event-details { text-align: center; }

.event-details h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  text-align: center;
}

.event-venue,
.event-place {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.3;
  text-align: center;
}

.event-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Calendar action button: prevent full-width stretch on desktop */
.performances .event-actions .btn,
.performances .event-actions .event-btn {
  width: max-content;
  justify-self: center;
}

/* Mobile */
@media (max-width: 820px) {
  .event-list {
    max-width: 100%;
    padding: 0 1rem;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .performances .event-actions .btn {
    min-width: 0;
    width: max-content;
  }
}


.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  padding-inline: 1rem;
}

.load-more-wrap .btn {
  width: 100%;

}


/* =========================
   MEDIA (Hub wrapper)
   ========================= */

/* Hub: taust + flush padding (layout käib wrap/section kaudu) */
.media-hub {
  /* Kui kasutad global .section--bg ja .section--flush, siis võid selle ploki minimaalseks jätta */
  background:
    radial-gradient(
      circle at top right,
      var(--color-bg-gradient-start),
      var(--color-bg-gradient-end)
    ),
    var(--color-bg);

  padding: 0; /* hub ise ei määra sektsioonide vertikaalset spacingut */
}

/* Kui sul on media sees eraldi ülemine spacing, tee see siinsamas kontrollitult */
.media-hub .media {
  padding-top: clamp(2rem, 2vw, 5rem);
  padding-bottom: 0.75rem;
}

/* Media sisemine konteiner: kasuta globaalse wrap’i semantikat */
.media-hub .media .media-wrap {
  /* kui saad, kasuta HTML-is lihtsalt .wrap ja kustuta see */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1rem;
}

/* -------------------------
   MEDIA - REVIEWS
   ------------------------- */

/* Soovitus: kasuta pealkirjana .section-title.
   Kui sa ei taha HTML-i muuta, jäta see alias alles. */
.media-title {
  text-align: center;
  margin: 0 0 clamp(1.5rem, 3vw, 3rem);

  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;

  font-family: "Playfair Display", serif;
  font-weight: 500;
  color: var(--color-text);
}

/* Desktop: 2 columns */
.media-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

/* Reverse order on desktop */
@media (min-width: 861px) {
  .media-row--reverse {
    grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 1fr);
  }
  .media-row--reverse .media-photo { order: 2; }
  .media-row--reverse .media-quote { order: 1; }
}

.media-photo {
  position: relative;
}

.media-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-small);
}

/* Quote panel */
.media-quote {
  background: #d9d9d9;
  color: #111;
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}

/* Landscape image “overflow” behavior */
@media (min-width: 861px) {
  .media-photo.is-landscape img {
    width: 140%;
    max-width: none;
    height: auto;
    transform: translateX(0);
  }

  .media-row:not(.media-row--reverse) .media-photo.is-landscape img {
    transform: translateX(0);
  }

  .media-row--reverse .media-photo.is-landscape img {
    transform: translateX(-30%);
  }
}

/* Desktop overlap */
@media (min-width: 861px) {
  .media-row {
    position: relative;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .media-photo { z-index: 1; }

  .media-quote {
    z-index: 2;
    margin-left: -20%;
    margin-top: 40%;
    max-width: 800px;
  }

  .media-row--reverse .media-quote {
    margin-left: 0;
    justify-self: end;
  }
}

.media-quote blockquote {
  margin: 0;
  font-style: normal;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.55;
}

.media-quote cite {
  display: block;
  font-style: italic;
  font-weight: 600;
  text-align: right;
}

.quote-source::before { content: "— "; }

/* Mobile stacking */
@media (max-width: 860px) {
  .media-row { grid-template-columns: 1fr; }
  .media-quote { margin-left: 0; margin-right: 0; }
}

/* MEDIA animations (all devices: calm reveal) */
.media-photo,
.media-quote {
  opacity: 0;
  will-change: transform, opacity;
}

.media-row .media-photo {
  transform: translateY(24px);
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1200ms ease;
  transition-delay: 120ms;
}

.media-row .media-quote {
  transform: translateY(28px);
  transition: transform 1300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1300ms ease;
  transition-delay: 0ms;
}

.media-row.is-inview .media-photo,
.media-row.is-inview .media-quote {
  opacity: 1;
  transform: translate(0);
}

/* Desktop: stronger lateral motion */
@media (min-width: 861px) {
  .media-row .media-photo {
    transform: translateX(-160px);
    transition-duration: 2200ms;
    transition-delay: 200ms;
  }

  .media-row--reverse .media-photo {
    transform: translateX(160px);
  }

  .media-row .media-quote {
    transform: translateY(90px);
    transition-duration: 1600ms;
  }
}


/* =========================
   MEDIA - VIDEO
   ========================= */

:root {
  --video-accent: #ff6600;
  --video-card-bg: rgba(255, 255, 255, 0.06);
  --video-caption-bg: rgba(229, 229, 229, 0.55);
  --video-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
}

.video-embeds {
  padding: 0 0 clamp(1rem, 6vw, 5rem) 0;
}

/* Soovitus: HTML-is kasuta .wrap--wide. Kui ei saa, jäta see wrapper. */
.video-wrap {
  width: min(1400px, 93%);
  margin: 0 auto;
  position: relative;
}

/* Alias: kui sa ei taha HTML-is .section-title peale kolida */
.video-title {
  text-align: center;
  margin: 0 0 clamp(1.5rem, 3vw, 3rem);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  color: var(--color-text);
}

/* Carousel container */
.video-grid.video-grid--iframes.video-carousel {
  display: grid;
  grid-auto-flow: column;

  /* CRITICAL: deterministic column width => 2-up layout */
  grid-auto-columns: calc((100% - 1rem) / 2); /* gap = 1rem */

  gap: 1rem;
  margin-top: 1.25rem;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 0.25rem 0;

  scroll-snap-type: x mandatory;
  scroll-padding: 0;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
  -ms-overflow-style: none;

  /* prevents weird overflow in nested layouts */
  min-width: 0;
}
.video-grid.video-grid--iframes.video-carousel::-webkit-scrollbar { display: none; }

/* Mobile: 1-up */
@media (max-width: 600px) {
  .video-grid.video-grid--iframes.video-carousel {
    grid-auto-columns: 100%;
  }
}

/* Default grid (no carousel) */
.video-grid.video-grid--iframes:not(.video-carousel) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;

  min-width: 0;
}
@media (max-width: 900px) {
  .video-grid.video-grid--iframes:not(.video-carousel) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .video-grid.video-grid--iframes:not(.video-carousel) {
    grid-template-columns: 1fr;
  }
}

/* Card */
.video-tile {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--video-accent);
  background: var(--video-card-bg);
  box-shadow: var(--video-shadow);
  backdrop-filter: blur(6px);

  /* important: allow grid column to control width */
  width: auto;
}
.video-grid.video-grid--iframes.video-carousel .video-tile {
  scroll-snap-align: start;
}

/* Video frame */
.video-frame {
  position: relative;
  background: #000;
}

/* Poster button */
.video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;

  background-color: #000;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;
  position: relative;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.35));
}

.video-thumb__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 50px;
  border-radius: 14px;
  background: var(--video-accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 1;
}

.video-thumb__play::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transform: translateX(2px);
}

/* Inline player */
.video-inline-player {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-inline-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame.is-playing .video-thumb { display: none; }
.video-frame.is-playing .video-inline-player { display: block; }

/* Caption */
.video-caption {
  padding: 0.85rem 0.9rem 1rem 0.9rem;
  background: rgba(15, 15, 16, 0.85);
}

.video-caption .video-name {
  display: block;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.video-caption .video-sub {
  display: block;
  opacity: 0.78;
  font-size: 0.95rem;
  line-height: 1.25;
}

/* Controls */
.video-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: flex-start;
  position: static;
}

.video-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;

  background: transparent;
  border: 2px solid var(--video-accent);
  color: var(--video-accent);

  cursor: pointer;
  display: grid;
  place-items: center;

  font-size: 22px;
  font-weight: 700;

  box-shadow: none;

  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.video-nav:hover:not(:disabled) { background: rgba(255,102,0,0.08); }
.video-nav:active:not(:disabled) { transform: scale(0.95); }

.video-nav:disabled {
  background: rgb(17,17,17);
  border-color: rgba(0,0,0,0.65);
  color: rgba(0,0,0,0.65);
  cursor: default;
  transform: none;
  opacity: 1;
}

.video-nav:focus-visible {
  outline: 2px solid var(--video-accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .video-controls {
    display: flex;
    justify-content: space-between;
    pointer-events: auto;
    margin-top: 1rem;
  }

  .video-nav--prev,
  .video-nav--next {
    position: static;
  }
}

/* =========================
   MEDIA - SOCIAL LINKS
   ========================= */

.social-links {
  padding: 1rem 0 2rem;
}

.social-wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
  text-align: center;
}

/* Alias: parem oleks HTML-is section-title (või oma väiksem variant) */
.social-title {
  margin: 0 0 2.5rem 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.02em;
}

.social-grid {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 2.5vw, 2.8rem);

  justify-items: center;
}

.social-circle {
  width: clamp(64px, 18vw, 140px);
  height: clamp(64px, 18vw, 140px);
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: transparent;
  border: 2px solid var(--video-accent, #ff6600);
  color: var(--video-accent, #ff6600);

  text-decoration: none;
  position: relative;

  transition: transform 200ms ease, box-shadow 200ms ease;
}

.social-circle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(255,102,0,0.25);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 200ms ease, transform 200ms ease;
}

.social-circle:hover { transform: translateY(-2px); }
.social-circle:hover::after { opacity: 1; transform: scale(1.08); }

.social-circle svg {
  width: clamp(28px, 7vw, 64px);
  height: clamp(28px, 7vw, 64px);

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;

  transition: transform 220ms ease;
}

.social-circle polygon {
  fill: currentColor;
  stroke: none;
}

.social-circle:hover svg { transform: rotate(-6deg) scale(1.03); }

.social-circle:focus-visible {
  outline: 2px solid var(--video-accent, #ff6600);
  outline-offset: 5px;
}



/* =========================================================
   INNER PAGES (shared): Contact + Legal
   ========================================================= */

/* Ensure inner pages don’t sit under sticky header */
.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: clamp(2rem, 2vw, 5rem);
  padding-inline: 2rem;
  padding-bottom: 0.75rem;
}

/* Simple hero area at top of inner pages */
.page-hero {
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  text-align: center;
  margin: 0 0 clamp(1.5rem, 3vw, 3rem);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  color: var(--color-text);
}

/* Card surface for content blocks */
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  padding: 1.25rem;
  margin: 1rem 0;
  backdrop-filter: blur(8px);
}

.card-title {
  margin: 0 0 0.75rem;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-direct {
  margin-top: 0.75rem;
  color: var(--color-muted);
}

.contact-email {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email:hover,
.contact-email:focus {
  color: var(--color-secondary);
}

/* Contact form fields */
.contact-form .field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.contact-form .field label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border-radius: var(--radius-medium);
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--color-text);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.45);
  border-color: rgba(255, 102, 0, 0.55);
}

/* Inline validation */
.contact-form .field-error {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 120, 120, 0.95);
}

.contact-form [aria-invalid="true"] {
  border-color: rgba(255, 120, 120, 0.95) !important;
}

.contact-form .form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.contact-form .form-status {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================
   FILLED STATE (manual typing) FOR CONTACT FORM
   ========================= */

.contact-form .field.is-filled input,
.contact-form .field.is-filled textarea,
.contact-form .field.is-filled select {
  /* sama visuaal mis autofill default */
  color: var(--color-text);
  caret-color: var(--color-text);

  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--color-border);

  /* sama “inset fill” loogika (stabiilne render) */
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.22) inset;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.22) inset;
}

/* Filled + focus: kasuta sama orange ring’i loogikat mis autofill:focus */
.contact-form .field.is-filled input:focus-visible,
.contact-form .field.is-filled textarea:focus-visible,
.contact-form .field.is-filled select:focus-visible {
  outline: none;
  border-color: rgba(255, 102, 0, 0.55);

  -webkit-box-shadow:
    0 0 0 1000px rgba(0, 0, 0, 0.22) inset,
    0 0 0 3px #ff6600aa;
  box-shadow:
    0 0 0 1000px rgba(0, 0, 0, 0.22) inset,
    0 0 0 3px hwb(24 0% 0% / 0.45);
}

/* (valikuline) Labeli ära muuda, et mitte hüpata stiili */
.contact-form .field.is-filled label {
  color: inherit;
}



/* =========================================================
   LEGAL PAGE (Privacy / Cookies / Terms)
   ========================================================= */

.page--legal .muted {
  color: var(--color-muted);
}

.page--legal .bullets {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--color-text);
}

.page--legal .bullets li {
  margin: 0.4rem 0;
  color: var(--color-text);
}

.page--legal .cookie-tools {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

/* Optional: code blocks inside legal text */
.page--legal code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
}

.legal-links {
  margin: 1.5rem auto 0;
  text-align: center;
  width: 100%;
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
}

@media (max-width: 520px) {
  .page--legal .page-hero h1 {
    letter-spacing: 0.06em;
  }
}

@media (max-width: 360px) {
  .page--legal .page-hero h1 {
    letter-spacing: 0.03em;
  }
}



/* =========================================================
   MAILERLITE NEWSLETTER FORM CUSTOMIZATION section
   (for embedded form with ID 36231162)
   ========================================================= */

.newsletter #mlb2-36231162.ml-form-embedContainer {
  width: 100% !important;
  margin: 0 !important;
  display: block !important;
}

/* Remove MailerLite panel styling */
.newsletter #mlb2-36231162 .ml-form-embedWrapper {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Remove MailerLite padding so it aligns with your card spacing */
.newsletter #mlb2-36231162 .ml-form-embedBody,
.newsletter #mlb2-36231162 .ml-form-successBody {
  padding: 0 !important;
}

/* Headline + helper text */
.newsletter #mlb2-36231162 .ml-form-embedContent h4 {
  text-align: center !important;
  margin: 0 0 clamp(1.5rem, 3vw, 3rem) !important;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem) !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 500 !important;
    color: var(--color-text) !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-size: clamp(1.6rem, 5vw, 3.8rem) !important;
}

.newsletter #mlb2-36231162 .ml-form-embedContent p {
  margin: 0 0 1rem 0 !important;
  color: #e5e5e5 !important;
  font-family: "elza", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* Consent checkbox row: spacing + typography */
.newsletter #mlb2-36231162 .ml-form-checkboxRow {
  margin: 0.9rem 0 1rem 0 !important;
}

.newsletter #mlb2-36231162 .ml-form-checkboxRow label.checkbox {
  padding-left: 28px !important; /* keep room for MailerLite custom checkbox */
  min-height: 24px !important;
}

/* Consent text */
.newsletter #mlb2-36231162 .ml-form-checkboxRow .label-description,
.newsletter #mlb2-36231162 .ml-form-checkboxRow .label-description p {
  color: var(--color-text) !important;
  font-family: "elza", sans-serif !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

/* Links inside consent */
.newsletter #mlb2-36231162 .ml-form-checkboxRow a {
  color: var(--color-primary) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.newsletter #mlb2-36231162 .ml-form-checkboxRow a:hover,
.newsletter #mlb2-36231162 .ml-form-checkboxRow a:focus {
  color: var(--color-secondary) !important;
}

/* MailerLite custom checkbox circle -> make it square like your UI if you want */
.newsletter #mlb2-36231162 .ml-form-checkboxRow .label-description::before {
  border-radius: 4px !important;
  border-color: var(--color-border) !important;
  background: rgba(0, 0, 0, 0.22) !important;
}

/* Checked state colors (uses MailerLite’s pseudo-elements) */
.newsletter #mlb2-36231162 .ml-form-checkboxRow input[type="checkbox"]:checked ~ .label-description::before {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

/* Error state: align with your error color */
.newsletter #mlb2-36231162 .ml-error .label-description,
.newsletter #mlb2-36231162 .ml-error .label-description p {
  color: rgba(255, 120, 120, 0.95) !important;
}

/* Success message styling */
.newsletter #mlb2-36231162 .ml-form-successContent h4 {
  color: var(--color-text) !important;
  font-family: 'Playfair Display', serif !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin: 0 0 0.5rem 0 !important;
}

.newsletter #mlb2-36231162 .ml-form-successContent p {
  color: var(--color-muted) !important;
  font-family: "elza", sans-serif !important;
  margin: 0 !important;
}

/* Improve newsletter readability */

.newsletter #mlb2-36231162 .ml-form-embedContent p {
  font-size: 15px !important;
}

.newsletter #mlb2-36231162 .ml-form-embedPermissionsContent p,
.newsletter #mlb2-36231162 .ml-form-checkboxRow .label-description,
.newsletter #mlb2-36231162 .description {
  font-size: 20px !important;
  line-height: 1.5 !important;
}

.newsletter #mlb2-36231162 .ml-form-embedMailerLite-GDPR p {
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
}

/* Force override MailerLite submit button */

.newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper
  .ml-form-embedBody
  .ml-form-embedSubmit
  button.primary {
    background: linear-gradient(rgb(0 0 0 / 10%), rgba(0, 0, 0, 0.92)), var(--color-primary) !important;
    color: #e5e5e5 !important;
    border: 1px solid var(--color-border) !important;
    font-family: elza, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    padding: 0.8rem 1.1rem !important;
}

/* Newsletter submit hover = event button hover */

.newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper
  .ml-form-embedBody
  .ml-form-embedSubmit
  button.primary:hover {
    transform: translateY(-1px);
    background: #111 !important;
    border-color: #111 !important;
    color: #e5e5e5 !important;
}

/* Remove newsletter button border / frame */

.newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper
  .ml-form-embedBody
  .ml-form-embedSubmit
  button.primary {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

/* Make newsletter email field translucent */

.newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper
  .ml-form-embedBody
  .ml-form-fieldRow
  input[type="email"] {
    border: 1px solid var(--color-border) !important;
    background: rgba(0, 0, 0, 0.22) !important;
    color: var(--color-text) !important;
    padding: 0.75rem 0.85rem !important;
    font-family: elza, sans-serif !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    color: #e5e5e5 !important;
}

/* ============================================
   MailerLite CONFIRMATION checkbox only
   ============================================ */

/* Base box */
.newsletter #mlb2-36231162
.ml-form-checkboxRow .label-description::before {
  border-radius: 4px !important;
  border: 1px solid var(--color-border) !important;
  background: rgba(0, 0, 0, 0.22) !important;
}

/* Checked state */
.newsletter #mlb2-36231162
.ml-form-checkboxRow input[type="checkbox"]:checked
~ .label-description::before {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

/* Tick color */
.newsletter #mlb2-36231162
.ml-form-checkboxRow input[type="checkbox"]:checked
~ .label-description::after {
  filter: brightness(0) invert(1);
}

/* Text color */
.newsletter #mlb2-36231162
.ml-form-checkboxRow .label-description,
.newsletter #mlb2-36231162
.ml-form-checkboxRow .label-description p {
  color: var(--color-text) !important;
}
.newsletter #mlb2-36231162
.ml-form-checkboxRow .label-description::before {
  width: 18px !important;
  height: 18px !important;
}

/* ============================================
   MailerLite typography unify (TEST: 20px)
   Overrides MailerLite inline/embed CSS + media rules
   ============================================ */

/* Desktop + default */
.newsletter #mlb2-36231162.ml-form-embedContainer
.ml-form-embedWrapper .ml-form-embedBody
.ml-form-embedPermissions .ml-form-embedPermissionsContent p,
.newsletter #mlb2-36231162.ml-form-embedContainer
.ml-form-embedWrapper .ml-form-embedBody
.ml-form-embedPermissions .description,
.newsletter #mlb2-36231162.ml-form-embedContainer
.ml-form-embedWrapper .ml-form-embedBody
.ml-form-checkboxRow .label-description,
.newsletter #mlb2-36231162.ml-form-embedContainer
.ml-form-embedWrapper .ml-form-embedBody
.ml-form-checkboxRow .label-description p,
.newsletter #mlb2-36231162.ml-form-embedContainer
.ml-form-embedWrapper .ml-form-embedBody
.ml-form-checkboxRow label p {
    font-family: "elza", sans-serif !important;
    font-size: 14px !important;
    /* line-height: 1.5 !important; */
    color: var(--color-text) !important;
}

/* Mobile: override MailerLite @media(768px) that forces 12px */
@media (max-width: 768px) {
  .newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper .ml-form-embedBody
  .ml-form-embedPermissions .ml-form-embedPermissionsContent p,
  .newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper .ml-form-embedBody
  .ml-form-embedPermissions .description,
  .newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper .ml-form-embedBody
  .ml-form-checkboxRow .label-description,
  .newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper .ml-form-embedBody
  .ml-form-checkboxRow .label-description p,
  .newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper .ml-form-embedBody
  .ml-form-checkboxRow label p {
    font-family: "elza", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
}

/* ============================================
   MailerLite Marketing Permissions headings + labels
   15px, Elza
   ============================================ */

/* Desktop */
.newsletter #mlb2-36231162.ml-form-embedContainer
.ml-form-embedWrapper .ml-form-embedBody
.ml-form-embedPermissions .ml-form-embedPermissionsContent h4,

.newsletter #mlb2-36231162.ml-form-embedContainer
.ml-form-embedWrapper .ml-form-embedBody
.ml-form-embedPermissions
.ml-form-embedPermissionsOptionsCheckbox .label-description {
  font-family: "elza", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important; /* close to 700 but nicer at 15px */
  color: var(--color-text) !important;
}

/* Mobile override (MailerLite forces 12px) */
@media (max-width: 768px) {
  .newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper .ml-form-embedBody
  .ml-form-embedPermissions .ml-form-embedPermissionsContent h4,

  .newsletter #mlb2-36231162.ml-form-embedContainer
  .ml-form-embedWrapper .ml-form-embedBody
  .ml-form-embedPermissions
  .ml-form-embedPermissionsOptionsCheckbox .label-description {
    font-family: "elza", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
}

/* ============================================
   Required confirmation checkbox – stronger error state
   ============================================ */

/* Kui checkboxRow on error olekus */
.newsletter #mlb2-36231162 .ml-form-checkboxRow.ml-error {
  border: 1px solid rgba(255, 120, 120, 0.95) !important;
  background: rgba(255, 120, 120, 0.10) !important;
  border-radius: 10px !important;
  padding: 12px 12px 12px 12px !important;
}

/* Tekst punaseks (selgem) */
.newsletter #mlb2-36231162 .ml-form-checkboxRow.ml-error .label-description,
.newsletter #mlb2-36231162 .ml-form-checkboxRow.ml-error .label-description p,
.newsletter #mlb2-36231162 .ml-form-checkboxRow.ml-error a {
  color: rgba(255, 120, 120, 0.95) !important;
}

/* Checkboxi “kast” punaseks */
.newsletter #mlb2-36231162 .ml-form-checkboxRow.ml-error .label-description::before {
  border-color: rgba(255, 120, 120, 0.95) !important;
  background: rgba(255, 120, 120, 0.18) !important;
}

@keyframes ml-checkbox-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.newsletter #mlb2-36231162 .ml-form-checkboxRow.ml-error {
  animation: ml-checkbox-shake 280ms ease-in-out 1;
}

.newsletter #mlb2-36231162 .ml-error input,
.newsletter #mlb2-36231162 .ml-error textarea,
.newsletter #mlb2-36231162 .ml-error select {
  border-color: rgba(255, 120, 120, 0.95) !important;
  background-color: rgba(255, 120, 120, 0.08) !important;
  box-shadow: 0 0 0 2px rgba(255, 120, 120, 0.35) !important;
}

/* hoia külgscroll kinni ainult väliskonteineril */
.newsletter #mlb2-36231162.ml-form-embedContainer {
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .newsletter #mlb2-36231162.ml-form-embedContainer { overflow-x: hidden; }
}

/* ära klipi wrapperit – muidu lõikad focus ringi ära */
.newsletter #mlb2-36231162 .ml-form-embedWrapper {
  overflow: visible !important;
}

/* tee focus ring sissepoole (ei lõigata ära isegi clipiga) */
.newsletter #mlb2-36231162 .ml-form-fieldRow input[type="email"]:focus-visible {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: inset 0 0 0 3px rgba(255, 102, 0, 0.55) !important;
}

/* =========================
   AUTOFILL (Chrome/Edge/Safari + Firefox)
   ========================= */

/* Chrome / Edge / Safari */
.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill,
.contact-form select:-webkit-autofill,
.newsletter input:-webkit-autofill,
.newsletter textarea:-webkit-autofill,
.newsletter select:-webkit-autofill {
  /* teksti värv (Chrome kasutab tihti oma sisemist värvi) */
  -webkit-text-fill-color: var(--color-text) !important;
  caret-color: var(--color-text);

  /* “värvi üle kirjutamine” (suur inset varjutus = taust) */
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.22) inset !important;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.22) inset !important;

  border: 1px solid var(--color-border) !important;

  /* hoiab ära kollase flash’i mõnel juhul */
  transition: background-color 9999s ease-out 0s;
}

/* Autofill hover/focus (Chrome) */
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill:focus,
.contact-form select:-webkit-autofill:focus,
.newsletter input:-webkit-autofill:focus {
  border-color: rgba(255, 102, 0, 0.55) !important;
  -webkit-box-shadow:
    0 0 0 1000px rgba(0, 0, 0, 0.22) inset,
    0 0 0 3px rgba(255, 102, 0, 0.45) !important;
  box-shadow:
    0 0 0 1000px rgba(0, 0, 0, 0.22) inset,
    0 0 0 3px rgba(255, 102, 0, 0.45) !important;
}

/* Firefox */
.contact-form input:autofill,
.contact-form textarea:autofill,
.contact-form select:autofill,
.newsletter input:autofill,
.newsletter textarea:autofill,
.newsletter select:autofill {
  background-color: rgba(0, 0, 0, 0.22) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.22) inset !important;
}