* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Inter", sans-serif;
  background: #E1C485;
  color: #ffffff;
  line-height: 1.6;
}

button {
  font: inherit;
}

.container {
  width: 95%;
  max-width: 1180px;
  margin: 0 auto;
}
/* HEADER */
.site-header {
  background: #E1C485;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
}

.main-nav a:not(.btn-primary) {
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:not(.btn-primary):hover {
  transform: translateY(-1px);
}

.main-nav a:not(.btn-primary):hover::after {
  transform: scaleX(1);
}

.main-nav a:not(.btn-primary):active {
  transform: translateY(0);
  opacity: 0.7;
}

.logo img {
  height: 40px;
}


/* SADRŽAJ */

.content-section {
  padding: 60px 0;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 40px;
}

.content-block.text-right {
  flex-direction: row-reverse;
}

.text,
.image {
  flex: 1;
  min-width: 0;
}

.image {
  display: flex;
  justify-content: center;
}

h1,
h2 {
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.15;
  margin-bottom: 18px;
}

p,
li {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

p {
  font-size: 1.2rem;
}
ul {
  list-style: none;
}

.highlight-paragraph {
  font-size: 1.7rem;
  font-weight: 700;
}

/* STORY PRIKAZ */

.stories {
  position: relative;
  isolation: isolate;
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  overflow: hidden;

  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}

.stories [hidden] {
  display: none !important;
}

.stories:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 5px;
}

.story-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  -webkit-user-drag: none;
}

.story-slide:not([hidden]) {
  animation: storyFade 0.2s ease;
}

@keyframes storyFade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

/* TAJMER */

.story-progress {
  position: absolute;
  top: 2px;
  left: 12px;
  right: 12px;
  z-index: 4;

  display: flex;
  gap: 5px;

  pointer-events: none;
}

.story-progress__track {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.story-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
}

/* KONTROLE */

.stories svg {
  display: block;
  width: 21px;
  height: 21px;
}

.story-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  color: #ffffff;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.story-prev {
  left: 0;
  width: 24%;
}

.story-next {
  right: 0;
  width: 24%;
}

.story-center {
  left: 24%;
  width: 52%;
}

.story-arrow {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.story-zone:hover .story-arrow {
  background: rgba(0, 0, 0, 0.55);
  transform: scale(1.08);
}

.story-zone:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

/* OZNAKA PAUZE */

.story-state {
  display: grid;
  place-items: center;

  width: 60px;
  height: 60px;

  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);

  opacity: 0;
  transition: opacity 0.2s ease;
}

.story-state svg {
  width: 30px;
  height: 30px;
}

.is-paused .story-state {
  opacity: 1;
}

/* PORUKA PRI DNU */

.story-hint {
  position: absolute;
  bottom: 15px;
  left: 12px;
  right: 12px;
  z-index: 4;

  font-size: 10px;
  text-align: center;
  text-shadow: 0 1px 5px #000000;

  pointer-events: none;
}

/* UČITAVANJE I GREŠKE */

.story-message {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: grid;
  place-items: center;

  padding: 30px;
  background: #24211d;

  font-size: 13px;
  text-align: center;

  pointer-events: none;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.95rem;
}

/* KONTAKT DUGME */

.scroll-cta {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;

  transform: translate(-50%, 20px);

  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 30px;

  background: #ffffff;
  color: #a6813b;

  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.25s ease;
}

.scroll-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.scroll-cta:hover {
  background: #a6813b;
  color: #ffffff;
  border-color: #ffffff;
  transform: translate(-50%, 0) scale(1.05);
}

.scroll-cta.pulse {
  animation: ctaPulse 1.4s ease-out;
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* TABLET */

@media (max-width: 900px) {
  .content-block,
  .content-block.text-right {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .image {
    width: 100%;
  }

  .content-section {
    padding: 38px 0;
  }
}

/* MOBILNI */

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .logo img {
    height: 34px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-links a {
    margin: 0 8px;
  }
}

/* SMANJENE ANIMACIJE */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}