/* ==========================================================================
   Udruga „Spektar prijateljstva" — main stylesheet
   Plain CSS, mobile-first. All colours / spacing / radii / shadows live in :root.
   Sections:
     1. Fonts (self-hosted, latin + latin-ext for č ć đ š ž)
     2. Design tokens
     3. Calm mode, contrast and motion overrides (token level)
     4. Base / minimal reset
     5. Utilities & shared components (container, buttons, marker, headings)
     6. Header, navigation, search, mobile menu
     7. Page sections (hero → contact)
     8. Footer, cookie banner
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-ext-700-normal.a4fc62d81f8b.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;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.e1180918b873.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;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-ext-800-normal.9a3d1f9c9f3b.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;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-normal.b1b7dd5dbcea.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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400-normal.397d4f3b04fb.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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.27ab01c4cb50.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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400-italic.50897a1ab826.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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-italic.410bdda67c60.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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-600-normal.2d5f5a2133ba.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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.9a35cba76eda.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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-700-normal.26cdfd79afb4.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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.9b13bd3653e3.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;
}

/* 2. Design tokens -------------------------------------------------------- */
:root {
  /* Brand palette (from the logo) */
  --teal-600: #2E9B87;   /* logo teal: decorative shapes, icon tiles */
  --teal-700: #24796A;   /* hero + action band field (white text 5.2:1) */
  --teal-800: #1B5E52;   /* high-contrast variant (white text 7.6:1) */
  --teal-100: #DCEFEA;   /* calm-mode soft field */
  --navy-900: #1F3A5F;   /* logo outline: dark band, footer, display text */
  --orange-500: #E8622A; /* logo orange: markers, accents on dark */
  --orange-600: #B8461A; /* action colour for buttons/links (white text 5.3:1) */
  --yellow-400: #F5C63D; /* secondary accent: icon tiles, focus halo */
  --yellow-100: #FBEFC7;
  --blue-500: #3C6FE0;   /* secondary accent: icon tiles */
  --cream-50: #FCF8EE;   /* page background */
  --cream-100: #F5EEDF;
  --logo-bg: #FFFFF3;    /* exact background of the supplied logo file */
  --white: #FFFFFF;
  --ink-900: #16212E;
  --body-600: #465060;   /* body text on cream: 7.7:1 (AAA) */
  --line: #E5DFD0;
  --line-strong: #6B7280;
  --error-700: #A3261B;
  --success-700: #1B5E52;
  --shadow-card: 0 10px 34px rgba(31, 58, 95, 0.08);
  --shadow-pop: 0 18px 50px rgba(22, 33, 46, 0.18);
  --scrim: rgba(22, 33, 46, 0.55);

  /* Semantic colour roles — calm / contrast modes only swap these */
  --page-bg: var(--cream-50);
  --text: var(--ink-900);
  --text-muted: var(--body-600);
  --link: var(--orange-600);
  --hero-bg: var(--teal-700);
  --hero-fg: var(--white);
  --hero-accent: var(--yellow-400);
  --dark-bg: var(--navy-900);
  --dark-fg: var(--white);
  --dark-accent: var(--orange-500);
  --action-bg: var(--teal-700);
  --action-fg: var(--white);
  --deco-opacity: 1;
  --focus-ring: var(--ink-900);
  --focus-halo: var(--yellow-400);

  /* Typography */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-body: 1.125rem;          /* 18px */
  --lh-body: 1.7;
  --fs-small: 1rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-h1: clamp(2.75rem, 1.55rem + 5.2vw, 5.75rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --fs-display: clamp(2.5rem, 1.1rem + 5.6vw, 6.25rem);
  --measure: 68ch;
  --tracking-body: 0;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-pad: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --pillar-overlap: 2rem;

  /* Shape & layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-arch: 999px 999px 22px 22px;
  --radius-pill: 999px;
  --container: 1200px;
  --container-wide: 1320px;
  --header-h: 5.25rem;
  --tap: 48px;
  --border: 2px;

  /* Motion */
  --dur-slow: 700ms;
  --dur-ui: 160ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Calm mode, contrast and motion overrides ----------------------------- */
/* "Smiri stranicu": soft fields, no motion, more air. Toggled by main.js. */
:root[data-calm="true"] {
  --hero-bg: var(--teal-100);
  --hero-fg: var(--ink-900);
  --hero-accent: var(--teal-800);
  --dark-bg: var(--cream-100);
  --dark-fg: var(--ink-900);
  --dark-accent: var(--teal-800);
  --action-bg: var(--teal-100);
  --action-fg: var(--ink-900);
  --deco-opacity: 0.35;
  --lh-body: 1.85;
  --tracking-body: 0.01em;
  --section-pad: clamp(5rem, 3rem + 7vw, 9rem);
  --dur-slow: 0ms;
  --dur-ui: 0ms;
}

@media (prefers-contrast: more) {
  :root {
    --text-muted: var(--ink-900);
    --hero-bg: var(--teal-800);
    --action-bg: var(--teal-800);
    --line: var(--line-strong);
    --link: var(--navy-900);
  }
  :root[data-calm="true"] {
    --hero-bg: var(--cream-50);
    --action-bg: var(--cream-50);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-slow: 0ms;
    --dur-ui: 0ms;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Belt and braces: kill every transition/animation in calm or reduced mode */
:root[data-calm="true"] *,
:root[data-calm="true"] *::before,
:root[data-calm="true"] *::after {
  animation: none;
  transition: none;
  scroll-behavior: auto;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none;
    transition: none;
  }
}

/* 4. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keep section headings clear of the sticky header when jumping to #anchors */
  scroll-padding-top: calc(var(--header-h) + var(--space-3));
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-body);
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: inherit;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.12; }

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0 0 var(--space-4);
}

