/* =========================
   SEARCH OVERLAY (FIXED)
========================= */

.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.92);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 99999;
}

.search-panel.active {
    display: flex;
}

.search-box {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 18px 50px 18px 18px;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    outline: none;
}

.search-box input::placeholder {
    color: #aaa;
}

.close-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #fff;
    font-size: 22px;
}

/* ============================= */
/* PADAJUĆI MENI (FADE + SLIDE) */
/* ============================= */

.navbar .nav-item.dropdown {
    position: relative;
}

/* DROPDOWN MENI - default stanje (sakriven ali animiran) */
.navbar .nav-item.dropdown > .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;

    background-image: url("../../slike/pozadina/beli-mermer-zlatne-zile.png");
    background-size: cover;
    background-position: center;
	background-color: rgba(255,255,255,0.4);
    background-blend-mode: lighten;

    z-index: 9999;

    padding: 10px 0;
    border-radius: 8px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    overflow: hidden;

    /* 🔥 ANIMACIJA START */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.25s ease;
    pointer-events: none;
}

/* prikaz na hover (animirani ulaz) */
.navbar .nav-item.dropdown:hover > .navbar-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================= */
/* GOLD TOP LINE */
/* ============================= */

.navbar .nav-item.dropdown > .navbar-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #c9a24a,
        transparent
    );

    opacity: 0.9;
}

/* ============================= */
/* STAVKE U DROPDOWN */
/* ============================= */

.navbar .nav-item.dropdown > .navbar-nav .nav-link {
    padding: 1px 1px;
    color: #000;
	font-weight: 500;
    transition: all 0.25s ease;
}

.navbar .nav-item.dropdown > .navbar-nav .nav-link:hover {
    background: rgba(201, 162, 74, 0.1);
    color: #c9a24a;
}

/* dodat font za rukopis */
.handwritten{
    font-family: var(--font-4);
}

.custom-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* CARD */
.custom-gallery .gallery-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  background: #fff;
}


/* SLIKE */
.custom-gallery img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: saturate(1.05) contrast(1.05);
}

/* SOFISTICIRANI OBLICI (blaži, premium, ne “oštri”) */
.custom-gallery .gallery-grid-item:nth-child(1) img {
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.custom-gallery .gallery-grid-item:nth-child(2) img {
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

.custom-gallery .gallery-grid-item:nth-child(3) img {
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.custom-gallery .gallery-grid-item:nth-child(4) img {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 5% 100%);
}

/* HOVER - luksuzni mermer feel */
.custom-gallery .gallery-grid-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

/* MERMER OVERLAY (suptilan shine, NE POKRIVA TEKST) */
.custom-gallery .gallery-grid-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.8s ease;
  pointer-events: none;
}

.custom-gallery .gallery-grid-item:hover::after {
  transform: translateX(100%);
}

/* TEKST POPUP - da ne smeta slici */
.gallery-link-popup {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #fff;
  z-index: 2;
}

/* TEKST DODATNO CLEAN */
.gallery-link-element a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* TABLET */
@media (max-width: 1024px) {
  .custom-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .custom-gallery img {
    height: 420px;
  }
}

/* MOBILNI */
@media (max-width: 600px) {
  .custom-gallery {
    grid-template-columns: 1fr; /* jedna po jedna */
    gap: 18px;
  }

  .custom-gallery img {
    height: 320px;
    border-radius: 16px;
  }

  /* da trapezi ne “ruše” dizajn na malom ekranu */
  .custom-gallery .gallery-grid-item img {
    clip-path: none !important;
  }

  .gallery-link-popup {
    padding: 14px;
  }
  
}



.fancy-divider {
  border: none;
  height: 2px;
  width: 80%;
  max-width: 550px;
  margin: 70px auto;

  /* ELEGANT GOLD (soft, ne napadno) */
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 134, 66, 0.4),
    rgba(224, 184, 92, 0.9),
    rgba(176, 134, 66, 0.4),
    transparent
  );

  background-size: 200% 200%;
  animation: elegantMove 8s ease-in-out infinite;

  border-radius: 50px;

  /* suptilan luksuzni sjaj */
  box-shadow: 0 0 8px rgba(224, 184, 92, 0.25);
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .fancy-divider {
    margin: 35px auto;
  }
}

@media (max-width: 600px) {
  .fancy-divider {
    margin: 35px auto;
  }
}

/* male elegantne tačkice */
.fancy-divider::before,
.fancy-divider::after {
  content: "";
  position: relative;
  top: 50%;
  transform: translateY(-50%);

  width: 8px;
  height: 8px;
  border-radius: 50%;

  background: rgba(176, 134, 66, 0.8);
  box-shadow: 0 0 6px rgba(224, 184, 92, 0.3);
}

.fancy-divider::before { left: 0; transform: translate(-120%, -50%); }
.fancy-divider::after  { right: 0; transform: translate(120%, -50%); }

/* nežna mermer animacija */
@keyframes elegantMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-contact {
    position: relative;
    overflow: hidden;

    padding: 16px 38px;
    border: none;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #8f6b38 0%,
        #b8954a 50%,
        #d4b06a 100%
    );

    color: #fff;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    box-shadow:
        0 10px 30px rgba(143,107,56,0.22),
        inset 0 1px 1px rgba(255,255,255,0.25);

    transition: all 0.35s ease;

    backdrop-filter: blur(8px);
}

/* glow overlay */
.btn-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );

    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.btn-contact:hover::before {
    left: 140%;
}

.btn-contact:hover {
    transform: translateY(-3px) scale(1.02);

    box-shadow:
        0 18px 40px rgba(143,107,56,0.3),
        inset 0 1px 1px rgba(255,255,255,0.3);
}

.btn-contact:active {
    transform: translateY(0);
}

.contact-form-logo {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.contact-form-logo img {
    width: 180px;
    max-width: 100%;
    filter: drop-shadow(0 10px 30px rgba(176,134,66,0.25));
    opacity: 0;
    transform: translateY(20px);
    animation: logoReveal 1.4s ease forwards;
}

/* elegant glow linija */
.contact-form-logo::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(176,134,66,0.9),
        transparent
    );
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.gallerylux-grid{
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	grid-auto-rows:260px;
	gap:20px;
	width:100%;
}

.gallerylux-item{
	position:relative;
	overflow:hidden;
	border-radius:24px;
}

.gallerylux-item img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
	transition:0.7s;
}

.gallerylux-item:hover img{
	transform:scale(1.08);
}

.gallerylux-content{
	position:absolute;
	left:0;
	bottom:0;
	z-index:2;
	padding:30px;
	color:#fff;
}

.gallerylux-item::after{
	content:"";
	position:absolute;
	inset:0;
	background:linear-gradient(to top,
	rgba(0,0,0,.75),
	rgba(0,0,0,.1));
}

.large{
	grid-column:span 2;
	grid-row:span 2;
}

.wide{
	grid-column:span 2;
}

.gallerylux-title{
	font-size:32px;
	font-weight:300;
	margin-bottom:10px;
}

.gallerylux-subtitle{
	font-size:14px;
	line-height:1.6;
	opacity:.9;
}

.gallerylux-number{
	font-size:12px;
	letter-spacing:4px;
	margin-bottom:10px;
	opacity:.8;
}

@media(max-width:991px){

	.gallerylux-grid{
		grid-template-columns:repeat(2,1fr);
	}

}

@media(max-width:767px){

	.gallerylux-grid{
		grid-template-columns:1fr;
	}

	.large,
	.wide{
		grid-column:span 1;
		grid-row:span 1;
	}

}