/* ============================================================
   Excursions Hvar — main.css
   TODO: zamijeni vrijednosti označene s "TODO" stvarnima iz Figme.
   ============================================================ */

:root {
  --color-primary: #1a1756;
  --color-primary-dark: #0f0e3a;
  --color-text: #2a2a33;
  --color-muted: #5a5a6a;
  --color-bg: #ffffff;
  --color-bg-soft: #e4f0fa;
  --color-form-bg: #e9f1fb;
  --color-star: #f5a623;
  --color-white: #ffffff;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --container: 1296px;
  --gutter: 24px;
  --radius: 14px;
  --header-h: 138px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--color-text);
  background: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--color-primary); line-height: 1.15; margin: 0 0 .5em; }

.container { width: 100%; max-width: calc(var(--container) + 144px); margin: 0 auto; padding: 0 72px; box-sizing: border-box; }

/* Gumbi */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.6em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 0; transition: background .2s, transform .2s;
}
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dark); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 56px 72px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1296px;
  margin: 0 auto;
}

.header__brand-nav {
  display: flex;
  align-items: center;
  gap: min(21.875vw, 315px);
}

.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  overflow: hidden;
}

.header__logo img {
  width: 97px;
  height: 97px;
  object-fit: contain;
}

/* Bez plavog fokus-prstena oko loga (klik/scroll na #home) */
.header__logo:focus,
.header__logo:focus-visible { outline: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 27px;
  list-style: none;
  margin: 0;
  padding: 18px 46px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 100px;
}

.nav-list a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #1B1464;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-list a:hover {
  opacity: 0.6;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1B1464;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  padding: 18px 28px;
  border-radius: 1000px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.header__cta:hover {
  background: #0f0e3a;
}

.header__cta-arrow {
  display: block;
}

.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.header__burger-icon {
  width: 24px;
  height: 18px;
  display: block;
}

.header__burger-icon line {
  stroke: #1B1464;
  stroke-width: 2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger.is-open .header__burger-icon line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger.is-open .header__burger-icon line:nth-child(2) { opacity: 0; }
.header__burger.is-open .header__burger-icon line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobilni meni */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #ffffff;
  padding: min(183px, 21dvh) 24px min(61px, 7dvh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

/* Na desktopu meni uopće ne postoji u layoutu */
@media (min-width: 861px) { .mobile-menu { display: none; } }

.mobile-menu__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
}

.mobile-menu__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #1B1464;
}

.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1B1464;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  padding: 18px 28px;
  border-radius: 1000px;
}

.mobile-menu__cta svg { width: 12px; height: 12px; }

.mobile-menu__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__tours {
  text-align: center;
  color: #000000;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.4;
}

.mobile-menu__tours p { margin: 0; }

.mobile-menu__social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-menu__social a { display: flex; }
.mobile-menu__social img { width: 40px; height: 40px; display: block; }

.mobile-menu__social-tripadvisor {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1B1464;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__social-tripadvisor img { width: 27px; height: 27px; }

.mobile-menu__book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  text-transform: uppercase;
  color: #1B1464;
}

.mobile-menu__book svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Sekcije */
.section { padding: 80px 0; }
.section__title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
.section--reviews { background: linear-gradient(180deg, var(--color-bg), var(--color-bg-soft)); }
.section--tours { background: var(--color-bg); }
.section--gallery {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.section--gallery::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -160px;
  z-index: -1;
  width: 570.564px;
  height: 457.593px;
  border-radius: 50%;
  background: rgba(0, 112, 208, 0.2);
  filter: blur(80px);
  transform: rotate(2.203deg);
  pointer-events: none;
}

/* Google reCAPTCHA badge: invisible v3 widget, visually hidden (theme has no other place for the legal disclosure) */
.grecaptcha-badge { display: none !important; }

/* About */
.section--about { padding-top: calc(var(--header-h) + 80px); }

.about__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 648px;
}

.about__title {
  font-family: var(--font-display);
  font-size: min(3.89vw, 56px);
  font-weight: 600;
  line-height: 1.24;
  color: #1B1464;
  margin: 0;
}

