/* Udruga Susret, prototip redizajna. Tokeni iz doc/DESIGN.md */
:root {
  --c-primary: #2F6E2A;
  --c-primary-active: #255A21;
  --c-accent: #00708A;
  --c-accent-2: #B4410F;
  --c-ink: #2B2B2B;
  --c-body: #3B3B3B;
  --c-muted: #5C5C5C;
  --c-canvas: #FAF7F2;
  --c-soft: #F3EEE5;
  --c-card: #FFFFFF;
  --c-hairline: #E4DDD0;
  --c-footer: #2B2B2B;
  --s-green: #58A249;
  --s-orange: #F15A22;
  --s-blue: #00A0C3;
  --s-yellow: #FAA61A;

  --ff-head: "Literata", Georgia, serif;
  --ff-body: "Montserrat", Arial, sans-serif;

  --fs-display: clamp(2.5rem, calc(2.5rem + ((1vw - 5.76px) * 3.8835)), 4.5rem);
  --fs-h1: clamp(2.25rem, calc(2.25rem + ((1vw - 5.76px) * 2.4272)), 3.5rem);
  --fs-h2: clamp(1.625rem, calc(1.625rem + ((1vw - 5.76px) * 1.4563)), 2.75rem);
  --fs-h3: clamp(1.25rem, calc(1.25rem + ((1vw - 5.76px) * 0.4854)), 1.5rem);
  --fs-lead: clamp(1.0625rem, calc(1.0625rem + ((1vw - 5.76px) * 0.6068)), 1.375rem);
  --fs-body: clamp(0.9375rem, calc(0.9375rem + ((1vw - 5.76px) * 0.2427)), 1.0625rem);
  --fs-caption: 0.875rem;

  --section: clamp(4rem, calc(4rem + ((1vw - 5.76px) * 3.8835)), 6rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --bs-body-bg: var(--c-canvas);
  --bs-body-color: var(--c-body);
  --bs-link-color-rgb: 47, 110, 42;
  --bs-link-hover-color-rgb: 37, 90, 33;
}

body {
  background: var(--c-canvas);
  color: var(--c-body);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .h-serif {
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); line-height: 1.15; }
h2 { font-size: var(--fs-h2); line-height: 1.25; }
h3 { font-size: var(--fs-h3); line-height: 1.35; }
.display { font-size: var(--fs-display); line-height: 1.08; letter-spacing: -0.02em; }
.lead { font-family: var(--ff-head); font-size: var(--fs-lead); font-weight: 400; line-height: 1.6; color: var(--c-body); }
.measure { max-width: 68ch; }
a { color: var(--c-primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary-active); }
:focus-visible { outline: 3px solid var(--s-blue); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--c-ink); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* Oznaka cjeline s crtom u boji logotipa */
.eyebrow {
  display: inline-flex; flex-direction: column; gap: .75rem;
  font-family: var(--ff-body); font-size: var(--fs-caption); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 40px; height: 4px; background: var(--stroke, var(--s-green)); }
.t-klub { --stroke: var(--s-green); --tone: var(--c-primary); }
.t-edu { --stroke: var(--s-blue); --tone: var(--c-accent); }
.t-pov { --stroke: var(--s-orange); --tone: var(--c-accent-2); }
.t-udr { --stroke: var(--s-yellow); --tone: var(--c-ink); }

/* Header */
.site-header { background: var(--c-canvas); border-bottom: 1px solid var(--c-hairline); position: sticky; top: 0; z-index: 1030; }
.site-header .navbar { min-height: 80px; padding: .5rem 0; }
.brand { display: flex; align-items: center; gap: .875rem; text-decoration: none; min-height: 48px; min-width: 44px; }
.brand img { height: 56px; width: auto; }
.brand-text { font-size: .75rem; line-height: 1.35; color: var(--c-muted); font-weight: 500; max-width: 13ch; }
.main-nav .nav-link {
  font-weight: 500; font-size: .9375rem; color: var(--c-ink); padding: .5rem .875rem !important;
  position: relative;
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: .875rem; right: .875rem; bottom: .2rem; height: 3px;
  background: var(--stroke, var(--s-yellow)); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms var(--ease);
}
.main-nav .nav-link:hover::after, .main-nav .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.navbar-toggler { border: 1px solid var(--c-ink); border-radius: 4px; padding: .5rem .75rem; font-size: .875rem; font-weight: 600; color: var(--c-ink); min-height: 44px; }
.navbar-toggler:focus { box-shadow: none; }

/* Gumbi */
.btn-s {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px;
  padding: .85rem 1.375rem; border-radius: 4px; font-family: var(--ff-body);
  font-size: .9375rem; font-weight: 600; line-height: 1; text-decoration: none;
  border: 1px solid transparent; transition: background-color 200ms var(--ease), color 200ms var(--ease);
  cursor: pointer;
}
.btn-s svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease); }
.btn-s:hover svg.arrow { transform: translateX(3px); }
.btn-primary-s { background: var(--c-primary); color: #fff; }
.btn-primary-s:hover { background: var(--c-primary-active); color: #fff; }
.btn-secondary-s { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-secondary-s:hover { background: var(--c-ink); color: #fff; }
.btn-sm-s { min-height: 44px; padding: .7rem 1rem; font-size: .875rem; }

/* Sekcije */
.section { padding: var(--section) 0; }
.bg-soft { background: var(--c-soft); }
.bg-card { background: var(--c-card); }

/* Hero */
.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 var(--section); }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 6px; display: block; }
.hero-figure::before { content: ""; position: absolute; top: -18px; left: 22%; width: 38%; height: 5px; background: var(--s-green); }
.hero-figure::after { content: ""; position: absolute; bottom: -18px; left: 0; width: 100%; height: 5px; background: var(--s-yellow); }
.hero-slash { position: absolute; left: 44px; top: -40px; width: 5px; height: 120px; background: var(--s-orange); transform: rotate(22deg); transform-origin: top; z-index: 1; }
figcaption, .caption { font-size: var(--fs-caption); color: var(--c-muted); margin-top: 1.75rem; line-height: 1.5; }

/* Koraci susreta */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.step { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--c-hairline); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 64px; height: 4px; background: var(--stroke); }
.step-num { font-family: var(--ff-head); font-size: 1rem; color: var(--c-muted); display: block; margin-bottom: .5rem; }
.step h3 { margin-bottom: .75rem; }
.reassure {
  display: flex; align-items: center; gap: .875rem; margin-top: 3rem; padding: 1.125rem 1.5rem;
  background: var(--c-card); border: 1px solid var(--c-hairline); border-radius: 6px;
  font-family: var(--ff-head); font-size: var(--fs-lead); color: var(--c-ink);
}
.reassure svg { width: 28px; height: 28px; color: var(--c-primary); flex: none; }

/* Termini */
.events { border-top: 1px solid var(--c-ink); }
.event { display: grid; gap: .5rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--c-hairline); align-items: center; }
@media (min-width: 768px) { .event { grid-template-columns: 220px 1fr auto; } }
.event-date { font-family: var(--ff-head); font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 600; color: var(--c-ink); line-height: 1.1; }
.event-date small { display: block; font-family: var(--ff-body); font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-top: .5rem; }
.event-title { font-family: var(--ff-head); font-size: var(--fs-h3); color: var(--c-ink); margin: 0 0 .25rem; }
.event-meta { color: var(--c-muted); margin: 0; }
.event-cover { width: 72px; height: auto; border-radius: 3px; display: none; }
@media (min-width: 768px) { .event-cover { display: block; } }
.badge-next { display: inline-block; font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--c-primary); padding: .3rem .6rem; border-radius: 3px; margin-bottom: .5rem; }
.event.is-pending .event-title { color: var(--c-muted); font-style: italic; font-weight: 400; }

