/* InWeb Krokodili — design tokens matching live Elementor kit */
:root {
  --kd-black: #000000;
  --kd-white: #ffffff;
  --kd-offwhite: #f0f0f0;
  --kd-muted: #7a7a7a;
  --kd-green: #76c044;
  --kd-green-alt: #74bf44;
  --kd-accent: #61ce70;
  --kd-border: rgba(255, 255, 255, 0.35);
  --kd-font: "Montserrat", system-ui, sans-serif;
  --kd-container: 1140px;
}

@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("./fonts/Montserrat-Light.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("./fonts/Montserrat-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("./fonts/Montserrat-Medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: italic; font-display: swap; src: url("./fonts/Montserrat-Italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("./fonts/Montserrat-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("./fonts/Montserrat-Bold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("./fonts/Montserrat-ExtraBold.woff2") format("woff2"); }

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

html {
  scroll-behavior: smooth;
}

body.kd-theme {
  margin: 0;
  background: var(--kd-black);
  color: var(--kd-offwhite);
  font-family: var(--kd-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Same scale as live (250×800 contain). Shifted left so the drawing sits in the margin. */
body.kd-theme::before {
  content: "";
  position: fixed;
  left: -80px;
  top: 0;
  width: 250px;
  height: 800px;
  background-image: url("./img/hands2.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  z-index: 1;
  pointer-events: none;
}
/* A block that crosses the hands covers them. */
body.kd-theme .kd-video,
body.kd-theme .kd-news-card,
body.kd-theme .kd-single__thumb img,
body.kd-theme .mc-archive-item,
body.kd-theme .mc-controls-wrapper,
body.kd-theme .mc-single-container,
body.kd-theme .kd-footer,
body.kd-theme .kd-prose,
body.kd-theme .kd-page-hero,
body.kd-theme main {
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  body.kd-theme::before {
    display: none;
  }
}

.kd-mediji {
  background: #1a1a1a;
}
.kd-mediji .kd-page-hero {
  background: transparent;
  padding: 2.75rem 8% 0.25rem;
  text-align: center;
}
.kd-mediji .kd-page-hero__title {
  color: #fff;
  text-transform: none;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}
.kd-mediji__intro {
  max-width: 860px;
  margin: 1.25rem auto 0;
  color: #f3f3f3;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

a {
  color: var(--kd-green);
  text-decoration: none;
}

a:hover {
  color: var(--kd-white);
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Scroll reveal: fade up (only when JS is active) —— */
.kd-js .kd-reveal,
.kd-js [data-kd-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.kd-js .kd-reveal.is-visible,
.kd-js [data-kd-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .kd-js .kd-reveal,
  .kd-js [data-kd-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
