:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --mist: #edf0ef;
  --mist-deep: #dfe5e3;
  --ink: #33241d;
  --muted: #75665c;
  --rose: #d66f82;
  --rose-deep: #a84255;
  --sun: #f2bd59;
  --mint: #8fc9ae;
  --sky: #8abbd7;
  --lilac: #b8a7cf;
  --line: rgba(79, 55, 40, 0.14);
  --shadow: 0 24px 70px rgba(73, 43, 28, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink);
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(45, 28, 18, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 118px;
  height: 78px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(51, 36, 29, 0.78);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(214, 111, 130, 0.15);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 150px 24px 74px;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero::before {
  background-image: url("/assets/naslovna.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(32, 25, 20, 0.7) 0%, rgba(32, 25, 20, 0.3) 52%, rgba(32, 25, 20, 0.18) 100%),
    linear-gradient(0deg, rgba(38, 25, 18, 0.68) 0%, rgba(38, 25, 18, 0.1) 58%);
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--sun);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.4rem, 6.4vw, 5.5rem);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--rose-deep);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(168, 66, 85, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(168, 66, 85, 0.3);
  background: #96384a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: none;
}

.section {
  padding: 90px 24px;
}

.section.tint {
  background: linear-gradient(135deg, var(--cream) 0%, var(--mist) 100%);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--rose-deep);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section h2,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
}

.section-lead,
.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.75;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(100%, 880px);
  margin: 42px auto 0;
}

.overview-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border: 1px solid rgba(75, 67, 61, 0.08);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(73, 43, 28, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.overview-card--mint {
  background: #e6f1e2;
}

.overview-card--rose {
  background: #f8dcdf;
}

.overview-card--butter {
  background: #fff0bd;
}

.overview-card--lilac {
  background: #ece2f2;
}

.overview-card--sky {
  background: #e1eef5;
}

.overview-card--mist {
  background: var(--mist-deep);
}

.overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(75, 67, 61, 0.16);
  box-shadow: 0 18px 38px rgba(73, 43, 28, 0.12);
}

.overview-card h3 {
  margin: 0;
  font-family: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 500;
}

.overview-card span {
  flex: 0 0 auto;
  font-size: 1.65rem;
  line-height: 1;
}

.page-hero {
  padding: 170px 24px 70px;
  background:
    linear-gradient(120deg, rgba(255, 247, 236, 0.95), rgba(255, 253, 248, 0.78)),
    var(--accent, var(--mint));
}

.page-hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: end;
}

.page-hero-inner.no-image {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  text-align: center;
}

.page-hero-inner.no-image p {
  margin-right: auto;
  margin-left: auto;
}

.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.content-copy {
  display: grid;
  gap: 18px;
}

.content-copy p,
.content-copy li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.78;
}

.content-copy p {
  margin: 0;
}

.content-copy h3 {
  margin: 18px 0 0;
  font-size: 1.24rem;
}

.soft-panel {
  align-self: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(73, 43, 28, 0.08);
  transform: translateY(20px);
}

.feature-list {
  display: grid;
  gap: 14px;
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.feature-list li::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-top: 4px;
  border: 2px solid rgba(51, 36, 29, 0.18);
  border-radius: 999px;
  background: radial-gradient(circle at 34% 30%, #fff 0 9%, var(--ball, var(--rose)) 12% 100%);
  box-shadow: inset -3px -4px 6px rgba(51, 36, 29, 0.13);
}

.feature-list li:nth-child(5n + 1) {
  --ball: var(--rose);
}

.feature-list li:nth-child(5n + 2) {
  --ball: var(--sun);
}

.feature-list li:nth-child(5n + 3) {
  --ball: var(--mint);
}

.feature-list li:nth-child(5n + 4) {
  --ball: var(--sky);
}

.feature-list li:nth-child(5n + 5) {
  --ball: var(--lilac);
}

.photo-section {
  padding-top: 0;
  background: linear-gradient(180deg, var(--paper), var(--mist));
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-gallery.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
}

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

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

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

.mini-card h3 {
  margin: 0 0 10px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  grid-column: 1 / -1;
  width: 100%;
  gap: 18px;
}

.contact-item {
  flex: 0 1 430px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.contact-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose-deep);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-item a,
.contact-item p {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 48px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--mist);
}

.site-footer img {
  width: 145px;
  height: 104px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.site-footer p {
  margin: 16px 0 0;
  color: var(--muted);
}

.site-footer address {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
}

@media (max-width: 980px) {
  .site-header {
    top: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 106px 16px auto;
    display: none;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.97);
    box-shadow: var(--shadow);
  }

  body.menu-open .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero-inner,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand img {
    width: 92px;
    height: 64px;
  }

  .hero {
    min-height: 96svh;
    padding: 136px 20px 56px;
  }

  .hero::before {
    background-image: url("/assets/naslovna-okomita.png");
    background-position: center top;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(32, 25, 20, 0.76) 0%, rgba(32, 25, 20, 0.24) 64%),
      linear-gradient(90deg, rgba(32, 25, 20, 0.36), rgba(32, 25, 20, 0.22));
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .section,
  .page-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .overview-grid,
  .program-grid,
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .contact-item {
    flex-basis: 100%;
  }

  .overview-card {
    min-height: 92px;
    padding: 22px 24px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer address {
    text-align: left;
  }
}
