/* ════════════════════════════════════════════════════════
   BELAK STUDIO — style.css
   Wszystkie zmienne kolorów i fontów znajdziesz w :root
   Kolory: zmień wartości zmiennych --c-*
   Czcionki: zmień --font-display, --font-body, --font-mono
════════════════════════════════════════════════════════ */

/* ── ZMIENNE — edytuj tu ─────────────────────────────── */
:root {
  /* Kolory */
  --c-bg:        #0A0A0D;
  --c-surface:   #111118;
  --c-surface2:  #18181F;
  --c-border:    rgba(255,255,255,0.07);
  --c-border2:   rgba(255,255,255,0.12);
  --c-text:      #E8E3DA;
  --c-muted:     #7A7570;
  --c-hint:      #4A4845;
  --c-warm:      #C4825A;   /* miedź — akcent główny */
  --c-sage:      #6B9472;   /* zieleń — zabytki */
  --c-steel:     #5B7FA6;   /* błękit — produkt */
  --c-purple:    #8B6FA6;   /* fiolet — 3D */

  /* Typografia */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Układ */
  --max-w:     1280px;
  --pad-x:     clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(5rem, 10vw, 9rem);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

/* ── UTILITKI ────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  font-size: .7rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  color: var(--c-hint);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
.reveal-delay-4 { transition-delay: .48s; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .85rem 1.75rem;
  transition: background .2s, color .2s, transform .15s;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--c-warm);
  color: var(--c-bg);
}
.btn-primary:hover { background: #d4926a; }

.btn-ghost {
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  padding: .85rem 0;
}
.btn-ghost:hover { color: var(--c-text); border-color: var(--c-border2); }

.btn-full { width: 100%; text-align: center; }


/* ════════════════════════════════════════════════════════
   NAWIGACJA
════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10,10,13,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--c-border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-text);
  white-space: nowrap;
}

.logo-dot { color: var(--c-warm); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color .2s;
}

.nav-link:hover, .nav-link.active { color: var(--c-text); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-warm);
  border: 1px solid rgba(196,130,90,.4);
  padding: .5rem 1.25rem;
  transition: background .2s, color .2s;
}

.nav-cta:hover {
  background: var(--c-warm);
  color: var(--c-bg);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .25rem;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--c-text);
  transition: transform .3s, opacity .3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr min(420px, 38%);
  align-items: center;
  padding: 0 var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 3rem;
  padding-top: 5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 3rem;
}

.hero-tags span {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-hint);
  padding: .3rem 0;
  border-top: 1px solid #2A2A30;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--c-text);
}

.hero-headline em {
  font-style: italic;
  color: var(--c-warm);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: .95rem;
  color: var(--c-muted);
  max-width: 480px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.75rem;
  flex-wrap: wrap;
}

/* Geometryczny element hero */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  background: var(--c-surface);
}

.hero-geo {
  position: relative;
  width: 220px;
  height: 220px;
}

.geo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.r1 { width: 220px; height: 220px; top: 0; left: 0;
       border-color: rgba(196,130,90,.15);
       animation: spin 30s linear infinite; }
.r2 { width: 155px; height: 155px; top: 32px; left: 32px;
       border-color: rgba(196,130,90,.25);
       animation: spin-rev 22s linear infinite; }
.r3 { width: 80px; height: 80px; top: 70px; left: 70px;
       border-color: rgba(196,130,90,.5); }

.geo-line {
  position: absolute;
  background: rgba(196,130,90,.12);
}
.geo-line.h { height: 1px; width: 100%; top: 50%; }
.geo-line.v { width: 1px; height: 100%; left: 50%; }

.geo-dot {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--c-warm);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

.hero-stamp {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2A2A30;
  writing-mode: vertical-rl;
}


/* ════════════════════════════════════════════════════════
   USŁUGI — BENTO GRID
════════════════════════════════════════════════════════ */
.services { background: var(--c-bg); }

.bento {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  background: rgba(255,255,255,0.04);
}

.bento-card {
  background: var(--c-bg);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: background .25s;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  transition: opacity .25s;
}

