/* =========================================================================
   Adria Basketball Youth Tournament 2027
   Boje i tipografija iz sluzbenog brand booka.
   ========================================================================= */

:root {
  --gold:      #F2B829;
  --gold-deep: #D99F12;
  --pine:      #1C4A3B;
  --pine-lift: #245C4A;
  --paper:     #FBF6EA;
  --sand:      #F1E7CC;
  --blue:      #1F6FB2;
  --ink:       #0E2620;

  --text:      #16332A;
  --text-soft: #4A6459;
  --line:      rgba(28, 74, 59, 0.14);
  --line-soft: rgba(28, 74, 59, 0.08);

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1200px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --pad: clamp(3.5rem, 9vw, 7.5rem);
  --r: 14px;
  --r-lg: 22px;

  --shadow: 0 1px 2px rgba(14, 38, 32, .05), 0 10px 30px -12px rgba(14, 38, 32, .18);
  --shadow-lg: 0 2px 4px rgba(14, 38, 32, .06), 0 28px 60px -22px rgba(14, 38, 32, .30);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.028em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap-narrow { max-width: 820px; }

section { padding-block: var(--pad); position: relative; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: .8rem 1.3rem;
  font-weight: 700;
  border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- bloki */
.eyebrow {
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.on-dark .eyebrow { color: var(--gold); }

.h-sec { font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.6rem); }
.h-sub { font-size: clamp(1.32rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -.022em; }

.lead {
  font-size: clamp(1.07rem, 1rem + .4vw, 1.28rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 62ch;
  margin-top: 1.25rem;
}
.on-dark .lead { color: rgba(251, 246, 234, .78); }

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* tamne sekcije */
.on-dark { background: var(--pine); color: var(--paper); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper); }
.on-ink { background: var(--ink); color: var(--paper); }
.on-sand { background: var(--sand); }

/* sunce kao pozadinski motiv */
.sunburst { position: relative; overflow: hidden; isolation: isolate; }
.sunburst::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -62%;
  width: min(1250px, 150vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
              rgba(242, 184, 41, .17) 0%,
              rgba(242, 184, 41, .07) 42%,
              transparent 68%);
  pointer-events: none;
}

/* ---------------------------------------------------------------- gumbi */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  line-height: 1;
  padding: 1.05rem 1.8rem;
  border-radius: 100px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 26px -12px rgba(242, 184, 41, .85);
}
.btn-gold:hover { background: #ffc63f; box-shadow: 0 16px 34px -12px rgba(242, 184, 41, .95); }

.btn-ghost {
  border-color: rgba(251, 246, 234, .38);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(251, 246, 234, .1); }

.btn-pine { background: var(--pine); color: var(--paper); }
.btn-pine:hover { background: var(--pine-lift); }

.btn-sm { padding: .72rem 1.25rem; font-size: .92rem; }
.hdr-cta { padding: .88rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 84px;
  padding-block: .7rem;
}
.hdr.is-stuck {
  background: rgba(28, 74, 59, .96);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(251, 246, 234, .1), 0 12px 30px -20px rgba(14, 38, 32, .9);
}

.brand { flex: none; display: block; line-height: 0; }
.brand img { height: 56px; width: auto; transition: height .3s var(--ease); }
.hdr.is-stuck .brand img { height: 48px; }
.brand-mark { display: none; }
/* Puni lockup je 287 px sirok, na telefonu bi izgurao izbornik jezika i burger. */
@media (max-width: 560px) {
  .brand-full { display: none; }
  .brand-mark { display: block; }
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a {
  font-size: .97rem;
  font-weight: 600;
  color: rgba(251, 246, 234, .82);
  text-decoration: none;
  padding: .55rem .62rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:hover { color: var(--paper); background: rgba(251, 246, 234, .1); }
.nav > .btn { display: none; }  /* dupli CTA, vidljiv samo u mobilnom izborniku */

.hdr-cta { flex: none; }

/* izbornik jezika */
.lang { position: relative; flex: none; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(251, 246, 234, .82);
  background: rgba(251, 246, 234, .1);
  border: 1px solid rgba(251, 246, 234, .2);
  border-radius: 100px;
  padding: .52rem .85rem;
  cursor: pointer;
}
.lang-btn:hover { color: var(--paper); background: rgba(251, 246, 234, .18); }
.lang-btn svg { width: 10px; transition: transform .2s var(--ease); }
.lang[open] .lang-btn svg { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  min-width: 190px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: .45rem;
  z-index: 60;
  max-height: 70vh;
  overflow: auto;
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .8rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 9px;
}
.lang-menu a:hover { background: var(--sand); }
.lang-menu a[aria-current="true"] { color: var(--gold-deep); }
.lang-menu .code {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.lang > summary { list-style: none; }
.lang > summary::-webkit-details-marker { display: none; }

/* mobilni izbornik */
.burger {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: rgba(251, 246, 234, .1);
  border: 1px solid rgba(251, 246, 234, .2);
  border-radius: 11px;
  cursor: pointer;
  color: var(--paper);
}
.burger span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background-color .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: currentColor;
  transition: transform .26s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--ink);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 38, 32, .96) 0%, rgba(14, 38, 32, .74) 34%,
                    rgba(14, 38, 32, .42) 62%, rgba(14, 38, 32, .62) 100%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(242, 184, 41, .2), transparent 70%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.6rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(251, 246, 234, .13);
  border: 1px solid rgba(251, 246, 234, .24);
  border-radius: 100px;
  padding: .48rem 1rem;
  backdrop-filter: blur(6px);
}
.badge-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.badge svg { width: 13px; height: 13px; flex: none; }

.hero h1 {
  font-size: clamp(2.35rem, 1rem + 5.8vw, 5.5rem);
  color: var(--paper);
  letter-spacing: -.038em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.hero h1 .l2 { display: block; color: var(--gold); }

.hero-sub {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, .95rem + .85vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--paper);
  margin-bottom: 1.15rem;
}

.hero-lead {
  font-size: clamp(1.05rem, .98rem + .5vw, 1.33rem);
  line-height: 1.55;
  color: rgba(251, 246, 234, .84);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* traka s brojkama */
.stats { background: var(--gold); color: var(--ink); }
.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(14, 38, 32, .16);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-block: 0;
  transform: translateY(-50%);
  box-shadow: var(--shadow-lg);
}
.stat { background: var(--gold); padding: clamp(1.3rem, 3vw, 2.1rem) clamp(1rem, 2.5vw, 1.8rem); }
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.stat span {
  display: block;
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(14, 38, 32, .72);
  line-height: 1.35;
}
.stats-pull { padding-block: 0; margin-bottom: calc(var(--pad) * -1 + clamp(1rem, 3vw, 2rem)); }

/* ---------------------------------------------------------------- video */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.video picture, .video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video img { transition: transform .6s var(--ease), filter .4s var(--ease); }
.video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 38, 32, .55), rgba(14, 38, 32, .12) 55%);
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.video:hover img { transform: scale(1.03); }
.video:hover::after { opacity: .75; }