p {
  max-width: var(--measure);
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-halo);
}

[hidden] {
  display: none !important;
}

/* 5. Utilities & shared components --------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.section--tint {
  background: var(--cream-100);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-7);
}

.section__head h2 {
  margin: 0;
}

.section__intro {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin: var(--space-3) 0 0;
}

.lead {
  font-size: var(--fs-lead);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: var(--fs-small);
}

/* Circled arrow marker (reference: Posse) */
.marker {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.18em;
  vertical-align: -0.02em;
  color: var(--marker-color, var(--orange-500));
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-3) var(--space-5);
  border: var(--border) solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dur-ui) linear, color var(--dur-ui) linear, border-color var(--dur-ui) linear;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn--primary {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.btn--solid-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy-900);
}

.btn--solid-light:hover {
  background: var(--cream-100);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--outline:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn--navy {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--ink-900);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Calm mode: light/outline buttons on soft fields need dark ink */
:root[data-calm="true"] .hero .btn--solid-light,
:root[data-calm="true"] .band-action .btn--solid-light {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.text-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
}

.text-link svg {
  width: 1em;
  height: 1em;
}

/* Illustrative photo caption — required for every stock image */
.photo-note {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.photo-note svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex: none;
}

/* 6. Header --------------------------------------------------------------- */
/* Sticky: the header follows the visitor while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--logo-bg);
  border-bottom: 1px solid var(--line);
}

.site-header.is-menu-open {
  position: fixed;
  inset: 0 0 auto 0;
}

.header-inner {
  width: min(100% - 2 * var(--gutter), var(--container-wide));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand,
.header-tools {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: var(--radius-sm);
}

.brand img {
  width: auto;
  height: 4.25rem;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: var(--border) solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--navy-900);
}

.icon-btn:hover {
  background: var(--cream-100);
}

.icon-btn svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* Calm toggle */
.calm-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-2) var(--space-4);
  border: var(--border) solid var(--navy-900);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
}

.calm-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.calm-toggle__check {
  display: none;
}

