/* ============================================================
   Merry Popins — Putujuće pozorište
   Clean CSS, no frameworks. Poppins (display) + Roboto (body).
   ============================================================ */

:root {
  --red: #c0392b;
  --red-dark: #96221a;
  --gold: #e8b04b;
  --gold-light: #f3c56d;
  --ink: #1c1622;
  --ink-soft: #3a3040;
  --muted: #6b6172;
  --cream: #faf5ec;
  --cream-2: #f3ecdf;
  --white: #ffffff;
  --line: rgba(28, 22, 34, 0.12);
  --shadow-sm: 0 6px 18px rgba(28, 22, 34, 0.08);
  --shadow-md: 0 16px 40px rgba(28, 22, 34, 0.14);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===================== TYPE ===================== */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 16px;
}

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-title::after { margin-inline: auto; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(150, 34, 26, 0.35);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(150, 34, 26, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.btn--link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.btn--link:hover { color: var(--red-dark); gap: 14px; }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 245, 236, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(250, 245, 236, 0.92);
  box-shadow: var(--shadow-sm);
}

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

.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--red); background: rgba(192, 57, 43, 0.08); }
.nav-link--accent {
  background: var(--red);
  color: var(--white) !important;
}
.nav-link--accent:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(10,2,2,0.68) 100%),
    url('assets/hero.jpg') center/cover no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.hero-inner { display: block; }

.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 8px 16px;
  border: 1px solid rgba(243, 197, 109, 0.4);
  border-radius: 30px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.hero-title span {
  color: var(--gold-light);
  display: inline-block;
  animation: floatIn 0.9s var(--ease) both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin: 24px 0 0;
  line-height: 1.25;
}

.accent-text {
  color: var(--gold-light);
  font-weight: 700;
}

.hero-text {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255,255,255,0.86);
  max-width: 56ch;
  margin: 14px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
}
.hero-scroll span {
  width: 4px; height: 10px;
  background: var(--white);
  border-radius: 4px;
  margin-top: 8px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(14px); }
}

/* ===================== PARTNERS ===================== */
.partners {
  padding: 64px 0 40px;
  background: var(--cream);
}
.partners .section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-inline: auto;
}
.partners .section-title::after { margin-inline: auto; }

.marquee {
  overflow: hidden;
  margin-top: 30px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.25s, opacity 0.25s;
}
.marquee-track img:hover { filter: none; opacity: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== SERVICES ===================== */
.services {
  padding: 90px 0 40px;
  background: var(--white);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 44px 0;
}

.service + .service { border-top: 1px solid var(--line); }

.service--reverse .service-media { order: 2; }
.service--reverse .service-body { order: 1; }

.service-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-media img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service-media:hover img { transform: scale(1.05); }

.service-media-extra {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 42%;
  height: 42%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.service-body { position: relative; }

.service-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: rgba(192, 57, 43, 0.18);
  display: inline-block;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 6px 0 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.service-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--red);
  margin: 8px 0 0;
}

.service-body p { margin-top: 16px; color: var(--ink-soft); }

.service-meta {
  font-size: 0.95rem;
  color: var(--muted);
}
.service-meta strong { color: var(--ink-soft); }

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--cream-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ===================== GALLERY ===================== */
.gallery {
  padding: 90px 0;
  background: var(--cream);
}
.gallery .section-head { margin-bottom: 40px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-item[data-size="wide"] { grid-column: span 2; }
.gallery-item[data-size="tall"] { grid-row: span 2; }

.gallery-cta { text-align: center; margin-top: 40px; }

/* ===================== CONTACT ===================== */
.contact {
  padding: 90px 0;
  background: linear-gradient(160deg, #1c1622 0%, #2a1c26 100%);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.contact-card { padding-right: 12px; }

.contact .section-title { color: var(--white); }
.contact .section-title::after { background: linear-gradient(90deg, var(--gold), var(--red)); }

.contact-text {
  margin: 18px 0 0;
  color: rgba(255,255,255,0.8);
  max-width: 48ch;
}

.contact-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold-light);
  text-decoration: none;
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.contact-phone:hover { color: var(--gold); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand img { height: 56px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: rgba(255,255,255,0.6); font-size: 0.95rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold-light); }
.footer-social svg { width: 26px; height: 26px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy, .footer-credit {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===================== TO-TOP ===================== */
.to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--red-dark); }

/* ===================== REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children */
.reveal[data-stagger] { transition-delay: 0s; }

/* ===================== ACTIVE NAV ===================== */
.nav-link--active {
  color: var(--red);
  background: rgba(192, 57, 43, 0.09);
  font-weight: 600;
}
.nav-link--active:hover { color: var(--red-dark); background: rgba(192, 57, 43, 0.12); }
.nav-link--accent.nav-link--active { background: var(--red-dark); }
.nav-link--accent.nav-link--active:hover { background: var(--red-dark); }

/* ===================== PAGE HERO ===================== */
.hero--page {
  min-height: 0;
  padding: calc(var(--header-h) + 48px) 0 72px;
}

/* ===================== DETAIL ===================== */
.detail {
  padding: 90px 0 60px;
  background: var(--white);
}
.detail .service { padding: 0; }
.detail .service-media img { max-height: 560px; }

/* ===================== OTHER SERVICES ===================== */
.other {
  padding: 90px 0;
  background: var(--cream);
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.other-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.other-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.other-card-media {
  height: 210px;
  overflow: hidden;
}
.other-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.other-card:hover .other-card-media img { transform: scale(1.06); }
.other-card-body { padding: 20px 22px 24px; }
.other-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.other-card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}
.other-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--red);
  transition: gap 0.25s var(--ease), color 0.2s;
}
.other-card:hover .other-card-link { color: var(--red-dark); gap: 12px; }

@media (max-width: 1000px) {
  .other-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .other-grid { grid-template-columns: 1fr; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 260px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 12px;
    transform: translateX(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  .nav-link { padding: 13px 16px; border-radius: 12px; }
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .service { grid-template-columns: 1fr; }
  .service--reverse .service-media { order: 1; }
  .service--reverse .service-body { order: 2; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-media { order: -1; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-social { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item[data-size="wide"] { grid-column: span 1; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}

/* ===================== CLIENTS (per-track) ===================== */
.clients {
  padding: 80px 0;
  background: var(--white);
}
.clients .section-head { margin-bottom: 36px; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.clients-grid figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.25s, opacity 0.25s, transform 0.25s var(--ease);
}
.clients-grid figure:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-4px);
}
.clients-grid img {
  width: 100%;
  height: 72px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg { animation: none; }
  .marquee-track { animation: none; }
  .hero-scroll span { animation: none; }
}
