/* ===== BOJE =====
   Tamna paleta: skoro crna + narandžasta.
   --accent je glavna boja — promijeni je ovdje i promijeni se svuda. */
:root {
  --bg: #0f0e0d;
  --bg-2: #171513;
  --card: #1c1a17;
  --ink: #f3eee7;
  --muted: #9b948a;
  --line: #2c2925;
  --brass: #ff6a2b;      /* akcent (narandžasta) */
  --radius: 22px;
  --display: "Bricolage Grotesque", "Manrope", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
}
body.locked { overflow: hidden; } /* kad je otvoren lightbox/modal */

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, select { font: inherit; }

section { padding: 110px 6vw; max-width: 1400px; margin: 0 auto; }

h1, h2, h3, .logo { font-family: var(--display); }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.muted { color: var(--muted); }
.note { margin-top: 26px; font-size: 0.85rem; color: var(--muted); }

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.head .muted { max-width: 320px; }

/* ===== DUGMAD ===== */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 11px 20px; font-size: 0.92rem; }
.btn-dark { background: var(--brass); color: #0f0e0d; }
.btn-dark:hover { background: var(--ink); }
.btn-line { border-color: var(--line); background: transparent; }
.btn-line:hover { border-color: var(--brass); background: var(--brass); color: #0f0e0d; }
.btn-light { background: #0f0e0d; color: #fff; }
.btn-light:hover { background: #fff; color: #0f0e0d; }

.link-arrow { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform 0.25s; }
.link-arrow:hover span { transform: translateX(6px); }

/* ===== MENI ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 6vw;
  background: rgba(15, 14, 13, 0.8);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: 0.08em; }
.logo span { color: var(--brass); }
.nav nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
/* svaki link je "kružić" (pilula) koji se oboji na hover */
.nav nav a {
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav nav a:hover { color: var(--ink); background: var(--line); }
.nav nav a.active { color: #0f0e0d; background: var(--brass); }
.nav .btn { justify-self: end; }

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}
.hero h1 {
  font-size: clamp(3.2rem, 6.6vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 26px;
}
/* istaknuta riječ u naslovu */
.hero h1 .hl {
  color: var(--brass);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.09em;
  background: var(--brass);
  border-radius: 99px;
  transform-origin: left;
  animation: underline 0.9s 0.5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 470px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-bottom: 50px; }
.from-price {
  margin: -26px 0 44px;
  font-size: 0.92rem;
  color: var(--muted);
}
.from-price strong { color: var(--ink); }

.facts {
  list-style: none;
  display: flex;
  gap: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.facts strong { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.facts span { font-size: 0.85rem; color: var(--muted); }

.hero-img {
  position: relative;
  aspect-ratio: 4 / 4.2;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-img img { object-position: 65% center; animation: heroZoom 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes heroZoom { from { transform: scale(1.12); } }
.floating-card {
  position: absolute;
  left: 22px; bottom: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.floating-card small { display: block; color: var(--muted); font-size: 0.8rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #4cc97a; box-shadow: 0 0 0 4px rgba(76, 201, 122, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(76, 201, 122, 0); } }
.dot.closed { background: #ff5a4a; box-shadow: 0 0 0 4px rgba(255, 90, 74, 0.2); animation: none; }

/* ===== GALERIJA ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.g {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: zoom-in;
}
.g.big { grid-column: span 2; grid-row: span 2; }
.g.wide { grid-column: 1 / -1; } /* panorama preko cijele širine */
.g.wide img { object-position: center 80%; }
.g img, .hero-img img { filter: brightness(0.88) saturate(0.9); }
.g img { transition: transform 0.8s cubic-bezier(.2,.8,.2,1); }
.g:hover img { transform: scale(1.07); }
.g figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(15, 14, 13, 0.85);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.3s;
}
.g:hover figcaption { transform: translateY(-4px); }

/* ===== CIJENE ===== */
.prices { background: var(--bg-2); max-width: none; }
.prices > * { max-width: 1400px; margin-left: auto; margin-right: auto; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s, border-color 0.35s;
}
.price-card:hover { transform: translateY(-8px); border-color: var(--brass); box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4); }
.price-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; transition: color 0.3s; }
.amount.changed { animation: pop 0.35s; }
@keyframes pop { 50% { transform: scale(1.08); color: var(--brass); } }
.per { color: var(--muted); font-size: 0.95rem; }
.desc { color: var(--muted); font-size: 0.92rem; min-height: 44px; margin-bottom: 20px; }
.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.price-card li::before { content: "✓"; color: var(--brass); font-weight: 700; margin-right: 10px; }
.price-card .btn { width: 100%; }

.price-card.featured { background: var(--brass); color: #0f0e0d; border-color: var(--brass); }
.featured .per, .featured .desc { color: rgba(15, 14, 13, 0.65); }
.featured li { border-color: rgba(15, 14, 13, 0.18); }
.featured li::before { color: #0f0e0d !important; }
.price-card.featured:hover { border-color: #fff; }
.tag {
  position: absolute;
  top: 24px; right: 24px;
  background: #0f0e0d;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

/* prekidač za studente */
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.toggle small { color: var(--brass); }
.toggle input { position: absolute; opacity: 0; }
.track { width: 50px; height: 28px; background: var(--line); border-radius: 28px; position: relative; transition: background 0.25s; }
.thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform 0.25s; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.toggle input:checked + .track { background: var(--brass); }
.toggle input:checked + .track .thumb { transform: translateX(22px); }

/* ===== TRENERI ===== */
.coach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; }
.coach {
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  color: inherit;
}
.coach-photo {
  position: relative;
  aspect-ratio: 4 / 3.6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.initials {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.coach:hover .initials { transform: scale(1.12); }
.coach .coach-photo { transition: border-color 0.3s; }
.coach:hover .coach-photo { border-color: var(--brass); }
.coach-photo .initials { color: rgba(243, 238, 231, 0.18); }
.coach:hover .coach-photo .initials { color: var(--brass); }
.coach-photo .view {
  position: absolute;
  right: 16px; bottom: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}
.coach:hover .view { opacity: 1; transform: none; }
.coach h3 { font-size: 1.35rem; }
.coach p { color: var(--muted); font-size: 0.92rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 880px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
/* plus koji se okrene u x kad se otvori */
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.faq summary:hover { color: var(--brass); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brass); color: #0f0e0d; border-color: var(--brass); }
.faq details p {
  padding: 0 4px 24px;
  max-width: 680px;
  color: var(--muted);
  animation: faqIn 0.35s ease;
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ===== POSJETA ===== */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.visit-info h2 { margin-bottom: 14px; }
.hours { margin: 30px 0; }
.hours div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours dd { font-weight: 600; }
.address { color: var(--muted); margin-bottom: 22px; }
.quick-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.qc {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.qc:hover { border-color: var(--brass); background: var(--brass); color: #0f0e0d; transform: translateY(-2px); }

.mini-map {
  position: relative;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background: #1b1916;
  border: 1px solid var(--line);
}
.mini-map .road { position: absolute; background: #2e2a26; }
.mini-map .r1 { left: 0; right: 0; top: 60px; height: 14px; }
.mini-map .r2 { top: 0; bottom: 0; left: 55%; width: 14px; }
.mini-map .r3 { left: -10%; width: 120%; top: 130px; height: 10px; transform: rotate(-8deg); }
.mini-map .river { position: absolute; left: 0; right: 0; bottom: -20px; height: 46px; background: #1f2a2c; transform: rotate(3deg); }
.mini-map .pin {
  position: absolute;
  left: calc(55% - 30px); top: 22px;
  background: var(--brass);
  color: #0f0e0d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 8px;
  animation: bob 2s ease-in-out infinite;
}
.mini-map .pin::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  translate: -50% 0;
  border: 6px solid transparent;
  border-top-color: var(--brass);
  border-bottom: 0;
}
@keyframes bob { 50% { transform: translateY(-5px); } }
.visit-form {
  display: grid;
  gap: 16px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.visit-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.visit-form input, .visit-form select {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.visit-form input:focus, .visit-form select:focus { outline: none; border-color: var(--brass); }
.form-msg { font-weight: 600; color: #8fd6a4; min-height: 1.5em; }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 34px 6vw;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
footer .logo { color: var(--ink); font-size: 1.1rem; }
footer a { text-decoration: underline; }

/* ===== LIGHTBOX (velika slika) ===== */
.lightbox, .modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  background: rgba(20, 20, 18, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open, .modal.open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: 1000px; width: 100%; transform: scale(0.95); transition: transform 0.35s; }
.lightbox.open figure { transform: none; }
.lightbox img { border-radius: 16px; aspect-ratio: 3 / 2; height: auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-weight: 500; }
.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.lb-arrow {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lb-arrow:hover { background: #fff; color: var(--ink); }

/* ===== MODAL TRENERA ===== */
.modal-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.modal.open .modal-box { transform: none; }
.lb-close.dark { background: var(--brass); color: #0f0e0d; top: 16px; right: 16px; z-index: 2; }
.modal-photo { display: grid; place-items: center; min-height: 320px; }
.modal-photo .initials { font-size: 7rem; }
.modal-body { padding: 44px 40px; }
.modal-body h3 { font-size: 2rem; margin-bottom: 12px; }
.modal-body h4 { margin: 26px 0 8px; font-size: 0.95rem; }
.times { list-style: none; margin-bottom: 28px; }
.times li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.times li span:last-child { font-weight: 600; }

/* ===== POJAVLJIVANJE PRI SKROLOVANJU ===== */
.reveal { opacity: 0; translate: 0 36px; transition: opacity 0.9s, translate 0.9s cubic-bezier(.2,.8,.2,1), transform 0.35s, box-shadow 0.35s; }
.reveal.visible { opacity: 1; translate: 0 0; }

/* ===== TABLET ===== */
@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav nav { display: none; }
  .hero, .visit { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .from-price { margin-top: -20px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .coach-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-photo { min-height: 200px; }
}

/* ===== TELEFON ===== */
@media (max-width: 600px) {
  section { padding: 80px 20px; }
  .from-price {
  margin: -26px 0 44px;
  font-size: 0.92rem;
  color: var(--muted);
}
.from-price strong { color: var(--ink); }

.facts { gap: 22px; }
  .facts strong { font-size: 1.2rem; }
  .gallery-grid { grid-auto-rows: 150px; gap: 10px; }
  .price-grid, .coach-grid { grid-template-columns: 1fr; }
  .visit-form { padding: 26px; }
  .lb-arrow { position: absolute; bottom: 30px; }
  .lb-arrow.prev { left: 30%; }
  .lb-arrow.next { right: 30%; }
  .modal { padding: 12px; }
  .modal-body { padding: 30px 24px; }
}