.bento-card:hover { background: #0E0E12; }

.card-interior::before { background: linear-gradient(90deg, var(--c-warm), transparent); }
.card-product::before  { background: linear-gradient(90deg, var(--c-steel), transparent); }
.card-3d::before       { background: linear-gradient(90deg, var(--c-purple), transparent); }
.card-heritage::before { background: linear-gradient(90deg, var(--c-sage), transparent); }

/* Karta dziedzictwa — specjalna, zajmuje dwa wiersze */
.card-heritage {
  background: #0D120F;
  grid-column: 2;
  grid-row: 1 / 3;
  justify-content: flex-start;
  gap: 2rem;
  min-height: unset;
}

.card-heritage:hover { background: #0F1511; }

.card-num {
  font-size: .65rem;
  color: #2A2A30;
  display: block;
  margin-bottom: 1.25rem;
}

.card-cat {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  display: block;
  margin-bottom: .4rem;
}

.cat-warm   { color: var(--c-warm); }
.cat-steel  { color: var(--c-steel); }
.cat-purple { color: var(--c-purple); }

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-text);
  margin-top: .25rem;
}

.card-title-lg {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-top: 1rem;
}

.card-desc {
  font-size: .88rem;
  color: var(--c-muted);
  line-height: 1.75;
  margin-top: 1rem;
}

.card-desc-green { color: rgba(107,148,114,.85); }

.card-arrow {
  font-size: 1.25rem;
  color: var(--c-hint);
  transition: color .2s, transform .2s;
  align-self: flex-start;
  margin-top: 1.25rem;
}

.card-arrow:hover {
  color: var(--c-warm);
  transform: translateX(4px);
}

.card-arrow-green:hover { color: var(--c-sage); }

.heritage-badge {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(107,148,114,.1);
  color: var(--c-sage);
  padding: .3rem .75rem;
  border: 1px solid rgba(107,148,114,.2);
  margin-bottom: .5rem;
}

.heritage-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(107,148,114,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heritage-tags {
  font-size: .6rem;
  color: rgba(107,148,114,.6);
  letter-spacing: .1em;
}


/* ════════════════════════════════════════════════════════
   PORTFOLIO
════════════════════════════════════════════════════════ */
.portfolio { background: #050508; }

.port-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-hint);
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.filter-btn:hover { color: var(--c-muted); }

.filter-btn.active {
  color: var(--c-warm);
  border-color: var(--c-warm);
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
}

.port-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.port-item.port-wide {
  grid-column: span 2;
  aspect-ratio: unset;
  height: 320px;
}

.port-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}

.port-item:hover .port-img { transform: scale(1.04); }

/* Placeholder — usuń po dodaniu zdjęć */
.port-placeholder-icon {
  position: absolute;
  width: 40px; height: 1px;
  background: rgba(255,255,255,.15);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

.port-placeholder-icon--heritage {
  width: 30px; height: 30px;
  background: transparent;
  border: 1px solid rgba(107,148,114,.25);
  border-radius: 50%;
  transform: translate(-50%,-50%) rotate(0deg);
}

.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  transition: opacity .3s;
}

.port-item:hover .port-overlay { opacity: .85; }

.port-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  z-index: 1;
  transform: translateY(4px);
  transition: transform .3s;
}

.port-item:hover .port-info { transform: translateY(0); }

.port-cat {
  display: block;
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-hint);
  margin-bottom: .3rem;
}

.port-cat--heritage { color: rgba(107,148,114,.7); }

.port-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--c-text);
}

/* Animacja filtrowania */
.port-item.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(.96);
  transition: opacity .35s, transform .35s;
}

.port-item.visible-item {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition: opacity .35s, transform .35s;
}


