/* =========================================================================
 * SAZNAI – landing page styles
 * Brand: Paper/Bone/Cream/Ink + A1 Red accent · Inter typography
 * Ported from website--start/index.html (light theme only, no Tailwind).
 * ========================================================================= */

:root {
  --paper:        #FFFFFF;
  --bone:         #F6F5F3;
  --cream:        #F3EDE4;
  --warm:         #EFE6D8;
  --ink:          #0A0A0A;
  --ink-hover:    #1F1F1F;
  --muted:        #6B6B6B;
  --line:         #D8D4CF;

  --a1-red:       #E2231A;
  --a1-red-soft:  rgba(226,35,26,0.08);
  --hgk-blue:     #1B3A6B;
  --hgk-blue-soft:rgba(27,58,107,0.08);
  --fina-blue:    #0D2D52;
  --fina-blue-soft:rgba(13,45,82,0.08);
  --lime:         #C4F542;
  --teal:         #1F7A6B;

  --bg-base:      var(--paper);
  --bg-alt:       var(--bone);
  --bg-warm:      var(--cream);
  --bg-inverse:   var(--ink);

  --text-1:       var(--ink);
  --text-2:       var(--muted);
  --text-3:       #8A8A8A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 112.5%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }

/* === Layout helpers === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

section { padding: 5rem 0; }
@media (max-width: 640px) { section { padding: 3.5rem 0; } }

.grid          { display: grid; gap: 1.5rem; }
.grid-2        { grid-template-columns: 1fr; }
.grid-3        { grid-template-columns: 1fr; }
.grid-4        { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2         { gap: 0.5rem; }
.gap-3         { gap: 0.75rem; }
.gap-4         { gap: 1rem; }
.gap-6         { gap: 1.5rem; }
.gap-8         { gap: 2rem; }
.wrap          { flex-wrap: wrap; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.text-center { text-align: center; }

/* === Wordmark === */
.saznai-wordmark {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.045em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  white-space: nowrap;
  text-transform: uppercase; /* logo is uppercase; the name is spelled SaznAI everywhere else */
}
.saznai-wordmark .sazn { font-weight: 700; }
.saznai-wordmark .ai   { font-weight: 900; color: var(--a1-red); }

/* === Typography === */
.tdisplay {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
  font-size: clamp(52px, 8.5vw, 116px);
  margin: 0;
}
.t1 {
  font-weight: 900;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
  font-size: clamp(46px, 6vw, 88px);
  margin: 0;
}
.t2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
  font-size: clamp(36px, 4vw, 48px);
  margin: 0;
}
.t3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-size: clamp(24px, 2.2vw, 30px);
  margin: 0;
}

h1, h2, h3, h4 { font-family: 'Inter', sans-serif; margin: 0; }