.video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--paper);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
}
.video-play svg {
  width: 84px;
  height: 84px;
  padding: 22px 18px 22px 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 40px -10px rgba(14, 38, 32, .7);
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.video:hover .video-play svg { transform: scale(1.09); background: #ffc63f; }
.video-play span { text-shadow: 0 2px 14px rgba(14, 38, 32, .8); }

.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.video.is-playing::after, .video.is-playing .video-play { display: none; }

@media (max-width: 680px) {
  .video-play svg { width: 64px; height: 64px; padding: 17px 14px 17px 20px; }
  .video-play span { font-size: .92rem; }
}

/* ---------------------------------------------------------------- kartice */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
/* Bez ovoga siroki sadrzaj (tablica formata) rastegne gridu celiju preko viewporta. */
.grid > *, .cats > *, .levels > *, .prices > *, .fields > *, .day > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 184, 41, .55);
  box-shadow: var(--shadow-lg);
}
.on-dark .card {
  background: rgba(251, 246, 234, .055);
  border-color: rgba(251, 246, 234, .15);
}
.on-dark .card-hover:hover { background: rgba(251, 246, 234, .1); }
.card h3 { margin-bottom: .7rem; font-size: 1.22rem; letter-spacing: -.02em; }
.card p { color: var(--text-soft); font-size: .97rem; margin-bottom: 0; }
.on-dark .card p { color: rgba(251, 246, 234, .76); }

.card-num {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 1rem;
}
.on-dark .card-num { color: var(--gold); }

.ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(242, 184, 41, .17);
  color: var(--gold-deep);
  margin-bottom: 1.15rem;
}
.ico svg { width: 23px; height: 23px; }
.on-dark .ico { background: rgba(242, 184, 41, .2); color: var(--gold); }

/* ---------------------------------------------------------------- kategorije */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.cat-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cat-hd {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.15rem clamp(1.2rem, 2.5vw, 1.8rem);
  background: var(--pine);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.cat-hd.is-girls { background: var(--blue); }
.cat-hd svg { width: 20px; height: 20px; flex: none; opacity: .9; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem clamp(1.2rem, 2.5vw, 1.8rem);
  border-top: 1px solid var(--line-soft);
}
.cat-list li:first-child { border-top: 0; }
.cat-list b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.cat-list span { font-size: .87rem; color: var(--text-soft); text-align: right; }

.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.2vw, 1.5rem); }
.level {
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 2px solid;
}
.level-elite { border-color: var(--gold); background: rgba(242, 184, 41, .1); }
.level-comp { border-color: var(--line); background: var(--paper); }
.level-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: .32rem .8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.level-elite .level-tag { background: var(--gold); color: var(--ink); }
.level-comp .level-tag { background: var(--pine); color: var(--paper); }
.level p { margin-bottom: 0; color: var(--text-soft); }

.notes { list-style: none; margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; padding: 0; display: grid; gap: .8rem; }
.notes li {
  display: flex;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.notes li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: .56em;
  border-radius: 50%;
  background: var(--gold);
}
.on-dark .notes li { color: rgba(251, 246, 234, .76); }

/* cure, istaknuta sekcija */
.spotlight {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.spotlight-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight h2 { margin-bottom: 1.2rem; }

/* ---------------------------------------------------------------- poredak */
.rank { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rank li {
  counter-increment: r;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1rem 1.3rem;
  background: rgba(251, 246, 234, .055);
  border: 1px solid rgba(251, 246, 234, .13);
  border-radius: var(--r);
}
.rank li::before {
  content: counter(r);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}
.rank b { display: block; font-weight: 700; font-size: 1rem; }
.rank span { display: block; font-size: .86rem; color: rgba(251, 246, 234, .62); margin-top: .1rem; }

/* tablica */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid rgba(251, 246, 234, .15); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 540px; }
thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 1rem 1.3rem;
  background: rgba(251, 246, 234, .08);
  color: rgba(251, 246, 234, .7);
  white-space: nowrap;
}
tbody td { padding: 1rem 1.3rem; border-top: 1px solid rgba(251, 246, 234, .1); vertical-align: top; }
tbody td:first-child {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold);
  white-space: nowrap;
}
tbody td:last-child { color: rgba(251, 246, 234, .78); }

/* ---------------------------------------------------------------- lokacija */
.loc-hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.loc-hero img { width: 100%; height: 100%; object-fit: cover; }

.venues { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.venues li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.05rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-weight: 600;
}
.venues em {
  font-style: normal;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--gold-deep);
  white-space: nowrap;
}

.airports { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line);
            border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.airports li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.3rem;
  background: var(--paper);
}
.airports .ap { font-weight: 600; }
.airports .ap code {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--text-soft);
  margin-left: .5rem;
}
.airports .km { font-family: var(--mono); font-size: .9rem; color: var(--gold-deep); white-space: nowrap; }