.about__body {
  font-family: var(--font-body);
  font-size: min(1.67vw, 24px);
  font-weight: 400;
  line-height: 1.333;
  color: #000000;
}

.about__body p {
  margin: 0 0 1.333em;
}

.about__body p:last-child {
  margin-bottom: 0;
}

.about__image {
  flex-shrink: 0;
  width: 558px;
  max-width: 100%;
}

.about__image img {
  display: block;
  width: 100%;
  height: 638px;
  object-fit: cover;
  object-position: 37.5% center;
  border-radius: 24px;
}

@media (max-width: 860px) {
  .about__image { height: auto; }
  .about__image img { height: auto; aspect-ratio: 558 / 638; }
}

/* Reviews */
.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}

.reviews__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 655px;
}

.reviews__title {
  font-family: var(--font-display);
  font-size: min(3.89vw, 56px);
  font-weight: 600;
  line-height: 1.24;
  color: #1B1464;
  margin: 0;
}

.reviews__lead {
  font-family: var(--font-body);
  font-size: min(1.67vw, 24px);
  line-height: 1.333;
  color: #000000;
  margin: 0;
}

.reviews__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.reviews__arrow {
  width: min(4.86vw, 70px);
  height: min(4.79vw, 69px);
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  cursor: pointer;
  flex-shrink: 0;
}

.reviews__arrow svg { width: 100%; height: 100%; }

.reviews__arrow--prev svg { transform: rotate(180deg); }

.reviews__arrow ellipse {
  fill: #ffffff;
  stroke: #1B1464;
  stroke-width: 2;
  transition: fill 0.2s, stroke 0.2s;
}

.reviews__arrow path { fill: #1B1464; transition: fill 0.2s; }

.reviews__arrow:hover ellipse,
.reviews__arrow:active ellipse,
.reviews__arrow.is-pressed ellipse {
  fill: #1B1464;
  stroke: #1B1464;
}

.reviews__arrow:hover path,
.reviews__arrow:active path,
.reviews__arrow.is-pressed path {
  fill: #ffffff;
}

.reviews__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 0 8px;
  scrollbar-width: none;
}

.reviews__track::before,
.reviews__track::after {
  content: '';
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: max(52px, calc((100vw - 1440px) / 2 + 52px));
  scroll-snap-align: start;
}

.reviews__track::-webkit-scrollbar { display: none; }

.review-card {
  display: flex;
  width: min(28.06vw, 404px);
  height: min(31.67vw, 456px);
  padding: min(2.64vw, 38px) min(2.5vw, 36px);
  flex-direction: column;
  align-items: flex-start;
  gap: min(2.08vw, 30px);
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: -1px 0 17.5px rgba(0,0,0,0.09);
  overflow: hidden;
  scroll-snap-align: start;
}

.review-card__stars {
  display: flex;
  gap: 4px;
}

.review-card__stars svg { width: min(2.64vw, 38px); height: min(2.64vw, 38px); }

.review-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
}

