/* ==========================================================================
   ZIP — Base reset & elements
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: calc(100% * var(--a11y-fs, 1));   /* accessibility font scaling */
}
html, body { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--zip-font);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--zip-text);
  background: var(--zip-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; line-height: var(--lh-tight); color: var(--zip-black); overflow-wrap: break-word; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: var(--zip-red); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--zip-red-dark); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }
li { margin-bottom: 0.5em; }

strong, b { font-weight: 700; }

button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--zip-red); outline-offset: 2px; }

/* ---- Responsive side gutters -------------------------------------------- */
@media (max-width: 1280px) { :root { --gutter: 64px; } }
@media (max-width: 900px)  { :root { --gutter: 40px; } }
@media (max-width: 600px)  { :root { --gutter: 20px; } }

/* ---- Layout container ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--space-section); }

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

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 48px;
  font-size: var(--fs-small); font-weight: 700; line-height: 24px;
  border: 0; border-radius: 0;
  transition: background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn .icon { width: 24px; height: 24px; flex: none; transition: transform var(--t); }
.btn--primary { background: var(--zip-red); color: var(--zip-white); }
.btn--primary:hover { background: var(--zip-red-dark); color: var(--zip-white); }
.btn--primary:hover .icon { transform: translate(2px, -2px); }

/* "Pročitaj više" text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-small); font-weight: 700; color: var(--zip-red);
}
.link-arrow .icon { width: 24px; height: 24px; flex: none; transition: transform var(--t); }
.link-arrow:hover { color: var(--zip-red); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* Red underline accent used under headings */
.u-underline-red {
  text-decoration: underline;
  text-decoration-color: var(--zip-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
