/* Override body background za tretmani stranicu */
html, body {
  background-color: #f5f1ed !important;
}

/* Tretmani Hero sekcija */
.tretmani-hero {
  background: linear-gradient(135deg, #6B5638 0%, #8B7355 100%);
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
}

.tretmani-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.tretmani-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Grid kartica tretmana */
.tretmani-grid {
  max-width: 1400px;
  margin: 80px auto 0;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  background: #f5f1ed;
  min-height: calc(100vh - 200px);
}

/* Kartica tretmana */
.tretman-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.tretman-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tretman-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.tretman-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Poseban tretman za sliku masaže da se vidi cela */
.tretman-card[data-tretman="masaza"] .tretman-card-image img {
  object-fit: contain;
  background: #f8f8f8;
}

.tretman-card:hover .tretman-card-image img {
  transform: scale(1.05);
}

.tretman-card-content {
  padding: 30px;
}

.tretman-card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1a1a2e;
}

.tretman-card-excerpt {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tretman-btn {
  background: linear-gradient(135deg, #C9A86A 0%, #8B7355 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 600;
}

.tretman-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 168, 106, 0.4);
}

/* Modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Modal content */
.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
  margin: auto;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal close dugme */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  color: #333;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

/* Modal body */
.modal-body {
  padding: 60px 50px 50px;
}

.modal-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #1a1a2e;
}

#modal-description {
  color: #2a2a2a;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

#modal-description h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 25px 0 15px;
  color: #0D0D0D;
  font-weight: 600;
}

#modal-description ul {
  list-style: none;
  padding-left: 0;
}

#modal-description li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
  color: #2a2a2a;
  font-weight: 400;
}

#modal-description li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #C9A86A;
  font-weight: bold;
}

/* Modal CTA dugme */
.modal-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #C9A86A 0%, #8B7355 100%);
  color: white;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 20px;
}

.modal-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(201, 168, 106, 0.4);
}

/* Footer */
.footer {
  /* background uklonjen - koristi default iz style.css */
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 0;
}

.footer-content p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Skeyndor tretmani - contain da se vide cele slike */
.tretman-card[data-tretman="eternal"] .tretman-card-image img,
.tretman-card[data-tretman="corrective"] .tretman-card-image img,
.tretman-card[data-tretman="globallift"] .tretman-card-image img,
.tretman-card[data-tretman="aquatherm"] .tretman-card-image img,
.tretman-card[data-tretman="powerc"] .tretman-card-image img,
.tretman-card[data-tretman="powerhyaluronic"] .tretman-card-image img,
.tretman-card[data-tretman="powerhyaluronic-eye"] .tretman-card-image img,
.tretman-card[data-tretman="poweroxygen"] .tretman-card-image img,
.tretman-card[data-tretman="powerretinol"] .tretman-card-image img,
.tretman-card[data-tretman="timeless"] .tretman-card-image img {
  object-fit: contain;
  background: #fff;
}

/* Portrait orijentacija slike - scale down za bolji prikaz */
.tretman-card[data-tretman="radiolifting"] .tretman-card-image img,
.tretman-card[data-tretman="mikrodermoabrazija"] .tretman-card-image img,
.tretman-card[data-tretman="mezoporacija"] .tretman-card-image img {
  object-fit: scale-down;
  background: #f8f9fa;
  padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .tretmani-hero h1 {
    font-size: 2rem;
  }

  .tretmani-hero p {
    font-size: 1rem;
  }

  .tretmani-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
    margin: 40px auto;
  }

  .modal-body {
    padding: 50px 30px 30px;
  }

  .modal-body h2 {
    font-size: 1.8rem;
  }

  #modal-description {
    font-size: 1rem;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
