/* ====================== RESET & PALETA ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --text: #e6e6e6;
  --muted: #a8a8a8;
  --gold: burlywood;
  --gold-weak: #d2b48c33;
  --shadow: 0 10px 30px #00000080;
}

/* ====================== OSNOVA ====================== */
html,
body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--gold);
  text-decoration: none;
}

/* ====================== KONTAKT MAIN ====================== */
.contact-main {
  padding: clamp(28px, 5vw, 72px);
}

.contact-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.contact-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 5.5vw, 64px);
  color: var(--gold);
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}

/* Društveni linkovi */
.social-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 10px 0 34px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid var(--gold-weak);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: #1a1207;
  background: var(--gold);
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.9;
}

/* Forma */
.contact-form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: grid; gap: 8px; }
.form-field span { font-size: 14px; color: var(--muted); }

.contact-form input,
.contact-form textarea {
  background: #0e0e0e;
  color: var(--text);
  border: 1px solid var(--gold-weak);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #c6c6c6; opacity: 0.85; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(218,165,32,0.18);
  background: #111;
}

/* Dugme */
.btn-send {
  justify-self: start;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  color: #1a1207;
  background: linear-gradient(180deg, var(--gold) 0%, #cda862 100%);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow);
}
.btn-send:hover { transform: translateY(-2px); filter: brightness(1.02); }
.btn-send:active { transform: translateY(0); }

/* ====================== LIGHTBOX ====================== */
.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.86);
  z-index: 2000;
}
.img-modal.is-open { display: flex; }

.img-modal-content {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 0 20px #000;
  animation: zoomIn 0.35s ease;
}
.img-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #1a1207;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.img-close:hover { transform: translateY(-2px); filter: brightness(1.03); }

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ====================== REVEAL ====================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
  .btn-send { width: 100%; justify-self: stretch; }
}
@media (max-width: 520px) {
  .contact-header h1 { font-size: 40px; }
  .social-links { gap: 16px; }
}

/* ====================== REDUCED MOTION ====================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ====================== KONTAKT INFO & MAPA ====================== */
.contact-info {
  margin-top: 42px;
  padding: 22px clamp(16px, 3vw, 28px);
  background: #0e0e0e;
  border: 1px solid var(--gold-weak);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: left;
}

.contact-info h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: .2px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: var(--text);
  line-height: 1.7;
}

.contact-info a {
  color: var(--gold);
  border-bottom: 1px dashed var(--gold-weak);
  transition: color .25s ease, border-color .25s ease, opacity .25s ease;
}
.contact-info a:hover {
  color: #fff;
  border-color: var(--gold);
  opacity: .95;
}

.contact-info p[data-icon]::before {
  content: "";
  flex: 0 0 22px;
  inline-size: 22px;
  block-size: 22px;
  opacity: .9;
}

/* Adresa */
.contact-info p[data-icon="address"]::before {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Telefon */
.contact-info p[data-icon="phone"]::before {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.85 21 3 13.15 3 3a1 1 0 0 1 1-1h3.48a1 1 0 0 1 1 1c0 1.3.2 2.5.57 3.6a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Mail */
.contact-info p[data-icon="mail"]::before {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 4-8 5-8-5V6l8 5 8-5v2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Instagram */
.contact-info p[data-icon="ig"]::before {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7Zm11.25 1.75a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Mapa */
.map-container {
  margin-top: 28px;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 420px);
  filter: saturate(0.95) contrast(1.02);
  transition: transform .35s ease;
}
.map-container:hover iframe {
  transform: scale(1.002);
}

@media (max-width: 640px) {
  .contact-info { padding: 18px 14px; }
  .contact-info p { gap: 8px; }
}