.calm-toggle[aria-pressed="true"] {
  background: var(--navy-900);
  color: var(--white);
}

.calm-toggle[aria-pressed="true"] .calm-toggle__check {
  display: block;
}

.calm-toggle[aria-pressed="true"] .calm-toggle__icon {
  display: none;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 1rem;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Primary nav — mobile: full-screen panel */
.primary-nav {
  display: none;
}

.primary-nav.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  padding: calc(var(--header-h) + var(--space-5)) var(--gutter) var(--space-8);
  background: var(--logo-bg);
}

.nav-list,
.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  border-bottom: 1px solid var(--line);
}

.nav-link,
.nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.5rem;
  padding: var(--space-2) 0;
  border: 0;
  background: transparent;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--orange-600);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

.nav-parent svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--dur-ui) linear;
}

.nav-parent[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-sub {
  padding-bottom: var(--space-3);
}

.nav-sub a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding-left: var(--space-4);
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: none;
}

.nav-sub a:hover {
  text-decoration: underline;
}

.nav-mobile-cta {
  margin-top: var(--space-6);
}

/* Search panel */
.search-panel {
  background: var(--cream-100);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-5);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
}

.search-form .field {
  flex: 1 1 16rem;
  margin: 0;
}

.nav-mobile-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Small phones: keep logo, calm toggle and menu on one line at 360px */
@media (max-width: 29.99em) {
  .header-inner {
    width: min(100% - 2rem, var(--container-wide));
    gap: var(--space-3);
  }

  .brand img {
    height: 3.5rem;
  }

  #search-toggle {
    display: none;
  }

  .header-tools {
    gap: var(--space-1);
  }

  .calm-toggle {
    padding-inline: var(--space-3);
    font-size: 0.9375rem;
  }

  .menu-toggle {
    width: var(--tap);
    justify-content: center;
    padding: 0;
  }

  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Desktop header */
@media (min-width: 30em) {
  .brand img {
    height: 4.5rem;
  }
}

@media (min-width: 80em) {
  .menu-toggle,
  .nav-mobile-cta {
    display: none;
  }

  .primary-nav,
  .primary-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
    overflow: visible;
    margin-left: var(--space-5);
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .nav-list > li {
    position: relative;
    border: 0;
  }

  .nav-link,
  .nav-parent {
    min-height: var(--tap);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    gap: var(--space-1);
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .nav-link:hover,
  .nav-parent:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }

  .nav-parent svg {
    width: 1rem;
    height: 1rem;
  }

  .nav-sub {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    min-width: 16rem;
    padding: var(--space-3);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
  }

  .nav-sub a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
  }

  .nav-sub a:hover {
    background: var(--cream-100);
  }

  .header-cta {
    display: inline-flex;
  }

  .header-tools {
    gap: var(--space-3);
  }
}

/* 7. Sections ------------------------------------------------------------- */

/* Hero ------------------------------------------------------------------- */
.hero {
  --marker-color: var(--hero-accent);
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  padding-bottom: calc(var(--pillar-overlap) + clamp(2.5rem, 1.5rem + 4vw, 4.5rem));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero__content {
  opacity: 1;
  transform: none;
}

/* The single orchestrated motion moment on the page: a slow fade-and-rise
   of the hero text on load. Disabled by reduced-motion and calm mode. */
.js .hero__content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.js .hero__content.is-in {
  opacity: 1;
  transform: none;
}

:root[data-calm="true"].js .hero__content {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__content {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  margin-bottom: var(--space-5);
  max-width: 14ch;
}

.hero .lead {
  margin-bottom: var(--space-6);
  max-width: 44ch;
}

.hero__visual {
  margin: 0 auto;
  width: min(100%, 30rem);
}

.hero__art {
  position: relative;
  padding: 1.5rem 1.5rem 2rem;
}

.hero__shape {
  position: absolute;
  border-radius: var(--radius-lg);
  opacity: var(--deco-opacity);
}

.hero__shape--yellow {
  top: 0;
  right: 0;
  width: 42%;
  aspect-ratio: 1;
  background: var(--yellow-400);
}

.hero__shape--orange {
  bottom: 12%;
  left: 0;
  width: 28%;
  aspect-ratio: 1;
  background: var(--orange-500);
}

.hero__shape--blue {
  bottom: 0;
  right: 6%;
  width: 34%;
  aspect-ratio: 1;
  background: var(--blue-500);
}

.hero__frame {
  position: relative;
  border-radius: var(--radius-arch);
  overflow: hidden;
  background: var(--teal-600);
  aspect-ratio: 4 / 5;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual .photo-note {
  color: inherit;
  padding-inline: 1.5rem;
}

@media (min-width: 60em) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
  }

  .hero__visual {
    margin: 0;
  }
}

/* Pillar tab bar ---------------------------------------------------------- */
.pillars {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--pillar-overlap) - var(--space-6));
}

