:root {
  --beige: #f6efe4;
  --brown: #6b3f1d;
  --dark-brown: #4a2a14;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Georgia", serif;
}

html {
  scroll-behavior: smooth;
}

a:focus-visible {
  outline: 2px solid #d6ae6d;
  outline-offset: 4px;
}

html, body {
  overflow-x: hidden;
}


body {
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 25%,
      rgba(214,174,109,0.45) 55%,
      rgba(246,239,228,1) 100%
    ),
    url("../img/5.jpg") center / cover no-repeat;

  color: var(--dark-brown);
}

body.menu-open {
  overflow: hidden;
}



.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.15) 75%,
    rgba(0,0,0,0) 100%
  );

  transform-origin: top;
   transition: background 0.35s ease;
}

.header {
  will-change: backdrop-filter;
}


.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}



.logo {
  height: 130px;
  transition: transform 0.35s ease;
}

.logo {
  will-change: transform;
  transform: translateZ(0);
}


.logo {
  filter:
    drop-shadow(0 0 15px rgba(214,174,109,0.35));
}

.header.scrolled .logo {
  transform: scale(0.55);
}

.header:not(.scrolled) .logo {
  animation: none
}



@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


.nav-wrapper {
  align-self: flex-start;
  margin-top: 5px;
}

.nav {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #d6ae6d;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}


.nav a:hover {
  color: #d6ae6d;
}



.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;      /* vertikalno centriranje */
  justify-content: center;  /* horizontalno centriranje */
  text-align: center;
  padding: 0 20px;
  padding-top: 60px;
}




.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}


.hero .container {
  position: relative;
  z-index: 2;
  max-width: 700px;
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: #f6efe4;
  text-shadow: 0 4px 14px rgba(0,0,0,0.5);
}


.hero .btn {
  margin: 0 auto;
}



.btn {
  background: linear-gradient(
    135deg,
    #6b3f1d,
    #d6ae6d
  );
  color: #000;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(214,174,109,0.5);
}


.section {
  padding: 70px 0;
}

.section.light {
  background: #fff;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 2px solid var(--brown);
  padding: 30px;
  text-align: center;
  border-radius: 15px;
}

.menu-list {
  list-style: none;
  max-width: 400px;
  margin: auto;
}

.menu-list li {
  padding: 10px;
  border-bottom: 1px solid var(--brown);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-img:hover {
  transform: scale(1.07);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}


.img-box {
  height: 200px;
  background: #ddd;
  border-radius: 15px;
}

.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--brown);
}



.header.scrolled {
  padding: 12px 0 18px;
}

.header.scrolled {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1200;
}

.burger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* X stanje */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .hero {
    padding-top: 200px;
  }

  .logo {
    height: 100px;
  }

}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 900;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 1200;
}

.mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--brown);
    color: #fff;
    text-align: center;
    padding: 16px;
    font-weight: bold;
    text-decoration: none;
    z-index: 1100;
  }
}


.gallery-img:hover {
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}


.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.social-float {
  position: fixed;
  left: 20px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.social-float a {
  width: 50px;
  height: 50px;
  background: var(--brown);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-social {
  display: flex;
  gap: 12px;
}

.header-social img {
  width: 22px;
  height: 22px;
}

.header-social a:hover img {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .header-social {
    display: none;
  }
}

.reveal {
     transform: none !important;
     opacity: 1 !important;
  
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-float {
  animation: whatsappPulse 2.5s infinite;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    transform: translateY(-4px);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: translateY(0);
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: auto;
}

.gallery-img {
  width: 100%;
  height: 280px;
  object-fit: contain; /* BITNO: vidi se cela slika */
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0,0,0,0.25);
}


.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: #2b1a0f;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer h4 {
  margin-bottom: 15px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 15px;
}

.footer-social a {
  display: block;
  color: #d6ae6d;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =========================
   ABOUT PAGE (SCOPED)
   ========================= */

.about-page {
  position: relative;
}

/* HERO kao index */
.about-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  background:
    url("../img/5.jpg") center / cover no-repeat;
}

/* TAMNI OVERLAY – KLJUČNO */
.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.45)
  );
  z-index: 1;
}

.about-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.about-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 6px 25px rgba(0,0,0,0.7);
}