.review-card__text {
  font-family: var(--font-body);
  font-size: min(1.39vw, 20px);
  line-height: 1.4;
  color: #000000;
  margin: 0;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-card__avatar {
  width: min(3.61vw, 52px);
  height: min(3.61vw, 52px);
  border-radius: 50%;
  background: #1B1464;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-card__avatar svg { width: min(1.46vw, 21px); height: min(1.74vw, 25px); }

.review-card__name {
  font-family: var(--font-display);
  font-size: min(1.67vw, 24px);
  font-weight: 600;
  color: #1B1464;
}

@media (max-width: 860px) {
  .review-card { width: 320px; }
}

/* Boat tours */
.tours-card, .contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px 72px 100px;
  box-sizing: border-box;
}

.contact-card { gap: 120px; }
.tours-card { gap: 88px; }

.tours-card__head {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
  color: #000000;
}

.tours-card__title {
  font-family: var(--font-display);
  font-size: min(3.89vw, 56px);
  font-weight: 600;
  line-height: 1.24;
  color: #1B1464;
  margin: 0;
}

.tours-card__lead {
  font-family: var(--font-body);
  font-size: min(1.67vw, 24px);
  line-height: 1.333;
  max-width: 740px;
  margin: 0;
  text-wrap: pretty;
}

.tours-card__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.tours-tabs-group {
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  gap: 46px;
}

.tours-tabs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tours-tabs__label {
  font-family: var(--font-display);
  font-size: min(1.39vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

.tours-tabs__list { display: flex; flex-direction: column; }

.tours-tab {
  display: flex;
  align-items: center;
  gap: 20px;
  height: min(5.76vw, 83px);
  padding: 0 64px 0 32px;
  box-sizing: border-box;
  border: 0;
  border-left: 5px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: min(1.39vw, 20px);
  font-weight: 600;
  color: #1B1464;
  white-space: nowrap;
}

.tours-tab svg { width: 28px; height: 28px; flex-shrink: 0; }

.tours-tab.is-active {
  background: #edf5fd;
  border-left-color: #1B1464;
}

.tours-divider {
  align-self: stretch;
  width: 1px;
  background: rgba(0,0,0,0.12);
}

.tours-panels { width: min(64.24vw, 925px); flex-shrink: 0; }

.tours-panel { display: none; flex-direction: column; gap: 72px; }
.tours-panel.is-active { display: flex; }
.tours-panel--group { gap: 56px; }

.tours-panel__main { display: flex; flex-direction: column; gap: 56px; }

.tours-panel__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 12px;
  color: #000000;
}

.tours-panel__title {
  font-family: var(--font-display);
  font-size: min(2.22vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  color: #1B1464;
  margin: 0;
}

.tours-panel__subtitle {
  font-family: var(--font-body);
  font-size: min(1.67vw, 24px);
  line-height: 1.333;
  max-width: 648px;
  margin: 0;
  text-wrap: pretty;
}

.tours-panel__text {
  font-family: var(--font-body);
  font-size: min(1.67vw, 24px);
  line-height: 1.333;
  max-width: 858px;
  color: #000000;
  text-wrap: pretty;
}

.tours-panel__text p { margin: 0 0 1.333em; }
.tours-panel__text p:last-child { margin-bottom: 0; }

.tours-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.tours-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 925 / 491;
  border-radius: 24px;
  overflow: hidden;
}

.tours-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tours-gallery__main::before,
.tours-gallery__main::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32.76%;
  pointer-events: none;
}

.tours-gallery__main::before { left: 0; background: linear-gradient(to right, rgba(0,0,0,0.35), transparent); }
.tours-gallery__main::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,0.35), transparent); }

.tours-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(3.89vw, 56px);
  aspect-ratio: 56 / 55;
  height: auto;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 1;
  flex-shrink: 0;
}

.tours-gallery__nav svg { width: 100%; height: 100%; display: block; }
.tours-gallery__nav--prev { left: 3.03%; }
.tours-gallery__nav--next { right: 3.03%; }
.tours-gallery__nav--prev svg { transform: rotate(180deg); }

.tours-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

.tours-gallery__thumbs img {
  width: 100%;
  aspect-ratio: 172 / 148;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}

.tours-perfect, .tours-boats {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.tours-perfect { padding-left: 12px; }
.tours-boats { gap: 40px; }

.tours-perfect__title, .tours-boats__title {
  font-family: var(--font-display);
  font-size: min(1.67vw, 24px);
  font-weight: 600;
  line-height: 1.333;
  color: #1B1464;
  margin: 0;
}

.tours-boats__title { font-size: min(2.22vw, 32px); line-height: 1.25; }

.tours-perfect__cols {
  display: flex;
  gap: 88px;
  flex-wrap: wrap;
}

.tours-perfect__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tours-perfect__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: min(1.39vw, 20px);
  line-height: 1.6;
  color: #000000;
}

.tours-perfect__list svg { width: 32px; height: 32px; flex-shrink: 0; }

.tours-boats__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 925px;
}

.tours-boats__item {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.tours-boats__item img {
  width: min(22.7vw, 327px);
  aspect-ratio: 327 / 213;
  object-fit: cover;
  border-radius: 24px;
  flex-shrink: 0;
}

.tours-boats__item-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  max-width: 574px;
  min-width: 0;
  color: #000000;
}