/* ---------------------------------------------------------------- program */
.days { display: grid; gap: clamp(.8rem, 2vw, 1.2rem); }
.day {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.day:first-child { border-top: 0; padding-top: 0; }
.day-date {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: .3rem;
}
.day-date b {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: .2rem;
}
.day h3 { margin-bottom: .9rem; }
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.day li { display: flex; gap: .7rem; color: var(--text-soft); }
.day li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .6em;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------------------------------------------------------------- cijene */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.5rem); align-items: start; }
.price {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(242, 184, 41, .5); }
.price-hd { padding: 1.5rem clamp(1.3rem, 2.5vw, 1.9rem) 1.2rem; border-bottom: 1px solid var(--line-soft); }
.price-stars { display: flex; gap: .17rem; color: var(--gold); margin-bottom: .55rem; }
.price-stars svg { width: 17px; height: 17px; }
.price-hd h3 { font-size: 1.28rem; }
.price-hotels { font-size: .87rem; color: var(--text-soft); margin-top: .4rem; }
.price-rows { display: grid; grid-template-columns: 1fr 1fr; }
.price-row { padding: 1.35rem clamp(1rem, 1.8vw, 1.4rem); min-width: 0; }
.price-row + .price-row { border-left: 1px solid var(--line-soft); }
.price-row em {
  font-style: normal;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: block;
  margin-bottom: .4rem;
}
.price-row b {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.7rem, 1.3rem + 1.1vw, 2.15rem);
  letter-spacing: -.035em;
  line-height: 1;
  display: block;
}
.price-row b span {
  font-family: var(--mono);
  font-weight: 600;
  font-size: .42em;
  letter-spacing: .04em;
  margin-left: .35em;
  vertical-align: .22em;
  color: var(--text-soft);
}
.price-row small { font-size: .76rem; color: var(--text-soft); display: block; margin-top: .3rem; }
.price-ft { padding: 0 clamp(1.3rem, 2.5vw, 1.9rem) 1.4rem; }
.price-ft a { font-size: .86rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.price-ft a:hover { text-decoration: underline; }

.inc { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.inc li { display: flex; gap: .75rem; align-items: flex-start; font-size: .96rem; }
.inc svg { flex: none; width: 19px; height: 19px; margin-top: .18em; color: var(--gold); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.2vw, 2.4rem);
}
.on-dark .panel { background: rgba(251, 246, 234, .055); border-color: rgba(251, 246, 234, .15); }
.panel h3 { margin-bottom: 1.3rem; font-size: 1.2rem; }

/* ---------------------------------------------------------------- galerija */
.gal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 1.2vw, .85rem);
}
.gal a {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  position: relative;
}

.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .4s var(--ease);
}
.gal a:hover img { transform: scale(1.055); }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: .6rem; max-width: 900px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: rgba(242, 184, 41, .6); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem clamp(1.2rem, 2.5vw, 1.7rem);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.03rem;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-deep); }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--gold-deep);
  border-bottom: 2.5px solid var(--gold-deep);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .ans {
  padding: 0 clamp(1.2rem, 2.5vw, 1.7rem) 1.4rem;
  color: var(--text-soft);
  max-width: 68ch;
}

