/* ============================================
   M&D BUMA Beauty Centar — stylovi sajta
   ============================================ */

:root {
  --bg: #0b0b0d;
  --bg-alt: #131316;
  --bg-card: #17171b;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #d9b25c;
  --gold-light: #f3d98a;
  --gold-dark: #a8791f;
  --text: #f2ede2;
  --text-muted: #a8a49c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  margin: 0 0 0.5em;
  font-weight: 600;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { margin-top: 10px; }

section { padding: 96px 0; position: relative; }
.bg-alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #17130a;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217, 178, 92, 0.35); }
.btn-outline {
  border-color: rgba(242, 237, 226, 0.35);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Logo (no PNG needed — screen-blend trick) ----------
   The source logo.jpg has a solid black background. Placing it on a
   wrapper with the SAME dark background color and mix-blend-mode:screen
   makes the black areas disappear, leaving only the gold artwork —
   no transparent PNG required. */
.logo-plate {
  background: var(--bg);
  border-radius: 10px;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
}
.logo-plate img {
  mix-blend-mode: screen;
  height: 42px;
  width: auto;
}
.logo-plate.big img { height: 110px; }
.logo-plate.footer-logo img { height: 56px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header.scrolled {
  background: rgba(11, 11, 13, 0.9);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.burger span {
  width: 26px; height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(180deg, rgba(11,11,13,0.55), rgba(11,11,13,0.92) 70%, var(--bg)),
              url('../img/1000036445.jpg') center 25% / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(217,178,92,0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-inner .logo-plate { margin-bottom: 28px; }
.hero-inner h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
}
.hero-inner h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-inner .lead {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 18px auto 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-cue {
  position: absolute;
  bottom: -50px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-media {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.about-media img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow);
}
.about-media .tall { grid-row: span 2; height: 100%; }
.about-media .short { height: 100%; }
.about-text .stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.about-text .stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold-light);
}
.about-text .stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.perks { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.perks li .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(217,178,92,0.14);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(217,178,92,0.4); }
.service-card .thumb { height: 190px; overflow: hidden; }
.service-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .body { padding: 22px 20px 26px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; margin-bottom: 14px; }
.service-card .link {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .link .arrow { transition: transform 0.25s ease; }
.service-card:hover .link .arrow { transform: translateX(4px); }

/* ---------- Price list ---------- */
.price-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.price-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.price-tab:hover { color: var(--text); border-color: rgba(217,178,92,0.4); }
.price-tab.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #17130a;
  border-color: transparent;
}
.price-panel { display: none; }
.price-panel.active { display: block; animation: fadein 0.4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

.price-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 48px;
  max-width: 980px;
  margin: 0 auto;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px dashed var(--line);
}
.price-row .name { font-weight: 500; }
.price-row .duration {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.price-row .price {
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
  font-family: 'Playfair Display', serif;
}
.price-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(15%);
}
.gallery-grid a:hover img { transform: scale(1.1); filter: grayscale(0%); }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .tall2 { grid-row: span 2; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(4,4,5,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 30px;
  font-size: 2rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-item .ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(217,178,92,0.12);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-item p { margin: 0; font-size: 0.92rem; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.4) invert(0.92) contrast(0.9); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 50px 0 26px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 760px) {
  section { padding: 70px 0; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .burger { display: flex; }
  .header-actions .btn-gold-desktop { display: none; }

  .price-list { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid .wide { grid-column: span 2; }
  .hero { padding-top: 130px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .contact-card { padding: 26px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