.tours-boats__item-name {
  font-family: var(--font-display);
  font-size: min(1.67vw, 24px);
  font-weight: 600;
  line-height: 1.667;
  text-transform: uppercase;
  margin: 0;
}

.tours-boats__item-desc {
  font-family: var(--font-body);
  font-size: min(1.67vw, 24px);
  line-height: 1.333;
  text-wrap: pretty;
}

.tours-boats__item-desc p { margin: 0;
}

.tours-form {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  padding: 56px 40px;
  background: #edf5fd;
  border-radius: 24px;
  box-shadow: 0 4px 2px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.tours-form__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 547px;
  color: #000000;
}

.tours-form__title {
  font-family: var(--font-display);
  font-size: min(2.5vw, 36px);
  font-weight: 600;
  line-height: 1.24;
  color: #1B1464;
  margin: 0;
}

.tours-form__lead {
  font-family: var(--font-body);
  font-size: min(1.67vw, 24px);
  line-height: 1.333;
  margin: 0;
}

.tours-form__fields {
  display: flex;
  padding-top: min(4.17vw, 60px);
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 575px;
}

.tours-form__field input,
.tours-form__field textarea,
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #bfbfbf;
  background: transparent;
  font-family: "Sora", sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: #1B1464;
  padding: 9px 14px;
  outline: none;
}

.tours-form__field input::placeholder,
.tours-form__field textarea::placeholder,
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: #959595; }

.tours-form__field--textarea textarea,
.contact-form__field--textarea textarea { resize: vertical; min-height: 90px; }

.tours-form__submit, .contact-form__submit {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: #1B1464;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 18px 28px;
  border: 0;
  border-radius: 1000px;
  cursor: pointer;
  transition: background 0.2s;
}

.tours-form__submit:hover {
  background: #0f0e3a;
}

/* Contact */
.contact-card__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  flex-wrap: wrap;
}

.contact-card__left {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.contact-card__intro {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 590px;
  color: #000000;
}

.contact-card__title {
  font-family: var(--font-display);
  font-size: min(3.89vw, 56px);
  font-weight: 600;
  line-height: 1.24;
  color: #1B1464;
  margin: 0;
}

.contact-card__lead {
  font-family: var(--font-body);
  font-size: min(1.67vw, 24px);
  line-height: 1.333;
  margin: 0;
}

.contact-map {
  position: relative;
  width: min(40.97vw, 590px);
  aspect-ratio: 590 / 401;
  border-radius: 24px;
  overflow: hidden;
}

.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 46px;
  width: min(42vw, 605px);
  padding-top: min(6.94vw, 100px);
}

.contact-form__field { width: 100%; }

/* Contact Form 7 — stilizirano da izgleda kao native forma teme */
.tours-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  padding-top: min(4.17vw, 60px);
  gap: 32px;
  width: 100%;
  max-width: 575px;
}

.contact-card__top .wpcf7-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 46px;
  width: min(42vw, 605px);
  padding-top: min(6.94vw, 100px);
}

.tours-form .wpcf7,
.contact-card__top .wpcf7 { display: block; max-width: 100%; }

/* CF7 markup nije isti na svim instalacijama — negdje je svako polje u svom <p>,
   negdje su sva polja (i submit) u JEDNOM <p> razdvojeni <br>-em. Zato <p> mora
   uvijek biti vertikalni flex (ne smijemo se osloniti na to da je submit sam u svom <p>) */
.wpcf7-form p {
  display: flex;
  flex-direction: column;
  gap: inherit;
  margin: 0;
  width: 100%;
}

.wpcf7-form p > br { display: none; }

.wpcf7-form .wpcf7-form-control-wrap { display: block; width: 100%; }

/* Input je ugniježđen u <label> (Your Name (required)<br><span>...<input></span></label>),
   display:none bi sakrio i polje — font-size:0 sakriva samo tekst labela, polja imaju svoj font-size */