.about-content .lead {
  font-size: 1.2rem;
  color: #f6efe4;
  line-height: 1.6;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

/* DONJA SEKCIJA */
.about-section.light {
  background: #ffffff;
  padding: 100px 0;
}

/* GRID */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* TEKST */
.about-text h2 {
  color: #4a2a14;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #6b3f1d;
  margin-bottom: 15px;
}

/* SLIKA */
.about-image img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-content h1 {
    font-size: 2.3rem;
  }
}

/* =====================
   ABOUT HERO FIX
   ===================== */

.about-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

}

/* OVERLAY IDE ISPOD TEKSTA */
.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

/* TEKST IDE IZNAD OVERLAYA */
.about-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #fff;
}

/* NASLOV */
.about-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 6px 25px rgba(0,0,0,0.7);
}

/* TEKST */
.about-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #f6efe4;
  text-shadow: 0 4px 18px rgba(0,0,0,0.7);
}

.viber-float {
  position: fixed;
  bottom: 105px; /* iznad WhatsApp-a */
  right: 30px;
  width: 60px;
  height: 60px;
  background: #7360f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 1200;
  animation: viberPulse 2.8s infinite;
}

@keyframes viberPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(115,96,242,0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(115,96,242,0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(115,96,242,0);
    transform: scale(1);
  }
}

#usluge h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.45);
}


.menu-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.menu-popup img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 14px;
}

.menu-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 20px;
}

.menu-popup img {
  max-width: 90%;
  max-height: 70vh;
  border-radius: 16px;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.menu-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

.menu-nav.left { left: 20px; }
.menu-nav.right { right: 20px; }

.menu-actions {
  display: flex;
  gap: 15px;
}

.share-btn {
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.viber { background: #7360f2; }

.menu-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
  animation: zoomIn 0.4s ease;
}

.menu-title {
  color: #d6ae6d;
  margin-bottom: 20px;
  font-size: 1.6rem;
  animation: fadeUp 0.5s ease;
}

.menu-close {
  position: absolute;
  top: -10px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.menu-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.menu-btn {
  padding: 12px 22px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.menu-btn.whatsapp { background: #25d366; }
.menu-btn.viber { background: #7360f2; }


.menu-indicators {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.menu-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: 0.3s;
}

.menu-dot.active {
  background: #d6ae6d;
  transform: scale(1.2);
}

.reveal {
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .menu-popup img {
    max-width: 95%;
    max-height: 65vh;
  }

  .menu-actions {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 768px) {

  /* HEADER VISINA + LOGO */
  .header {
    padding: 12px 0;
  }

  .logo {
    height: 90px;
    transition: transform 0.3s ease, height 0.3s ease;
  }

  .header.scrolled .logo {
    height: 60px;
  }

  /* NAV FULLSCREEN */
  .nav-wrapper {
    position: fixed;
    top: var(--header-height, 80px);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height, 80px));
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    transition: left .35s ease;
    z-index: 1000;
  }

  .nav-wrapper.open {
    left: 0;
  }
  .nav {
    flex-direction: column;
    gap: 28px;
    text-align: center;

    align-items: center;   /* ← OVO */
    justify-content: center; /* ← I OVO */
  }

  .nav a {
    font-size: 24px;
    letter-spacing: 0.5px;
  }

  .header-social {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {

  .hero {
    min-height: 90vh;
    padding-top: 180px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 160px;
  }

  .hero p {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {

  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-img {
    height: 220px;
    padding: 10px;
    object-fit: contain;
  }

  .menu-popup img {
    max-width: 95%;
    max-height: 65vh;
  }

  .menu-indicators {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {

  .whatsapp-float {
    bottom: 90px;
    right: 18px;
    width: 54px;
    height: 54px;
  }

  .viber-float {
    bottom: 150px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 768px) {

  .footer {
    padding-bottom: 90px; /* zbog mobile CTA */
  }

  .footer-grid {
    gap: 30px;
  }

  .footer p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

}

/* ======================
   MOBILE BURGER FIX (ANDROID)
   ====================== */

@media (max-width: 768px) {
  .burger {
    display: flex !important;
    position: relative;
    z-index: 1001;
  }

}

/* overlay ispod burgera */
.menu-overlay {
  z-index: 999;
}

.header {
  isolation: isolate;
}
