/* ===== Footer base ===== */
.footer {
  background-color: #3984D0;              /* plava pozadina */
  color: #f9fbff;
  padding: 40px 20px;
  margin-top: 40px;
  width: 100%;
  /* iOS safe area za dno */
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  margin-bottom: 20px;
  text-align: left;          /* više nije centrirano na desktopu */
  min-height: 200px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffffff;            /* čist bijeli naslov */
  font-weight: 700;          /* PODEBLJANO */
  letter-spacing: 0.02em;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #f9fbff;
  margin-bottom: 6px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

/* Linkovi u footeru – tamnija boja, bez underline */
.footer-section ul li a,
.footer-section p a {
  color: #ffffff;              /* tamnija navy nijansa, vidi se na plavoj pozadini */
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;            /* mrvicu jače naglašeno */
  transition: color 0.25s ease, outline-color 0.2s ease;
}

.footer-section ul li a:hover,
.footer-section p a:hover {
  color: #34495E;              /* na hoveru čista bijela */
  text-decoration: none;       /* bez podcrtavanja i na hoveru */
}


/* Vidljiv fokus za pristupačnost */
.footer a:focus-visible {
  outline: 3px solid rgba(219, 234, 254, 0.9);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-section p i {
  margin-right: 8px;
  color: #e0edff;
}

@media (min-width: 769px) {
  /* Treća kolona (Villa Pinija) – pomak*/
  .footer-section:nth-child(3) {
    margin-inline: 16px;  
  }

  /* Naslov “Villa Pinija - Valbandon” drži u jednom redu */
  .footer-section:nth-child(3) h3 {
    white-space: nowrap;
  }
}

/* Pomak "Villa Pinija - Valbandon" kolonu ulijevo na desktopu */
@media (min-width: 992px) {
  .footer-section:nth-child(3) {
    transform: translateX(-45px); 
  }
}



/* Images */
.footer-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 5px;
}

/* Social + Share */
.social-links {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

.social-links a {
  color: #f9fbff;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.15s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: #dbeafe;
  transform: translateY(-1px);
}

.share-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.share-row {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.15s ease;
}

.share-btn:hover {
  transform: translateY(-1px);
}

.facebook-share {
  background-color: #3b5998;
}

.facebook-share:hover {
  background-color: #2a4373;
}

.x-share {
  background-color: #000000;
}

.x-share:hover {
  background-color: #333333;
}

.whatsapp-share {
  background-color: #25D366;
}

.whatsapp-share:hover {
  background-color: #1DA851;
}

.viber-share {
  background-color: #665CAC;
}

.viber-share:hover {
  background-color: #584C96;
}

/* Bottom strip */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.25);
  margin-top: 20px;
  font-size: 13px;
  width: 100%;
  color: #d0e2f7;
}

/* ako ikad bude linkova u toj traci */
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-section {
    text-align: center;      /* na mobitelu opet centrirano */
    max-width: none;
    min-height: auto;
  }

  .social-links {
    justify-content: center;
  }

  .share-links {
    align-items: center;
  }

  .share-row {
    justify-content: center;
  }

  .footer-image {
    max-width: 300px;
  }

  .social-links {
    gap: 10px;
  }

  .social-links a {
    font-size: 1.3rem;
  }

  .share-links {
    gap: 6px;
    margin-top: 8px;
  }

  .share-row {
    gap: 8px;
  }

  .share-btn {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

/* Smanji animacije ako korisnik preferira */
@media (prefers-reduced-motion: reduce) {
  .share-btn,
  .social-links a {
    transition: none;
  }
}

/* ===== Footer legal links row ===== */
.footer-legal-links {
  margin-bottom: 6px;
  font-size: 13px;
  color: #c9ddf5;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

.footer-legal-links .sep {
  margin: 0 6px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-legal-links {
    font-size: 12px;
    line-height: 1.6;
  }
}