.wpcf7-form label { display: block; font-size: 0; line-height: 0; }

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #bfbfbf;
  background: transparent;
  font-family: "Sora", sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: #1B1464;
  padding: 9px 14px;
  outline: none;
  box-sizing: border-box;
}

.wpcf7-form .wpcf7-text::placeholder,
.wpcf7-form .wpcf7-email::placeholder,
.wpcf7-form .wpcf7-textarea::placeholder { color: #959595; }

/* CF7 generira textarea s rows="10" — bez explicitnog height to nadjača min-height i razvuče karticu */
.wpcf7-form .wpcf7-textarea { resize: vertical; height: 165px; min-height: 90px; }

/* align-self radi jer je roditeljski <p> uvijek flex-direction: column (gore) —
   bez obzira nalazi li se submit sam u svom <p> ili zajedno s poljima u istom */
.wpcf7-form .wpcf7-submit {
  display: inline-block;
  text-align: left;
  align-self: flex-end;
  margin-top: 14px;
  background-color: #1B1464;
  background-image: url('../images/arrow.png');
  background-repeat: no-repeat;
  background-position: right 28px center;
  background-size: 13px 21px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 18px 47px 18px 28px;
  border: 0;
  border-radius: 1000px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wpcf7-form .wpcf7-submit:hover { background-color: #0f0e3a; }

/* CF7 ajax-loader (visibility:hidden, ali ostaje u flow-u) je gurao gumb lijevo od desnog ruba polja */
.wpcf7-form p:last-of-type { position: relative; }
.wpcf7-form .ajax-loader { position: absolute; right: 0; margin: 0; }

.contact-card__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 69px;
  width: 100%;
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 55px;
}

.contact-info__logo {
  width: min(23.26vw, 335px);
  height: min(23.26vw, 335px);
  object-fit: contain;
}

.contact-info__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info__list li {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 24px;
  color: #000000;
}

.contact-info__list a { color: inherit; text-decoration: none; }

.contact-info__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1B1464;
  flex-shrink: 0;
}

.contact-info__icon svg, .contact-info__icon img { width: 28px; height: 28px; object-fit: contain; }

.contact-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.contact-extra__tours {
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 1.333;
  text-align: center;
  color: #000000;
  margin: 0;
}

.contact-extra__social {
  display: flex;
  gap: 12px;
}

.contact-extra__social img { width: 52px; height: 52px; display: block; }

.contact-extra__tripadvisor {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1B1464;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-extra__tripadvisor img { width: 38px; height: 38px; }

.contact-extra__book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  text-transform: uppercase;
  color: #1B1464;
}

.contact-extra__book svg { width: 12px; height: 12px; flex-shrink: 0; }

@media (max-width: 860px) {
  .contact-card { padding: 56px 24px 64px; gap: 64px; }
  .contact-form { width: 100%; padding-top: 0; }
  .contact-map { width: 100%; }
}

@media (max-width: 860px) {
  .tours-card { padding: 56px 24px 64px; }
  .tours-card__body { flex-wrap: wrap; }
  .tours-panels { width: 100%; }
  .tours-gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
  .tours-boats__item { flex-wrap: wrap; }
}

/* Gallery teaser */
.gallery-teaser {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.gallery-teaser__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.gallery-teaser__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 559px;
  color: #000000;
}

.gallery-teaser__title {
  font-family: var(--font-display);
  font-size: min(3.89vw, 56px);
  font-weight: 600;
  line-height: 1.24;
  color: #1B1464;
  margin: 0;
}

.gallery-teaser__lead {
  font-family: var(--font-body);
  font-size: min(1.67vw, 24px);
  line-height: 1.333;
}

.gallery-teaser__lead p { margin: 0 0 1.333em; }
.gallery-teaser__lead p:last-child { margin-bottom: 0; }

.gallery-teaser__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: min(43.96vw, 633px);
  min-width: 0;
  flex-shrink: 0;
}

.gallery-teaser__row {
  display: flex;
  gap: 30px;
}

