/* Google Fonts se učitava u HTML-u, ne ovdje */

:root {
  --blue-dark: #1a3a6b;
  --blue:       #1e6fb5;
  --blue-light: #3fa0d8;
  --green:      #5bc422;
  --green-dark: #3a8a12;
  --white:      #f5faff;
  --text:       #0d2240;
  --text-muted: #4a6a8a;
  --border:     rgba(30,111,181,0.15);
  --card-bg:    #ffffff;
  --section-bg: #eef6ff;
}
 
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text);
}

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

/* ── NAV ── */
nav {
  background: var(--blue-dark);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 2rem; height: 64px;
}
.nav-logo {
  font-family: 'Baloo 2', cursive;
  font-size: 24px; font-weight: 800;
  color: var(--green);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.6);
  line-height: 1.2;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 14px; font-weight: 700;
  padding: 8px 14px; border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-links a.active { color: var(--green); }
.nav-admin-btn {
  background: rgba(91,196,34,0.15);
  color: var(--green) !important;
  border: 1px solid rgba(91,196,34,0.3);
  margin-left: 0.5rem;
}
.nav-admin-btn:hover { background: rgba(91,196,34,0.25) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 65%, var(--blue-light) 100%);
  min-height: 520px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 360px; height: 360px;
  background: var(--green);
  opacity: 0.07; border-radius: 50%;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 4rem 2rem;
  display: flex; align-items: center;
  gap: 3rem; width: 100%;
}
.hero-text { max-width: 520px; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green);
  color: #fff;
  font-size: 11px; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 48px; font-weight: 800;
  color: #fff; line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--green); }
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 16px; line-height: 1.75;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 30px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px; font-weight: 900;
  cursor: pointer; border: none;
  transition: transform 0.15s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn-green { background: var(--green); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

.hero-visual { z-index: 1; flex-shrink: 0; }

/* ── SECTIONS ── */
.section { padding: 4rem 2rem; }
.section-alt { background: var(--section-bg); }
.container { max-width: 1100px; margin: 0 auto; }

.section-header { margin-bottom: 2.5rem; }
.section-label {
  font-size: 11px; font-weight: 900;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.4rem;
}
.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: 32px; font-weight: 800;
  color: var(--blue-dark); line-height: 1.2;
}
.section-desc {
  color: var(--text-muted); font-size: 15px;
  line-height: 1.7; margin-top: 0.5rem;
  max-width: 600px;
}

/* ── ABOUT CARDS ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.about-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1.5rem;
  border-left: 4px solid var(--green);
  box-shadow: 0 2px 12px rgba(26,58,107,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.about-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 28px rgba(26,58,107,0.15);
}
.about-card .icon { font-size: 28px; margin-bottom: 0.75rem; }
.about-card h3 { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.4rem; }
.about-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── DESTINATIONS ── */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.dest-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,58,107,0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,58,107,0.16); }
.dest-img {
  height: 180px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.dest-img img { width: 100%; height: 100%; object-fit: cover; }
.dest-img .flag {
  position: absolute; top: 12px; left: 12px;
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.dest-img .sold-out {
  position: absolute; top: 12px; right: 12px;
  background: rgba(220,50,50,0.9); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 10px; letter-spacing: 0.5px;
}
.dest-img .spots-left {
  position: absolute; top: 12px; right: 12px;
  background: rgba(91,196,34,0.9); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 10px;
}
.dest-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.dest-body h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 20px; font-weight: 800;
  color: var(--blue-dark); margin-bottom: 0.3rem;
}
.dest-meta {
  display: flex; gap: 1rem; margin: 0.6rem 0 0.75rem;
  flex-wrap: wrap;
}
.dest-meta span {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.dest-meta .icon { font-size: 15px; }
.dest-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.dest-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 1rem;
}
.dest-price {
  font-family: 'Baloo 2', cursive;
  font-size: 26px; font-weight: 800; color: var(--blue-dark);
}
.dest-price small { font-family: 'Nunito', sans-serif; font-size: 12px; color: var(--text-muted); display: block; font-weight: 600; }

/* ── TRAINERS ── */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .trainers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.trainer-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,58,107,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.trainer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26,58,107,0.15);
}

.trainer-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.trainer-img .initial {
  font-family: 'Baloo 2', cursive;
  font-size: 64px;
  font-weight: 800;
  color: #fff;
}

.trainer-info {
  padding: 1.25rem;
  text-align: center;
}

.trainer-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.trainer-role {
  font-size: 13px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 8px;
}

.trainer-badge {
  display: inline-block;
  background: #e8f5e0;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 30px;
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.gallery-item {
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3; position: relative;
  cursor: pointer;
  background: var(--blue-dark);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: rgba(26,58,107,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { color: #fff; font-size: 13px; font-weight: 700; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 700;
}
.gallery-placeholder .big-icon { font-size: 32px; }

/* ── FORM ── */
.form-section-bg {
  background: var(--blue-dark);
}
.form-section-bg .section-label { color: var(--green); }
.form-section-bg .section-title { color: #fff; }
.form-section-bg .section-desc { color: rgba(255,255,255,0.7); }

.form-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 2rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: span 2; }
.form-group label {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: rgba(255,255,255,0.14);
}
.form-group select option { background: var(--blue-dark); color: #fff; }
.form-group textarea { resize: vertical; min-height: 90px; }

.form-success {
  display: none;
  background: rgba(91,196,34,0.15);
  border: 1px solid rgba(91,196,34,0.4);
  border-radius: 12px; padding: 1.5rem;
  text-align: center; color: #fff;
  margin-top: 1rem;
}
.form-success h3 { font-size: 18px; color: var(--green); margin-bottom: 0.5rem; }

/* ── FOOTER ── */
footer {
  background: #0a1d3a;
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-big {
  font-family: 'Baloo 2', cursive;
  font-size: 28px; font-weight: 800; color: var(--green);
  margin-bottom: 0.75rem;
}
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 0.75rem; }
.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.55); font-size: 13px;
  line-height: 1.8; display: block;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1100px; margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 12px; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: #fff; font-size: 32px; cursor: pointer;
  background: none; border: none; line-height: 1;
}

/* ── ADMIN INDICATOR ── */
.admin-bar {
  display: none;
  background: var(--green-dark);
  color: #fff; text-align: center;
  padding: 8px; font-size: 13px; font-weight: 700;
}
.admin-bar.show { display: block; }
[contenteditable="true"] {
  outline: 2px dashed rgba(91,196,34,0.6);
  border-radius: 4px;
  cursor: text;
  transition: outline 0.2s;
}
[contenteditable="true"]:hover { outline-color: var(--green); }
[contenteditable="true"]:focus { outline: 2px solid var(--green); background: rgba(91,196,34,0.06); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 34px; }
  .hero-visual { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .nav-links { display: none; }

  #kontakt .container > div {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* prijava.html — forma i sidebar jedno ispod drugog */
  .section .container > div {
    grid-template-columns: 1fr !important;
  }

  .form-card { padding: 1.25rem; }
  .form-grid { grid-template-columns: 1fr !important; }
  .form-group { min-width: 0; }
  .form-group input,
  .form-group select,
  .form-group textarea { width: 100%; min-width: 0; box-sizing: border-box; }
}



#success-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2ecc71;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
}


/* ── FOOTER SOCIAL ── */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 0.75rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-height: unset;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.65) !important;
  font-size: 20px;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.18);
  color: #fff !important;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(91,196,34,0.4);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.1); }
.nav-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1rem 1rem;
}
.nav-mobile-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: block;
}
.nav-mobile-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-mobile-menu a.active { color: var(--green); }
.nav-mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr !important; }
}