.pillars__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--space-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  scrollbar-width: thin;
}

.pillars__list li {
  flex: 1 0 auto;
  scroll-snap-align: start;
}

.pillars__link {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 4.25rem;
  padding: var(--space-3) var(--space-5);
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}

.pillars__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pillars__link:focus-visible {
  outline-offset: -5px;
}

.pillars__link--first {
  color: var(--orange-600);
}

.pillars__link--feature {
  background: var(--orange-600);
  color: var(--white);
  border-color: var(--orange-600);
}

.pillars__link--dark {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

/* Plain-language summary --------------------------------------------------- */
.summary {
  padding-top: var(--space-7);
}

.summary__card {
  display: grid;
  gap: var(--space-4) var(--space-7);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal-600);
  border-radius: var(--radius-lg);
}

.summary__card h2 {
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
  margin: 0;
}

.summary__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

.summary__list li + li {
  margin-top: var(--space-3);
}

.summary__cta {
  margin-top: var(--space-5);
}

@media (min-width: 48em) {
  .summary__card {
    grid-template-columns: 12rem 1fr;
  }
}

/* Dark mission band ----------------------------------------------------- */
.band-dark {
  --marker-color: var(--dark-accent);
  --link: var(--dark-fg);
  background: var(--dark-bg);
  color: var(--dark-fg);
}

.band-dark .photo-note {
  color: inherit;
  opacity: 0.85;
}

.mission__grid {
  display: grid;
  gap: var(--space-7);
}

.mission__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.mission__heading {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  line-height: 1.02;
}

.mission__heading .accent {
  color: var(--dark-accent);
}

.mission__how h3 {
  font-size: 1.5rem;
  color: var(--dark-accent);
}

.mission__how p {
  font-size: 1.125rem;
}

@media (min-width: 64em) {
  .mission__grid {
    grid-template-columns: 1.15fr 1fr 0.8fr;
    align-items: start;
  }

  .mission__heading {
    font-size: clamp(2.25rem, 1.2rem + 1.6vw, 3rem);
  }
}

/* Activities grid ------------------------------------------------------- */
.activities {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: grid;
  gap: var(--space-4);
}

/* 10 activities: 1 → 2 → 5 columns, so rows are always full */
@media (min-width: 36em) {
  .activities {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .activities {
    grid-template-columns: repeat(5, 1fr);
  }

  .activity {
    padding: var(--space-4);
  }

  .activity h3 {
    font-size: 1.375rem;
  }
}

.activity {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.activity h3 {
  font-size: 1.5rem;
  margin: 0;
}

.activity p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  color: var(--white);
}

.icon-tile svg {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-tile--teal { background: var(--teal-700); }
.icon-tile--yellow { background: var(--yellow-400); color: var(--navy-900); }
.icon-tile--orange { background: var(--orange-600); }
.icon-tile--blue { background: var(--blue-500); }

/* Naš kutak -------------------------------------------------------------- */
.kutak__grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

.kutak__frame {
  position: relative;
  isolation: isolate;
}

.kutak__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px;
}

.kutak__frame::before {
  content: "";
  position: absolute;
  inset: auto -0.75rem -0.75rem auto;
  width: 45%;
  aspect-ratio: 1;
  background: var(--yellow-400);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: var(--deco-opacity);
}

.kutak__title {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--yellow-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.status__label {
  font-weight: 700;
}

.needs {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.needs li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: var(--space-3);
  align-items: start;
}

.needs svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.2rem;
  color: var(--teal-700);
}

.needs strong {
  color: var(--navy-900);
}

@media (min-width: 60em) {
  .kutak__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-8);
  }

  .kutak__media {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
  }
}