.gallery-teaser__row img {
  flex: 1;
  min-width: 0;
  aspect-ratio: 302 / 284;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.gallery-teaser__wide {
  width: 100%;
  min-width: 0;
  aspect-ratio: 633 / 289;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

@media (max-width: 860px) {
  .gallery-teaser__grid { width: 100%; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/frontpage_background.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.3) 100%
  );
}

.hero__title {
  position: absolute;
  z-index: 1;
  top: 22.13%;
  left: 50%;
  width: 100%;
  color: #ffffff;
  font-size: min(9.1667vw, 132px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-align: center;
  padding: 0 var(--gutter);
  opacity: 0;
  transform: translate(-50%, 70px);
  animation: heroTitleIn 1s ease forwards 0.3s;
}

.hero__bottom {
  position: absolute;
  z-index: 1;
  top: 79.86%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__offers-label {
  color: #ffffff;
  font-size: min(1.9444vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.85;
  text-transform: uppercase;
  text-align: center;
}

.hero__scroll-btn {
  width: 55px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}

.hero__scroll-btn:hover {
  transform: translateY(4px);
}

.hero__scroll-icon {
  display: flex;
  transform: rotate(90deg);
}

.hero__whatsapp-wrap {
  position: fixed;
  bottom: 48px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  max-width: calc(var(--container) + 144px);
  margin: 0 auto;
  padding: 0 72px;
  box-sizing: border-box;
  pointer-events: none;
}

.hero__whatsapp {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #edf0f6;
  color: #1B1464;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 1000px;
  border: 1px solid rgba(27, 20, 100, 0.12);
  box-shadow: 0 4px 4.5px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s;
}

@media (hover: hover) {
  .hero__whatsapp:hover {
    background: #1B1464;
    color: #ffffff;
  }
}

.hero__whatsapp svg {
  width: 22px;
  height: 22px;
}

@keyframes heroTitleIn {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 860px) {
  .site-header { padding: 16px 24px; }
  .header__nav, .header__cta { display: none; }
  .header__burger { display: flex; }
}

/* ============================================================
   MOBILNI LAYOUT (≤ 860px) — prema Figma "Mobile — 390"
   Jednostupčani raspored; prati frame 4:944 (širina 402).
   ============================================================ */
@media (max-width: 860px) {

  :root { --header-h: 92px; }

  /* --- Sekcije / container --- */
  /* Sadržaj ograničen na Figma širinu (402px) i centriran, da se ne razvlači
     na širim mobilnim/tablet ekranima (do 860px). */
  .container { max-width: 402px; padding: 0 24px; }
  .tours-card, .contact-card { max-width: 402px; }
  .section { padding: 56px 0; }
  .section--about { padding-top: calc(var(--header-h) + 56px); }

  /* --- Header: logo + hamburger u bijelom krugu --- */
  .site-header { padding: 20px 0 0; }
  .header__inner { max-width: 402px; margin: 0 auto; padding: 0 24px; }
  .header__brand-nav { gap: 0; }
  .header__logo { width: 64px; height: 64px; }
  .header__logo img { width: 76px; height: 76px; }

  .header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.91);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }

  /* --- Hero --- */
  .hero { min-height: 100svh; }
  .hero__bg {
    background-image: url('../images/hero-mobile.jpg');
    background-position: center;
    background-size: cover;
  }

  .hero__title {
    top: 20%;
    width: min-content;
    font-size: clamp(44px, 18.4vw, 72px);
    line-height: 0.94;
    letter-spacing: -0.03em;
  }

  .hero__bottom { top: 76%; gap: 16px; }

  .hero__offers-label {
    font-size: 14px;
    letter-spacing: -0.03em;
  }

  .hero__scroll-btn { width: 46px; height: 46px; }
  .hero__scroll-icon svg { width: 46px; height: 46px; }

  /* WhatsApp -> kružni gumb (samo ikona), poravnat s redom "CHECK OUR OFFER" */
  .hero__whatsapp-wrap {
    position: fixed;
    top: calc(76% + 20px);
    bottom: auto;
    right: 24px;
    left: auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .hero__whatsapp {
    width: 72px;
    height: 72px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 0;
    background: #EDF0F6;
    color: #1B1464;
    border: 0;
    box-shadow: 0 4px 6.4px rgba(0, 0, 0, 0.10);
  }
  @media (hover: hover) {
    .hero__whatsapp:hover { background: #1B1464; color: #ffffff; }
  }
  .hero__whatsapp svg { width: 36px; height: 36px; }

  /* Header (logo + hamburger) ostaje iznad otvorenog menija.
     .mobile-menu je dijete .site-header pa header__inner mora imati viši z-index. */
  .site-header { z-index: 210; }
  .header__inner {
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    will-change: transform;
  }
  .mobile-menu { z-index: 1; }
  body.menu-open .hero__whatsapp-wrap { display: none; }

  /* --- About --- */
  .about__grid {
    flex-direction: column;
    gap: 46px;
  }
  .about__text {
    max-width: 100%;
    gap: 20px;
  }
  .about__title { font-size: 32px; }
  .about__body { font-size: 16px; line-height: 1.375; }
  .about__body p { margin-bottom: 22px; }
  .about__image { width: 100%; }
  .about__image img {
    height: auto;
    aspect-ratio: 354 / 417;
    object-position: center;
  }

  /* --- Reviews --- */
  .reviews__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }
  .reviews__intro { gap: 20px; }
  .reviews__title { font-size: 32px; }
  .reviews__lead { font-size: 16px; line-height: 1.375; }
  .reviews__nav { display: none; }

  .reviews__track { gap: 20px; }
  .reviews__track::before,
  .reviews__track::after { flex-basis: max(24px, calc((100% - 402px) / 2 + 24px)); }

  .review-card {
    width: 276px;
    height: auto;
    padding: 24px 28px;
    gap: 20px;
  }
  .review-card__stars svg { width: 22px; height: 22px; }
  .review-card__body { gap: 20px; }
  .review-card__text { font-size: 14px; line-height: 1.43; }
  .review-card__author { gap: 12px; }
  .review-card__avatar { width: 40px; height: 40px; }
  .review-card__avatar svg { width: 16px; height: 19px; }
  .review-card__name { font-size: 16px; }

  /* --- Boat tours --- */
  .tours-card { gap: 46px; padding: 56px 24px 64px; }
  .tours-card__head { gap: 20px; }
  .tours-card__title { font-size: 32px; }
  .tours-card__lead { font-size: 16px; line-height: 1.375; max-width: 340px; }

  .tours-card__body { flex-wrap: wrap; gap: 46px; }

  .tours-tabs-group { flex-direction: column; width: 100%; gap: 24px; }
  .tours-tabs { width: 100%; gap: 24px; }
  .tours-tabs__label { font-size: 16px; font-weight: 700; }
  .tours-tabs__list { width: 100%; padding-top: 4px; }
  .tours-tab { width: 100%; height: 83px; font-size: 20px; }
  .tours-tab svg { width: 28px; height: 28px; }
  /* horizontalna linija ispod tabova, prije "Private Boat Charters" */
  .tours-divider { display: block; align-self: stretch; width: 100%; height: 0.5px; background: #1B1464; }

  .tours-panels { width: 100%; }
  .tours-panel { gap: 46px; }
  .tours-panel--group { gap: 40px; }
  .tours-panel__main { gap: 40px; }
  .tours-panel__intro { padding-left: 0; gap: 16px; }
  .tours-panel__title { font-size: 24px; line-height: 1.333; white-space: normal; }
  .tours-panel__subtitle { font-size: 16px; line-height: 1.375; max-width: 322px; }
  .tours-panel__text { font-size: 16px; line-height: 1.375; max-width: 100%; }
  .tours-panel__text p { margin-bottom: 1em; }

  .tours-gallery { gap: 6px; }
  .tours-gallery__main { aspect-ratio: 354 / 231; }
  .tours-gallery__nav { width: 32px; }
  /* donje sličice: manje i sve u jednom redu */
  .tours-gallery__thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .tours-gallery__thumbs img { aspect-ratio: 68 / 59; }

  .tours-perfect { padding-left: 0; gap: 20px; }
  .tours-perfect__title { font-size: 20px; line-height: 1.6; }
  .tours-perfect__cols { flex-direction: column; gap: 16px; }
  .tours-perfect__list { gap: 16px; }
  .tours-perfect__list li { font-size: 16px; }
  .tours-perfect__list svg { width: 24px; height: 24px; }

  .tours-boats { gap: 32px; }
  .tours-boats__title { font-size: 24px; }
  .tours-boats__list { gap: 32px; }
  .tours-boats__item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .tours-boats__item img { width: 100%; aspect-ratio: 354 / 213; }
  .tours-boats__item-text { gap: 0; padding-bottom: 12px; }
  .tours-boats__item-name { font-size: 16px; font-weight: 700; line-height: 40px; }
  .tours-boats__item-desc { font-size: 16px; line-height: 22px; max-width: 100%; }

  /* Boat tours / inquiry form */
  .tours-form {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 46px;
    padding: 36px 24px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.10);
  }
  .tours-form__intro { gap: 20px; max-width: 100%; }
  .tours-form__title { font-size: 24px; }
  .tours-form__lead { font-size: 16px; font-weight: 300; line-height: 1.3; }
  .tours-form__fields { padding-top: 0; gap: 36px; max-width: 100%; }
  .tours-form__field input,
  .tours-form__field textarea,
  .contact-form__field input,
  .contact-form__field textarea { font-size: 16px; padding: 9px 0; }
  .tours-form__submit,
  .contact-form__submit {
    align-self: stretch;
    justify-content: center;
    margin-top: 10px;
  }
  .tours-form .wpcf7-form { padding-top: 0; gap: 36px; max-width: 100%; }
  .wpcf7-form .wpcf7-text,
  .wpcf7-form .wpcf7-email,
  .wpcf7-form .wpcf7-textarea { font-size: 16px; padding: 9px 0; }
  .wpcf7-form p:last-of-type { margin-top: 10px; }
  .wpcf7-form .wpcf7-submit {
    width: 100%;
    text-align: center;
  }

  /* --- Gallery teaser --- */
  .gallery-teaser { flex-direction: column; align-items: center; gap: 32px; }
  .gallery-teaser__text { display: contents; }
  .gallery-teaser__intro { order: 1; gap: 20px; max-width: 332px; }
  .gallery-teaser__grid { order: 2; width: 100%; max-width: 332px; gap: 20px; }
  .gallery-teaser__title { font-size: 32px; }
  .gallery-teaser__lead { font-size: 16px; line-height: 1.375; }
  .gallery-teaser__row { flex-direction: column; gap: 20px; }
  .gallery-teaser__row img,
  .gallery-teaser__wide {
    width: 100%;
    height: auto;
    aspect-ratio: 332 / 252;
    object-fit: cover;
  }

  /* --- Contact --- */
  .contact-card { gap: 56px; padding: 56px 24px 64px; }
  .contact-card__top { flex-direction: column; gap: 46px; }
  .contact-card__left { gap: 24px; }
  .contact-card__intro { gap: 16px; max-width: 100%; }
  .contact-card__title { font-size: 32px; }
  .contact-card__lead { font-size: 16px; line-height: 1.375; }
  .contact-map { width: 100%; }
  .contact-form { width: 100%; padding-top: 0; align-items: stretch; gap: 24px; }
  .contact-card__top .wpcf7-form { width: 100%; padding-top: 0; align-items: stretch; gap: 24px; }

  .contact-card__bottom { flex-direction: column; gap: 40px; }
  .contact-info { flex-direction: column; gap: 24px; }
  .contact-info__logo { width: 100%; max-width: 354px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
  .contact-info__list { gap: 16px; }
  .contact-info__list li { font-size: 16px; gap: 16px; }
  .contact-info__icon { width: 44px; height: 44px; }
  .contact-info__icon svg,
  .contact-info__icon img { width: 22px; height: 22px; }
  .contact-extra { gap: 24px; }
  .contact-extra__tours { font-size: 16px; line-height: 1.75; max-width: 232px; }
  .contact-extra__social img,
  .contact-extra__tripadvisor { width: 44px; height: 44px; }
  .contact-extra__tripadvisor img { width: 30px; height: 30px; }
}