.lead {
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  font-size: 19px;
  margin: 0;
}
.lead-lg {
  font-size: 22px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-red {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--a1-red);
}
.eyebrow-strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow-hero {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent-red  { color: var(--a1-red); }
.accent-blue { color: var(--hgk-blue); }
.accent-teal { color: var(--teal); }
.accent-ink  { color: var(--ink); }

/* === Backgrounds === */
.bg-paper { background: var(--paper); }
.bg-bone  { background: var(--bone); }
.bg-cream { background: var(--cream); }
.bg-ink   { background: var(--ink); color: #fff; }

/* === Cards === */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 24px;
}
.card-bone { background: var(--bone); }

@media (max-width: 640px) {
  .card { padding: 22px; border-radius: 3px; }
}

/* === Buttons === */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(13px, 2vw, 15px) clamp(20px, 3vw, 28px);
  border-radius: 3px;
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 18px);
  letter-spacing: -0.005em;
  border: 1.5px solid var(--ink);
  min-height: 48px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary   { background: var(--ink); color: #fff; }
.btn-primary:hover   { background: var(--ink-hover); border-color: var(--ink-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

/* === Pills === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}
.pill-ink   { background: var(--ink);  border-color: var(--ink);  color: #fff; }
.pill-cream { background: var(--cream); border-color: var(--line); color: var(--ink); }
.pill-red   { background: var(--a1-red); border-color: var(--a1-red); color: #fff; }
.pill-blue  { background: var(--hgk-blue-soft); border-color: var(--hgk-blue); color: var(--hgk-blue); }
.pill-teal  { background: rgba(31,122,107,0.10); border-color: var(--teal); color: var(--teal); }

@media (max-width: 640px) {
  .pill { font-size: 12px; padding: 0.4rem 0.85rem; }
}

/* === Navbar === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.navbar.scrolled { border-bottom-color: var(--line); }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-link {
  padding: 8px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

/* SaznAI wordmark logo (header anchor + footer img). The global `img,svg`
   rule sets `height: auto`, which would otherwise override the HTML height
   attribute and let the wide-viewBox SVG sprawl to max-width: 100%. */
a.saznai-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
a.saznai-logo img,
img.saznai-logo {
  height: 28px;
  width: auto;
  max-width: none;
  display: block;
}

/* === Section heading block (used by Partners section) === */
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { display: inline-block; margin-bottom: 0.75rem; }
.section-head .lead { margin-top: 1rem; }

/* === Event row (calendar list card, ported from website--start) === */
.event-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.event-row + .event-row { margin-top: 1rem; }
@media (min-width: 768px) {
  .event-row { flex-direction: row; align-items: center; padding: 20px 24px; }
}
@media (max-width: 640px) {
  .event-row { padding: 18px; border-radius: 3px; }
}

.event-row-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.event-row-content { flex: 1; min-width: 0; }

.event-date-box {
  width: 92px;
  height: 92px;
  border-radius: 3px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 6px 9px;
  line-height: 1;
}
.event-date-box .dow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.event-date-box .day {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 3px;
}
.event-date-box .mon {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted);
  margin-top: 5px;
  text-align: center;
}
@media (max-width: 640px) {
  .event-date-box { width: 80px; height: 84px; padding: 7px 4px 8px; }
  .event-date-box .dow { font-size: 11px; letter-spacing: 0.14em; }
  .event-date-box .day { font-size: 26px; margin-top: 2px; }
  .event-date-box .mon { font-size: 12px; margin-top: 4px; }
}

.event-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.event-title {
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.event-summary {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.event-meta-item .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke-width: 2;
}

.event-cta {
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .event-cta .btn-cta-event { width: 100%; }
}

/* === Partners === */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }

.partner {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  min-height: 200px;
}
.partner-role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.partner img { max-height: 60px; width: auto; }

/* === /partneri page — editorial profile rows (no boxes, just row dividers) === */
.partners-section { padding: 2.5rem 0 5rem; }
.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.partner-entry {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.25rem;
  align-items: start;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.partner-entry:first-child { border-top: 0; padding-top: 1.5rem; }
.partner-entry:last-child  { padding-bottom: 1.5rem; }

.partner-entry-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.partner-entry-logo img {
  max-height: calc(var(--logo-scale, 1) * 56px);
  max-width: 100%;
  width: auto;
  display: block;
}

.partner-entry-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 56rem;
}
.partner-entry-role { color: var(--a1-red); }
.partner-entry-name {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0.1rem 0 0.25rem;
  color: var(--ink);
}
.partner-entry-desc {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 0.5rem;
  max-width: 50rem;
}
.partner-entry-link {
  display: inline-flex;
  align-self: flex-start;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.partner-entry-link:hover { border-bottom-color: var(--ink); }

@media (min-width: 768px) {
  .partner-entry {
    grid-template-columns: minmax(200px, 260px) 1fr;
    column-gap: 3rem;
    row-gap: 0;
    align-items: center;
    padding: 3.5rem 0;
  }
  .partner-entry-logo { min-height: 110px; }
  .partner-entry-logo img { max-height: calc(var(--logo-scale, 1) * 70px); }
}
@media (min-width: 1024px) {
  .partner-entry { column-gap: 4rem; padding: 4.5rem 0; }
  .partner-entry-logo img { max-height: calc(var(--logo-scale, 1) * 80px); }
}

/* === Footer === */
.footer {
  background: var(--bone);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer p { margin: 0; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 15px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* === Empty state === */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--bone);
  border: 1px dashed var(--line);
  border-radius: 3px;
}

/* === Animations === */
.fade-in-up { animation: fadeInUp 0.6s ease-out both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

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

/* === Focus (a11y) === */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

/* === Skip link === */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform 0.2s;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 3px;
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

/* === A1 Red CTA button (for event registration) === *
 * A1 crvena rezervirana je za "Prijavi se" – A1 je generalni sponzor. */
.btn-cta-event {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(13px, 2vw, 15px) clamp(20px, 3vw, 28px);
  border-radius: 3px;
  background: var(--a1-red);
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 18px);
  border: 1.5px solid var(--a1-red);
  min-height: 48px;
  transition: filter 0.2s, transform 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.btn-cta-event:hover { filter: brightness(0.92); transform: translateY(-1px); }
.btn-cta-event .icon { width: 16px; height: 16px; stroke-width: 2.25; }

/* === Form inputs (Brevo modal) === */
.input-brand {
  width: 100%;
  padding: 14px 18px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.input-brand::placeholder { color: var(--text-3); }
.input-brand:focus { outline: none; border-color: var(--ink); }
textarea.input-brand { resize: vertical; min-height: 64px; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
}

/* === Modal === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}
.modal-header {
  background: var(--cream);
  padding: 1.75rem;
  border-radius: 3px 3px 0 0;
  position: relative;
}
.modal-header h2 {
  font-size: clamp(24px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0.5rem 0;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-close .icon { width: 18px; height: 18px; stroke-width: 2; }
.modal-body { padding: 1.5rem 1.75rem 1.75rem; }
.modal-form-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 600px) {
  .modal-form-actions { flex-direction: row; justify-content: flex-end; }
}

.modal-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.modal-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(31,122,107,0.12);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.modal-success-icon .icon { width: 36px; height: 36px; stroke-width: 2.5; }

/* === Lucide-style inline SVGs (24x24 default, scale via .icon) === */
.icon { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* === Hero (ported 1:1 from website--start) === */
.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
}
@media (min-width: 640px)  { .hero { padding: 4rem 0 5rem; } }
@media (min-width: 768px)  { .hero { padding: 6rem 0 7rem; } }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: flex-end;
}
@media (min-width: 1024px) {
  /* Stats column is hidden – let the title use the full width so the rotating
     phrase stays on one line. Restore "8fr 4fr" if the stats block returns. */
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.hero-content .eyebrow-hero { display: block; margin-bottom: 1.5rem; }
.hero-content h1 { margin: 0 0 2rem; color: var(--ink); }
.hero-content .lead { max-width: 36rem; margin: 0 0 2.5rem; }
/* No trailing gap when the subtitle is the last element (hero CTA hidden). */
.hero-content .lead:last-child { margin-bottom: 0; }
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

/* Stat tiles in the hero (4 cards in 2x2 on mobile, 2x2 always) */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .hero-stats { gap: 1rem; } }
.hero-stat {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.25rem;
}
@media (min-width: 640px) { .hero-stat { padding: 1.5rem; } }
.hero-stat .stat-value {
  display: block;
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.hero-stat .eyebrow { display: block; }

/* === Rotating accent word (hero) === */
.hero-rotation-wrap {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
}
@media (max-width: 640px) {
  .hero-rotation-wrap { display: block; }
}
#hero-rotation-word {
  display: inline-block;
  animation: rotateIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity, filter;
  color: var(--a1-red);
}
#hero-rotation-word.is-leaving {
  animation: rotateOut 0.35s cubic-bezier(0.55, 0, 0.68, 0.06) both;
}
@keyframes rotateIn {
  from { opacity: 0; transform: translateY(0.4em) skewY(3deg); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0)    skewY(0);     filter: blur(0); }
}
@keyframes rotateOut {
  from { opacity: 1; transform: translateY(0)     skewY(0);     filter: blur(0); }
  to   { opacity: 0; transform: translateY(-0.4em) skewY(-3deg); filter: blur(2px); }
}
@media (prefers-reduced-motion: reduce) {
  #hero-rotation-word, #hero-rotation-word.is-leaving { animation: none !important; }
}

/* === Areas section (3 module cards) === */
.areas {
  background: var(--paper);
  padding: 5rem 0;
}
@media (min-width: 768px) { .areas { padding: 7rem 0; } }
.areas-head {
  max-width: 40rem;
  margin: 0 0 3.5rem;
}
.areas-head .eyebrow-strong { display: block; margin-bottom: 1rem; }
.areas-head h2 { margin: 0 0 1.25rem; }
.areas-head .lead { font-size: 20px; }

.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }

.module-card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  color: inherit;
}
@media (max-width: 640px) {
  .module-card { padding: 24px 22px; border-radius: 3px; }
}
.module-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.module-card-head .icon { width: 24px; height: 24px; color: var(--muted); }
.module-num {
  font-weight: 900;
  font-size: clamp(48px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.module-card h3 {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.module-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}
.module-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.module-card.is-blue .module-num { color: var(--hgk-blue); }
.module-card.is-teal .module-num { color: var(--teal); }
.module-card.is-red  .module-num { color: var(--a1-red); }
.module-card.is-ink  .module-num { color: var(--ink); }

/* Text link ("Natrag na…", inline arrows) */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-text .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.btn-text:hover { border-bottom-color: var(--ink); }

/* "Powered by FINA" small inline badge on the first module card */
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.powered-by img { height: 14px; width: auto; opacity: 0.95; }

/* === Stagger animation (rows fade in) === */
.stagger > * { opacity: 0; animation: fadeInUp 0.5s ease-out forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.16s; }
.stagger > *:nth-child(5) { animation-delay: 0.20s; }
.stagger > *:nth-child(6) { animation-delay: 0.24s; }
.stagger > *:nth-child(7) { animation-delay: 0.28s; }
.stagger > *:nth-child(8) { animation-delay: 0.32s; }
.stagger > *:nth-child(9) { animation-delay: 0.36s; }

/* === Events page header (kalendar uživo) === */
.events-section {
  background: var(--paper);
  padding: 4rem 0 5rem;
}
@media (min-width: 768px) { .events-section { padding: 5rem 0 7rem; } }
.events-head {
  max-width: 56rem;
  margin: 0 0 3rem;
}
.events-head .eyebrow-strong { display: block; margin-bottom: 1rem; }
.events-head h2 { margin: 0 0 1.25rem; }
.events-head .lead { max-width: 48rem; }

/* === "Pogledaj sva događanja" footer button under the visible cards === */
.show-more {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.show-more .btn-primary .icon { width: 16px; height: 16px; }

/* === Workshop detail page (/radionice/{grad}) === */
.workshop-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .workshop-detail { grid-template-columns: 8fr 4fr; gap: 3rem; }
  .workshop-aside { position: sticky; top: 92px; }
}

/* Markdown body rendered into the main column */
.workshop-main { min-width: 0; color: var(--text-1); }
.workshop-main > :first-child { margin-top: 0; }
.workshop-main p { color: var(--text-2); line-height: 1.7; margin: 0 0 1.1rem; }
.workshop-main h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin: 2.25rem 0 1rem;
}
.workshop-main h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}
.workshop-main ul,
.workshop-main ol { margin: 0 0 1.25rem; padding-left: 1.35rem; color: var(--text-2); }
.workshop-main li { margin: 0.4rem 0; line-height: 1.6; }
.workshop-main a { color: var(--a1-red); border-bottom: 1px solid transparent; }
.workshop-main a:hover { border-bottom-color: var(--a1-red); }
.workshop-main strong { color: var(--ink); }

