/* ===== Design tokens ===== */
:root {
  --navy: #0b2540;
  --sea: #0a6e9e;
  --sea-light: #1fa3c9;
  --turquoise: #3fd0c9;
  --sand: #f6efe4;
  --sun: #ffb347;
  --text: #1c2b3a;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-alt: #f3f8fb;
  --border: #dde7ee;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 37, 64, .08);
  --shadow-hover: 0 18px 40px rgba(11, 37, 64, .16);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--navy); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--sea-light);
  margin-bottom: .6em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--sun);
  color: var(--navy);
  font: 600 1rem var(--font);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 179, 71, .4); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn--outline { background: transparent; border-color: var(--sea); color: var(--sea); }
.btn--outline:hover { background: var(--sea); color: #fff; box-shadow: none; }
.btn--small { padding: .55em 1.2em; font-size: .9rem; }
.btn--full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: 1.25rem; color: #fff; }
.logo svg { width: 30px; height: 30px; color: var(--sun); }
.logo em { font-style: normal; font-weight: 400; opacity: .8; }
.header.is-scrolled .logo { color: var(--navy); }
.header.is-scrolled .logo svg { color: var(--sea); }
.logo--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: rgba(255,255,255,.9); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--sun); transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.header.is-scrolled .nav a:not(.btn) { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; transition: transform .3s, opacity .3s; }
.header.is-scrolled .nav-toggle span { background: var(--navy); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 140px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  /* Replace with a photo: background: linear-gradient(...overlay...), url("images/hero.jpg") center/cover; */
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,179,71,.35), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(63,208,201,.45), transparent 55%),
    linear-gradient(160deg, #0b2540 0%, #0a6e9e 55%, #1fa3c9 100%);
}
.hero__content { max-width: 720px; margin-left: max(16px, (100% - 1180px) / 2); }
.hero .eyebrow { color: var(--turquoise); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: .92; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 3rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero__stats strong { display: block; font-size: 1.6rem; font-family: var(--font-display); }
.hero__stats span { font-size: .85rem; opacity: .8; }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; fill: var(--bg); }

/* ===== Sections ===== */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section__head p:last-child { color: var(--muted); }

/* ===== Tours ===== */
.tours { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.tour {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.tour:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.tour--featured { border: 2px solid var(--sun); }
.tour__badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--sun); color: var(--navy);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .35em .8em; border-radius: 999px;
}
.tour__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--tour-bg, linear-gradient(135deg, var(--sea), var(--turquoise)));
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 1.2rem;
}
.tour__islands { display: flex; gap: 6px; }
.tour__islands span {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--sea);
  font-weight: 700; font-size: .85rem;
}
.tour__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.tour__title { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); }
.tour__desc { color: var(--muted); }
.tour__meta { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .9rem; color: var(--muted); }
.tour__meta li { display: flex; align-items: center; gap: .35em; }
.tour__list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tour__list li { padding: .35em 0 .35em 1.6em; position: relative; font-size: .95rem; }
.tour__list li::before { content: "✓"; position: absolute; left: 0; color: var(--turquoise); font-weight: 700; }
.tour__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.tour__price small { display: block; color: var(--muted); font-size: .8rem; }
.tour__price strong { font-size: 1.7rem; color: var(--navy); }

/* ===== Price list (cjenik) ===== */
.section--tight { padding-top: 0; }
.pricelist { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pricelist iframe { display: block; width: 100%; border: 0; }
.pricelist__links { margin-top: 1rem; text-align: center; font-size: .9rem; color: var(--muted); }
.pricelist__links a { color: var(--sea); font-weight: 600; }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.feature { background: #fff; padding: 2rem 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.feature__icon { font-size: 2.2rem; width: 72px; height: 72px; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--bg-alt); border-radius: 50%; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { text-align: center; padding: 0 1rem; }
.steps li > span {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1rem;
  border-radius: 50%; background: linear-gradient(135deg, var(--sea), var(--turquoise));
  color: #fff; font-weight: 700; font-size: 1.3rem;
}
.steps p { color: var(--muted); }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery__item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; align-items: flex-end; padding: 1rem; color: #fff; font-weight: 600;
  background-size: cover; background-position: center;
  transition: transform .3s;
}
.gallery__item:hover { transform: scale(1.02); }
.gallery__item span { background: rgba(11,37,64,.55); padding: .3em .8em; border-radius: 999px; font-size: .85rem; }
/* Replace gradients with: background-image: url("images/xyz.jpg"); */
.g1 { grid-column: span 2; grid-row: span 2; background-image: linear-gradient(160deg, #0a6e9e, #3fd0c9); }
.g2 { background-image: linear-gradient(160deg, #1fa3c9, #8fe3d8); }
.g3 { background-image: linear-gradient(160deg, #0b2540, #0a6e9e); }
.g4 { background-image: linear-gradient(160deg, #ff9a5a, #ffcf70); }
.g5 { background-image: linear-gradient(160deg, #3fd0c9, #f6efe4); color: var(--navy); }
.g5 span { color: #fff; }

/* ===== Booking ===== */
.booking { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.booking__info p { color: var(--muted); }
.summary { margin-top: 2rem; background: var(--bg-alt); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .45em 0; }
.summary__row span { color: var(--muted); }
.summary__total { border-top: 1px solid var(--border); margin-top: .5em; padding-top: .9em; }
.summary__total strong { font-size: 1.4rem; color: var(--sea); }

.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__row { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.form label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: inherit;
  padding: .75em .9em;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sea-light); box-shadow: 0 0 0 3px rgba(31,163,201,.2); }
.form .is-invalid { border-color: #e05252; }
.form__status { margin: 1rem 0 0; text-align: center; font-weight: 500; min-height: 1.5em; }
.form__status.is-success { color: #1a8a5a; }
.form__status.is-error { color: #c43c3c; }

/* ===== FAQ ===== */
.faq details { background: #fff; border-radius: 12px; margin-bottom: .8rem; box-shadow: 0 2px 10px rgba(11,37,64,.05); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--sea); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

/* ===== Footer ===== */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; margin: 0 0 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a:hover { color: var(--sun); }
.footer .logo { margin-bottom: 1rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.5rem 0; font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .booking { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g1 { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; z-index: 60; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 2rem; background: var(--navy);
    transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.2);
  }
  .nav a:not(.btn), .header.is-scrolled .nav a:not(.btn) { color: #fff; font-size: 1.15rem; }
  .nav.is-open { transform: none; }
  .nav-toggle.is-open span { background: #fff; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .form { padding: 1.4rem; }
  .form__grid { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
  .tours { grid-template-columns: 1fr; }
}