/* ════════════════════════════════════════════════════════
   O MNIE
════════════════════════════════════════════════════════ */
.about { background: var(--c-bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about-photo-inner {
  background: var(--c-surface);
  aspect-ratio: .82;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-photo-inner::before {
  content: '';
  position: absolute;
  top: 2rem; right: 2rem;
  width: 70px; height: 70px;
  border: 1px solid rgba(196,130,90,.2);
  border-radius: 50%;
}

.about-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-init {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(255,255,255,.05);
  letter-spacing: .2em;
}

.about-caption-label {
  display: block;
  color: var(--c-hint);
  margin-bottom: .3rem;
  position: relative;
}

.about-caption-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--c-text);
  display: block;
}

.about-caption-loc {
  display: block;
  margin-top: .3rem;
  color: var(--c-muted);
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--c-warm);
  margin-bottom: 2rem;
  border: none;
  padding: 0;
}

.about-text {
  font-size: .95rem;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--c-border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--c-text);
  font-weight: 400;
  display: block;
}

.stat-label {
  display: block;
  font-size: .62rem;
  color: var(--c-hint);
  line-height: 1.5;
  margin-top: .3rem;
  letter-spacing: .1em;
}


/* ════════════════════════════════════════════════════════
   PROCES
════════════════════════════════════════════════════════ */
.process { background: #050508; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
}

.process-step {
  background: #050508;
  padding: 2rem 1.5rem;
}

.step-num {
  font-size: 2rem;
  color: #1E1E24;
  display: block;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--c-text);
  margin-top: 1.25rem;
  line-height: 1.3;
}

.step-desc {
  font-size: .83rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-top: .6rem;
}

.step-line {
  height: 1px;
  background: linear-gradient(90deg, var(--c-warm), transparent);
  margin-top: 1.5rem;
  width: 40%;
}


/* ════════════════════════════════════════════════════════
   KONTAKT
════════════════════════════════════════════════════════ */
.contact { background: var(--c-bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--c-text);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.contact-sub {
  font-size: .95rem;
  color: var(--c-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-detail-label {
  display: block;
  font-size: .62rem;
  color: var(--c-hint);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.contact-detail-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-text);
  display: block;
  transition: color .2s;
}

a.contact-detail-value:hover { color: var(--c-warm); }

.contact-detail-hint {
  display: block;
  font-size: .62rem;
  color: var(--c-hint);
  margin-top: .2rem;
  letter-spacing: .08em;
}

/* Formularz */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: .5rem; }

.form-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-hint);
}

.form-input {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
}

.form-input:focus { border-color: var(--c-border2); }

.form-input::placeholder { color: var(--c-hint); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234A4845'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--font-body);
}

.form-note {
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--c-sage);
  margin-top: .25rem;
  min-height: 1.2em;
}

.form-note.error { color: #E06060; }


/* ════════════════════════════════════════════════════════
   STOPKA
════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 2rem var(--pad-x);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: .7rem;
  letter-spacing: .2em;
  color: #3A3840;
}

.footer-copy {
  font-size: .65rem;
  letter-spacing: .1em;
  color: #3A3840;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: .65rem;
  letter-spacing: .1em;
  color: #3A3840;
  text-transform: uppercase;
  transition: color .2s;
}

.footer-links a:hover { color: var(--c-muted); }


/* ════════════════════════════════════════════════════════
   RESPONSYWNOŚĆ
════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-visual { display: none; }

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .card-heritage {
    grid-column: 1;
    grid-row: auto;
  }

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

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-headline { font-size: clamp(2.5rem, 8vw, 4rem); }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(10,10,13,.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
  }

  .nav-links.open { display: flex; }
  .nav-link { font-size: .85rem; }
  .nav-cta { padding: .85rem 2rem; }

  .nav-burger { display: flex; }

  .hero-headline { font-size: clamp(2.5rem, 10vw, 3.5rem); }

  .port-grid { grid-template-columns: 1fr 1fr; }
  .port-item.port-wide {
    grid-column: span 2;
    height: 220px;
  }

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

  .about-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: .75rem;
  }
}

@media (max-width: 480px) {
  .port-grid { grid-template-columns: 1fr; }
  .port-item.port-wide { grid-column: span 1; }

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

  .about-stats { grid-template-columns: 1fr; }

  .hero-tags { display: none; }
}
