/* =========================================================
   THEME VARS
========================================================= */
:root {
  --wood-color: #e6c88c;
  --wood-dark: #d4b16a;
  --wood-light: #f8e3b7;
  --text-color: #4a3a21;
  --accent-color: #a67c52;
}

/* =========================================================
   RESET / BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Playfair Display', serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--wood-light);
  color: var(--text-color);
  line-height: 1.6;
  animation: bodyFade 0.6s ease-out;
}

@keyframes bodyFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   HEADER (logo gore, ispod 2 reda linkova: 3 + 3)
========================================================= */
header {
  background: linear-gradient(to right, var(--wood-dark), var(--wood-color));
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0 1.2rem;
}

header .container {
  text-align: center;
}

/* Logo */
.logo {
  font-size: 2.6rem;
  font-weight: 700;
  color: #aa7101; /* zlatna bež */
  letter-spacing: 2px;
  margin-bottom: .5rem;
}

/* Tanka linija ispod loga */
.header-divider {
  width: 60%;
  max-width: 700px;
  height: 1px;
  background: rgba(0,0,0,0.15);
  margin: .4rem auto 1rem;
  border-radius: 1px;
}

/* Navigacija u 2 reda */
nav ul {
  display: grid;
  grid-template-columns: repeat(6, auto); /* 3 u prvom redu, 3 u drugom */
  justify-content: center; 
  gap: .4rem 1.8rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

nav li { text-align: center; }

nav a {
  display: inline-block;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: .48rem .8rem;
  border-radius: 6px;
  transition: background-color .25s, color .25s, transform .12s;
}
nav a:hover {
  color: var(--accent-color);
  background-color: rgba(255,255,255,0.18);
}
nav a:active {
  transform: translateY(1px);
}
nav a.active {
  color: var(--accent-color);
  background: rgba(255,255,255,0.22);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: .8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  border: 2px solid var(--accent-color);
  transition: all .25s ease;
}
.btn:hover {
  background: transparent;
  color: var(--accent-color);
}

/* =========================================================
   SECTION GENERIC
========================================================= */
section { padding: 5rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: var(--text-color);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  background-color: var(--wood-light);
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.hero-content h1 { font-size: 2.5rem; margin-bottom: .5rem; }
.hero-content h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.hero-content p  { font-size: 1.1rem; max-width: 700px; margin: .3rem auto 0; }

/* Fade utility for elements */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }

/* =========================================================
   SERVICES HERO
========================================================= */
.services-hero {
  background: linear-gradient(rgba(166,124,82,.8), rgba(166,124,82,.8)),
              url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874');
  background-size: cover;
  background-position: center;
  color: rgb(255,200,120);
  text-align: center;
  padding: 6rem 0;
}
.services-hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.services-hero p  { font-size: 1.2rem; max-width: 700px; margin: 0 auto; }

/* =========================================================
   SERVICE CARDS
========================================================= */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, var(--text-color), var(--wood-dark));
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  text-align: center;
}

/* =========================================================
   LEISTUNGEN / PRICELISTE SECTION FIX
========================================================= */
.services-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 4rem 1rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 900px;
}

.price-list {
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--text-color), var(--wood-dark));
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.price-list h3 {
  color: var(--wood-light);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.price-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.7rem 0;
  font-size: 1.05rem;
  color: #fff;
}
.price-item:last-child {
  border-bottom: none;
}
.price-item span:last-child {
  color: var(--wood-color);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 700px) {
  .price-list { padding: 1.5rem; }
  .price-item { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .price-item span:last-child { align-self: flex-end; }
}

.service-content {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
}
.service-content h3 {
  font-size: 1.6rem;
  color: var(--wood-light);
  margin-bottom: 1rem;
}
.service-img img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Price rows */
.price-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding: .8rem 0;
  font-size: 1.1rem;
  color: #fff;
}
.price-item span:first-child {
  flex: 1;
  text-align: left;
  padding-right: 1rem;
}
.price-item span:last-child {
  font-weight: 600;
  color: var(--wood-color);
  white-space: nowrap;
}

/* Small descriptions under packages */
.desc {
  margin-top: 1rem;
  color: #ffe8c6;
  font-size: 1rem;
}

/* =========================================================
   CTA SECTION
========================================================= */
.cta-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(to right, var(--wood-dark), var(--wood-color));
  color: #fff;
}
.cta-section h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-section p  { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; }
.cta-buttons .btn { min-width: 200px; }

/* =========================================================
   ABOUT
========================================================= */
.about-content { text-align: center; }
.about-text { margin-bottom: 20px; }
.about img {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonials { background: #fffaf2; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #e6c88c;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: .6rem;
  color: #5b4a2e;
}
.testimonial-card h4 {
  color: var(--accent-color);
  text-align: right;
  font-weight: 700;
}

/* Placeholder poruka */
#dynamic-testimonials p {
  margin-top: .4rem;
}

/* =========================================================
   CONTACT
========================================================= */
.contact {
  background: #fffef9;
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.contact-info {
  background: #fff;
  border: 1px solid #ead4a1;
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .4rem 0;
}
.contact-item i {
  width: 20px;
  text-align: center;
  color: var(--accent-color);
}

/* Kontakt linkovi (e-mail, WhatsApp, Instagram) */
.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease-in-out, text-decoration .2s;
}
.contact-info a:hover {
  color: var(--wood-dark);
  text-decoration: underline;
}

/* =========================================================
   BOOKING PAGE STYLES
========================================================= */
.booking-hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--wood-dark), var(--text-color));
  color: #fff;
}
.booking-hero h1 {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}
.booking-hero p {
  font-size: 1.1rem;
  color: var(--wood-light);
}