/* Vision band — the page's one bold typographic moment ------------------ */
.vision {
  border-block: 1px solid var(--line);
}

.vision__grid {
  display: grid;
  gap: var(--space-6);
}

.vision__label {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  margin: 0;
}

.vision__statement {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  text-wrap: balance;
}

.vision__statement-accent {
  color: var(--teal-700);
}

.vision__support {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.vision__support h3 {
  color: var(--orange-600);
}

@media (min-width: 60em) {
  .vision__grid {
    grid-template-columns: 11rem 1fr;
    gap: var(--space-7);
  }

  .vision__support {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }
}

/* Click-to-play video (enabled later) */
.video-player {
  display: grid;
  gap: var(--space-3);
}

.video-player img,
.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Parent stories (enabled later) ---------------------------------------- */
.stories {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-5);
}

.story {
  margin: 0;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.story blockquote {
  margin: 0 0 var(--space-4);
  font-size: 1.25rem;
}

/* Get involved band ------------------------------------------------------ */
.band-action {
  --marker-color: var(--hero-accent);
  background: var(--action-bg);
  color: var(--action-fg);
}

.involve__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.involve__title {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.pill-list .btn {
  font-size: 1.125rem;
}

.note-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--cream-50);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
}

.note-card h3 {
  display: flex;
  align-items: baseline;
  color: var(--navy-900);
}

.note-card h3 .marker {
  --marker-color: var(--orange-600);
}

.note-card p:last-child {
  margin-bottom: 0;
}

@media (min-width: 60em) {
  .involve__grid {
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--space-8);
  }
}

/* Donations -------------------------------------------------------------- */
.donate__grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

.donate__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.pay-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--orange-600);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pay-card h3 {
  margin-bottom: var(--space-5);
}

.pay-list {
  margin: 0 0 var(--space-5);
}

.pay-list div {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.pay-list dt {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pay-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.iban {
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--navy-900);
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.copy-status {
  font-weight: 600;
  color: var(--success-700);
}

@media (min-width: 60em) {
  .donate__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* News ------------------------------------------------------------------- */
.news-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-6);
}

.news-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.news-card h3 a {
  color: var(--navy-900);
  text-decoration: none;
}

.news-card h3 a:hover {
  text-decoration: underline;
}

.empty-state {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
}

.empty-state p {
  margin: 0;
}

@media (min-width: 48em) {
  .empty-state {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Parent resources ------------------------------------------------------- */
.resources {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-4);
}

.resource {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.resource h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.resource h3 a {
  color: var(--navy-900);
  text-decoration: none;
}

.resource h3 a:hover {
  text-decoration: underline;
}

.resource h3 svg {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.2em;
  vertical-align: 0.05em;
}

.resource p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.resource__host {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-800);
}

.disclaimer {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--cream-50);
  border-left: 6px solid var(--navy-900);
  border-radius: var(--radius-sm);
}

.disclaimer svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--navy-900);
}

.disclaimer p {
  margin: 0;
}

