/* Studio Beluga — statična stranica
   Dizajn inspiriran zaha-hadid.com, ali na bijeloj pozadini. */

:root {
  --bg: #ffffff;
  --fg: #141414;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --brand: #1f6f8b;
  --gold: #b08a3c;
  --max: 1600px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 40px;
  }
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: none;
  gap: 32px;
}

.nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--fg);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--fg);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 16px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-top: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 6rem);
  max-width: 18ch;
  color: var(--gold);
}

.hero p {
  margin-top: 24px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
}

.hero-media {
  margin-top: 48px;
  /* Full-bleed: span the entire viewport width regardless of .wrap padding */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  height: 60vh;
  min-height: 300px;
  overflow: hidden;
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .hero-media {
    height: 85vh;
  }
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Section headings ---------- */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  color: var(--gold);
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ---------- Project grid (ZHA style) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.filter.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

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

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

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media {
  cursor: zoom-in;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 28px;
}

.card-info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card-info .meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s;
}

.card:hover .card-cat {
  opacity: 1;
  transform: translateY(0);
}

.empty {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
  grid-column: 1 / -1;
}

/* ---------- Portfolio 3x3 ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

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

@media (min-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.slot {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}

.slot .card-media {
  aspect-ratio: 1 / 1;
}

.slot.add {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-style: dashed;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.slot.add .plus {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--fg);
}

.slot-caption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.slot-caption h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
}

.slot-caption span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.note {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: #fafafa;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.note code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--fg);
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  padding: 32px 28px 40px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.service .num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
}

.service h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.service p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Studio ---------- */
.studio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1000px) {
  .studio {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.studio-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.studio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-top: 12px;
  color: var(--gold);
}

.studio p {
  margin-top: 24px;
  color: var(--muted);
  max-width: 52ch;
}

.stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 24px 0;
}

.stat .value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.stat .label {
  margin-top: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--line);
  }

.footer-inner {
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.5);
}

.footer-inner h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 16ch;
  color: var(--gold);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.footer-mail .line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--fg);
  transition: width 0.3s;
}

.footer-mail:hover .line {
  width: 64px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-cols {
    justify-items: end;
  }
}

.footer-cols .footer-eyebrow {
  margin-bottom: 16px;
}

.footer-cols address,
.footer-cols ul {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
  font-style: normal;
  list-style: none;
}

.footer-cols li {
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 72px 0 40px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  max-width: 20ch;
  color: var(--gold);
}

.page-hero p {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 17px;
}

.crumbs {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 24px;
}

.crumbs a:hover {
  color: var(--fg);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  transform: scale(0.96);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 0 24px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

body.lightbox-active {
  overflow: hidden;
}
