
:root {
  --red: #e30613;
  --red-dark: #b9000c;
  --ink: #17191d;
  --muted: #646a73;
  --paper: #f6f5f2;
  --white: #ffffff;
  --line: #dededb;
  --max-width: 1180px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(20, 22, 26, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: min(calc(100% - 36px), var(--max-width));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 84px 0;
}

.section.alt { background: var(--paper); }

.kicker {
  color: var(--red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin: .4rem 0 1.15rem;
  font-size: clamp(2.15rem, 4.8vw, 4.3rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.lead {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.72); }
.btn-outline:hover { color: var(--ink); background: #fff; }
.btn-dark { color: #fff; background: var(--ink); }
.text-link { color: var(--red); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 188px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: .94rem;
  font-weight: 750;
}

.main-nav a {
  position: relative;
  padding: 26px 0 23px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 17px;
  height: 3px;
  background: var(--red);
  transition: right .2s ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--red); }

.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  padding: 150px 0 72px;
  color: #fff;
  background: url('../images/hero-bk-ciklus.jpg') center 48% / cover no-repeat;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.34) 58%, rgba(0,0,0,.08) 100%),
    linear-gradient(0deg, rgba(0,0,0,.46), transparent 55%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--red);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 26px;
  font-size: clamp(3.7rem, 8.5vw, 7.8rem);
  line-height: .86;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.entry-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  border-radius: var(--radius);
  color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.84), rgba(0,0,0,.08) 72%);
}

.entry-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--red);
}

.entry-card > div {
  position: relative;
  z-index: 1;
}

.entry-card h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: .95;
  letter-spacing: -.04em;
}

.entry-card p {
  max-width: 500px;
  color: rgba(255,255,255,.88);
}

.entry-card.kids { background-image: url('../images/program-djeca-grupa.jpg'); }
.entry-card.cener { background-image: url('../images/cener-start-zagreb.jpg'); }

.activities-section::after {
  content: "";
  position: absolute;
  top: 54px;
  right: 0;
  width: 34px;
  height: 190px;
  background: url('../images/hibiscus-seamless.jpg') center / 180px auto repeat;
  opacity: .07;
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  mask-image: linear-gradient(to left, #000, transparent);
  pointer-events: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 58px;
  align-items: center;
}

.photo-card {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--paper);
}

.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.feature-list {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feature-number {
  color: var(--red);
  font-weight: 900;
}

.feature span { color: var(--muted); }

.statement-section {
  padding: 30px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement-text {
  display: inline-block;
  margin: 0;
  padding: 8px 13px 7px;
  border-left: 4px solid var(--red);
  color: var(--ink);
  background: linear-gradient(90deg, rgba(227,6,19,.08), transparent);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -.015em;
}

.gallery {
  display: grid;
  grid-template-columns: 1.45fr .9fr .9fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 34px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper);
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center;
}

.gallery figure:first-child img { object-position: center 48%; }
.gallery figure:nth-child(2) img { object-position: center 42%; }
.gallery figure:nth-child(3) img { object-position: center 28%; }

.page-hero {
  position: relative;
  min-height: 68svh;
  display: grid;
  align-items: end;
  padding: 150px 0 62px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.kids-hero { background-image: url('../images/program-djeca-grupa.jpg'); }
.cener-hero { background-image: url('../images/cener-start-zagreb.jpg'); }

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: .9;
  letter-spacing: -.055em;
}

.page-hero .lead { color: rgba(255,255,255,.88); }

.info-grid,
.checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.info-tile,
.check {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.info-tile strong,
.check strong { display: block; margin-bottom: 6px; }

.info-tile span,
.check span { color: var(--muted); }

.kids-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}

.kids-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 32px;
}

.location-card,
.results-box,
.cta-box,
.notice,
.schedule {
  border-radius: 14px;
}

.location-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.location-card h3 { margin-top: 0; }
.location-card p { color: var(--muted); }