.booking-container {
  max-width: 700px;
  margin: 3rem auto;
  background: var(--wood-light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.booking-container form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-row > div { flex: 1; }
label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: .3rem;
  display: block;
}
input, select, textarea {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
  transition: border .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 0 3px rgba(166,124,82,.25);
  outline: none;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }

button.btn, a.btn {
  display: inline-block;
  text-align: center;
  padding: .9rem 1.4rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-color), var(--wood-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  text-decoration: none;
}
button.btn:hover, a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
a.whatsapp-btn { background: #004218; margin-top: .5rem; }
a.whatsapp-btn:hover { background: #1da851; }

/* =========================================================
   IMPRESSUM / DATENSCHUTZ (kompaktno, u stilu)
========================================================= */
.impressum-header {
  background: linear-gradient(to right, var(--wood-dark), var(--wood-color));
  padding: 1rem 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.impressum-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 2px;
}
.impressum-logo span { color: var(--accent-color); }

.impressum-container {
  width: 90%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
}
.impressum-container h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.6rem;
  color: var(--text-color);
}
.impressum-container h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}
.impressum-container p { margin-bottom: 1rem; }

/* Linkovi – global */
a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER
========================================================= */
footer {
  background-color: var(--text-color);
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}
.footer-logo {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--wood-color);
}
.social-links { margin: 1rem 0; }
.social-links a {
  color: #fff;
  margin: 0 .5rem;
  font-size: 1.5rem;
  transition: color .25s;
}
.social-links a:hover { color: var(--wood-color); }
footer a { color: var(--wood-color); text-decoration: none; transition: color .25s; }
footer a:hover { color: var(--accent-color); text-decoration: underline; }
.copyright { font-size: .9rem; color: #ddd; }

/* =========================================================
   RESPONSIVE
========================================================= */
/* Tablet */
@media (max-width: 992px) {
  nav ul {
    grid-template-columns: repeat(3, 1fr);
    max-width: 660px;
  }
}

/* <= 768px */
@media (max-width: 768px) {
  header { padding: .9rem 0 1rem; }
  .logo { font-size: 2.2rem; }

  nav ul {
   display: grid;
    grid-template-columns: repeat(2, auto); /* 2 po redu */
    justify-content: center;
    gap: 0.6rem 1.4rem;
  }

  .service-content { padding: 1.6rem; }

  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }

  .booking-container { margin: 2.2rem auto; }
  .form-row { flex-direction: column; }
}

/* Mobile <= 600px: 2x3 linkova uredno u 2 reda */
@media (max-width: 600px) {
  .logo {
    font-size: 1.9rem;
    color: #aa7101;      /* ista zlatna kao na desktopu */
  }

  .logo span {
    color: inherit;      /* ✅ sprječava drugu boju */
  }

  .header-divider {
    width: 72%;
 }
  nav ul {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 0.4rem 1rem;
    max-width: 100%;
  }

    nav a {
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;  
  }  


  .testimonial-grid { grid-template-columns: 1fr; }

  .service-card { box-shadow: 0 4px 12px rgba(0,0,0,.12); }
  .service-content h3 { font-size: 1.35rem; }

  .price-item {
    font-size: .98rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }
  .price-item span:last-child { align-self: flex-end; white-space: normal; }

  .hero { padding: 2rem 1rem 1.4rem; }
  .hero-content h1 { font-size: 1.9rem; margin-bottom: .35rem; }
  .hero-content h2 { font-size: 1.22rem; margin-bottom: .35rem; }
  .hero-content p  { font-size: .98rem; }

  .cta-section { padding: 2.2rem 1rem; }
  .cta-section h2 { font-size: 1.7rem; }
  .cta-section p  { font-size: .98rem; }

  footer { padding: 1.3rem 0; }
  .footer-logo { font-size: 1.35rem; }
  .social-links a { font-size: 1.12rem; margin: 0 .25rem; }
  .copyright { font-size: .72rem; }
}

/* Tiny phones */
@media (max-width: 380px) {
  nav ul { max-width: 340px; }
  .logo { font-size: 1.75rem; }
}

/* =========================================================
   UTILITIES (hide/show)
========================================================= */
.hidden { display: none !important; }

/* =========================================================
   FEEDBACK PAGE (pin + list) – basic
========================================================= */
.feedback-container {
  max-width: 600px;
  margin: 5rem auto;
  background: #fffaf2;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
  text-align: center;
}
.feedback-container input,
.feedback-container textarea {
  width: 100%;
  padding: .8rem;
  margin-top: .8rem;
  border-radius: 8px;
  border: 1px solid var(--wood-dark);
  font-size: 1rem;
}
.feedback-container .btn {
  margin-top: 1rem;
}
.feedback-list { text-align: left; margin-top: 2rem; }
.feedback-item {
  background: #fff;
  border: 1px solid #e6c88c;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}
.feedback-item h4 { color: var(--accent-color); margin-bottom: .3rem; }
.delete-btn {
  position: absolute;
  right: 10px; top: 10px;
  background: none; border: none;
  color: #b30000; font-size: 1rem;
  cursor: pointer; display: none;
}

/* =========================================================
   OPTIONAL: helper class for margins/paddings (if needed)
========================================================= */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* =========================================================
   END OF FILE
========================================================= */

/* =========================================================
   FIX: Dynamic Testimonials layout
========================================================= */
#dynamic-testimonials {
  display: contents; /* 👈 da kartice unutar budu tretirane kao grid-item */
}

#dynamic-testimonials .testimonial-card {
  background: #fff;
  border: 1px solid #e6c88c;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  color: #5b4a2e;
  font-style: italic;
}

#dynamic-testimonials .testimonial-card h4 {
  text-align: right;
  color: var(--accent-color);
  font-weight: 700;
  margin-top: 0.6rem;
}
