/* ============================================
   d:studio — osnovni stilovi
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f1;
  --dark: #1a1a19;
  --dark-alt: #232321;
  --text: #232320;
  --text-muted: #706f6a;
  --text-light: #f6f5f1;
  --text-light-muted: #b8b6ae;
  --line: #e6e4dd;
  --line-dark: #38372f;
  --accent: #f3d74b;

  --container: 1200px;
  --gap: clamp(24px, 4vw, 64px);
  --section-pad: clamp(64px, 10vw, 140px);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }

p { margin: 0; }

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.eyebrow-light { color: var(--accent); }

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}

.logo { cursor: pointer; }
.logo img { height: 58px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { border-color: var(--text); }

.nav-cta {
  padding: 9px 18px !important;
  background: var(--dark);
  color: var(--text-light) !important;
  border-radius: 999px;
}
.nav-cta:hover { border-color: transparent !important; background: var(--accent); color: var(--dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--text);
  width: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-light { background: var(--text-light); color: var(--dark); }
.btn-light:hover { background: var(--accent); }

.btn-dark { background: var(--dark); color: var(--text-light); }
.btn-dark:hover { background: var(--accent); color: var(--dark); }

.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.section-dark .btn-outline { color: var(--text-light); box-shadow: inset 0 0 0 1px var(--text-light); }
.section-dark .btn-outline:hover { background: var(--text-light); color: var(--dark); }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media, .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12,12,11,0.62) 0%, rgba(12,12,11,0.4) 28%, rgba(12,12,11,0.08) 58%, rgba(12,12,11,0) 72%),
    linear-gradient(180deg, rgba(20,20,18,0.35) 0%, rgba(20,20,18,0.15) 35%, rgba(20,20,18,0.75) 100%);
}

.hero-content {
  position: relative;
  padding-bottom: clamp(56px, 8vw, 110px);
  padding-top: 140px;
}

.hero-text { max-width: 720px; color: var(--text-light); }

.hero-text h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.08;
  margin: 18px 0 22px;
  font-weight: 500;
}

.hero-description {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.86);
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.6;
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 136px;
  bottom: 24px;
  right: clamp(14px, 3vw, 36px);
  width: 2px;
  z-index: 150;
  pointer-events: none;
}

.scroll-progress-track {
  position: absolute;
  inset: 0;
  background: rgba(120,118,110,0.25);
  border-radius: 2px;
}

.scroll-progress-thumb {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 52px;
  transform: translateX(-50%);
  background: var(--accent);
  border-radius: 2px;
}

/* ============================================
   SECTIONS - shared
   ============================================ */

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }

.section-dark {
  background: var(--dark);
  color: var(--text-light);
}

.section-heading {
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-dark .section-heading { border-color: var(--line-dark); }

.section-eyebrow { margin-bottom: 10px; }

.section-heading h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}

.section-mark {
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin: 18px 0;
}

.section-lead {
  font-size: 19px;
  font-weight: 600;
  max-width: 560px;
  margin-bottom: 10px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
}
.section-intro-light { color: var(--text-light-muted); }

/* ============================================
   KLIJENTI I SARADNICI
   ============================================ */

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 18px);
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(112px, 13.5vw, 148px);
  height: 78px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.partner-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.25s ease;
}

.partner-logo-item:hover img,
.partner-logo-item:focus-within img {
  filter: grayscale(0) opacity(1);
}

.partner-logo-item--dark {
  background: var(--dark);
  border-color: var(--dark);
}

/* ============================================
   USLUGE
   ============================================ */

.services-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 clamp(16px, 2.4vw, 28px);
  border-left: 1px solid var(--line);
  transition: opacity 0.2s ease;
}
.service-item:first-child { border-left: none; padding-left: 0; }
.service-item:last-child { padding-right: 0; }
.service-item:hover { opacity: 0.7; }

.service-icon { width: 30px; height: 30px; color: var(--accent); }

.service-item h3 { font-size: 18px; font-weight: 500; }

.service-description { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ============================================
   RADOVI / GALLERY
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(110px, 15vw, 190px);
  grid-auto-flow: dense;
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  grid-column: span 1;
  grid-row: span 1;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--big { grid-column: span 2; grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ============================================
   VIRTUELNE TURE
   ============================================ */

.vt-subsection {
  padding-top: clamp(40px, 6vw, 64px);
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}
.vt-subsection:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.section-heading + .vt-subsection { margin-top: 0; border-top: none; padding-top: 0; }

.vt-subsection h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  max-width: 640px;
}

.vt-subsection-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 620px;
  margin-top: 12px;
}

.vt-subsection-note {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 24px;
  font-style: italic;
}

/* ikonice: karte */
.icon-grid { display: grid; gap: clamp(28px, 3vw, 44px); margin-top: 32px; }
.icon-grid--2 { grid-template-columns: repeat(2, 1fr); }
.icon-grid--3 { grid-template-columns: repeat(3, 1fr); }

