@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;600;700&display=swap");

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* ====================== NAVBAR ====================== */
nav {
  background: #ffffff;
  padding: 15px 30px;
  position: relative;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  max-width: 1600px;
  margin: auto;
  padding-inline: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo img {
  height: 55px;
}

@media (max-width: 480px) {
  .logo img {
    height: 45px;
  }
}

/* HAMBURGER ANIMACIJA */
.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #1b3b6f;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  top: 18px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* NAV LINKOVI */
.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
  white-space: nowrap;
}

.nav-links a {
  color: #5e6366;
  text-decoration: none;
  font-size: 16px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.cta-button {
  background-color: transparent;
  color: #5e6366;
  padding: 8px 20px;
  border: 2px solid #5e6366;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1025px) {
  .nav-links a:hover {
    color: #2d9cdb;
    transform: scale(1.05);
  }

  .cta-button:hover {
    background-color: #1b3b6f;
    color: #fff;
    transform: scale(1.05);
  }
}

/* ====================== MOBILE NAV ====================== */
@media (max-width: 1024px) {
  .navbar-container {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 0;
    gap: 0;
    text-align: left;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .cta-button {
    display: block;
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    border-radius: 0;
    border: none;
    background: transparent;
    text-align: left;
  }

  .nav-links a,
  .cta-button {
    transition: none !important;
  }

  .nav-links a:active,
  .cta-button:active {
    background-color: rgba(27, 59, 111, 0.05);
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1b3b6f;
  color: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  display: flex;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  background-color: #2d9cdb;
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.contact-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.contact-modal.active {
  display: flex;
}

.contact-modal-content {
  background-color: #fff;
  padding: 40px 25px;
  border-radius: 8px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.contact-modal-content h2 {
  margin-bottom: 15px;
  color: #1b3b6f;
}

.contact-modal-content p {
  margin: 10px 0;
  color: #333;
  font-size: 16px;
}

.contact-modal-content a {
  color: #2d9cdb;
  text-decoration: none;
}

.contact-modal-content a:hover {
  color: #1b3b6f;
}

.map-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-icon:hover img {
  transform: scale(1.2);
  filter: brightness(1.3);
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 26px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #000;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 9998;
  animation: fadeInBlur 0.3s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInBlur {
  to {
    opacity: 1;
  }
}

.divider {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 15px 0;
  opacity: 0.5;
}

/* Poravnaj mail i phone ikonice uz tekst */
.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.contact-modal-content svg {
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -2px;
}

/* Povećaj Facebook i Instagram ikone */
.social-icons svg {
  width: 32px;
  height: 32px;
  color: #1b3b6f;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover svg {
  transform: scale(1.2);
  color: #2d9cdb;
}

@media (max-width: 480px) {
  .contact-modal-content {
    padding: 25px 15px;
    border-radius: 6px;
  }

  .contact-modal-content p {
    font-size: 14px;
  }

  .contact-modal-content h2 {
    font-size: 18px;
  }

  .map-container {
    height: 240px;
  }

  .social-icons svg {
    width: 38px;
    height: 38px;
  }

  .close-btn {
    font-size: 22px;
    top: 10px;
    right: 10px;
  }
}

/* Global styles for footer */
footer {
  background-color: #f2f2f2;
  padding: 80px 0;
  color: #333;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  border-top: 1px solid #e0e0e0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1 1 30%;
  min-width: 280px;
  padding: 25px;
  text-align: left;
}

.footer-section h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1b3b6f;
}

.footer-section p,
.footer-section a {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

.footer-section a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #0066cc;
}

/* Social media section */
.social-media {
  display: flex;
  justify-content: center;
  /* Center the icons horizontally */
  gap: 25px;
  margin-top: 30px;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-media a:hover {
  transform: scale(1.15);
}

.social-media svg {
  width: 25px;
  height: 25px;
  transition: fill 0.3s ease;
}

.social-media a:hover svg {
  fill: #ffffff;
}

/* Google Map iframe style */
footer iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1rem;
  color: #666;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-bottom a {
  color: #0066cc;
  text-decoration: none;
}

/* Media Queries */
/* For medium screens (tablets) */
@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    text-align: center;
    margin-bottom: 30px;
  }

  .footer-bottom {
    margin-top: 40px;
  }

  .footer-logo {
    max-width: 130px;
  }

  .social-media a {
    margin-right: 10px;
  }

  .social-media svg {
    width: 30px;
    height: 30px;
  }
}

/* For small screens (mobiles) */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  .footer-section {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
  }

  .footer-bottom {
    margin-top: 40px;
  }

  .footer-logo {
    max-width: 120px;
  }

  .social-media a {
    margin-right: 10px;
  }

  .social-media svg {
    width: 30px;
    height: 30px;
  }

  iframe {
    height: 300px;
  }
}

/* For extra small screens (extra small mobile devices) */
@media (max-width: 480px) {
  .footer-container {
    padding: 0 10px;
  }

  .footer-section {
    padding: 10px;
    margin-bottom: 20px;
  }

  .footer-bottom {
    margin-top: 20px;
    font-size: 1rem;
  }

  .footer-logo {
    max-width: 100px;
  }

  .social-media svg {
    width: 25px;
    height: 25px;
  }
}

/* ========== CORE LAYOUT ========== */
.carousel,
.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Track / slides */
.carousel-track,
.slides {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
  width: 100%;
}

.carousel-slide,
.slides>* {
  flex: 0 0 100%;
}

/* Slike */
.carousel-slide img,
.slides img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}

/* ========== ARROWS / BUTTONS ========== */
/* Jedinstveni stil za hero (.carousel .carousel-btn) i male (.slider .prev/.next) */
.carousel .carousel-btn,
.slider .prev,
.slider .next {
  --btn-size: 44px;
  --btn-offset: clamp(10px, 2vw, 18px);
  --btn-y-tweak: 0px;
  /* fino podešavanje po želji */
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% + var(--btn-y-tweak)));
  width: var(--btn-size);
  height: var(--btn-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.carousel .carousel-btn:hover,
.slider .prev:hover,
.slider .next:hover {
  background: rgba(0, 0, 0, 0.65);
}

.carousel .carousel-btn:active,
.slider .prev:active,
.slider .next:active {
  transform: translateY(calc(-50% + var(--btn-y-tweak))) scale(.96);
}

.carousel .carousel-btn.prev,
.slider .prev {
  left: max(var(--btn-offset), env(safe-area-inset-left));
}

.carousel .carousel-btn.next,
.slider .next {
  right: max(var(--btn-offset), env(safe-area-inset-right));
}

.carousel .carousel-btn svg,
.slider .prev svg,
.slider .next svg {
  width: 24px;
  height: 24px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {

  .carousel-slide img,
  .slides img {
    height: 50vh;
  }
}

@media (max-width: 640px) {

  .carousel .carousel-btn,
  .slider .prev,
  .slider .next {
    --btn-size: 38px;
  }
}

@media (max-width: 480px) {

  .carousel-slide img,
  .slides img {
    height: 40vh;
  }
}

/* ====================== INTRO TEXT ====================== */
.intro-text {
  background-color: #6c7a89;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-wrapper {
  max-width: 950px;
  margin: 0 auto;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  line-height: 1.75;
  font-style: italic;
  font-weight: 400;
  color: #f1f1f1;
  letter-spacing: 0.15px;
  padding: 0 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.3s ease-out, transform 1.4s ease-out;
}

.text-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .text-wrapper {
    font-size: 1.3rem;
    line-height: 1.65;
  }
}

@media (max-width: 768px) {
  .text-wrapper {
    font-size: 1.2rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .text-wrapper {
    font-size: 1rem;
    line-height: 1.5;
  }
}

.quote {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", serif;
  font-size: 7rem;
  color: rgba(255, 255, 255, 0.2);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.quote-top {
  top: 40px;
}

.quote-bottom {
  bottom: 40px;
}

.book-now-btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 12px 32px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(30, 85, 180, 0.2);
  /* plava u skladu s temom */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  box-shadow: 0 6px 16px rgba(0, 50, 100, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
}

.book-now-btn:hover {
  background: rgba(30, 85, 180, 0.4);
  box-shadow: 0 8px 20px rgba(0, 50, 100, 0.25);
  transform: translateY(-2px) scale(1.03);
}

.book-now-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(0, 50, 100, 0.15);
}

/* ===== SPA SECTION ===== */
.spa-section {
  text-align: center;
  padding: clamp(48px, 6vw, 84px) 20px;
  background: #f7f9fb;
}

.spa-title {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  color: #1b3b6f;
  margin-bottom: 12px;
  font-weight: 700;
}

.spa-intro {
  max-width: 740px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #444;
  line-height: 1.6;
}

/* ===== Featured massage ===== */
.featured-card {
  background: rgba(27, 59, 111, 0.05);
  border: 1px solid rgba(27, 59, 111, 0.15);
  border-radius: 16px;
  padding: clamp(22px, 3.5vw, 40px) 22px;
  margin: 0 auto clamp(32px, 6vw, 60px);
  max-width: 700px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
}

.featured-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #1b3b6f;
  /* radi s inline SVG-om (stroke: currentColor) */
}

.featured-card .icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
}

