/* ==========================================================================
   Base — reset, tipografija, globalne klase
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* AOS animacije koje ulaze sa strane (`fade-left`, `fade-right`) drže element
   pomeren za 100px DOK ne uđe u vidno polje. Na mobilnom to gura sadržaj preko
   desne ivice i pravi vodoravni skrol - izmereno +95px na naslovnoj.

   `clip` umesto `hidden`: `hidden` pravi skrol-kontekst i time bi pokvario
   `position: sticky` na headeru. `clip` samo seče. Stariji brauzeri bez podrške
   ostaju na zatečenom ponašanju (mali preliv), umesto da ostanu bez sticky headera. */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all .4s ease;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* --- Tipografska pravila ------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  color: var(--color-ink);
}

p {
  line-height: var(--lh-normal);
}

/* --- Globalne pomoćne klase ---------------------------------------- */

.container {
  width: 100%;
  /* Fluid layout — content fills screen minus edge padding.
     --container-pad: 100px ≥1024, 50px <1024, 20px <600 */
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

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

.section--surface {
  background-color: var(--color-surface);
}

.section--dark {
  background-color: var(--color-ink);
  color: var(--color-on-dark);
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: var(--fs-xl);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-ink);
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--color-ink-soft);
  max-width: 720px;
  margin-inline: auto;
}

/* --- Accessibility ------------------------------------------------- */

.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;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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