/* Contact ---------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

.contact-list {
  margin: 0 0 var(--space-6);
}

.contact-list div {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.contact-list dt svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.2rem;
  color: var(--teal-700);
}

.contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.social {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  gap: var(--space-2);
}

.social a {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--radius-pill);
  border: var(--border) solid currentColor;
  color: inherit;
}

.social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.map-box {
  display: grid;
  gap: var(--space-3);
  place-items: start;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.map-box iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-sm);
}

.map-box p {
  margin: 0;
}

/* Newsletter: text beside a consent-gated Brevo signup form */
.newsletter__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.newsletter__points {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
}

.newsletter__privacy {
  margin: var(--space-5) 0 0;
  opacity: 0.85;
}

.embed-box {
  display: grid;
  gap: var(--space-4);
  place-items: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
}

.embed-box p {
  margin: 0;
}

/* The Brevo form brings its own light-grey card, so the loaded iframe fills the box edge to edge */
.embed-box.is-loaded {
  display: block;
  padding: 0;
  overflow: hidden;
}

/* Fixed height that fits the whole Brevo form (heading, e-mail, consent, button) without inner scrolling */
.embed-box iframe {
  display: block;
  width: 100%;
  height: 54rem;
  border: 0;
}

@media (min-width: 40em) {
  .embed-box iframe {
    height: 43rem;
  }
}

@media (min-width: 60em) {
  .newsletter__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-8);
  }
}

@media (min-width: 60em) {
  .contact__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-8);
  }
}

/* Forms ------------------------------------------------------------------ */
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 40em) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.field label,
.field legend {
  font-weight: 700;
  line-height: 1.3;
}

.field .req {
  color: var(--error-700);
}

.field-hint {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.textarea {
  min-height: 9rem;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--navy-900);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--error-700);
  border-width: 3px;
}

.field-error {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--error-700);
}

.field-error svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin-top: 0.15rem;
}

.check {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: var(--space-3);
  align-items: start;
}

.check input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.2rem 0 0;
  accent-color: var(--teal-700);
}

.check label {
  font-weight: 400;
}

.form-actions {
  margin-top: var(--space-5);
}

/* Server-side send failure, shown above the submit button (reuses .field-error styling) */
.form-error {
  margin-top: var(--space-5);
}

/* Honeypot against spam bots: off-screen, never visible to people or screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  padding: var(--space-6);
  background: var(--teal-100);
  border-radius: var(--radius-md);
  border-left: 6px solid var(--teal-700);
}

.form-success h3 {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.form-success svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--teal-800);
}

/* Spektar podrške: three-card variant of .activities, photo gallery, downloads */
@media (min-width: 64em) {
  .activities--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .activities--3 .activity {
    padding: var(--space-5);
  }
}

.podrska__subtitle {
  margin: var(--space-7) 0 var(--space-5);
}

.podrska-gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-3);
}

.podrska-gallery a {
  display: block;
  border-radius: var(--radius-md);
}

.podrska-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.materials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-4);
}

.material {
  display: grid;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.material--img {
  grid-template-columns: 5.5rem 1fr;
}

.material img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.material h4 {
  margin: 0 0 var(--space-2);
  font-size: 1.25rem;
}

.material p {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
}

.material__meta {
  font-weight: 400;
}

/* Membership fee line in the "Uključi se" band */
.involve__fee {
  margin: var(--space-5) 0 0;
}

.involve__fee a {
  color: inherit;
}

/* Biggest donors, below the donation details */
.donors {
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
}

.donors__title {
  margin: 0 0 var(--space-5);
  text-align: center;
}

.donors__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--space-4);
}

.donor {
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.donor img {
  width: auto;
  max-width: 100%;
  max-height: 5rem;
  object-fit: contain;
}

.donor__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy-900);
}

/* Dialogs ("Postanite član", "Volontirajte") */
.modal {
  width: min(100% - 2rem, 42rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-pop);
  overflow: auto;
  overscroll-behavior: contain;
}

/* The dialog itself only receives focus programmatically; its controls keep their focus ring */
.modal:focus {
  outline: none;
}