/* Sidebar detail list */
.detail-list { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.detail-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.detail-icon { color: var(--muted); flex-shrink: 0; line-height: 0; margin-top: 0.1rem; }
.detail-icon .icon { width: 18px; height: 18px; stroke-width: 2; }
.detail-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.detail-value { margin: 0.1rem 0 0; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* Application form – light panel below the content in the main column */
.apply-block {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 3px;
}
@media (max-width: 640px) { .apply-block { padding: 1.5rem; } }
.apply-block .apply-title {
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0;
}
.apply-block .apply-intro {
  color: var(--text-2);
  margin: 0 0 1.5rem;
}
.apply-gdpr {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.apply-gdpr input { margin-top: 0.2rem; flex-shrink: 0; }
.apply-submit { margin-top: 1.5rem; }
.apply-note {
  margin: 0.9rem 0 0;
  font-size: 15px;
  color: var(--muted);
}
.apply-note.is-visible { color: var(--teal); font-weight: 600; }

/* Closed-signups notice (deadline passed / full / closed) – sits inside .apply-block */
.signups-closed {
  padding: 0;
}
.signups-closed p {
  margin: 0.75rem 0 0;
  color: var(--text-2);
  line-height: 1.6;
}

/* ===========================================================================
   Public registration – form feedback states (prijava.php / radionica.php)
   Reuses the brand palette: --ink, --muted, --teal, --a1-red, --bone, --line.
   =========================================================================== */

/* Inline error under the submit button (#apply-note gets .is-error). */
.apply-note.is-error {
  color: var(--a1-red);
  font-weight: 600;
}

/* Top-of-block banner for the no-JS ?prijava=ok|err fallback. */
.apply-banner {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 16px;
  line-height: 1.5;
}
.apply-banner-icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 0.05rem;
}
.apply-banner-icon .icon { width: 18px; height: 18px; }
.apply-banner--ok {
  background: rgba(31,122,107,0.10);
  border-color: var(--teal);
  color: var(--teal);
}
.apply-banner--err {
  background: var(--a1-red-soft);
  border-color: var(--a1-red);
  color: var(--a1-red);
}

/* Success panel that replaces the form after an AJAX registration. */
.apply-success {
  text-align: center;
  padding: 1rem 0.5rem;
}
.apply-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(31,122,107,0.12);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.apply-success-icon .icon { width: 32px; height: 32px; stroke-width: 2.5; }
.apply-success .apply-intro { max-width: 32rem; margin-left: auto; margin-right: auto; }

/* =========================================================================
 * Cookie banner — two modes:
 *   .cookie-banner--modal  (obtrusive, full-screen overlay, blocks scroll)
 *   .cookie-banner--bar    (non-obtrusive, sticky strip at bottom)
 * ========================================================================= */

/* When modal mode is active, lock the page scroll. */
.cookie-locked { overflow: hidden !important; }

.cookie-banner {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  z-index: 1000;
}

/* --- Modal (obtrusive) -------------------------------------------------- */
.cookie-banner--modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: cookie-fade-in 200ms ease-out;
}
.cookie-banner--modal .cookie-banner-inner {
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 560px;
  padding: 2rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
@media (max-width: 640px) {
  .cookie-banner--modal { padding: 0.75rem; align-items: flex-end; }
  .cookie-banner--modal .cookie-banner-inner {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
    max-height: calc(100vh - 1.5rem);
  }
}

/* --- Bar (non-obtrusive) ------------------------------------------------ */
.cookie-banner--bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  animation: cookie-slide-up 250ms ease-out;
}
.cookie-banner--bar .cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
}
.cookie-banner--bar .cookie-options { grid-column: 1 / -1; }
.cookie-banner--bar .cookie-actions { grid-column: 2; justify-self: end; }

