/* ==========================================================================
   base.css — design tokeni, reset, tipografija, pomoćne klase
   ========================================================================== */

:root {
  /* Boje */
  --c-forest: #0e2a1f;
  --c-forest-2: #14392a;
  --c-green: #1e5a3a;
  --c-court: #266b47;
  --c-lime: #d8e330;
  --c-cream: #f4f1e8;
  --c-sand: #e9ebdd;
  --c-white: #ffffff;
  --c-ink: #2b3a32;
  --c-ink-2: #34433a;
  --c-muted: #56655c;

  /* Tipografija */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Pokret */
  --ease: cubic-bezier(0.32, 0.72, 0.22, 1);

  /* Raspored */
  --header-h: 72px;
  --max-w: 1440px;
  --pad-x: clamp(16px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 150px);
}

/* Reset ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-forest);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p, figure, dl, dd, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

em {
  font-style: italic;
}

::selection {
  background: var(--c-lime);
  color: var(--c-forest);
}

:focus-visible {
  outline: 2px solid var(--c-lime);
  outline-offset: 3px;
}

/* Na svetlim podlogama fokus je taman */
.on-light :focus-visible {
  outline-color: var(--c-forest);
}

/* Pomoćne klase ---------------------------------------------------------- */

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 14px 20px;
  background: var(--c-lime);
  color: var(--c-forest);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Povećava zonu dodira malih linkova na 44 px bez promene izgleda */
.hit {
  position: relative;
}

.hit::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -10px;
  bottom: -10px;
}

/* Sekcije ---------------------------------------------------------------- */

.section {
  padding: var(--section-y) var(--pad-x);
}

.section--forest {
  background: var(--c-forest);
  color: var(--c-cream);
}

.section--cream {
  background: var(--c-cream);
  color: var(--c-forest);
}

/* Uvodni natpis sekcije: „N° 01 —— O klubu" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-green);
}

.eyebrow__no {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.eyebrow__rule {
  width: 64px;
  height: 1px;
  background: currentColor;
}

.section--forest .eyebrow {
  color: var(--c-lime);
}

/* Veliki naslov sekcije */
.title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.title em {
  color: var(--c-green);
}

.section--forest .title em {
  color: var(--c-lime);
}

/* Otkrivanje pri skrolu (uključuje se samo kada JS radi) ------------------ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