/* Brojke */
.stats { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 992px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 4px solid var(--stroke); padding-top: 1.25rem; }
.stat-num { font-family: var(--ff-head); font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 600; color: var(--c-ink); line-height: 1; display: block; }
.stat-num .pre { font-size: .45em; font-weight: 400; color: var(--c-muted); display: block; margin-bottom: .35rem; letter-spacing: 0; }
.stat p { margin: .75rem 0 0; color: var(--c-body); }
.quote { margin: 4rem 0 0; padding: 2.5rem 0 0; border-top: 1px solid var(--c-hairline); }
.quote blockquote { font-family: var(--ff-head); font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.3; color: var(--c-ink); margin: 0 0 1rem; max-width: 26ch; }
.quote blockquote::before { content: "„"; color: var(--s-yellow); }
.quote blockquote::after { content: "”"; color: var(--s-yellow); }
.quote cite { font-style: normal; color: var(--c-muted); font-size: .9375rem; }

/* Slike u sekcijama */
.photo { width: 100%; height: auto; border-radius: 6px; object-fit: cover; display: block; }
.photo-wide { aspect-ratio: 16 / 9; }
.photo-tall { aspect-ratio: 4 / 5; }

.topics { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.topics li { padding: .875rem 0 .875rem 1.75rem; border-bottom: 1px solid var(--c-hairline); position: relative; }
.topics li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 14px; height: 3px; background: var(--stroke); }