.icon-card { display: flex; flex-direction: column; gap: 10px; }
.icon-card-icon { width: 28px; height: 28px; color: var(--accent); }
.icon-card h4 { font-size: 16px; font-weight: 600; margin: 0; }
.icon-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* za koga: mreža */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px clamp(24px, 3vw, 40px);
  margin-top: 32px;
}
.audience-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.audience-item h4 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.audience-item p { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* koraci saradnje */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}
.step-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 clamp(16px, 2.4vw, 28px);
  border-left: 1px solid var(--line);
}
.step-item:first-child { border-left: none; padding-left: 0; }
.step-item:last-child { padding-right: 0; }
.step-item h4 { font-size: 16px; font-weight: 600; margin: 0; }
.step-item p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.step-item p.step-number { color: var(--accent); font-size: 14px; font-weight: 700; }

/* pull quote */
.pull-quote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin-top: 20px;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

/* CTA traka */
.vt-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px);
  background: var(--dark);
  color: var(--text-light);
  border-radius: 10px;
}
.vt-cta-text h3 { font-size: 22px; font-weight: 500; color: var(--text-light); margin-bottom: 8px; }
.vt-cta-text p { color: var(--text-light-muted); font-size: 15px; max-width: 460px; }
.vt-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.vt-cta-actions .btn-dark { background: var(--accent); color: var(--dark); }
.vt-cta-actions .btn-dark:hover { background: var(--text-light); }
.vt-cta-actions .btn-outline { color: var(--text-light); box-shadow: inset 0 0 0 1px var(--text-light); }
.vt-cta-actions .btn-outline:hover { background: var(--text-light); color: var(--dark); }

/* primeri: embedovane ture */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: 32px;
}
.example-card { display: flex; flex-direction: column; gap: 12px; }
.example-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--line);
}
.example-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.example-embed--fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(15,15,14,0.12) 0%, rgba(15,15,14,0.2) 45%, rgba(15,15,14,0.82) 100%),
    url("../assets/images/misc/gradac-cover.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: none;
  color: var(--text-light);
  text-align: center;
  padding: 24px;
  transition: filter 0.2s ease;
}
.example-embed--fallback:hover { filter: brightness(1.08); }
.example-embed--fallback-icon { width: 30px; height: 30px; color: var(--accent); filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.example-embed--fallback-label {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.example-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.example-caption h4 { font-size: 15px; font-weight: 600; margin: 0; }
.example-caption a { font-size: 13px; color: var(--text-muted); border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.example-caption a:hover { color: var(--text); border-color: var(--text); }

/* dugme "prikaži više" */
.collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 0 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.collapse-toggle:hover { color: var(--accent); border-color: var(--accent); }
.collapse-toggle-icon {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.collapse-content { margin-top: 8px; }
.collapse-content .audience-grid,
.collapse-content .faq-list { margin-top: 24px; }

/* FAQ */
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 14px;
  max-width: 680px;
}

/* ============================================
   KONTAKT
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--gap);
}

.contact-links { display: flex; flex-direction: column; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: opacity 0.2s ease;
}
.contact-link:first-child { border-top: 1px solid var(--line-dark); }
.contact-link:hover { opacity: 0.7; }

.contact-icon { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.contact-text { display: flex; flex-direction: column; gap: 4px; }

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light-muted);
}
.contact-value { font-size: 22px; font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light-muted);
}

.form-row input, .form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-light);
  font-family: inherit;
  font-size: 15px;
  padding: 10px 0;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn { align-self: flex-start; margin-top: 8px; }

.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-privacy-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-light-muted);
  margin: -8px 0 0;
  max-width: 440px;
}

.form-status { font-size: 14px; min-height: 1.4em; margin: 0; }
.form-status--ok { color: var(--accent); }
.form-status--error { color: #e08585; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-inner .logo img { height: 20px; opacity: 0.7; }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,15,14,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-image { max-width: 100%; max-height: 90vh; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: clamp(20px, 5vw, 48px);
  font-size: 32px;
  color: var(--text-light);
  line-height: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 120px 0 0 0;
    background: var(--bg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px clamp(20px, 5vw, 48px); }
  .main-nav ul li { width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav ul li a { display: block; padding: 18px 0; }
  .nav-cta { display: inline-block; margin: 16px 0; border-radius: 999px; }

  .services-list { grid-template-columns: 1fr; row-gap: 28px; }
  .service-item {
    border-left: none;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
  }
  .service-item:first-child { border-top: none; padding-top: 0; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(120px, 30vw, 200px); }
  .gallery-item--wide, .gallery-item--big { grid-column: span 2; }

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

  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .step-item:nth-child(2) { border-left: 1px solid var(--line); }
  .step-item:nth-child(odd) { border-left: none; padding-left: 0; }

  .vt-cta { flex-direction: column; align-items: flex-start; }

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

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .scroll-progress { display: none; }
}

@media (max-width: 600px) {
  .icon-grid--2, .icon-grid--3, .audience-grid, .steps-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .step-item { border-left: none !important; padding-left: 0 !important; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .contact-value { font-size: 18px; }
}
