/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #faf8f4;
  --surface: #f0ede8;
  --text: #1c1a17;
  --muted: #888;
  --border: #e2ddd6;
  --accent: #1c1a17;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--muted);
  transition: color 0.3s ease;
}

.mobile-menu a:hover { color: var(--text); }

/* ── HERO (početna) ── */
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}

.hero-sadrzaj {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-sadrzaj h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
}

.hero-sadrzaj h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-opis {
  font-size: 17px;
  color: var(--muted);
  max-width: 420px;
}

.hero-slika {
  flex: 1;
}

.hero-slika img {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), box-shadow 0.55s ease;
  transform-origin: bottom left;
}

.hero-slika img:hover {
  transform: rotate(-3deg) translateX(12px) translateY(-10px);
  box-shadow: 12px 20px 40px rgba(0,0,0,0.14);
}

/* ── GUMB ── */
.gumb {
  display: inline-block;
  padding: 14px 30px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gumb:hover {
  background: #3a3530;
  transform: scale(1.04);
}

/* ── USLUGE ── */
.usluge {
  padding: 80px 48px;
}

.usluge h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin-bottom: 48px;
}

.usluge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1000px;
}

.kartica {
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.kartica img { border-radius: 0; }

.kartica h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  padding: 20px 24px 8px;
}

.kartica p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  padding: 0 24px 24px;
}

.kartica:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.kartica-3d:hover {
  transform: rotateY(10deg) translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ── PAGE HERO (podstranice) ── */
.page-hero {
  padding: 80px 48px 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
}

/* ── STATISTIKE ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 56px 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s ease;
}

.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface); }

.stat-broj {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── PRIČA ── */
.prica {
  display: flex;
  gap: 64px;
  align-items: center;
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}

.prica-slika { flex: 1; }

.prica-slika img {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.prica-tekst {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prica-tekst h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
}

.prica-tekst p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── TIM ── */
.tim {
  padding: 80px 48px;
}

.tim h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin-bottom: 48px;
}

.tim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tim-kartica {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s ease;
}

.tim-kartica img {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.tim-kartica:hover { transform: translateY(-6px); }

.tim-kartica h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
}

.tim-kartica span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tim-opis {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 4px;
}

/* ── KONTAKT ── */
.kontakt {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.kontakt-info {
  padding: 64px 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.kontakt-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kontakt-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.kontakt-item a,
.kontakt-item span {
  font-size: 16px;
  color: var(--text);
  transition: color 0.3s ease;
}

.kontakt-item a:hover { color: var(--muted); }

/* ── FORMA ── */
.forma {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.forma-grupa {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forma-grupa label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.forma-grupa input,
.forma-grupa textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  border-radius: 2px;
  transition: border-color 0.3s ease;
  resize: none;
}

.forma-grupa input:focus,
.forma-grupa textarea:focus {
  border-color: var(--text);
}

.forma-grupa textarea { height: 140px; }

/* ── FOOTER ── */
.footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .hero {
    flex-direction: column;
    padding: 48px 24px;
    gap: 40px;
  }

  .usluge { padding: 56px 24px; }
  .usluge-grid { grid-template-columns: 1fr; }

  .page-hero { padding: 56px 24px 48px; }

  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 40px 24px; }
  .stat:last-child { border-bottom: none; }

  .prica { flex-direction: column; padding: 56px 24px; gap: 40px; }

  .tim { padding: 56px 24px; }
  .tim-grid { grid-template-columns: 1fr; }

  .kontakt { grid-template-columns: 1fr; }
  .kontakt-info { padding: 48px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .forma { padding: 48px 24px; }

  .footer { padding: 24px; }
}