/* ===== Varijable ===== */
:root {
  --teal-deep: #032541;
  --teal: #06536b;
  --teal-light: #0a7fa0;
  --aqua: #1bc6d6;
  --sand: #f3e9c8;
  --text: #f4f9fb;
  --text-dim: #cfe3ea;
  --gold: #f5c542;
  --max-width: 760px;
  --radius: 16px;
  --space: clamp(1rem, 3vw, 1.6rem);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--teal-deep);
}

/* Pozadina: nova slika + blagi preljev za čitljivost teksta.
   Počinje ispod jezične trake (visina --langbar-h mjeri se skriptom). */
body::before {
  content: "";
  position: fixed;
  top: var(--langbar-h, 0px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(3, 37, 65, 0.45), rgba(6, 83, 107, 0.45)),
    url("../img/pozadina-nova-2.png") center top / cover no-repeat;
}

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

h1, h2 {
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

/* ===== Jezična traka (vrh) ===== */
.lang-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 24, 40, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-bar-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0.55rem var(--space);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

/* ===== Vijoreća zastavica ===== */
.flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem 0.25rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.flag:hover,
.flag:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.flag.active {
  background: rgba(245, 197, 66, 0.18);
  border-color: var(--gold);
  color: #fff;
}

.flag img {
  width: 30px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transform-origin: left center;
  animation: wave 2.6s ease-in-out infinite;
}

/* Lagano vijorenje — svaka zastavica s malim pomakom u ritmu */
@keyframes wave {
  0%, 100% { transform: rotate(-1.5deg) skewX(0deg) scaleY(1); }
  25% { transform: rotate(1deg) skewX(-5deg) scaleY(0.98); }
  50% { transform: rotate(-1deg) skewX(4deg) scaleY(1); }
  75% { transform: rotate(1.5deg) skewX(-3deg) scaleY(0.99); }
}

.flag-name {
  white-space: nowrap;
}

/* ===== Stranica / sadržaj ===== */
.page {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space);
  display: flex;
  flex-direction: column;
  gap: var(--space);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem) var(--space);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}

.brand-script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.brand-sub {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tagline {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-figure {
  margin: 1.2rem 0;
}

.hero-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-inline: auto;
  width: 100%;
}

/* ===== Kartice (glass) ===== */
.card {
  background: rgba(8, 46, 64, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.card h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--gold);
}

.card p {
  color: var(--text-dim);
}

/* Karta plovidbe */
.route-figure {
  margin: 1rem 0 0;
}

.route-figure img {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Značajke ===== */
.features {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.features li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.f-ico {
  font-size: 1.05rem;
}

/* ===== Cijene ===== */
.duration {
  font-weight: 600;
  color: #fff !important;
}

.prices {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.prices li:last-child {
  border-bottom: 0;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
  white-space: nowrap;
}

.enjoy {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff !important;
  text-align: center;
}

/* ===== Gumb / poziv ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-call {
  background: var(--gold);
  color: #2a1d00;
  box-shadow: 0 8px 22px rgba(245, 197, 66, 0.35);
}

.btn-call:hover,
.btn-call:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 197, 66, 0.45);
}

.btn-ico {
  font-size: 1.2rem;
}

.contact {
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding-top: 0.5rem;
}

.lang-bar-bottom {
  margin-top: 1rem;
  padding-inline: 0;
}

/* ===== Veći ekrani ===== */
@media (min-width: 640px) {
  .hero-figure img {
    max-width: 520px;
  }
}

/* Poštuj korisnike koji izbjegavaju animacije */
@media (prefers-reduced-motion: reduce) {
  .flag img {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