.schedule {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.schedule div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.schedule div:last-child { border-bottom: 0; }
.schedule span { color: var(--muted); text-align: right; }

.results-box,
.cta-box,
.notice {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}


.supporters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.supporter-logo {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.supporter-logo img {
  display: block;
  width: auto;
  height: 104px;
  max-width: 100%;
  object-fit: contain;
}

.supporter-logo-ministry img,
.supporter-logo-ssgz img {
  height: 104px;
  width: auto;
  max-width: 100%;
}
.footer {
  padding: 62px 0 24px;
  color: #dfe2e7;
  background: #17191d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr 1fr;
  gap: 46px;
}

.footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.footer p { color: #b9bec6; }

.footer-brand {
  display: inline-flex;
  gap: 7px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
}

.footer-brand span { color: var(--red); }

.footer dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  margin: 0;
}

.footer dt { color: #8f96a0; }
.footer dd { margin: 0; overflow-wrap: anywhere; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #34373d;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 800;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link:hover {
  border-color: var(--red);
  background: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #30333a;
  color: #8f96a0;
  font-size: .9rem;
}

.flower-mark { display: none !important; }

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: inline-flex; }

  .entry-grid,
  .split,
  .location-grid,
  .info-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .split { gap: 34px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--max-width)); }
  .section { padding: 66px 0; }
  .brand img { width: 154px; }
  .hero { min-height: 82svh; padding: 132px 0 42px; }
  .hero h1 { font-size: 3.55rem; }
  .page-hero { min-height: 58svh; padding: 132px 0 44px; }
  .entry-card { min-height: 360px; padding: 24px; }
  .photo-card img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; }
  .gallery img { min-height: 250px; aspect-ratio: 4 / 3; }
  .kids-gallery { grid-template-columns: 1fr; }
  .kids-gallery img { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .schedule div { flex-direction: column; gap: 4px; }
  .schedule span { text-align: left; }
  .statement-section { padding: 24px 0; }
  .activities-section::after { width: 22px; opacity: .05; }
}


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

  .supporter-logo {
    min-height: 155px;
    padding: 24px;
  }

  .supporter-logo img,
  .supporter-logo-ministry img,
  .supporter-logo-ssgz img {
    height: 90px;
  }
}

/* Dodatne stranice i galerije */
.entry-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-grid-three .entry-card {
  min-height: 410px;
  padding: 26px;
}

.entry-grid-three .entry-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.entry-card.membership {
  background-image: url('../images/clanstvo-cilj.jpg');
  background-position: center 46%;
}

.membership-hero {
  background-image: url('../images/clanstvo-hero.jpg');
  background-position: center 46%;
}

.membership-price {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.membership-price span {
  color: rgba(255,255,255,.72);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.membership-price strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: clamp(4.2rem, 9vw, 7.4rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.membership-price p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.7);
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.discipline-card {
  min-height: 230px;
  padding: 28px;
  border-top: 5px solid var(--red);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(20,22,26,.08);
}

.discipline-card h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.discipline-card p {
  margin: 0;
  color: var(--muted);
}

.membership-photo img {
  aspect-ratio: 16 / 10;
  object-position: center;
}

.membership-gallery {
  columns: 4 250px;
  column-gap: 16px;
  margin-top: 34px;
}

.membership-gallery figure {
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.membership-gallery img {
  width: 100%;
  height: auto;
  transition: transform .25s ease;
}

.membership-gallery figure:hover img {
  transform: scale(1.025);
}

.membership-cta {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

.membership-cta p {
  color: rgba(255,255,255,.72);
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 16px;
    font-size: .88rem;
  }

  .entry-grid-three {
    grid-template-columns: 1fr 1fr;
  }

  .entry-grid-three .entry-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .entry-grid-three,
  .discipline-grid {
    grid-template-columns: 1fr;
  }

  .entry-grid-three .entry-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .membership-gallery {
    columns: 2 140px;
    column-gap: 10px;
  }

  .membership-gallery figure {
    margin-bottom: 10px;
    border-radius: 9px;
  }
}


/* Production accessibility and interaction details */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.btn:focus-visible,
.social-link:focus-visible,
.main-nav a:focus-visible {
  outline-color: var(--red);
}

.spaced-link {
  margin-top: 22px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .social-link,
  .menu-toggle {
    border: 1px solid ButtonText;
  }
}

.error-page {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding-top: 150px;
}
