/* =========================
   GLOBAL RESET & BASE
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-primary: #4B2E1F;
  --clr-secondary: #F5E6D3;
  --clr-accent: #C97A2B;
  --clr-darktext: #1f1f1f;
  --clr-whitetext: #ffffff;
  --clr-caramelalight: #D3A067;
  --clr-secondary-rgb: 245, 230, 211;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  color: #1a1a1a;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* =========================
   MEDIA & TYPO SAFETY
   ========================= */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero-images img {
  max-width: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* =========================
   HEADER & NAV
   ========================= */

header {
  position: sticky;
  z-index: 9999;
  top: 0;
  overflow: visible;
  background: rgba(var(--clr-secondary-rgb), 0.8);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 50px; 
  font-weight: 600;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 16px;
  color: var(--clr-primary);
  flex-wrap: wrap;
}

.nav-logo img {
  height: 64px;
  width: auto;
}

/* =========================
   HERO SECTION
   ========================= */
#hero {
  scroll-margin-top: 100px;
}

.hero-row {
  display: flex;
  position: relative;
  z-index: 1;
  background-color: var(--clr-primary);
  width: 100%;
  height: 600px;
  justify-content: flex-start;
  align-items: center; /* Tekst je sada savršeno centriran po vertikali */
  padding: 0 80px;
  /* Nova pozadina iz Canve - provjeri da li je fajl u istom folderu kao index.html */
  background: url("./slikePalacinkara/pozadina1.png") no-repeat center / cover; 
  flex-wrap: wrap;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
  gap: 24px;
  color: var(--clr-whitetext);
}

.hero-images {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-img1,
.hero-img2,
.hero-img3 {
  position: absolute;
  z-index: 10;
  max-width: 28vw;
  width: auto;
  height: auto;
}

.hero-img1 {
  top: 2%;
  right: 7%;
  height: clamp(220px, 25vw, 400px);
}

.hero-img2 {
  bottom: -18%;
  left: 20%;
  height: clamp(240px, 27vw, 430px);
  transform: translateY(40px);
}

.hero-img3 {
  top: 50%;
  right: 22%;
  height: clamp(240px, 27vw, 430px);
  transform: translateY(90px) rotate(-20deg);
}

.hero-content button,
#btn-pogledajmeni-hero {
  border-radius: 20px;
  font-size: 24px;
  padding: 10px 25px; /* Malo bolji padding za dugme */
  background-color: var(--clr-accent);
  color: var(--clr-whitetext);
  border: none;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px; /* Smanjeno jer je sekcija centrirana */
  cursor: pointer;
  transition: 0.5s;
}

.hero-content button:hover,
#btn-pogledajmeni-hero:hover {
  transform: translateY(-10px);
}

/* =========================
   ABOUT US
   ========================= */
.about-us {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  z-index: 0;
  position: relative;
  width: 100%;
  padding: 130px 80px 100px;
  background: var(--clr-secondary);
}

.about-us-content {
  z-index: 10;
  color: var(--clr-whitetext);
  flex: 1;
}

.about-us-content h1 {
  color: var(--clr-accent);
  padding-bottom: 20px;
  letter-spacing: 3px;
}

.about-us-content p {
  color: var(--clr-primary);
  font-size: 20px;
  line-height: 1.9;
}

.about-us-content-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-us img {
  border: 1px solid var(--clr-primary);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
}

/* =========================
   GLADNI SEKCIJA
   ========================= */
#gladni {
  scroll-margin-top: 100px;
}

.gladni {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  padding: 50px 20px;
  background: var(--clr-primary);
  justify-content: center;
  align-items: center;
}

.gladni-row {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--clr-whitetext);
  gap: 15px;
}

.gladni-row p {
  font-weight: bold;
  font-size: 24px;
}

.wave-div {
  position: absolute;
  left: 0;
  top: 0px; 
  width: 100%;
  overflow: hidden;
  line-height: 0;
  height: auto;
  pointer-events: none;
}

.wave-abtus {
  width: 100%;
  height: 100% !important;
  display: block;
  pointer-events: none;
}