.featured-card .icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.featured-card h3 {
  color: #2d9cdb;
  font-weight: 700;
  margin-bottom: 6px;
}

.featured-card h4 {
  color: #1b3b6f;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ===== Grid kartice ===== */
.spa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 3vw, 30px);
  margin-bottom: clamp(28px, 4vw, 50px);
}

.spa-card {
  background: #fff;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform .3s ease, box-shadow .3s ease, color .3s ease;
  color: #1b3b6f;
  /* bazna boja za naslov i SVG stroke */
}

.spa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  color: #2d9cdb;
  /* na hoveru oboji inline SVG-e */
}

.spa-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.spa-card .icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  /* nasljeđuje .spa-card color */
}

.spa-card .icon img {
  width: 40px;
  height: 40px;
  display: block;
  /* ako su ikone crne a želiš light tint, možeš odkomentirati: filter: brightness(0) saturate(100%) invert(18%) sepia(44%) saturate(982%) hue-rotate(178deg) brightness(92%) contrast(93%); */
}

.spa-card h3 {
  color: currentColor;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ===== Mini cjenik ===== */
.spa-highlights {
  margin: clamp(20px, 4vw, 34px) auto 0;
  max-width: 560px;
  text-align: left;
  background: #fff;
  border-radius: 16px;
  padding: clamp(16px, 3vw, 22px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.spa-highlights h3 {
  text-align: center;
  color: #1b3b6f;
  margin-bottom: 12px;
  font-weight: 700;
}

.spa-highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spa-highlights li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #444;
}

.spa-highlights li:last-child {
  border-bottom: none;
}

/* ===== Botuni ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 28px;
  text-decoration: none !important;
  transition: all .3s ease;
  cursor: pointer;
  line-height: 1;
}

/* primarni plavi */
.btn-primary {
  background-color: #1b3b6f;
  color: #fff !important;
  border: 2px solid #1b3b6f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: #2d9cdb;
  border-color: #2d9cdb;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* sekundarni obrub */
.btn-secondary {
  background: transparent;
  color: #1b3b6f !important;
  border: 2px solid #1b3b6f;
}

.btn-secondary:hover {
  background: #1b3b6f;
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
}

/* grupiranje botuna */
.spa-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Book Now na dnu sekcije */
.spa-booknow {
  margin-top: 40px;
  text-align: center;
}

/* ===== PDF Modal ===== */
.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .75);
  justify-content: center;
  align-items: center;
}

.pdf-modal-content {
  background: #fff;
  width: min(980px, 94vw);
  height: min(90vh, 900px);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pdf-modal-content iframe {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 8px;
  margin-bottom: 10px;
}

.pdf-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pdf-actions .btn-primary,
.pdf-actions .btn-secondary {
  padding: 10px 18px;
  border-radius: 8px;
}

.pdf-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: #555;
  cursor: pointer;
  background: transparent;
  border: 0;
  line-height: 1;
  transition: color .3s;
}

.pdf-close:hover {
  color: #000;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .pdf-modal-content {
    height: 92vh;
    padding: 10px;
  }
}