/* ==========================================================================
   Vitamin Horgoš — base.css (ORBIS rebuild)
   Fonts, reset, typography, focus, utilities. Tokens: variables.css
   ========================================================================== */

/* Self-hosted variable fonts (OFL, Google Fonts), one subset per family with only the characters the site uses
   (_tools/fonts-subset.py: Latin, č ć š ž đ, quotes and dashes; carons seated by _tools/fix-cormorant-carons.py).
   font-display: swap, with metric-matched local fallbacks so the swap does not re-wrap text. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-vh.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-italic-vh.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/jakarta-vh.woff2") format("woff2");
}
/* Metric-matched fallbacks (computed from the font files against Times New Roman / Arial) */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Georgia");
  size-adjust: 96.06%;
  ascent-override: 96.2%;
  descent-override: 29.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 105.57%;
  ascent-override: 98.3%;
  descent-override: 21%;
  line-gap-override: 0%;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--sp-16));
}
html.smooth-scroll { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink-body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class],
nav ul, nav ol { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: var(--fw-light);
  line-height: var(--lh-title);
  letter-spacing: 0;
  color: var(--ink);
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: var(--lh-display); }
/* Cormorant defaults to old-style figures („01“ reads as „oı“): headings and serif numbers use lining figures */
h1, h2, h3, h4, .serif { font-variant-numeric: lining-nums; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: var(--fw-regular); }
h4 { font-size: var(--t-card); font-weight: var(--fw-regular); }
/* Headlines are sentence case; a word in <strong> is only weight, never colour */
h1 strong, h2 strong, h3 strong { font-weight: var(--fw-regular); }
p, figcaption, blockquote { text-wrap: pretty; }
p + p { margin-top: var(--sp-16); }
strong, b { font-weight: var(--fw-semibold); }
main p { max-width: var(--measure); }

::selection { background: var(--ground-burgundy); color: var(--cream); }

/* ---------- Focus: 3px gold ring everywhere ---------- */
:focus { outline: none; }
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* On light grounds the ring is the darker gold so it stays visible (3:1+) */
.on-light :focus-visible,
.section--light :focus-visible,
.section--cream :focus-visible,
.section--white :focus-visible { outline-color: var(--gold-ink); }

/* ---------- Dark / light context ---------- */
.on-dark,
.section--dark,
.section--black,
.section--burgundy { color: var(--on-dark-body); }
.on-dark :is(h1, h2, h3, h4),
.section--dark :is(h1, h2, h3, h4),
.section--black :is(h1, h2, h3, h4),
.section--burgundy :is(h1, h2, h3, h4) { color: var(--on-dark); }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-left: max(var(--gutter), var(--safe-l));
  padding-right: max(var(--gutter), var(--safe-r));
}
.container--wide { max-width: calc(1280px + var(--gutter) * 2); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: var(--sp-12); left: var(--sp-12);
  z-index: var(--z-cursor);
  display: inline-flex;
  align-items: center;
  min-height: var(--btn-h);
  padding: 0 var(--sp-24);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font-weight: var(--fw-semibold);
  font-size: var(--t-ui);
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform var(--dur-hover) var(--ease-out);
}
/* Keyboard only: main.js sets body.using-mouse on pointerdown and clears it on Tab */
.skip-link:focus-visible { transform: none; outline-color: var(--gold-ink); }
body.using-mouse .skip-link:focus { transform: translateY(-200%); }

.sr-focus-target {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  outline: none;
  pointer-events: none;
}
.sr-focus-target:focus, .sr-focus-target:focus-visible { outline: none; }

/* Eyebrow: gold uppercase label (gold-ink on light grounds); --line adds the ORBIS underline */
.eyebrow,
.micro {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow {
  display: inline-block;
  color: var(--gold-ink);
}
.eyebrow--line { position: relative; padding-bottom: var(--sp-8); }
/* the underline is a hairline that draws from the left when its block reveals (animations.css) */
.eyebrow--line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transform-origin: left;
}
.on-dark .eyebrow,
.section--dark .eyebrow,
.section--black .eyebrow,
.section--burgundy .eyebrow,
.hero .eyebrow,
.phero .eyebrow { color: var(--gold); }
.eyebrow a { text-decoration: underline; text-underline-offset: 4px; }

.lead {
  max-width: 34em;
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink-body);
}
.on-dark .lead,
.section--dark .lead,
.section--black .lead,
.section--burgundy .lead { color: var(--on-dark-body); }

.muted { color: var(--ink-body); }
.on-dark .muted, .section--dark .muted, .section--black .muted, .section--burgundy .muted { color: var(--on-dark-body); }
.nowrap { white-space: nowrap; }
.tabular, table td, table th, .htable td { font-variant-numeric: tabular-nums lining-nums; } /* premium 3: figures line up in every table */
.mono { font-family: var(--font-mono); font-size: 0.95em; letter-spacing: 0.02em; }
.text-gold { color: var(--gold-ink); }
.on-dark .text-gold, .section--black .text-gold, .section--burgundy .text-gold { color: var(--gold); }
.serif { font-family: var(--font-serif); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Gold line-art emblem (assets/icons/emblems.svg via js/sprite.js): one hand, 1.25px lines, gold at 45 % at rest
   and 100 % when its card is hovered or focused (premium 10, item 1) */
.emblem { display: block; color: var(--gold); opacity: var(--emblem-rest); transition: opacity 350ms var(--ease-out); }
.emblem svg { width: 100%; height: 100%; }
svg.emblem { overflow: visible; }
:where(svg.emblem) { width: 100%; height: auto; } /* default only: every component sets its own size */
:is(a, button, article, li, .ecard, .bcard, .ccard, .mwall__card):is(:hover, :focus-visible, :focus-within) > .emblem,
:is(a, button, article, .ecard, .bcard, .ccard):is(:hover, :focus-visible) .emblem,
.emblem.is-on { opacity: 1; }

/* embedded maps and frames: a keyboard user tabbing into them sees the same gold ring (.is-focus: main.js) */
iframe:focus, iframe:focus-visible, iframe.is-focus { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- premium 2 brochure layer: the parts that set layout, so they are here at first paint ----------
   (css/brand.css itself loads without blocking the first paint) */
:root {
  --wave-h: 44px;
  --wave-tile: 160px;
  /* one period of the wave on the pack: soft round crests, 160 x 48, stretched to --wave-h */
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 48' preserveAspectRatio='none'%3E%3Cpath d='M0 36C30 36 42 8 80 8s50 28 80 28V48H0z'/%3E%3C/svg%3E");
}
@media (max-width: 700px) { :root { --wave-h: 36px; --wave-tile: 120px; } }
/* premium 3 (here, not in the async brand.css: it sets a padding): the wave is decoration only and never comes near content. It paints over the bottom of the block before
   it, so that block keeps at least the wave's height + 24px free at its bottom (sections already have 80–160px; the
   thin bands get it here), and the band reads as a band, not as a strip of scallops under the header. */
.band:has(+ .wave-top) { padding-bottom: calc(var(--wave-h) + var(--sp-24)); }
/* script accent: „Najbolje iz Vojvodine“ */
.script-accent {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.45rem + 0.8vw, 2.25rem); /* 28–36px */
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--gold);
}
:is(.section--cream, .section--white, .section--paper, .section--light, .on-light, .phero--light, .trust) .script-accent { color: var(--gold-ink); }
:is(.on-dark, .section--black, .section--dark, .section--burgundy) .script-accent { color: var(--gold); }

