/* ==========================================================================
   Klinika – design tokens (palette, type, spacing, radius, elevation, motion)
   Font: Instrument Sans (variable wdth 75–100, wght 400–700), self-hosted.
   ========================================================================== */

/* latin-ext (č ć đ š ž …) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metrički usklađena zamjena (manji CLS dok se font učitava) */
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 101.47%;
  ascent-override: 95.59%;
  descent-override: 24.64%;
  line-gap-override: 0%;
}

:root {
  /* ---- Palette ---- */
  --c-bg: #ffffff;
  --c-surface: #f3f8fb;
  --c-surface-2: #e3eff6;
  --c-surface-3: #cfe2ee;
  --c-text: #0d2633;
  --c-muted: #4d6573;
  --c-primary: #0a5c7a;
  --c-primary-700: #084a63;
  --c-primary-050: rgba(10, 92, 122, .08);
  --c-accent: #c8373d;
  --c-accent-700: #a82c32;
  --c-highlight: #5fc3e8;
  --c-border: #d5e3ec;
  --c-border-strong: #a9c2d2;
  --c-border-input: #7e98a8;
  --c-dark: #0d2633;
  --c-dark-2: #123342;
  --c-dark-text: #e3eff6;
  --c-dark-muted: #9db4c2;
  --c-dark-line: rgba(255, 255, 255, .12);
  --c-success: #1e7f52;
  --c-success-bg: #e6f4ec;
  --c-error-bg: #fbecec;
  --c-focus: #0a5c7a;
  --c-ring: rgba(10, 92, 122, .22);

  /* ---- Type ---- */
  --font: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* fluid 375 → 1280 */
  --fs-display: clamp(2.125rem, 1.555rem + 2.431vw, 3.5rem);   /* 34 → 56 */
  --fs-h1: clamp(1.875rem, 1.5125rem + 1.547vw, 2.75rem);       /* 30 → 44 */
  --fs-h2: clamp(1.5rem, 1.293rem + .884vw, 2rem);              /* 24 → 32 */
  --fs-h3: clamp(1.1875rem, 1.11rem + .3315vw, 1.375rem);       /* 19 → 22 */
  --fs-h4: clamp(1.0625rem, 1.035rem + .11vw, 1.125rem);        /* 17 → 18 */
  --fs-lead: clamp(1.0625rem, .985rem + .3315vw, 1.25rem);      /* 17 → 20 */
  --fs-body: 1rem;                                              /* 16 → 17 (lg) */
  --fs-sm: .9375rem;                                            /* 15 */
  --fs-xs: .8125rem;                                            /* 13 */
  --fs-eyebrow: .75rem;                                         /* 12 */
  --fs-stat: clamp(2.25rem, 1.939rem + 1.326vw, 3rem);          /* 36 → 48 */
  --lh-tight: 1.12;
  --lh-head: 1.2;
  --lh-body: 1.64;

  /* ---- Spacing (4 … 128) ---- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px; --s-13: 128px;
  --sec: clamp(56px, 2.5rem + 4.42vw, 96px);      /* major section 56 → 96 */
  --sec-sm: clamp(40px, 1.75rem + 2.65vw, 64px);  /* minor section 40 → 64 */
  --card-pad: 20px;
  --gutter: 20px;
  --gap: 16px;
  --container: 1280px;
  --text-col: 720px;

  /* ---- Radius ---- */
  --r-btn: 8px;
  --r-input: 8px;
  --r-card: 12px;
  --r-img: 8px;
  --r-hero: 16px;
  --r-pill: 999px;
  --r-tip: 6px;

  /* ---- Elevation ---- */
  --sh-1: 0 1px 2px rgba(13, 38, 51, .06), 0 1px 1px rgba(13, 38, 51, .04);
  --sh-2: 0 8px 24px -8px rgba(13, 38, 51, .16);
  --sh-3: 0 24px 48px -12px rgba(13, 38, 51, .24);
  --sh-up: 0 -8px 24px -8px rgba(13, 38, 51, .16);

  /* ---- Motion ---- */
  --dur-1: 150ms;
  --dur-2: 250ms;
  --dur-3: 350ms;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* ---- Layout ---- */
  --hd-h: 60px;
  --util-h: 0px;
  --bar-h: 64px;
  --z-subnav: 90;
  --z-bar: 95;
  --z-header: 100;
  --z-mega: 110;
  --z-sheet: 200;
  --z-toast: 400;
  --z-cookie: 500;
  --z-modal: 600; /* lightbox above the cookie notice and toast: site-core makes them inert while it is open */
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --gap: 24px; --card-pad: 24px; }
}
@media (min-width: 1024px) {
  :root { --hd-h: 72px; --util-h: 36px; --fs-body: 1.0625rem; }
}
@media (min-width: 1200px) {
  :root { --gutter: 40px; }
}
