html, body{
  margin: 0;
  padding: 0;
  height: 100%;
}

body.admin-bar .hero{
  min-height: calc(100vh - 32px);
}

body{
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
}

h1, h2, h3, h4, h5{
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================================
   GLOBAL GRADIENT TITLES – PRO
============================================================ */

/* ---------- HERO H1 ---------- */
/* kõik h1, mis on hero sees */
.hero h1{
  background: linear-gradient(
    90deg,
    var(--hero-title-from) 0%,
    var(--hero-title-to) 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* parem render */
  text-rendering: optimizeLegibility;
}

/* ---------- SECTION TITLES ---------- */
/* sektsioonide pealkirjad */
.section h2,
.section h3{
  background: linear-gradient(
    90deg,
    var(--section-title-from) 0%,
    var(--section-title-to) 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   GLOBAL SECTION HEADERS – BLACK → PURPLE GRADIENT
============================================================ */

.section-header h2{
  background: linear-gradient(
    90deg,
    #0f172a 0%,      /* must algus */
    #6d28d9 100%     /* sügav lilla lõpp */
  );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent !important; /* ⬅️ see oli puudu */
}

.hero{
  position: relative;

  width: 100%;

  min-height: 100vh;
  height: 100vh;

  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);

  background-size: cover;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
}


.hero{
  background-size:cover;
  background-repeat:no-repeat;
}

/* ============================
   HERO — MOBILE TRUE FULLSCREEN
============================ */
@media (max-width:768px){

  html, body{
    height:100%;
    overflow-x:hidden;
  }

  .hero{

    /* PÄRIS fullscreen */
    min-height: 100svh !important;
    height: 100svh !important;

    padding-top: 0 !important;
    margin-top: 0 !important;

    background-size: cover !important;
    background-repeat: no-repeat !important;

    background-position:
      var(--hero-x-m, 50%)
      var(--hero-y-m, 50%) !important;

    overflow: hidden;
  }

  /* KILL spacer mobiilis */
  .hero-spacer{
    display:none !important;
    height:0 !important;
  }

}

@supports (-webkit-touch-callout: none) {
  .hero {
    height: 100svh;
    min-height: 100svh;
  }
}

/* =================================
VL24 GLOBAL REVEAL SYSTEM
================================= */

.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:opacity .7s ease, transform .7s ease;
  will-change:opacity, transform;
}

.reveal.is-visible{
  opacity:1;
  transform:none;
}

/* disabled */
.no-reveal{
  opacity:1 !important;
  transform:none !important;
}



