/* ==========================================================================
   Base - modern reset + document defaults + typography
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Uvek rezervisi mesto za scrollbar - da zamrzavanje skrola (html.steps-lock)
     ne pomeri sadrzaj u trenutku kad scrollbar nestane. */
  scrollbar-gutter: stable;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* `clip` a NE `hidden`: obe secu prelivanje punih sekcija, ali `hidden`
     pravi scroll container i time gasi position: sticky u celom dokumentu. */
  overflow-x: clip;
}

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

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

a { color: inherit; text-decoration: none; }

ul { padding-inline-start: unset; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--c-accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-accent); color: var(--c-ink); }

/* --- Headings --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--c-ink);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--fs-h1); font-weight: var(--fw-extra); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); letter-spacing: normal; }

/* Mobilni i tablet */
@media (max-width: 1024px) {
  h2 { font-size: 1.75rem; }   /* 28px */
}

p { color: var(--c-body); }
strong, b { font-weight: var(--fw-bold); color: inherit; }

/* Signature detail: gold "period" accent on headlines.
   Use <span class="dot">.</span> or wrap a trailing dot. */
.dot { color: var(--c-accent); }

/* --- Reusable text utilities ------------------------------------------ */
.overline {
  display: inline-block;
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--c-accent-strong);
}
/* Pill variant - used on section eyebrows (translucent chip) */
.overline--pill {
  width: max-content;
  padding: 0.5rem 0.9rem;
  letter-spacing: 2px;
  border: unset;
  background-color: #ffffff1a;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--c-accent);
}
/* Size modifier - add on any overline where a smaller eyebrow is wanted */
.overline--sm { font-size: 10px; }
@media (max-width: 1024px) {
  .overline--sm { font-size: 8px; }
  /* max-width sprecava da dugacak eyebrow (npr. Smestaj) izadje iz kartice */
  .overline--pill { font-size: 8px; padding: 0.625rem; letter-spacing: 1.2px; line-height: 1.3em; max-width: 100%; text-align: center; }   /* 10px */
}

/* On light panels the translucent-white fill is invisible - use a cream fill */
.doctor-content .overline--pill,
.section--white .overline--pill,
.section--bg .overline--pill,
.section--alt .overline--pill {
  background-color: var(--c-accent-soft);
  color: var(--c-accent-strong);
}
/* dark cards that live inside light sections keep the translucent chip */
.diaspora-card .overline--pill {
  background-color: #ffffff1a;
  color: var(--c-accent);
}
/* Hero eyebrows get a larger pill */
.hero .overline--pill, .page-hero .overline--pill { padding: 0.9375rem 1.25rem; }
/* ...ali na mobilnom i tabletu i hero pill ima isti padding kao ostali */
@media (max-width: 1024px) {
  .hero .overline--pill, .page-hero .overline--pill { padding: 0.625rem; }   /* 10px */
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--c-ink-70);
}

.text-center { text-align: center; }
.text-muted  { color: var(--c-ink-55); }
.ink         { color: var(--c-ink); }
.accent      { color: var(--c-accent-strong); }
.accent-cream{ color: var(--c-accent); }

/* Screen-reader-only (accessible labels) */
.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;
}