/* ---------------------------------------------------------------- obrazac */
.form-shell {
  background: var(--paper);
  /* Sekcija je .on-dark, pa bez ovoga labeli naslijede svijetlu boju na svijetloj podlozi. */
  color: var(--text);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-note {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1.1rem clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(242, 184, 41, .17);
  font-size: .92rem;
  font-weight: 600;
  color: #6b4a06;
}
.form-note svg { flex: none; width: 19px; height: 19px; margin-top: .1em; color: var(--gold-deep); }

form { padding: clamp(1.5rem, 3.5vw, 2.6rem); }

fieldset { border: 0; margin: 0 0 2.2rem; padding: 0; }
fieldset:last-of-type { margin-bottom: 1.6rem; }
legend {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
}
legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.f-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: .42rem; }
.field > label {
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: -.005em;
}
.field .req { color: #b3401f; margin-left: .15rem; }
.field .help { font-size: .79rem; color: var(--text-soft); line-height: 1.45; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
select, textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .8rem .95rem;
  width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
textarea { resize: vertical; min-height: 96px; }
input:hover, select:hover, textarea:hover { border-color: rgba(28, 74, 59, .3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3.5px rgba(242, 184, 41, .22);
}
input:user-invalid, select:user-invalid {
  border-color: #c2502c;
  box-shadow: 0 0 0 3.5px rgba(194, 80, 44, .14);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%234A6459' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 12px;
  padding-right: 2.6rem;
}

.radios { display: grid; gap: .55rem; }
.radio {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: .94rem;
  line-height: 1.45;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.radio:hover { border-color: rgba(242, 184, 41, .6); background: rgba(242, 184, 41, .05); }
.radio:has(input:checked) { border-color: var(--gold); background: rgba(242, 184, 41, .11); }
.radio input { flex: none; margin: .22em 0 0; accent-color: var(--gold-deep); width: 17px; height: 17px; }

.consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .89rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.consent input { flex: none; margin: .2em 0 0; accent-color: var(--gold-deep); width: 17px; height: 17px; }

.form-legal { font-size: .82rem; color: var(--text-soft); line-height: 1.55; margin-top: 1.3rem; }
.form-legal p { margin-bottom: .5rem; }

/* privole u obrascu */
.consents { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.consents .consent { margin-bottom: 0; }
.consent a { color: var(--blue); font-weight: 600; }
.consent em {
  font-style: normal;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-left: .35rem;
  white-space: nowrap;
}
.consent-note {
  font-size: .85rem;
  line-height: 1.55;
  color: var(--text-soft);
  background: rgba(242, 184, 41, .14);
  border-radius: var(--r);
  padding: .95rem 1.1rem;
  margin: .3rem 0 0;
}
.consent-note a { color: var(--blue); font-weight: 700; white-space: nowrap; }

/* stranica s pravnim tekstom */
.doc-page { background: var(--paper); }
.doc { padding-block: clamp(7rem, 12vw, 9.5rem) clamp(3.5rem, 8vw, 6rem); }
.doc h1 { margin-bottom: 0; }
.doc .lead { max-width: 68ch; }
.doc-updated {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--text-soft);
  margin-top: 1.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.doc-sec { padding-block: clamp(1.8rem, 4vw, 2.6rem); border-bottom: 1px solid var(--line-soft); }
.doc-sec:last-child { border-bottom: 0; }
.doc-sec h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); margin-bottom: .9rem; }
.doc-sec p { color: var(--text-soft); max-width: 72ch; }
.doc-sec .notes { margin-top: .9rem; }
.doc-sec .notes li { max-width: 70ch; }

.form-msg { display: none; padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.form-msg.is-on { display: block; }
.form-msg h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.form-msg p { color: var(--text-soft); max-width: 48ch; margin-inline: auto; }
.form-msg .mark { width: 58px; height: 58px; margin: 0 auto 1.3rem; }
.form-shell.is-sent form, .form-shell.is-sent .form-note { display: none; }

button[disabled] { opacity: .6; cursor: wait; }

/* ---------------------------------------------------------------- kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.contact-lines li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-lines svg { flex: none; width: 19px; height: 19px; margin-top: .22em; color: var(--gold); }
.contact-lines em {
  font-style: normal;
  display: block;
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(251, 246, 234, .55);
  margin-bottom: .12rem;
}
.contact-lines a { font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(242, 184, 41, .45); }
.contact-lines a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.legal-box {
  font-size: .82rem;
  line-height: 1.62;
  color: rgba(251, 246, 234, .6);
  border-top: 1px solid rgba(251, 246, 234, .14);
  margin-top: 1.5rem;
  padding-top: 1.3rem;
}

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: rgba(251, 246, 234, .62); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.foot-brand img { height: 92px; width: auto; margin-bottom: 1.2rem; }
.foot-brand p { font-size: .9rem; max-width: 30ch; }
.foot h4 {
  font-family: var(--mono);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot a { color: rgba(251, 246, 234, .62); text-decoration: none; font-size: .92rem; }
.foot a:hover { color: var(--gold); }
.foot-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(251, 246, 234, .12);
  font-size: .82rem;
}
.foot-bot .mono { font-family: var(--mono); letter-spacing: .05em; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1150px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr-cta { display: none; }

  body.menu-open { overflow: hidden; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    position: fixed;
    inset: 84px 0 0;
    background: var(--pine);
    padding: 1.4rem var(--gut) 3rem;
    overflow-y: auto;
    margin: 0;
  }
  .nav.is-open a { font-size: 1.15rem; padding: .95rem .5rem; border-bottom: 1px solid rgba(251, 246, 234, .1); }
  .nav.is-open > .btn { display: inline-flex; margin-top: 1.2rem; }
  .hdr:has(.nav.is-open) { background: var(--pine); }
}

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-media { order: -1; aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .g2, .g3, .g4, .cats, .levels { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: .8rem; }
  .day-date { display: flex; align-items: baseline; gap: .6rem; padding-top: 0; }
  .day-date b { font-size: 1.9rem; margin-bottom: 0; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .price-rows { grid-template-columns: 1fr; }
  .price-row + .price-row { border-left: 0; border-top: 1px solid var(--line-soft); }
  .hero { min-height: auto; padding-top: 118px; padding-bottom: 3rem; }
  .hero-cta .btn { width: 100%; }
  .foot-top { grid-template-columns: 1fr; }
  .stats-in { transform: translateY(-8%); }
  .stats-pull { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .hdr, .burger, .hero-cta, form, .gal { display: none; }
  body { background: #fff; color: #000; }
}