.person { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem 0; border-top: 1px solid var(--c-hairline); }
.person strong { font-family: var(--ff-head); font-size: var(--fs-h3); font-weight: 600; color: var(--c-ink); }
.person span { color: var(--c-muted); }

/* Povijest */
.history-years { font-family: var(--ff-head); font-weight: 600; font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1; color: var(--c-ink); letter-spacing: -0.03em; }
.history-years span { color: var(--c-accent-2); }
.history-years { white-space: nowrap; }
.history-years--sm { font-size: clamp(2.75rem, 4.6vw, 4.25rem); }

/* Partneri */
.partners { display: flex; flex-wrap: wrap; gap: 1rem 3rem; list-style: none; padding: 0; margin: 0; }
.partners li { font-weight: 600; color: var(--c-ink); font-size: 1.0625rem; display: flex; align-items: center; gap: .75rem; }
.partners li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--stroke); }
.funding { font-size: .9375rem; color: var(--c-muted); max-width: 80ch; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--c-hairline); }

/* CTA traka */
.cta-band { background: var(--c-card); border-top: 1px solid var(--c-hairline); border-bottom: 1px solid var(--c-hairline); }
.cta-email { display: inline-block; padding: .25rem 0; font-family: var(--ff-head); font-size: clamp(1.5rem, 4.4vw, 3rem); font-weight: 600; color: var(--c-ink); text-decoration: none; word-break: break-word; border-bottom: 4px solid var(--s-yellow); }
.cta-email:hover { color: var(--c-primary); }
.copy-status { font-size: .875rem; color: var(--c-primary); min-height: 1.5em; margin-top: .75rem; }

/* Mjesto za tekst koji piše udruga */
.todo {
  border: 1px dashed #C9BFAE; border-radius: 6px; padding: 1.25rem 1.5rem; background: rgba(255, 255, 255, .55);
  color: var(--c-muted);
}
.todo::before {
  content: "Tekst piše udruga"; display: block; font-size: .875rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-accent-2); margin-bottom: .5rem;
}
.todo p:last-child { margin-bottom: 0; }

/* Podstranice */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem); border-bottom: 1px solid var(--c-hairline); }
.page-head .lead { max-width: 60ch; margin-top: 1rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table a { display: inline-block; padding: .6rem 0; margin: -.6rem 0; }
.data-table th, .data-table td { padding: .875rem 0; border-bottom: 1px solid var(--c-hairline); vertical-align: top; text-align: left; }
.data-table th { font-weight: 600; color: var(--c-ink); width: 38%; padding-right: 1.5rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--c-hairline); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--c-canvas); border: 3px solid var(--stroke); }
.timeline time { font-weight: 600; color: var(--c-ink); display: block; }
.timeline .muted { color: var(--c-muted); font-style: italic; }

/* Podnožje */
.site-footer { background: var(--c-footer); color: #D9D4CC; padding: 4rem 0 2.5rem; font-size: .9375rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-family: var(--ff-body); font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-logo { height: 76px; width: auto; }
.footer-legal { border-top: 1px solid #4A4A4A; margin-top: 3rem; padding-top: 1.5rem; font-size: .875rem; color: #B9B3A9; }

/* Prototip: oznaka */
.proto-bar { background: var(--c-ink); color: #fff; font-size: .875rem; text-align: center; padding: .4rem 1rem; }
.proto-bar a { color: #fff; display: inline-block; padding: .65rem 0; margin: -.65rem 0; }

/* Blago pojavljivanje */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
  .main-nav { padding: 1rem 0 1.5rem; }
  .main-nav .nav-link { padding: .75rem 0 !important; border-bottom: 1px solid var(--c-hairline); }
  .main-nav .nav-link::after { left: 0; right: auto; width: 40px; }
  .brand-text { display: none; }
  .hero-slash { display: none; }
}
@media (max-width: 575.98px) {
  .brand img { height: 48px; }
  .site-header .btn-s { padding: .7rem .875rem; }
}

.footer-legal-link { display: inline-flex; align-items: center; min-height: 44px; }
