/* ===================================================================
   IDS — Inicijativa za Demokratski Socijalizam
   =================================================================== */

:root {
  --coral: #f3615c;
  --coral-deep: #e14b46;
  --navy: #3d58d1;
  --navy-deep: #2c3fa0;
  --ink: #1c1d21;
  --ink-soft: #474952;
  --paper: #ffffff;

  --font-display: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 640px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- shared logo ---------- */

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.logo__mark {
  display: block;
  width: auto;
}

.logo--on-coral .logo__mark {
  width: clamp(100px, 24vw, 167px);
  height: auto;
  color: #fff;
}

.logo--on-coral .logo__tagline {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.7vw, 0.85rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.logo--on-white .logo__mark {
  width: clamp(314px, 45vw, 386px);
  height: auto;
  color: var(--navy);
}

/* ===================================================================
   HERO
   =================================================================== */

.hero {
  background: var(--coral);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__inner {
  max-width: 1228px;
  margin: 0 auto;
  padding: 0 1.5rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2163;
  font-size: clamp(2rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.hero__title span:first-child { color: #fff; }
.hero__title-accent { color: var(--navy); }

.hero__lede {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
}

.hero__lede strong { font-weight: 700; color: #fff; }

.hero__lede-intro {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 800;
  color: #fff;
}

.hero__photo {
  line-height: 0;
  background: var(--coral);
}

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

/* ===================================================================
   ABOUT / MANIFEST
   =================================================================== */

.about {
  background: var(--paper);
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem clamp(2rem, 6vw, 3rem);
}

.about__inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manifest {
  max-width: var(--measure);
  margin: 2.75rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  line-height: 1.4;
  text-align: justify;
  color: var(--ink-soft);
}

.manifest p { margin: 0; }

.pledge-card {
  margin-top: 2.75rem;
  width: 100%;
  background: var(--coral);
  color: #fff;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pledge-card p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 2rem);
  line-height: 1.4;
  text-transform: uppercase;
  max-width: 46ch;
}

.pledge-card__accent {
  font-weight: 800;
}

.pledge-card__seal {
  position: relative;
  display: block;
  width: clamp(110px, 22vw, 150px);
  height: clamp(110px, 22vw, 150px);
  color: rgba(255,255,255,0.85);
}

.pledge-card__seal svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: seal-rotate 6s linear infinite;
}

@keyframes seal-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pledge-card__seal-ring-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.pledge-card__seal-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  color: #fff;
}

.statement {
  margin: 2.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 2.5rem);
  line-height: 1.4;
}

.statement__line {
  display: block;
  font-weight: 500;
}

.statement__line--bold {
  font-weight: 700;
}

.statement__break {
  display: none;
}

@media (max-width: 640px) {
  .statement__break {
    display: initial;
  }
}

.statement--about {
  margin-top: 1.5rem;
  color: var(--navy);
  text-transform: uppercase;
}

/* ===================================================================
   AKTA I ODLUKE
   =================================================================== */

.acts {
  background: var(--paper);
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem clamp(4rem, 8vw, 6rem);
}

.acts__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.acts__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--ink);
}

.acts__subtitle {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.acts__list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.acts__list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ebf0f7;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  height: 100%;
}

.acts__list li a:hover,
.acts__list li a:focus-visible {
  background: #e4e9f5;
  border-color: var(--navy);
}

.acts__icon {
  flex-shrink: 0;
  width: auto;
  height: 26px;
  color: var(--coral);
}

/* ===================================================================
   FOOTER
   =================================================================== */

.footer__band {
  background: var(--navy);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem clamp(4.5rem, 10vw, 7rem);
  text-align: center;
}

.footer__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 8vw, 4rem);
}

.footer__title span { color: var(--coral); }

.footer__subtitle {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, 2.4vw, 1.25rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.footer__social {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.footer__social a:hover,
.footer__social a:focus-visible {
  opacity: 1;
}

.footer__social svg {
  width: auto;
  height: 26px;
}

.footer__photo {
  line-height: 0;
  margin-top: -4.5vw;
  position: relative;
}

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

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 640px) {
  .acts__list {
    grid-template-columns: 1fr;
  }
}