.modal--wide {
  width: min(100% - 2rem, 62rem);
}

.modal::backdrop {
  background: rgba(22, 33, 46, 0.6);
}

html:has(.modal[open]) {
  overflow: hidden;
}

.modal__inner {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.modal__inner > h2,
.volunteer h2 {
  margin-top: 0;
  padding-right: 3rem;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--cream-100);
}

.modal__close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.steps {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-6) 0;
  padding-left: 1.5rem;
}

.steps li::marker {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange-600);
}

.steps h3 {
  margin: 0 0 var(--space-3);
  font-size: 1.375rem;
}

.steps p {
  margin: 0;
}

.steps .pay-list {
  margin: 0;
}

.volunteer {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.volunteer .pay-list {
  margin: var(--space-5) 0;
}

.volunteer__flyer {
  display: block;
  border-radius: var(--radius-md);
}

.volunteer__flyer img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

@media (min-width: 48em) {
  .volunteer {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Česta pitanja (FAQ): native <details>, readable without JavaScript */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 54rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3rem;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange-600);
}

.faq details[open] summary::after {
  content: "–";
}

.faq summary h3 {
  margin: 0;
  font-size: 1.375rem;
}

.faq__a {
  padding: 0 var(--space-5) var(--space-5);
}

.faq__a p {
  margin: 0;
}

/* 8. Footer --------------------------------------------------------------- */
.site-footer {
  --link: var(--white);
  --focus-ring: var(--white);
  background: var(--navy-900);
  color: var(--white);
  padding-top: var(--space-8);
  font-size: 1.0625rem;
}

/* Mobile: brand row on top (logo beside text), the two link lists side by side,
   contact full width below. Desktop: four columns. */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-5);
  padding-bottom: var(--space-7);
}

.footer-brand,
.footer-grid > :last-child {
  grid-column: 1 / -1;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-4);
  align-items: start;
}

.footer-brand img {
  grid-row: span 2;
  width: 4.5rem;
  height: auto;
  border-radius: var(--radius-md);
}

.footer-brand p {
  margin-bottom: var(--space-3);
}

.footer-brand .social {
  margin: 0;
}

.footer-grid > :last-child {
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.footer-grid > :last-child .small {
  margin: var(--space-2) 0 0;
}

@media (min-width: 64em) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--space-7);
  }

  .footer-brand,
  .footer-grid > :last-child {
    grid-column: auto;
  }

  .footer-brand {
    display: block;
  }

  .footer-brand img {
    width: 5.5rem;
    margin-bottom: var(--space-4);
  }

  .footer-brand .social {
    margin-top: var(--space-4);
  }

  .footer-grid > :last-child {
    padding: 0;
    background: none;
  }
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer .social a {
  color: var(--white);
}

.legal {
  padding-block: var(--space-6) var(--space-7);
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal p {
  max-width: none;
}

.legal__credit a {
  color: inherit;
}

.legal__name {
  font-weight: 700;
  text-transform: none;
}

.legal__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

/* Mobile: legal links in a two-column grid instead of one long stack */
.legal__links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 0 var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

@media (min-width: 48em) {
  .legal__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-5);
  }
}

.legal__links a,
.legal__links button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: inherit;
}

/* Cookie banner — equal-weight choices, no dark patterns */
.cookie-banner {
  position: fixed;
  inset: auto var(--space-4) var(--space-4) var(--space-4);
  z-index: 90;
  max-width: 38rem;
  padding: var(--space-5);
  background: var(--white);
  color: var(--ink-900);
  border: 2px solid var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}

.cookie-banner h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.cookie-banner p {
  font-size: 1rem;
  line-height: 1.55;
}

.cookie-banner .btn-row .btn {
  flex: 1 1 11rem;
}

/* Accessibility statement page ------------------------------------------ */
.page-hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding-block: var(--space-8);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  margin-top: var(--space-7);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: var(--space-2);
}