@media (max-width: 900px) {
  .cookie-banner--bar .cookie-banner-inner {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .cookie-banner--bar .cookie-actions {
    grid-column: 1;
    justify-self: stretch;
    flex-wrap: wrap;
  }
}

/* --- Content (shared) --------------------------------------------------- */
.cookie-title {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.cookie-banner--bar .cookie-title { font-size: 1.05rem; margin-bottom: 0.25rem; }

.cookie-lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 0.75rem;
}
.cookie-banner--bar .cookie-lead { font-size: 0.9rem; margin-bottom: 0.4rem; }

.cookie-links {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 0;
}
.cookie-links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-links a:hover { color: var(--a1-red); }

/* --- Granular toggles --------------------------------------------------- */
.cookie-options[hidden] { display: none !important; }
.cookie-options {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cookie-btn[hidden] { display: none !important; }
.cookie-toggle {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--a1-red);
  flex-shrink: 0;
}
.cookie-toggle input[disabled] { opacity: 0.6; cursor: not-allowed; }
.cookie-toggle strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.cookie-toggle-desc {
  display: block;
  color: var(--text-2);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

/* --- Action buttons ----------------------------------------------------- */
/* Match the site's button language (squared 3px corners, 1.5px ink border,
   bold sans-serif) but a touch smaller — the banner is a tighter surface
   than a page-level CTA. */
.cookie-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.cookie-banner--bar .cookie-actions { margin-top: 0; }

.cookie-btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 0.55rem 1rem;
  min-height: 38px;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.cookie-btn:hover { transform: translateY(-1px); }

/* Postavke – outline */
.cookie-btn--ghost {
  background: transparent;
  color: var(--ink);
}
.cookie-btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Odbij sve – outline (same shape as ghost but visually distinct via cream fill) */
.cookie-btn--reject {
  background: var(--bone);
  color: var(--ink);
}
.cookie-btn--reject:hover { background: var(--ink); color: var(--paper); }

/* Prihvati sve / Spremi odabir – primary filled */
.cookie-btn--accept,
.cookie-btn--save {
  background: var(--ink);
  color: var(--paper);
}
.cookie-btn--accept:hover,
.cookie-btn--save:hover { background: var(--ink-hover); border-color: var(--ink-hover); }

@media (max-width: 480px) {
  .cookie-actions { flex-direction: column; align-items: stretch; }
  .cookie-actions .cookie-btn { width: 100%; text-align: center; }
}

/* --- Animations --------------------------------------------------------- */
@keyframes cookie-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner--modal,
  .cookie-banner--bar { animation: none; }
}

/* =========================================================================
 * Legal documents (Politika privatnosti, Politika kolačića)
 * Long-form text, readable line length, proper hierarchy.
 * ========================================================================= */
.legal-doc {
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.legal-doc h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}
.legal-doc p { margin: 0 0 1rem; }
.legal-doc ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc a:hover { color: var(--a1-red); }
.legal-doc code {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.4em;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (max-width: 640px) {
  .legal-doc { font-size: 0.95rem; }
  .legal-doc h2 { font-size: 1.3rem; margin-top: 2rem; }
  .legal-doc h3 { font-size: 1.05rem; }
}
