
:root {
  --sun-primary: #0d6efd;
  --sun-primary-soft: #e7f1ff;
  --sun-accent: #ffb703;
  --sun-dark: #0f172a;
  --sun-light: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--sun-light);
  color: var(--sun-dark);
  padding-top: 4.5rem;
}

/* Navbar */
.navbar-brand {
  font-size: 1.1rem;
}

.sun-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffe29f, #ffa99f);
  font-size: 1.25rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--sun-primary);
}

/* Hero */
.sun-hero {
  position: relative;
  min-height: 90vh;
  color: #fff;
  overflow: hidden;
}

.sun-hero-media,
.sun-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sun-hero-bg {
  object-fit: cover;
  filter: brightness(0.45);
}

.sun-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,23,42,0.85), rgba(15,23,42,0.6), rgba(37,99,235,0.4));
}

.sun-hero .container {
  position: relative;
  z-index: 2;
}

.sun-hero-kicker {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.sun-hero-title {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
  font-weight: 700;
}

.sun-hero-text {
  font-size: 1rem;
  max-width: 36rem;
  color: rgba(255,255,255,0.9);
}

.sun-hero-badges .badge {
  font-size: 0.8rem;
}

/* Sections */
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
}

.py-lg-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

/* Lists */
.sun-list {
  list-style: none;
  padding-left: 0;
}

.sun-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
}

.sun-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sun-accent);
}

/* Cards / feature box */
.sun-room-card {
  border-radius: 1rem;
}

.sun-room-card .card-body {
  padding-bottom: 0.75rem;
}

.sun-feature-box {
  border-radius: 1rem;
  padding: 1.75rem;
  background: radial-gradient(circle at top left, #fff, #f1f5f9);
}

/* Gallery */
.sun-gallery-grid {
  margin-top: 1.5rem;
}

.sun-gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 1rem;
}

.sun-gallery-item img {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sun-gallery-item:hover img {
  transform: scale(1.04);
  box-shadow: 0 18px 45px rgba(15,23,42,0.2);
}

/* Lightbox */
.sun-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1050;
}

.sun-lightbox.is-active {
  display: flex;
}

.sun-lightbox-inner {
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sun-lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 1rem;
}

.sun-lightbox-close {
  align-self: flex-end;
  margin-bottom: 0.5rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Kontakt */
.sun-contact-list a {
  text-decoration: none;
}

.sun-contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  font-size: 0.85rem;
}

/* Utilities */
@media (max-width: 767.98px) {
  body {
    padding-top: 4rem;
  }
  .sun-hero {
    min-height: 80vh;
  }
}

/* -------------------------------------------------
   GALERIJA – jednake veličine slika
   ------------------------------------------------- */

#galerija img {
  width: 100%;
  height: auto !important;
  /* Omjer 4:3 – sve slike će imati istu visinu u gridu */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Malo zaobljeni rubovi i skrivanje viška slike */
#galerija .col-6,
#galerija .col-md-4 {
  overflow: hidden;
  border-radius: 1.25rem;
}


/* FORCE HERO – niži + vertikalno centriran */

.hero {
  height: auto !important;
  min-height: 60vh !important;
  max-height: 80vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.hero .container,
.hero-inner {
  width: 100%;
}

.hero .row {
  align-items: center;
}

.hero .overlay {
  /* ako ima overlay iza teksta, ostaje */
}

/* ============================================
   HERO – manji i centriran
   ============================================ */

.sun-hero {
  /* pregazimo stari min-height: 90vh */
  min-height: 65vh;
  display: flex;
  align-items: center;      /* vertikalno centriranje sadržaja */
  padding-top: 5rem;        /* da ne bude zalijepljen za navbar */
  padding-bottom: 3rem;
}

/* h-100 iz Bootstrapa gazi visinu, pa ga gasimo u heroju */
.sun-hero .container.h-100,
.sun-hero .row.h-100 {
  height: auto !important;
}