/* =========================
   GALERIJA
   ========================= */
.galerija {
  background: var(--clr-accent);
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--clr-primary);
  padding: 80px 20px 40px;
  text-align: center;
}

.galerija h3 {
  margin-top: 40px;
  font-size: 20px;
}

.galerija-grid {
  display: grid;
  width: 100%;
  max-width: 1200px;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.card {
  text-align: center;
  height: auto;
  padding: 30px 20px 40px;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border-radius: 30px;
  border: 1px solid var(--clr-darktext);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* =========================
   MENI (Odgovor sa Flexboxom)
   ========================= */
.meni {
  padding: 80px 50px;
  background-color: var(--clr-whitetext);
}

.meni-naslov {
  text-align: center;
  margin-bottom: 50px;
  color: var(--clr-primary);
  font-size: 24px;
}

.meni-kontejner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}

.meni-kolona {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.kategorija h3 {
  color: var(--clr-accent);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--clr-accent);
  padding-bottom: 5px;
}

.napomena {
  font-size: 14px;
  font-weight: normal;
  color: #666;
}

.stavka {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 5px;
}

.stavka p {
  margin: 0;
}

.stavka strong {
  white-space: nowrap;
  margin-left: 10px;
}

/* =========================
   KONTAKT
   ========================= */
#contact {
  scroll-margin-top: 100px;
}

.contact {
  background: url(../background/stacked-waves-haikei222.svg) no-repeat center / cover;
  padding: 100px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
  min-width: 300px;
  font-size: 20px;
}

.contact h1 {
  color: var(--clr-whitetext);
  line-height: 1.4;
}

.contact-general {
  color: var(--clr-secondary);
  font-weight: bold;
  line-height: 1.8;
}

.contact-info {
  color: var(--clr-secondary);
  font-weight: bold;
}

.contact-location {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: flex-end;
}

.mapa {
  border: 1px solid black;
  border-radius: 20px;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.25);
  transition: 0.3s;
  width: 100%;
  max-width: 500px;
  height: 500px;
}

.mapa:hover {
  transform: translateY(-10px);
}

/* =========================
   CTA SEKCIJA
   ========================= */
.cta {
  background: var(--clr-secondary);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.cta h1 {
  font-weight: bold;
  font-size: 40px;
  color: var(--clr-primary);
}

.cta-text p {
  font-size: 20px;
  color: var(--clr-darktext);
  margin-top: 10px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta button {
  border: none;
  border-radius: 10px;
  font-size: 20px;
  padding: 12px 30px;
  color: var(--clr-whitetext);
  background-color: var(--clr-accent);
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.25);
  transition: 0.5s;
  cursor: pointer;
}

.cta button:hover {
  transform: translateY(-10px);
}

/* =========================
   FOOTER
   ========================= */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 60px 80px;
  gap: 40px;
  background: var(--clr-accent);
}

.footer1, .footer2, .footer3 {
  flex: 1;
  min-width: 250px;
}

.footer h2 {
  color: var(--clr-primary);
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 15px;
}

.footer p {
  color: var(--clr-whitetext);
  line-height: 1.6;
}


/* =========================
   RESPONSIVE (MEDIA QUERIES)
   ========================= */

@media (max-width: 900px) {
  .hero-img1,
  .hero-img2,
  .hero-img3 {
    display: none;
  }

  .nav-bar {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    justify-content: center;
  }

  .hero-row {
    padding: 50px 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    margin-top: 0;
  }

  .about-us {
    flex-direction: column;
    padding: 80px 30px;
    text-align: center;
  }

  .galerija-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .meni {
    padding: 60px 20px;
  }

  .contact {
    flex-direction: column;
    padding: 60px 30px;
    text-align: center;
  }

  .contact-location {
    width: 100%;
    justify-content: center;
  }

  .mapa {
    height: 400px;
    max-width: 100%;
  }

  .cta h1 {
    font-size: 32px;
  }

  .footer-content {
    padding: 50px 30px;
    flex-direction: column;
    text-align: center;
  }
}