/*
Theme Name: VIZ Studio 3D
Theme URI: https://example.local/viz-studio-3d
Author: Codex
Description: Nowoczesny motyw WordPress dla wizualizatora 3D z portfolio w kategoriach Event, Architektura i Wnetrza.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: viz-studio-3d
*/

:root {
  --bg: #080a0d;
  --bg-soft: #11161b;
  --paper: #f7f8f7;
  --paper-2: #ffffff;
  --text: #f5f7f8;
  --ink: #101417;
  --muted: #9aa5ad;
  --muted-dark: #5c676f;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(16, 20, 23, 0.14);
  --cyan: #63d9ea;
  --brass: #c5a15d;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-shell {
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 13, 0.74);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(99, 217, 234, 0.45);
  border-radius: var(--radius);
  color: var(--cyan);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(245, 247, 248, 0.82);
  font-size: 0.88rem;
  font-weight: 650;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--cyan);
}

.btn,
.wp-block-button__link,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 750 0.88rem/1 var(--font);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--cyan);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 96vh;
  padding: 140px 0 58px;
  background: #080a0d;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.96) 0%, rgba(8, 10, 13, 0.76) 36%, rgba(8, 10, 13, 0.16) 72%, rgba(8, 10, 13, 0.64) 100%),
    linear-gradient(180deg, rgba(8, 10, 13, 0.1) 0%, rgba(8, 10, 13, 0.42) 78%, #080a0d 100%);
  content: "";
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(96vh - 198px);
  margin: 0 auto;
  align-items: end;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 780;
  line-height: 0.94;
}

.lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(245, 247, 248, 0.74);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr;
  gap: 1px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.proof-item {
  padding: 22px 24px;
  background: rgba(8, 10, 13, 0.72);
}

.proof-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--paper);
  font-size: 1.1rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--bg);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-head h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1;
}

.section-head p {
  max-width: 410px;
  margin-bottom: 0;
  color: var(--muted);
}

.section-light .section-head p {
  color: var(--muted-dark);
}

.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 247, 248, 0.82);
  font: 700 0.82rem/1 var(--font);
  cursor: pointer;
}

.filter-btn.is-active {
  border-color: var(--cyan);
  background: rgba(99, 217, 234, 0.14);
  color: var(--cyan);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-card.is-hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.02) 28%, rgba(8, 10, 13, 0.86) 100%);
  content: "";
}

.project-info {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.project-info h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.project-info p {
  margin-bottom: 16px;
  color: rgba(245, 247, 248, 0.72);
  font-size: 0.94rem;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 14px;
  color: rgba(245, 247, 248, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.process {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: start;
}

.process-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1;
}

.process-copy p {
  max-width: 510px;
  color: var(--muted-dark);
}

.process-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--line-dark);
  overflow: hidden;
}

.process-step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  padding: 26px;
  background: var(--paper-2);
}

.process-step span {
  color: var(--brass);
  font-size: 0.82rem;
  font-weight: 850;
}

.process-step h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted-dark);
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(99, 217, 234, 0.16), rgba(197, 161, 93, 0.12)),
    #101419;
}

.contact-band h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.contact-band p {
  max-width: 610px;
  margin-bottom: 0;
  color: rgba(245, 247, 248, 0.72);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #06080a;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .nav-wrap {
    min-height: 66px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-inner {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 18px;
  }

  .hero-bottom,
  .portfolio-grid,
  .process,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    margin-bottom: 18px;
  }

  .project-card,
  .project-card img {
    min-height: 360px;
  }

  .contact-band {
    padding: 30px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .hero-inner,
  .hero-bottom,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    font-size: 0.74rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .process-step {
    grid-template-columns: 1fr;
  }
}
